Repository navigation
Consolidation #4553 Phase 1: model-first verification.dag BoolWitness/UnifiedTestClaim, gated PR with before-after cut-list and execution-equivalence tranche #4576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
briansrls
merged 15 commits into
main
from
session/valiant-owl-356-consolidation-4553-phase1
Jun 9, 2026
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ea88f48
WIP: Consolidation #4553 Phase 1: model-first verification.dag BoolWi…
b23cc9f
feat(v4): complete #4553 Phase 1 substrate tranche — roster projectio…
649f1d0
fix(v4): use match for UnifiedTestClaimModality checks in substrate e…
ee03631
WIP: Consolidation #4553 Phase 1: model-first verification.dag BoolWi…
d85b767
WIP: Consolidation #4553 Phase 1: model-first verification.dag BoolWi…
64c9238
fix(v4): address #4576 review — Symbol witness identity, dissolution …
6befddb
WIP: Consolidation #4553 Phase 1: model-first verification.dag BoolWi…
337ff23
Merge remote-tracking branch 'origin/main' into session/valiant-owl-3…
7536114
WIP: Consolidation #4553 Phase 1: model-first verification.dag BoolWi…
b5b7470
WIP: Consolidation #4553 Phase 1: model-first verification.dag BoolWi…
4135916
Merge remote-tracking branch 'origin/main' into session/valiant-owl-3…
5b5d897
WIP: Consolidation #4553 Phase 1: model-first verification.dag BoolWi…
14d7257
fix(v4): complete phase1 roster symbol bridge after merge
3351641
Merge remote-tracking branch 'origin/main' into session/valiant-owl-3…
183d45c
WIP: Consolidation #4553 Phase 1: model-first verification.dag BoolWi…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
docs/planning/test-claim-consolidation-phase1-cut-list-2026-06-09.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Test-Claim Consolidation #4553 — Phase 1 cut list | ||
|
|
||
| **PR:** #4576 | ||
| **Design authority:** `docs/planning/test-claim-consolidation-design-2026-06-08.md` §Phase 1 | ||
| **Gate:** Mgr-C substrate-only; no runner / CI transport / roster deletion | ||
|
|
||
| ## Before → after | ||
|
|
||
| | artifact | before | after | | ||
| | -------- | ------ | ----- | | ||
| | `src/v4/std/verification.dag` | `TestClaim` coproduct only | + `BoolWitness` (`function: Symbol`), `TestClaimTransportMode`, `UnifiedTestClaimModality`, `UnifiedTestClaim` (both arms, dissolution receipts), `unified_test_claim_bool_witness` fail-closed `Outcome` projection | | ||
| | `src/v4/test/claim/workflow/v4_roster_pilot.dag` | `V4RosterPilotClaimRunRow` list only | + `function_symbol: Symbol` pins per row, `bool_witness_from_roster_row` mechanical projection (`function` String retained for shell transport) | | ||
| | `src/v4/test/claim/workflow/unified_test_claim_substrate_equivalence.dag` | absent | Phase 1 compile-time equivalence tranche (`substrate_equivalence_holds`) | | ||
|
|
||
| ## Explicit non-changes (this PR) | ||
|
|
||
| | artifact | reason | | ||
| | -------- | ------ | | ||
| | `src/v4/compiler/05_eval.dag` | `TestClaimEvalSubject` binds at eval boundary — Phase 2 runner | | ||
| | `testclaim_corpus_runner.dag` | runner dispatch deferred Phase 2 | | ||
| | `v4_roster_pilot` row list / count | authoritative until C9–C11 (design §4.4) | | ||
| | `workflow/*_eval.dag` (10 files) | retire Phase 3 | | ||
| | lens-CI / smoke shell scripts | CI transport unification Phase 4 | | ||
|
|
||
| ## Falsification receipts landed | ||
|
|
||
| | ID | receipt | | ||
| | -- | ------- | | ||
| | C3 | `rg 'UnifiedTestClaim\|BoolWitness' src/v4/std/verification.dag` | | ||
| | Phase 1 tranche | `witness_substrate_equivalence` in `unified_test_claim_substrate_equivalence.dag` | | ||
|
|
||
| ## Deferred to Phase 2+ | ||
|
|
||
| - `UnifiedClaimRun` / tagged `CorpusEvalReport` run receipts | ||
| - `run_unified_corpus_eval` dispatch | ||
| - E1 (`--claim-run` stdout equivalence) | ||
| - `NodeCorpus.subject: TestClaimEvalSubject<Node>` field (std/eval layering) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
src/v4/test/claim/workflow/unified_test_claim_substrate_equivalence.dag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| // src/v4/test/claim/workflow/unified_test_claim_substrate_equivalence.dag | ||
| // Scope: Consolidation #4553 Phase 1 substrate equivalence tranche (design §6.3). | ||
| // Status: compile-time law — C3 modality discrimination + roster mechanical projection (E5 prep). | ||
| // No runner / `--claim-run` execution in this tranche (E1 lands Phase 2). | ||
|
|
||
| module v4.test.claim.workflow.unified_test_claim_substrate_equivalence | ||
|
|
||
|
|
||
| import v4.std.diagnostic { Accepted, Rejected } | ||
| import v4.std.logic { Bool } | ||
| import v4.std.verification { | ||
| EvalOnly, | ||
| NodeCorpus, | ||
| UnifiedBoolWitnessModality, | ||
| UnifiedNodeCorpusModality, | ||
| UnifiedTestClaim, | ||
| bool_witness_descriptor, | ||
| bool_witness_matches_entry_function, | ||
| unified_test_claim_bool_witness, | ||
| unified_test_claim_modality | ||
| } | ||
| import v4.test.claim.manual.eval_runtime_mvp { claim_eval_mvp2_test_claim_route } | ||
| import v4.test.claim.workflow.v4_roster_pilot { | ||
| bool_witness_from_roster_row, | ||
| v4_roster_pilot_claim_run_row_transport_symbol_consistency_holds, | ||
| v4_roster_pilot_row_edit_locus_narrow | ||
| } | ||
|
|
||
|
|
||
| fn substrate_equivalence_sample_bool_unified_claim() -> UnifiedTestClaim { | ||
| bool_witness_descriptor( | ||
| w: bool_witness_from_roster_row(row: v4_roster_pilot_row_edit_locus_narrow) | ||
| ) | ||
| } | ||
|
|
||
|
|
||
| fn substrate_equivalence_sample_node_corpus_claim() -> UnifiedTestClaim { | ||
| NodeCorpus { | ||
| claim: claim_eval_mvp2_test_claim_route, | ||
| transport: EvalOnly | ||
| } | ||
| } | ||
|
|
||
|
|
||
| fn substrate_equivalence_roster_projection_preserves_entry_function() -> Bool { | ||
| let w = bool_witness_from_roster_row(row: v4_roster_pilot_row_edit_locus_narrow) | ||
| bool_witness_matches_entry_function( | ||
| w: w, | ||
| entry: v4_roster_pilot_row_edit_locus_narrow.entry, | ||
| function: v4_roster_pilot_row_edit_locus_narrow.function_symbol | ||
| ) | ||
| } | ||
|
|
||
|
|
||
| fn substrate_equivalence_bool_modality_discriminates() -> Bool { | ||
| match unified_test_claim_modality(c: substrate_equivalence_sample_bool_unified_claim()) { | ||
| UnifiedBoolWitnessModality => true | ||
| UnifiedNodeCorpusModality => false | ||
| } | ||
| } | ||
|
|
||
|
|
||
| fn substrate_equivalence_node_corpus_modality_discriminates() -> Bool { | ||
| match unified_test_claim_modality(c: substrate_equivalence_sample_node_corpus_claim()) { | ||
| UnifiedNodeCorpusModality => true | ||
| UnifiedBoolWitnessModality => false | ||
| } | ||
| } | ||
|
|
||
|
|
||
| fn substrate_equivalence_unified_claim_preserves_bool_fields() -> Bool { | ||
| let w = bool_witness_from_roster_row(row: v4_roster_pilot_row_edit_locus_narrow) | ||
| match unified_test_claim_bool_witness(c: bool_witness_descriptor(w: w)) { | ||
| Accepted { value: extracted, diagnostics: None } => | ||
| bool_witness_matches_entry_function( | ||
| w: extracted, | ||
| entry: w.entry, | ||
| function: w.function | ||
| ) | ||
| Rejected { diagnostics: _ } => false | ||
| } | ||
| } | ||
|
|
||
|
|
||
| fn substrate_equivalence_holds() -> Bool { | ||
| v4_roster_pilot_claim_run_row_transport_symbol_consistency_holds() | ||
| && substrate_equivalence_roster_projection_preserves_entry_function() | ||
| && substrate_equivalence_bool_modality_discriminates() | ||
| && substrate_equivalence_node_corpus_modality_discriminates() | ||
| && substrate_equivalence_unified_claim_preserves_bool_fields() | ||
| } | ||
|
|
||
|
|
||
| data witness_substrate_equivalence: Bool = substrate_equivalence_holds() |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.