You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 48f50af
Browse filesBrowse the repository at this point in the historyBrowse files
feat(shadow-infra): the engine protocol — each engine reports its layers, and declares what it could produce (#260/#269 cp2)
P-022 step 7a, checkpoint 2. Still INFRASTRUCTURE for shadow mode, still no
parity claim, and — this checkpoint's sharpest line — still not a comparison:
an artifact now carries two engines' captures side by side and nothing reads
one against the other. Comparing them is #260's acceptance, blocked by #259.
What landed:
* own_shadow::capture — the port's half of the protocol, driving own-bridge's
three layer surfaces (lower, dump_summaries, check_facts) into the shared
envelope. The reference's half is ownlang/repro.py::project_layers, and the
two stay independent readings of one frozen format.
* `projection` on the layer envelope (format version 2): each layer declares
what its engine could PRODUCE — {"kind":"full"} or {"kind":"partial",
"members":[...], "reason":"..."}.
* An engine writes only its own entry. The reference authors python-ownlang
and carries foreign entries through untouched; the port authors
rust-own-bridge under OWN_SHADOW_WRITE=1. Each half is produced with zero of
the other's runtime, and neither can quietly become a comparison of one
implementation against itself.
* own-shadow gains own-ir/own-lowered/own-bridge in the allowed DAG edge set —
a deliberate, reviewed edit. The constraint running the other way did not
move: no core crate, nor own-bridge, may depend on the harness.
Why a projection: the port is mid-migration. Two of its layers emit the whole
frozen surface; check_facts is at the #259 cp4 projection, missing message,
related and flow. Without the field it could only emit a short document a
comparison would score as agreement, or refuse a layer it can mostly produce.
A test holds the claim to the records, so the field cannot be prose.
Measured (generated: docs/generated/p022-shadow-census.md): 9 artifacts
carrying both engines; 4 layer envelopes where the statuses differ, every one
a boundary the port DECLARES (the OBL protocol analysis; the typed door, which
is upstream of every layer and so refuses all three).
Campaign (docs/notes/p022-shadow-infra-checkpoint2-data/): round 1 was 8
caught, 1 compile error, 2 survivors. M39 found genuinely untested code — no
committed artifact had a document the typed door refuses — fixed by promoting
verdict_door_effect_deps_not_strings to an artifact. M41 found a control that
stopped at a missing reason and never tried an empty one. M37 did not compile
and is recorded as a compile error, never as "caught". Round 2: 11/11 caught,
0 survivors, control clean.
The --check gate earned its keep: reshaping the layer envelope broke two of
checkpoint 1's mutation anchors (M11, M15), and the gate caught it before the
recorded result could go on describing a tree that no longer exists. They were
re-anchored and cp1 re-run: 30/30, unchanged.
The census is now one live view of the slice rather than a per-checkpoint
snapshot that would be stale by design; each checkpoint's recorded campaign
stays frozen at what it measured.
Gates: cargo fmt --check, cargo clippy --workspace --all-targets (zero
warnings), cargo test --workspace --no-fail-fast, ruff check ., mypy,
python tests/run_tests.py.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kh6wpfbBUNLbeCJZ263gYM
@@ -116,9 +156,9 @@ A rule with a single catcher is a rule with a single control: M04, M05, M06, M07
116
156
| M13 | the reference reorders the frozen layer vocabulary |`python::artifact-verify`, `python::capture-verify`|
117
157
| M14 | the reference's verification stops checking the frozen engine order |`python::structural-control`|
118
158
| M15 | the reference renders the artifact with a different indent |`python::artifact-golden`|
119
-
| M16 | the port's canonical form stops sorting object keys |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::every_shared_document_hashes_to_the_recorded_digest`, `rust::verify_refuses_each_structural_violation`|
120
-
| M17 | the port escapes U+007F, which the reference emits raw |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::every_shared_document_hashes_to_the_recorded_digest`|
121
-
| M18 | the port escapes control code points with uppercase hex |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::every_shared_document_hashes_to_the_recorded_digest`|
159
+
| M16 | the port's canonical form stops sorting object keys |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::every_shared_document_hashes_to_the_recorded_digest`, `rust::this_engine_reproduces_its_committed_capture`, `rust::verify_refuses_each_structural_violation`|
160
+
| M17 | the port escapes U+007F, which the reference emits raw |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::every_shared_document_hashes_to_the_recorded_digest`, `rust::this_engine_reproduces_its_committed_capture`|
161
+
| M18 | the port escapes control code points with uppercase hex |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::every_shared_document_hashes_to_the_recorded_digest`, `rust::this_engine_reproduces_its_committed_capture`|
122
162
| M19 | the port renders the artifact with a different indent width |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::the_canonical_form_ignores_only_insignificant_text_formatting`|
123
163
| M20 | the port renders an artifact's objects in sorted rather than document order |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::the_canonical_form_ignores_only_insignificant_text_formatting`|
124
164
| M21 | the port resolves a duplicate key first-wins instead of last-wins |`rust::the_canonical_form_ignores_only_insignificant_text_formatting`|
@@ -127,7 +167,32 @@ A rule with a single catcher is a rule with a single control: M04, M05, M06, M07
127
167
| M24 | the port's verification stops comparing the recomputed digest |`rust::a_changed_byte_in_the_embedded_document_is_refused`|
128
168
| M25 | the port's verification stops checking the frozen layer order |`rust::verify_refuses_each_structural_violation`|
129
169
| M26 | the port's verification stops checking the frozen engine order |`rust::verify_refuses_each_structural_violation`|
130
-
| M27 | the port renders the digest with uppercase hex |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::every_shared_document_hashes_to_the_recorded_digest`, `rust::verify_refuses_each_structural_violation`|
131
-
| M28 | the port hashes the RENDERING form instead of the canonical form |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::every_shared_document_hashes_to_the_recorded_digest`, `rust::the_canonical_form_ignores_only_insignificant_text_formatting`, `rust::verify_refuses_each_structural_violation`|
132
-
| M29 | the port reorders the frozen layer vocabulary |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::verify_refuses_each_structural_violation`|
133
-
| M30 | the port's `has` stops distinguishing a present member from an absent one |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::verify_refuses_each_structural_violation`|
170
+
| M27 | the port renders the digest with uppercase hex |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::every_shared_document_hashes_to_the_recorded_digest`, `rust::this_engine_reproduces_its_committed_capture`, `rust::verify_refuses_each_structural_violation`|
171
+
| M28 | the port hashes the RENDERING form instead of the canonical form |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::every_shared_document_hashes_to_the_recorded_digest`, `rust::the_canonical_form_ignores_only_insignificant_text_formatting`, `rust::this_engine_reproduces_its_committed_capture`, `rust::verify_refuses_each_structural_violation`|
172
+
| M29 | the port reorders the frozen layer vocabulary |`rust::both_engines_report_the_same_layers_in_the_same_order`, `rust::every_committed_artifact_round_trips_and_verifies`, `rust::this_engine_reproduces_its_committed_capture`, `rust::verify_refuses_each_structural_violation`|
173
+
| M30 | the port's `has` stops distinguishing a present member from an absent one |`rust::every_committed_artifact_round_trips_and_verifies`, `rust::this_engine_reproduces_its_committed_capture`, `rust::verify_refuses_each_structural_violation`|
| M31 | the reference stops declaring a projection on its layers |`python::artifact-golden`, `python::capture-verify`|
189
+
| M32 | the reference silently drops the foreign engine entries when regenerating |`python::artifact-golden`|
190
+
| M33 | the reference's verification accepts a partial projection that names no members |`python::structural-control`|
191
+
| M34 | the reference's verification accepts a 'full' projection that also names members |`python::structural-control`|
192
+
| M35 | the port declares its verdict layer FULL while it is at the checkpoint-4 projection |`rust-engine::this_engine_reproduces_its_committed_capture`|
193
+
| M36 | the port drops `column` from its verdict records while still claiming it |`rust-engine::a_partial_projection_names_exactly_the_members_it_carries`, `rust-engine::this_engine_reproduces_its_committed_capture`|
194
+
| M37 | the port stamps a refused layer with the 'produced' status |`rust-engine::this_engine_reproduces_its_committed_capture`|
195
+
| M38 | the port claims a surface version for the MOS dump, which has none |`rust-engine::this_engine_reproduces_its_committed_capture`|
196
+
| M39 | the port reports a typed-door refusal on one layer instead of all three |`rust-engine::this_engine_reproduces_its_committed_capture`|
197
+
| M40 | the port's verification stops rejecting a 'full' projection that names members |`rust-repro::verify_refuses_each_structural_violation`|
198
+
| M41 | the port's verification accepts an EMPTY reason on a partial projection |`rust-repro::verify_refuses_each_structural_violation`|
0 commit comments