Skip to content

Wave 2 Band A self-emit: discovery_enumeration — self-emit its Rust via the existing value-expression path, prove behavioral equivalence to v1 seed (hermetic per-PR + wet oracle), flip frontier row SeedRetained->SelfEmitted. Copy the use_site_verdict pilot template (#6675). v2-only leaf, shim-free. - #6704

Merged
briansrls merged 14 commits into
mainfrom
session/nimble-wolf-193
Jul 16, 2026

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Wave 2 Band A self-emit: discovery_enumeration — clean emit (11 files, 0 diagnostics), hermetic behavioral receipt + wet oracle (nightly), frontier flip to SelfEmitted (baseline=2).

What / why

Self-emit src/v2/compiler/discovery_enumeration.dag via the value-expression path (shim-free std closure; std.string_type not v2.std.text), seed oracle v2_compiler_discovery_enumeration in stage0, hermetic discovery_enumeration_test.dag, wet transport mirroring #6675 use_site_verdict pilot.

Coupled infra

  • ci_layer_roots exclusion for self_host_discovery_enumeration_behavioral_witness_test.dag: wet receipt is nightly falsifier only (same policy as use_site_verdict); per-PR CI rides hermetic receipt, not wet cargo transport.
  • pre-push hook: originally carried --source-root src/v2 fix; superseded by Pre-push testing hook: affected-set test gate + non-invasive gates #6706 on main (witness_layer_source_flags over witness_layer_roots). Dropped from this PR's diff after rebase onto ebb8e2f.

Test plan

  • gunbc compile --entry src/v2/compiler/discovery_enumeration.dag → 11 files, 0 diagnostics
  • generated_artifact_drift_witnesses + run_generated_artifact_drift_gate_body PASS (main_wet fixed bootstrap trailing-comma drift)
  • CI run 29472981590: full ci job green incl RegenVerifyGate (pre-rebase on merged main+orphan fix)
  • CI re-run 29475163972 on 2a44a5f (post-rebase onto Pre-push testing hook: affected-set test gate + non-invasive gates #6706)

@briansrls
briansrls force-pushed the session/nimble-wolf-193 branch 3 times, most recently from 01a35c7 to 2a44a5f Compare July 16, 2026 05:54
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review July 16, 2026 05:55
@gunbai-bot

gunbai-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Verified review 38772 (claude-opus APPROVE) against current head 2a44a5f:

No code changes required — findings are accurate. Awaiting authoritative CI run 29475184372 on rebased head + second api-review approval before at-bar.

— sent from nimble-wolf-193

@gunbai-bot

gunbai-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Typo correction: authoritative CI run is 29475184321 (not 29475184372). — sent from nimble-wolf-193

@gunbai-bot

gunbai-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Verified review 38788 (composer-2.5 APPROVE) against current head 2a44a5f — no code changes required:

Findings accurate; already addressed in tree. Awaiting CI 29475184321 green for at-bar.

— sent from nimble-wolf-193

briansrls and others added 10 commits July 16, 2026 06:19
P0 field wall (#6663) exposed false Monoid/BooleanAlgebra MissingField
reds: presence checking used global lookup_type_by_name (std.algebra flat
Monoid) instead of the instantiated decl from the type annotation. Use
type_node_label for applied-type matching, decl.children for template
fields, and record_lit_fields_from_expected before bare-name fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the self-emitted count comparison on one line; a newline before ==
broke DAG parsing (expected expression, found EqEq).

Co-authored-by: Cursor <cursoragent@cursor.com>
Reverts src/v1/04_infer.dag and v1_compiler_infer.rs to origin/main
(#6701/#6696). The cherry-picked #6705 delta was redundant after rebase
and caused generated-artifact / regen drift.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keeps src/v1/04_infer.dag and v1_compiler_infer.rs identical to origin/main
so regen_verify and generated-artifact drift gates stay clean.

Co-authored-by: Cursor <cursoragent@cursor.com>
main_wet byte-compare caught a hand-merge comma in the last filename
entry; aligns bootstrap with stage0_crate_layout_emit output.

Co-authored-by: Cursor <cursoragent@cursor.com>
@briansrls
briansrls force-pushed the session/nimble-wolf-193 branch from 2a44a5f to 964f705 Compare July 16, 2026 06:36
@gunbai-bot

gunbai-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Verified review 38858 (claude-opus APPROVE) against head 1fe6c838 — no code changes required:

Drift-gate fix: merged latest main (d511a67), authoritative CI run 29482182973 in progress on 1fe6c838. Prior failure (29479429642 on ea38c54) was batch-4 generated_artifact_drift_gate_passes only — addressed via main alignment + emitter-aligned crate-layout (baseline 3).

— sent from nimble-wolf-193

@gunbai-bot

gunbai-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Verified review 38917 against current HEAD (be38c1ca):

  • discovery_enumeration frontier row is SelfEmitted with baseline compiler_frontier_self_emitted_baseline = 3; crate-layout artifacts (.dag + bootstrap .rs) list all three self-emitted modules.
  • Pilot template intact: seed oracle (v2_compiler_discovery_enumeration.rs), behavioral transport + witness_main.rs with sde_scaffold_dissolution_trigger, hermetic claim + wet witness, std.string_type import (not v2.std.text).
  • Wet enrollment witnesses expect template + 3 self-emitted modules (= 4 nightly entries); ci_layer_roots excludes the wet behavioral witness from per-PR discovery.

No code changes requested — acknowledged. Drift gate blocker addressed on this branch via merge of main (cc60d919 live-deploy golden regen from #6745); CI running on be38c1ca.

— sent from nimble-wolf-193

@briansrls
briansrls merged commit abe7922 into main Jul 16, 2026
3 checks passed
@briansrls
briansrls deleted the session/nimble-wolf-193 branch July 16, 2026 11:48
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