Skip to content

Route-A cargo-green: re-verify emit-fresh build + sync self-host plan - #6099

Merged
briansrls merged 67 commits into
mainfrom
session/cool-ant-875
Jul 1, 2026
Merged

briansrls merged 67 commits into
mainfrom
session/cool-ant-875

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Verification (execution receipts)

  • route_a_final_six_test — 6/6 pass
  • route_a_emit_fresh_cargo_green_test::emit_fresh_crate_cargo_builds_green (--ignored) — pass (~4.5min): emit-fresh + debug + release cargo build

Test plan

  • cargo test -p v1-compiler-tests route_a_final_six
  • cargo test -p v1-compiler-tests emit_fresh_crate_cargo_builds_green -- --ignored
  • Manual: regen_stage0 --emit-fresh /tmp/fresh && cd /tmp/fresh && cargo build && cargo build --release

Made with Cursor

briansrls and others added 30 commits June 20, 2026 17:45
…ols (empty_intern_table, InductiveField, is_bare_leaf_item, SemVerConstraint) — clears E0425 from peeled/turbofish types not in source import set
…d-injection patch (clears E0433 x6 in bootstrap)
…ch (option d, container analogue of String/Nat) — guarded, List-only, at the 2 preserve-nominal sites; clears E0425/E0432 for newly-enrolled std files (realization_schedule Schedule, std_types list_length). v2-target faithful FreeMonoid untouched.
…s at the bare-nominal alias-RHS branch so Int/Nat as a generic ARG (Measure<...,Int>) lowers to i64 in the seed, consistent with the type Int = i64 alias def — clears the std_measure Int E0425
…r conflicts)

Resolved 4 conflicts in src/v1/05_emit_rust.dag and 1 in width_nat_type_arg_test.rs:
- render_rust_applied_type: keep branch's rust_seed_host_container_base (List->host Vec)
- rust_phantom_marker_inner: take main's join() simplification (equivalent, supersedes Optional-peel)
- emit_rust_expr_record_lit: take main's peeled_type_name refactor (branch lines were superseded duplicates)
- phantom-field comment: take main's wording (matches the refactor)
- machine_width test: keep active (un-ignore) — this branch carries the #5325 emitter fix the ignore waited on

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The test runs compile_sources against the in-process lib (committed stage0
seed), whose emit_rust.rs does not yet carry this branch's .dag peel fix
(branch updated 05_emit_rust.dag only, not the committed seed mirror). So it
must stay #[ignore]d until the seed regen lands (Track A step 3 / 2-stage
bootstrap). Reverts an over-eager un-ignore from the main merge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…g/metering)

So `gunbc run` can interpret the live .dag compile/emit fold (compile_sources)
WITHOUT regenerating the seed mirror — making a .dag emitter fix verifiable BY
INTERPRETATION (DESIGN §5 green-by-execution, §7 self-host).

Additive only (fills previously-erroring builtin cases; cannot regress existing
behavior). Proven by execution: the interpreter now resolves the source closure
and runs the full lexer (tokenize) over a probe source, advancing into
parse/resolve. Remaining gaps are deeper interpreter semantics (e.g.
raw_map_lookup on a plain Record), not missing builtins.

- chars(s) -> List<Int>: code points (matches languages.dag emit template +
  lexer source_chars: List<Int>), method dispatch.
- chars_to_string(List<Int>, start, end) -> String: code-point slice -> token
  text, free-fn dispatch.
- record_source_chars_index_lookup(): no-op unit metering stub.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bounded spike (parent-approved) toward running the emit fold by interpretation.
Both additive / non-regressing (fill previously-erroring cases):

- raw_map_lookup: a Record without a callable `lookup` field is now treated as a
  record-form map (key looked up as a field name; miss -> Null -> Violates via the
  existing Witness bridge). Unblocks `data x: Map<K,V> = { ... }` literals, which
  the interpreter builds as Records. (Deeper root: literals are never built as
  type-directed Maps; this handles it at the consumption site.)
- list_push: dedicated method-dispatch arm (was free-fn only). Pushes the arg as
  a single element, unlike concat/append/push which merge a list-valued arg.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…59-2e3

The HAND-APPLIED-REGEN-MIRROR-SYNC mark previously pointed at snappy-swift-91 /
#5325 (done-but-re-drifted, unreachable). The live dissolution lane is
bright-stag's adhoc-1bdd0259-2e3: re-repair the 18-error regen-fixpoint hole +
add a regen-equals-committed CI drift-gate so a main-merge can never silently
re-drift the fixpoint. Comment-only; the panic! splice (code) is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The compile_error! -> panic! mirror splice shortened the string literal, so
rustfmt joins it onto one line (the original was split for the longer
compile_error! form). Hand-edit fmt-drift; cargo fmt --all applied. No code
change -- the splice is identical, only formatting. Restores rust_monolith_gate
fmt --all --check green on #5481.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…dag-only)

Foundational half of the class-3 corpus-representation-coherence fix (the
realization-layer handler-selection root behind the 26 List + 15 generic-syntax
census errors). Adds the named selector RustCorpusRepr = HostNative |
FaithfulFreeMonoid (04_emit_info.dag, auto-committed) and computes it ONCE as
the single authority in build_emit_graph_info (rust_corpus_repr over the whole
module corpus), threading it as the corpus_repr field through all 7 EmitGraphInfo
construction sites (each COPIES the field, never recomputes — quick-seal's
field=authority/param=read invariant).

INERT checkpoint: the type-renderer leaf gates still read the old per-module
rust_corpus_includes_v1_compiler/rust_emit_faithful_text_carrier, so emitted
output is byte-unchanged. Typechecks clean via the existing binary (0
diagnostics, 410 files emitted). The gate-switch + ~15-fn corpus_repr threading
+ leaf-fn param swap + dead-gate deletion + exact mirror transcription land in
the next pass, then the full-loop census oracle.

Realization-layer coherence fix, not a model change (List<e>=FreeMonoid<e> at
std/types.dag:227 untouched). Carrier B-home, idiom-threaded (per quick-seal).
adhoc-1bdd0259-2e3 dissolution lane. #5481.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
briansrls and others added 13 commits June 22, 2026 17:34
… regressions

The branch had accidentally reverted #6045 record serialization and related
witnesses during prior main merges. Restore the main-line authorities so the
emitter/seed-green-integration branch tracks current main for Route-A closure.

Co-authored-by: Cursor <cursoragent@cursor.com>
Reconcile emitter/seed-green-integration with main and land an ignored-by-default
test that assembles the faithful --emit-fresh crate and proves debug+release
cargo build succeed (0 rustc errors). Closes the Route-A last-mile receipt loop
alongside the existing regen --verify CI gate.

Co-authored-by: Cursor <cursoragent@cursor.com>
gunbc_ci_floor_spawn_width_for_budget(0) returned the blind conservative
fallback (4) while witness_floor_spawn_width_zero_budget_falls_back expected
min(4, execution_corpus_spawn_width()) = 3. Apply the same int_min at the
authority site and update the envelope witness to match.

Co-authored-by: Cursor <cursoragent@cursor.com>
Re-verified cool-ant-875: regen_stage0 --emit-fresh → cargo build
debug+release is 0 errors. Sync v2_self_hosting plan bullets that still
claimed the last mile was open; note emitter/seed-green-integration absorbed.

Co-authored-by: Cursor <cursoragent@cursor.com>
v2_self_hosting.dag is enrolled in PlanArtifact (generated_artifact
registry); committed docs/plans/v2-self-hosting.md must match
artifact_generate. Regen via main_wet after cargo-green bullet sync.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Verified the claude-opus-4-7 approval against current HEAD (2088a278ce):

  • Doc-only: net diff vs main is exactly dsl/gunbc/plans/v2_self_hosting.dag + regen'd docs/plans/v2-self-hosting.md (4 bullets each). No substrate, hand-Rust, shell, or unit-modeling changes.
  • Witness citation: the execution receipt is route_a_emit_fresh_cargo_green_test (src/v1/tests/src/route_a_emit_fresh_cargo_green_test.rs, #[ignore] expensive). route_a_final_six_test.rs only cross-references it in a module comment — not the witness itself.
  • Generated-artifact hygiene: v2_self_hosting.dag is PlanArtifact authority; second commit regen'd the committed .md via main_wet so generated_artifact_drift_gate stays green.

No code changes required for this review item.

— sent from cool-ant-875

Address cursor REQUEST_CHANGES: regen-verify is wired via RegenVerifyGate
(#5873, not closed #5325); forced-precondition step 1 marks Track A cargo-green
done in lockstep with Track A bullet 2. Regen committed .md from .dag authority.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Addressed cursor/composer-2.5 REQUEST_CHANGES (#34372) in 94a7c4e3b2:

Finding 1 — stale regen --verify / #5325 vs #5873 contradiction

Finding 2 — forced-precondition step 1 still open while Track A bullet 2 done

Regen'd docs/plans/v2-self-hosting.md via main_wet; generated_artifact_drift_gate PASS locally.

— sent from cool-ant-875

…p A)

Discriminating audit-first record: 9 VEP source-string GREEN families,
2 FAIL-CLOSED, 8 FAIL-OPEN (#13–#20) with named witness/authority sites.
Clarifies bar (b) vs bar (c) — tsc/emit_host oracle red even for add (#19).
Enrolled in plan_registry; regen docs/plans/typescript-gap-census.md via main_wet.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Re: cursor/composer-2.5 REQUEST_CHANGES (#34372) — already addressed on 94a7c4e3b2 (before census commit c2d531890b):

HEAD c2d531 adds unrelated Lane C census plan (typescript-gap-census) — does not touch v2-self-hosting sections above.

— sent from cool-ant-875

briansrls and others added 2 commits July 1, 2026 17:41
Address cursor REQUEST_CHANGES (#34390): status line no longer says "This
file is the authority" in generated .md — names typescript_gap_census.dag
explicitly (DESIGN §3/§6). Regen committed projection via main_wet.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

claude/claude-opus-4-7 APPROVE (#34383) — verified on net diff vs main (6 files, plan-only):

cursor/composer-2.5 REQUEST_CHANGES (#34390) — valid; fixed in next commit: status line now names dsl/gunbc/plans/typescript_gap_census.dag as authority instead of self-referential "This file" in generated .md.

— sent from cool-ant-875

@gunbai-bot

gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Re: cursor/composer-2.5 REQUEST_CHANGES (#34390) — already addressed on HEAD 6efaf21943 (fix commit, not a re-litigation).

Finding: status line said "This file is the authority" in generated .md, contradicting PlanArtifact.

Fix verified in current code:

  • dsl/gunbc/plans/typescript_gap_census.dag:9 now names dsl/gunbc/plans/typescript_gap_census.dag is the authority (DESIGN §6); .md is "its generated projection (PlanArtifact)"
  • docs/plans/typescript-gap-census.md:3 regen'd in lockstep via main_wet; generated_artifact_drift_gate PASS

Review sha 0ff1955b predates the fix. No further edits needed for this finding.

— sent from cool-ant-875

@gunbai-bot

gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Verified claude/claude-opus-4-7 APPROVE (#34405) on HEAD 6efaf21943:

Prior cursor #34390 finding (self-referential authority line) fixed in this same HEAD. No further edits for this approval.

— sent from cool-ant-875

@gunbai-bot

gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Verified cursor/composer-2.5 APPROVE (#34407) on HEAD 6efaf21943:

With claude #34405 APPROVE, two distinct providers green on 6efaf219.

— sent from cool-ant-875

CI failed doc_graph_has_no_orphan_docs — new PlanArtifact md had no
reachability root. Add bind: provenance on typescript_gap_census.dag
(mirror commit_workflow / accelerator_demo_plan pattern).

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Verified claude/claude-opus-4-7 APPROVE (#34442) on HEAD 750149cf6f:

With cursor #34407 APPROVE on prior SHA, awaiting cursor #34443 on 750149cf + CI green.

— sent from cool-ant-875

@gunbai-bot

gunbai-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Verified cursor/composer-2.5 APPROVE (#34443) on HEAD 750149cf6f:

With claude #34442 APPROVE on same HEAD — two distinct providers green. Awaiting CI on 750149cf.

— sent from cool-ant-875

@briansrls
briansrls merged commit 733ed2f into main Jul 1, 2026
1 of 2 checks passed
@briansrls
briansrls deleted the session/cool-ant-875 branch July 1, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant