Skip to content

N1a: type-ref hit≠bind measurement discriminator (non-gating) - #7674

Merged
briansrls merged 3 commits into
mainfrom
session/swift-fox-347-n1a
Aug 2, 2026
Merged

briansrls merged 3 commits into
mainfrom
session/swift-fox-347-n1a

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • N1a executing discriminator for the type-ref fail-open class: under measurement mode only, a masked leaf pool-hit without type_ref_measure_binding_authority emits typed UnresolvedType (same construction as absent-from-pool) instead of fabricating Product(<anon>).
  • Non-gating: default compile-clean / resolve / run / emit stay on main’s fail-open path. Measure is armed only by compile_dag_diagnostic_census (thread-local) for nested synthetic compiles.
  • Five probes in dag/test/claim/type_ref_hit_ne_bind_measure_witness_test.dag (rows 1/3/4/5/7) — green by execution locally.
  • Minimal measure predicate (two arms only): bare exact import/local key; qualified self/ancestor containment + symbol_index hit. Same-leaf×span OR-arm is dead. Dissolve-on N2 canonical fold.
  • N2 doc corrections in the same PR: strip DRAFT/stale branch naming; prerequisite = executing discriminator (N1a symbols), not an admission wall.
  • Not in this PR: corpus admission, TSV rosters, import explicitation, run/serve/emit soft exceptions, Class-B counters. Archive #7622 remains the measurement record (draft; do not merge).

Test plan

  • claim_batch --entry dag/test/claim/type_ref_hit_ne_bind_measure_witness_test.dag — 8/8 PASS (5 probes + charter/predicate/dissolve notes)
  • CI floor green (measure off on production path)
  • Confirm no new UnresolvedType soft-exceptions in compile-clean / resolve / emit

Made with Cursor

@gunbai-bot

gunbai-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

review 47434

APPROVE; artifact has no actionable non-blocking notes — nothing to change.

— sent from swift-fox-347

@gunbai-bot

gunbai-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

review 47438

APPROVE; seed/model false vs thread-local gap is intentional as noted — nothing to change.

— sent from swift-fox-347

@gunbai-bot

gunbai-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

review 47457

Verified against tip: path-scope claim was false — census arms with_type_ref_hit_ne_bind_measure (cli_run.rs census host) while compile_dag_rust_emit_check does not.

Fixed in b3ee3f1: updated compile_diagnostic_census_path_scope_note and the adjacent compile_dag_diagnostic_census doc comment to state census runs the v1 Rust synthetic path with measure armed, and therefore diverges on masked pool-present non-authority type refs (blocking UnresolvedType vs production fail-open / UnlistedImportUse). Census receipts must not be read as production compile-clean for those positions.

— sent from swift-fox-347

gunbc-ci-auto-heal and others added 3 commits August 2, 2026 17:14
Five fixture probes via compile_dag_diagnostic_census prove pool-present
lookup is not binding; production compile-clean stays fail-open. Fold N2
doc corrections (prerequisite = executing discriminator, not admission).

Co-authored-by: Cursor <cursoragent@cursor.com>
Move type_ref_hit_ne_bind_measure off a .dag `false` stub onto the
name_resolution_policy-shaped v1_rt thread-local so seed and emit stay
in fixed point; census arms via with_type_ref_hit_ne_bind_measure.

Co-authored-by: Cursor <cursoragent@cursor.com>
Document that compile_dag_diagnostic_census arms type_ref_hit_ne_bind_measure
and therefore diverges from compile_dag_rust_emit_check on masked type refs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot
gunbai-bot Bot force-pushed the session/swift-fox-347-n1a branch from b3ee3f1 to 00966db Compare August 2, 2026 17:15
@gunbai-bot

gunbai-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

review 47466

APPROVE; artifact has no actionable non-blocking notes — nothing to change.

— sent from swift-fox-347

@gunbai-bot

gunbai-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

review 47468

APPROVE; artifact has no actionable non-blocking notes — nothing to change. (_set pub mirrors name_resolution_policy_set_namespace_only; bracket remains the intended arming surface.)

— sent from swift-fox-347

@gunbai-bot

gunbai-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

review 47469

APPROVE; artifact has no actionable non-blocking notes — nothing to change.

— sent from swift-fox-347

@gunbai-bot

gunbai-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

review 47470

APPROVE; artifact has no actionable non-blocking notes — nothing to change.

— sent from swift-fox-347

@briansrls
briansrls merged commit 6c9869c into main Aug 2, 2026
5 checks passed
@briansrls
briansrls deleted the session/swift-fox-347-n1a branch August 2, 2026 18:38
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