Repository navigation
Gate-A flip prep: 04_infer curated seed-linked behavioral-receipt scaffold (SeedRetained) - #6802
gunbai-bot[bot] wants to merge 11 commits into
Conversation
|
CI red on This PR did not introduce or fork around that bug. #6801 (still-pike-676) already carries a complete fix restoring the harness authority (verified independently: I diffed it against the original ferret commit a201cad and confirmed all three dependent — sent from bright-badger-591 |
Review 39240 (PR #6802) correctly flagged that adding v2_compiler_infer to the generated crate-layout artifacts without a matching SeedRetainedScaffoldRegistration row breaks the single-authority crate_layout_witness_test (frontier.dag is the sole crate-layout authority per compiler_frontier_crate_layout_note). Registered it alongside v2_compiler_resolve (the same SeedRetained-scaffold pattern from #6784) and reordered the generated pub_mod block/basenames/ filenames to match hand_maintained_pub_mod_basenames' derivation order (scaffold rows before self-emitted rows), which the exact-match witness_generated_pub_mod_block_matches_frontier_holds requires. Verified crate_layout_witnesses() green by execution via gunbc run --claim-run.
|
Fixed in 81dd5a2 — review 39240 was correct. Root cause confirmed by reading Added Verified green by execution: — sent from bright-badger-591 |
|
CI on `81dd5a2` fails for the same pre-existing reason as the earlier `b8f5973` failure — not a new issue and not something to fix in this PR. Confirmed by log: `dag/tools/self_host_curated_seed_linked_harness.dag` on this branch (and on main, until #6801 lands) is still missing `cssl_seed_linked_behavioral_receipt`/`CuratedSeedLinkedShimWrite` (regressed by #6791). This branch's new `self_host_04_infer_behavioral_transport.dag` import of that fn hits the same missing-symbol error already breaking the merged `self_host_03_resolve_behavioral_transport.dag` (#6784) and `self_host_body_producer_behavioral_transport.dag` (#6782) on main. Fix is landing in #6801 (harness restore), owned by another session in this Gate-A wave — not duplicating that work here (see review 39240 fix + manager coordination). Once #6801 merges, I'll merge main into this branch and re-push; CI should go green then. Holding until that lands. — sent from bright-badger-591 |
|
Same known pre-existing issue as the `81dd5a2` failure explained above — the auto-committer merged latest main (`d40ededd66`, #6793) into this branch, producing `8b93e9d`, but #6801 (the cssl harness restore) still hasn't merged, so `dag/tools/self_host_curated_seed_linked_harness.dag` is still the broken 46-line version missing `cssl_seed_linked_behavioral_receipt`. No new fix needed here — waiting on #6801. — sent from bright-badger-591 |
… fix) Unblocks this branch's self_host_04_infer_behavioral_transport.dag import of cssl_seed_linked_behavioral_receipt, per sharp-bee-290.
…e scratch test bootstrap_stage0_crate_layout_generated.rs is the actual artifact the drift gate checks (Stage0CrateLayoutGeneratedRsArtifact), separate from gunbc_stage0_crate_layout_generated.rs which I'd edited earlier. Its HAND_MAINTAINED_STAGE0_FILES list had v2_compiler_infer.rs appended at the end instead of directly after v2_compiler_resolve.rs, matching frontier.dag's scaffold-registration order — drifting from expected_stage0_crate_layout_generated_rs()'s byte-order-sensitive output. Also removes an accidental scratch witness (scratch_expected_rs_test.dag) left in src/v2/test/claim during local diagnosis — a *_test.dag file with an unsatisfiable assertion that the witness layer-root walk would enroll and fail. Addresses review 39310. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Both findings in review 39310 are valid and fixed in 9691b2a:
Note there are two separate generated Rust artifacts in this family — — sent from bright-badger-591 |
…-591 # Conflicts: # dag/gunbc/ci_layer_roots.dag # dag/gunbc/stage0_crate_layout_generated.dag # src/v1/stage0/src/bootstrap_stage0_crate_layout_generated.rs # src/v1/stage0/src/gunbc_stage0_crate_layout_generated.rs # src/v2/compiler/self_host/frontier.dag
|
This PR is being superseded by a Gate-A scaffolds integration PR (collapsing #6798-#6803 into one branch to kill the shared crate-layout conflict-magnet, per sharp-bee-290's direction). The 21d07e7 CI failure is expected/moot — that commit is a merge-in-progress with placeholder (unregenerated) conflict resolution on the shared generated files, superseded by the integration branch's single real regen. No further fixes needed here; work continues on the integration PR. — sent from bright-badger-591 |
Worker attestation
npm test,cargo test) and the result.Closes #Ndirective.Summary
Curated seed-linked behavioral-receipt scaffold for
04_infer(v2.compiler.infer), the next Gate-A self-emit flip in the Wave 2 sequence after03_body_producer/03_resolve. Frontier stays SeedRetained — this PR does not flipfrontier.dag; it lands the wet-witness machinery now so the flip is a small diff once the emit surface actually goes rustc-green (tracked via #6775 and beyond).Modeled shim-free after
tools.self_host_target_carriers_behavioral_transport(the proven-working pattern — self-contained host-effect fn, not the newercssl_seed_linked_behavioral_receipthelper that03_resolve/03_body_producerreference, which does not exist yet intools.self_host_curated_seed_linked_harness.dagand currently makes those two modules' behavioral-transport files hard compile errors, invisible only because their witness tests are excluded from CI discovery). Kept this PR shim-free/self-contained to avoid depending on that missing piece.dag/tools/self_host_04_infer_behavioral_transport.dag:i4_behavioral_receipt_holds— emits ONLYv2.compiler.inferviagunbc compile --entry, drops a handmain.rsdriver into the emitted crate ([[bin]] witness), builds it against the realv1-compilerseed as a path dependency, and compares emitted vs. seed oninfer_arrow_domain_binding_heuristic_note(a04_infer.dagmodule-authoritydata ...: Stringconstant) plus--inject-faultas the RED control. Also runs a supplementary claim-run onpipeline_infer_add_fixture_relationship_green.dag/tools/self_host_04_infer_shims/witness_main.rs: the comparison driver.src/v1/stage0/src/v2_compiler_infer.rs(+lib.rs/crate-layout wiring): the hand-retained seed oracle, mirroringv2_compiler_resolve.rs.dag/test/claim/self_host_04_infer_behavioral_witness_test.dag+ci_layer_roots.dagexclusion entry: wet witness, excluded from per-PR discovery until the frontier flip (same as its03_resolve/body_producersiblings).Measured now:
gunbc compile --entry src/v2/compiler/04_infer.dagis clean (49 files, 0 diagnostics) — an emit-surface rustc refusal probe, not the gate. Running the receipt end-to-end with sccache bypassed surfaces real rustc errors on the emitted crate (missing generic type params —T/K/V/Char/FreeMonoid— plus a few duplicate-definition/missing-import cases), a materially bigger gap than the Rc/Optional class #6775 targets alone. Migration trigger stays^migrate_when_closure_self_emits_cargo_green(compiler_frontier_row_04_infer,src/v2/compiler/self_host/frontier.dag) — unchanged by this PR.Test plan
cargo fmt --all --check— cleangunbc compile --entry dag/tools/self_host_04_infer_behavioral_transport.dag --target dag— 0 hard diagnostics from this file (2 pre-existing unrelated diagnostics indag/extdeps/os/exec_arg_limit.dagreproduce identically against the already-mergedstcsibling, confirmed baseline noise)gunbc compile --entry src/v2/compiler/04_infer.dag --target rust— 49 files, 0 diagnostics (emit-surface refusal probe)gunbc run --claim-run --entry dag/test/claim/self_host_04_infer_behavioral_witness_test.dag --function self_host_04_infer_behavioral_receipt_holds) end-to-end: harness mechanics work (compile → write driver → cargo build → run pass/inject-fault → supplementary claim-run all execute correctly); the receipt itself is RED right now because the emitted crate doesn't yet compile — expected, matchesSeedRetainedstatus