Repository navigation
Live-read classification P1: G2 call-reachability over fn-arrow skeletons - #6582
Conversation
…tons. Feed fn_arrow_decl_facts_live DependencyView into call-reachable carrier scan so runtime reads are located at executing call sites with LiteralPath/ParamRef/UnknownPath patterns, not import closure alone. Co-authored-by: Cursor <cursoragent@cursor.com>
4a50099 to
7b7019e
Compare
…eipt. Rename reserved `module` params, merge import-closure carriers with call-reachable G2 carriers (not replace), prefer literal path patterns for touched-path g2, and declare fn_arrow skeleton marshal as a checkable §7 scaffold with witness + design anchor. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Addressed blocking review findings in 7b7019e follow-up:
|
The TailAbsent arm returned List<Node> where List<FnArrowDecl> was required. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Verified — finding is correct. |
Drop the literal-pattern branch that silently discarded imprecise filesystem carriers; single fail-closed arm handles all path patterns. Witnesses updated. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Verified — finding is correct. The Fixed by removing the branch and routing all carriers through |
|
Verified against
No additional changes required for this review artifact; awaiting CI on the latest push. |
|
Verified claude-opus-4-7 APPROVE (
No code changes required for this artifact. — sent from fierce-otter-305 |
The nightly affected-set-falsifier's whole-corpus cold sweep (gunbc_falsifier_batches, SelectionPredictOnly) surfaced 4 red live-tree witnesses = 2 real drift debts of the documented masking class (PRs landed changes the per-PR affected-set selection did not run these live-tree witnesses for, so the red surfaced on the next cold sweep, not the landing PR — 4th instance, siblings to #6530/#6533): 1. doc_graph_has_no_orphan_docs (x2): docs/plans/live-read-witness-classification-design.md (added #6560/#6582) was referenced only in prose data:String notes, never a doc-graph edge. Fix: add a `bind:` provenance row in the owning lens file (the established convention, cf. commit_workflow_plan_doc_provenance) -> doc-graph root, orphans 1->0. 2. non_fold_residue_clean_holds (x2): resolved report = 3 unrostered, 0 stale. Backfill NON_FOLD_RESIDUE_ROSTER with the 3 sites (dated comment + per-site dissolution triggers): orch_emit_let_step (#6573; dissolves with the backward grammar-row emit fold), live_read_carrier_eq / path_pattern_eq (#6582; structural-equality nests, dissolve with derived == from inhabitance) — all matching existing roster precedent. Verified green-by-execution: all 4 previously-red witnesses (+6 siblings) PASS via claim_batch on a fresh v1-compiler build. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…pattern_eq — coordination: silent-eagle-662's resolved audit, supersedes #6614) + dedupe the replace-all's second roster insertion Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…, compile-clean non-exhaustive match — and locate the compile-clean refusal (#6604) * Fix the two nightly reds: roster orch_emit_let_step (nfr, masking receipt #9) + re-land the live-read design doc link lost to the #6564 merge race Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Fix the third nightly red (compile-clean) + locate the refusal: converge_cli_applied_knob_count one-special-variant dispatch (#6598 x #6586 stale-base interaction made main compile-red); floor compile-clean refusal now prints located hard diagnostics (it previously printed ok=false with zero located errors — this patch is what found the non-exhaustive match); nfr lens-precision note (field-scrutinee matches are lens-invisible, no roster row) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Roster the two #6582 structural-eq sites (live_read_carrier_eq, path_pattern_eq — coordination: silent-eagle-662's resolved audit, supersedes #6614) + dedupe the replace-all's second roster insertion Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Brian Searls <briansrls@gunb.ai> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* WIP: affected sest falsifier * Affected-set falsifier burn-down: link orphan doc + backfill 3 nfr sites The nightly affected-set-falsifier's whole-corpus cold sweep (gunbc_falsifier_batches, SelectionPredictOnly) surfaced 4 red live-tree witnesses = 2 real drift debts of the documented masking class (PRs landed changes the per-PR affected-set selection did not run these live-tree witnesses for, so the red surfaced on the next cold sweep, not the landing PR — 4th instance, siblings to #6530/#6533): 1. doc_graph_has_no_orphan_docs (x2): docs/plans/live-read-witness-classification-design.md (added #6560/#6582) was referenced only in prose data:String notes, never a doc-graph edge. Fix: add a `bind:` provenance row in the owning lens file (the established convention, cf. commit_workflow_plan_doc_provenance) -> doc-graph root, orphans 1->0. 2. non_fold_residue_clean_holds (x2): resolved report = 3 unrostered, 0 stale. Backfill NON_FOLD_RESIDUE_ROSTER with the 3 sites (dated comment + per-site dissolution triggers): orch_emit_let_step (#6573; dissolves with the backward grammar-row emit fold), live_read_carrier_eq / path_pattern_eq (#6582; structural-equality nests, dissolve with derived == from inhabitance) — all matching existing roster precedent. Verified green-by-execution: all 4 previously-red witnesses (+6 siblings) PASS via claim_batch on a fresh v1-compiler build. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Brian Searls <briansearls1@gmail.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Summary
Implements live-read witness classification P1 (G2) per
docs/plans/live-read-witness-classification-design.md: runtime-read carriers are derived from call-reachable fn bodies overfn_arrow_decl_facts_live()DependencyView facts, not module import closure alone.v2.std.live_readwithPathPattern,LiveReadCarrier(FilesystemReadPath, …), and callee-symbol registry.live_read_classification_g2_from_facts): BFS call reachability, skeleton carrier scan, path-precisionruntime_read_touched_by_path_g2.accumulator_copy_roster_gateso entry-module decls are visible in the entry resolve closure.Test plan
target-local/debug/claim_batch --source-root dag --source-root src/v2 --entry src/v2/test/claim/live_read_classification_test.dag --functions <all 16 test fns> --claim-run— 16/16 PASS