Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


id: scenario.rollout kind: intent statement: “WHEN the scenario-rollout wiring runs, THE wiring SHALL provide the scenario-view recipe rendering one slug’s card through the real binary, SHALL gate it on a fixture card rendering byte-identically twice in every format with the fixture slug never rendering no_projection, and SHALL meter the binding-on-touch adoption by grouping the rollout-meter hints per capability directory into unstarted / partial / totals lines that exit 0 always — a meter never a gate.”

scenario-rollout Specification

Purpose

The scenario-rollout wiring: the adoption engine for the bindings layer, made runnable and checkable. just scenario-view <slug> renders one slug’s scenario card through the real binary; scripts/scenario_view_gate.py is the RED gate — a fixture card must render byte-identically twice in every format, re-rendered from the binary, never a captured expectation; scripts/scenario_wave_status.py is the binding-on-touch meter — the rollout-meter hints grouped per capability, whose totals line shrinks as annotation rows land. Ticket specodelic-wlkt.2; the policy this wiring serves lives in the repo AGENTS.md (binding-on-touch: a Model-touching change annotates the scenarios it touches in the same change).

Constraints

idkindexprtraces_to
recipe_byte_stableinvariantthe scenario-view render of an unchanged corpus is byte-identical across runs in every format, proven by the gate re-rendering a fixture card twice through the real binary and failing on any drift, on a nonzero render exit, or on a no_projection render of the fixture slug (the fixture binding must resolve)[[scenario.rollout]]
meter_visible_not_gatinginvariantthe wave meter groups the scenario_binding_table_absent and scenario_binding_unbound_scenario hints per capability directory into unstarted / partial / totals lines and exits 0 always — a meter never a gate; every annotation row that lands shrinks the totals line[[scenario.rollout]]
gate_reportedeffectscenario.rollout.gate_reported(format, verdict) — the byte-stable gate prints one byte-identical verdict line per format and a final stable verdict, exiting nonzero with the drifting format named when any render pair differs[[scenario.rollout]]

Model

States

  • unrendered
  • rendered_stable
  • drift_reported (emits: [[scenario.rollout.gate_reported]])

Transitions

idfromtoguard
render_twiceunrenderedrendered_stableboth renders of the fixture card are byte-identical in every format ([[scenario.rollout.recipe_byte_stable]])
report_driftunrendereddrift_reported¬(both renders of the fixture card are byte-identical in every format)

Properties

idkindderives_fromgeneratorpredicate
gate_passes_byte_identicalunit[[scenario.rollout.recipe_byte_stable]]scenario_view_gate_renders_a_fixture_card_byte_identically_twice()exit 0 with a byte-identical verdict per format
meter_counts_unboundunit[[scenario.rollout.meter_visible_not_gating]]scenario_wave_meter_prints_per_capability_counts()per-capability lines + totals line, exit 0
drift_namedunit[[scenario.rollout.gate_reported]]render_pair_differing()nonzero exit naming the drifting format

Requirements

Requirement: The scenario-view recipe renders byte-stable

The wiring SHALL provide just scenario-view <slug> rendering the scenario card through the real binary, and a gate (scripts/scenario_view_gate.py) that renders a fixture card twice and passes only when both renders are byte-identical in every format and the fixture slug renders the real card, never the no_projection element.

Scenario: The gate catches drift

  • WHEN the fixture card renders twice through the real binary in each format and the two renders differ
  • THEN just scenario-view-gate exits nonzero naming the drifting format

Scenario: The gate passes byte-identical

  • WHEN the fixture card renders twice unchanged
  • THEN just scenario-view-gate exits 0 with a byte-identical verdict per format

Requirement: The binding-on-touch meter shows the waves

The wiring SHALL provide a meter (scripts/scenario_wave_status.py) that groups the scenario-bindings rollout-meter hints per capability directory and prints unstarted / partial / totals lines — exit 0 always, a meter never a gate — so the second wave (linter-*) is tracked by the hints the corpus itself emits.

Scenario: The meter counts the unbound

  • WHEN the corpus carries capability files with unbound scenarios
  • THEN the meter prints one line per capability with its unbound count and a totals line that shrinks as rows land