Fix forward of 79d95a2887: the device worker test's input and three docs drop the stated leg

79d95a2887 deleted the executor's robustness-off leg, so a run has one
form and no leg. Three places still named it:

- tests/integration/device_worker.rs: the worker input it builds
  carried "leg":"stated", a field DeviceInput no longer has, and its
  doc named the stated robustness leg.
- platform/acceptance.rs: unmet_requirements' doc, its comment, and the
  requirement text a context that could not enable a stated robustness
  feature reports. The text was "... not enabled in the stated leg" and
  is now "... not enabled". No committed row or refusal holds the old
  text (git grep).
- platform/runtime.rs: two docs of a row's environment.

Verified: cargo fmt. The compile gate of the Q3 commits follows as a
potluck job.
This commit is contained in:
Anees Iqbal committed 2026-11-20 22:15:53 -08:00
1 parent 6e76d7d78b
commit e35d9098c0
3 files changed
+12 -11

No files matched your search

@@ -103,7 +103,7 @@ pub fn create_acceptance_pipeline(
/// (`acceptance::unenabled` on [`VulkanContext::opened_description`]); properties, limits, formats,
/// stage flags, and float-controls independence against the opened device's queried profile, never
/// against a committed profile; and every robustness feature the device's description states that
/// the stated leg could not enable (`VulkanContext::unmet_robustness`). The requirements are the
/// the context could not enable (`VulkanContext::unmet_robustness`). The requirements are the
/// product's own, which it derives from the module it emits (the old executor's SPIR-V scan, which
/// read the module's declarations again in the old engine's vocabulary, is retired).
pub(super) fn unmet_requirements(
@@ -111,11 +111,13 @@ pub(super) fn unmet_requirements(
requirements: &Requirements,
) -> Vec<String> {
let mut missing = crate::acceptance::unenabled(&context.opened_description, requirements);
// The stated leg compiles the robust encodings only where the device enables what its
// description states; a context that could not enable one runs nothing.
missing.extend(context.unmet_robustness.iter().map(|feature| {
format!("{feature:?} (stated by the device's description, not enabled in the stated leg)")
}));
// The robust encodings compile only where the device enables what its description states; a
// context that could not enable one runs nothing.
missing.extend(
context.unmet_robustness.iter().map(|feature| {
format!("{feature:?} (stated by the device's description, not enabled)")
}),
);
// A stage flag's feature is both an enable and a device fact: named once.
for unmet in crate::acceptance::unmet_device_facts(&context.opened, requirements) {
if !missing.contains(&unmet) {
@@ -333,7 +333,7 @@ fn select(
/// The environment of a row of `executor` on the device `identity` names, with the tools active
/// on it: its identity as the executor's own context records it, the executor, the validation it
/// ran under, no profiles-layer restriction, and the stated leg.
/// ran under, and no profiles-layer restriction.
fn environment(identity: &Identity, tools: &[ActiveTool], executor: &str) -> serde_json::Value {
serde_json::json!({
"device": identity.device,
@@ -561,7 +561,7 @@ fn run(
}
/// The row of a run on the device `identity` names that read `output`, with `module`'s census:
/// what the runtime answers (the module documentation), in the stated leg with no restriction.
/// what the runtime answers (the module documentation), with no restriction.
pub(super) fn ran(
identity: &Identity,
environment: &serde_json::Value,
@@ -18,12 +18,11 @@ fn serving() -> [PathBuf; 2] {
/// public fixtures give.
const CASE: &str = r#"{"acceleration_structures":[{"binding":5,"kind":"primitive","primitive_triangles_b64":"AACAvwAAgL8AAAAAAACAPwAAgL8AAAAAAAAAAAAAgD8AAAAA"}],"air_sha256":"3dec51430c72d7901180dcdc22624a135640bf74af06c3a59b100b048a4107c6","argument_buffer_buffers":[],"argument_buffer_intersection_function_tables":[],"argument_buffer_textures":[],"authored_by":"codex:gpt-5.6-sol","buffers":[{"binding":0,"initial_bytes_b64":"q6urq6urq6urq6urq6urq6urq6urq6ur","role":"output"}],"case_id":"21de8b823123dfcac765adf9786fbb1f0741b4543d307064df6832313eb6b575","compare":{"kind":"exact"},"device_buffer_arrays":[],"dispatch":{"grid":[1,1,1],"threads_per_threadgroup":[1,1,1]},"entry":"primitive_as_intersect","execution_safety":"loop_free","function_constants":[],"intersection_function_tables":[],"kernel_stage_inputs":[],"name":"primitive-acceleration-structure-intersection","output":{"binding":0,"kind":"buffer","length":24,"offset":0},"rationale":"A downward ray hits one authored counter-clockwise triangle at unit distance; all observable triangle-intersection result fields are compared exactly.","render_targets":[],"samplers":[],"stage":"kernel","texture_arrays":[],"textures":[],"threadgroup_memory":[],"vertex_inputs":[],"visible_function_references":[],"visible_function_tables":[]}"#;
/// The worker input for [`CASE`] restricted to `restricted_to`, in the stated robustness leg,
/// with `VK_EXT_device_generated_commands` enabled where supported or not (`generated_commands`),
/// The worker input for [`CASE`] restricted to `restricted_to`, with `VK_EXT_device_generated_commands` enabled where supported or not (`generated_commands`),
/// claiming a checked-input digest the case does not have.
fn input(restricted_to: Option<&str>, generated_commands: bool) -> String {
format!(
r#"{{"root":"/nonexistent/device-worker-corpus","case":{CASE},"device":"Cpu","backend":"vulkan","input_sha256":"{}","wait_timeout_ms":10000,"restricted_to":{},"leg":"stated","generated_commands":{generated_commands}}}"#,
r#"{{"root":"/nonexistent/device-worker-corpus","case":{CASE},"device":"Cpu","backend":"vulkan","input_sha256":"{}","wait_timeout_ms":10000,"restricted_to":{},"generated_commands":{generated_commands}}}"#,
"0".repeat(64),
serde_json::to_string(&restricted_to).unwrap()
)