A bug fix is a change in behavior under a particular trigger. Teaching that trigger is more useful than printing a list of closed issue numbers. A reader should be able to see the old failure, understand the corrected contract, and run a check that would notice its return.
This edition uses the current example as a small regression corpus. It does not claim that every historical defect is repaired or that every repair has been retested here. Source references and executable evidence are recorded at the level of the individual behavior.
Start with the smallest distinguishing case
The enum-diagnostic fix at the recorded baseline is a useful example. A named enum can have descriptive metadata. When a field references that enum, the resolver should not turn the enum’s description into an unsupported field key. At the same time, an explicitly unsupported key authored on the field should still be diagnosed.
The calibration domain includes a named enum description and a $ref field binding. Strict C++ validation accepts it with zero warnings. The parser tests in test_adl_parser.cpp include the finer distinction between inherited enum metadata and an explicitly authored field description. The handbook records its own check without claiming to have run every test in that file.
The lesson generalizes. A repair that suppresses all diagnostics can make a formerly failing example pass while concealing real errors. Preserve a negative neighboring case whenever the corrected boundary has two sides.
Test recognition, not just acceptance
The complete domain declares language 0.6 and uses policies and chained history. The offline script creates a temporary copy declaring 0.5.1 and requires the validator to reject it. This shows that acceptance of the original is connected to a version-sensitive construct, rather than being explained by an older parser ignoring the new keys.
The second negative copy names a nonexistent transition in the Journey. It must fail Journey compilation. Together with the valid artifact, this exercises a useful slice of the compiler’s model checking. It does not establish the soundness of the compiler as a whole.
Temporary negative fixtures are generated from the published source so they cannot drift into unrelated documents. The evidence retains their diagnostics and exit codes. A future edition can compare the same trigger against a different implementation baseline.
Use positive controls for authorization
A self-approval refusal is meaningful only when the user has otherwise sufficient authority. Alice therefore holds both technician and inspector roles and receives the same training fixture as Bob. Her ordinary approval fails on the distinct-actor guard. Bob’s succeeds.
The lab separately attempts forged provenance on create, update, and a transition body. It also verifies that an approval body cannot replace the immutable measured offset. These cases address different routes to violating the same business promise. A single denied PATCH would not cover them all.
Missing training evidence and a missing supervisor are separate cases. They identify the policy-decision boundary and the deployment dependency. The successful path is established first so a broken environment cannot masquerade as a security control.
Record enough to repeat the result
The generated evidence names the source commit, example hash, CLI hash, and runtime binary hashes. It preserves the validator output, compiler artifact, and selected HTTP observations. Test credentials and bearer tokens are not included in the published evidence.
The scripts use private scratch databases and loopback listeners. Runtime stages retain separate logs and stores so a later stage does not overwrite the earlier observation. This also avoids treating the state left by one scenario as the fixture for an unrelated scenario.
The recorded tests use SQLite. They do not run a browser console, a generic Journey runner, a PostgreSQL concurrency campaign, or every Aegis repro. The reference validator also reports coverage notes even when it finds zero errors and warnings. Preserve those notes; clean authoring output is not a certificate of complete language coverage.
Write the regression as a requirement
Prefer “the submitter cannot certify this saved revision through the tested approval endpoint” to “security works.” Prefer “the compiler rejects this nonexistent edge” to “Journeys are proved.” The narrower statements are more useful because another engineer can reproduce and challenge them.
Workshop
Choose one repaired behavior from the repository. Write its trigger, expected result, positive control, and remaining limits in four sentences. Then identify which executable check would distinguish a real repair from a change that merely hides the original symptom.