Repository navigation
Measure repeated typechecking across selected entry closures - #7533
Conversation
|
Addressed both findings from review 45863 in
CI rerun on — sent from valiant-lark-50 |
|
Addressed review 45883 in
— sent from valiant-lark-50 |
|
Addressing review 46081 in Finding 1 (scaffold lifecycle): Agree the old Finding 2 ( CI on the prior commit was a cold-cache timeout on — sent from valiant-lark-50 |
|
Addressing review 46101: valid — the three Fix: added — sent from valiant-lark-50 |
8fc28f5 to
f01485c
Compare
|
Addressing review 46165: valid — — sent from valiant-lark-50 |
|
Review 46181 — fixed in d200591 The conflict was real: What changed (canonical authority):
The row is now accepted in the authority graph (removed from — sent from valiant-lark-50 |
…receipt. Matches #7533 operator precedent: receipt is documentation, not shipped execution. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Review 46190 — fixed Valid: Fix:
— sent from valiant-lark-50 |
…receipt. Matches #7533 operator precedent: receipt is documentation, not shipped execution. Co-authored-by: Cursor <cursoragent@cursor.com>
…receipt. Matches #7533 operator precedent: receipt is documentation, not shipped execution. Co-authored-by: Cursor <cursoragent@cursor.com>
a862c56 to
e111e32
Compare
…receipt. Matches #7533 operator precedent: receipt is documentation, not shipped execution. Co-authored-by: Cursor <cursoragent@cursor.com>
|
review 46319 — fixed in e05bb32 Verified: the attribution tests ( Fix: replaced the two mutexes with one — sent from valiant-lark-50 |
ab30212 to
82955e7
Compare
Align decision_ratio with operator spec (repeated_typecheck_compute_ns / total_typecheck_compute_ns), add flag-gated probe hooks and measurement bin, arithmetic + integration controls, and the slice-2 receipt doc. Co-authored-by: Cursor <cursoragent@cursor.com>
The new slice-2 measurement receipt was an orphan (doc_graph_has_no_orphan_docs failed on CI). Slice-1 is already reachable from DESIGN.md; forward-link slice-2 from there so the doc-reachability gate passes. Co-authored-by: Cursor <cursoragent@cursor.com>
Recompute sum_closure_memberships, union_modules, and fanout for the actual selected_entries whenever --max-entries or --entry overrides the production roster, so membership denominators match the typecheck rows. Add ROADMAP row reference to the hand-Rust scaffold (review 45883). Co-authored-by: Cursor <cursoragent@cursor.com>
Recompute sum_closure_memberships, union_modules, and fanout for the actual selected_entries whenever --max-entries or --entry overrides the production roster, so membership denominators match the typecheck rows. Add ROADMAP row reference to the hand-Rust scaffold (review 45883). Co-authored-by: Cursor <cursoragent@cursor.com>
- Buffer all-hit-probe observations; commit only on full probe success - Enforce unique (entry, module_key) rows; add partial-probe control test - Emit detailed receipt file (--receipt-out); keep stdout as summary - Bypass production selection when --entry is given - Label memory honestly (rss before/after, process VmHWM, cgroup high events) Co-authored-by: Cursor <cursoragent@cursor.com>
Five runs on repaired instrument (binary sha256:8af9c726): explicit 7-entry set in two orders plus narrow/typical/broad production subjects capped at N=50 after uncapped narrow OOM at cgroup 32GiB. All cells: decision_ratio=0, repeated_typecheck_misses=0, cache_hit_ratio 0.36 (explicit) / 0.88 (N=50). Verdict slot left empty per operator sequencing. Co-authored-by: Cursor <cursoragent@cursor.com>
Enables per-base stratified 50-entry samples (early/mid/late) without re-running production selection; required for breadth contrast after merge. Co-authored-by: Cursor <cursoragent@cursor.com>
…ext. Three distinct 50-entry windows (offsets 0/117/235) all show decision_ratio=0; union program closes/shrinks. Documents instrument-path OOM at N=286 without M2 retention and retracts shared-prefix cap artifact. Co-authored-by: Cursor <cursoragent@cursor.com>
…runner. Verdict-fired scaffold now defers measurement-orchestration deletion to #7534 merge or operator archive while keeping enrolled regression controls per §4b. Delete run_matrix.sh; inline disjoint-cell reproduction in the receipt doc. Co-authored-by: Cursor <cursoragent@cursor.com>
Match the typecheck_compute_count receipt pattern: exclusive mutex for integration tests that arm the process-wide attribution probe so parallel `cargo test` cannot steal or consume another test's run. Co-authored-by: Cursor <cursoragent@cursor.com>
Receipt §F–§G: no-go for union construction, intrinsic dissolution trigger (merged-SHA provenance receipt → delete instrument; not #7534), retain-law boundary, three spelled-out repro invocations. Scaffold comment aligned. Co-authored-by: Cursor <cursoragent@cursor.com>
Pass None for entry_offset_applied in measurement_from_rows and initialize all RepeatedTypecheckAttributionRun probe-buffer fields. Co-authored-by: Cursor <cursoragent@cursor.com>
Cold native-cache builds on srv1 exceeded the 5m aux cap (run 30692671758) while compiling deps; warm runs finish in ~50s. Build job backstop 75→80m. Co-authored-by: Cursor <cursoragent@cursor.com>
Slice-2 adjudication (no-go at N≤50) now lives in the canonical roadmap row and acceptance receipt, resolving the conflict review 46181 flagged between the receipt scaffold and active_large status. Co-authored-by: Cursor <cursoragent@cursor.com>
Review 46190: the 10m step cap now uses the same Duration carrier as floor/regen timeouts, and the build-job backstop sum is witness-pinned. Co-authored-by: Cursor <cursoragent@cursor.com>
Attribution probe tests and TYPECHECK_COMPUTE_COUNT receipt tests shared process-wide state but used separate mutexes; serialize both under one lock. Co-authored-by: Cursor <cursoragent@cursor.com>
…receipt. Matches #7533 operator precedent: receipt is documentation, not shipped execution. Co-authored-by: Cursor <cursoragent@cursor.com>
The inline ONE-SHOT comment still said "dissolves with slice-2 union verdict" even though that verdict landed in this PR; point at the intrinsic merged-SHA provenance receipt trigger in the scaffold below. Co-authored-by: Cursor <cursoragent@cursor.com>
…7581) * Measure M2 floor retention on real claim_executor path (Dispatch J). Records whole-corpus falsifier batch receipts showing schedule-derived eviction bounds peak RSS at 6.27 GiB for 842 entries, supporting handback (a): named M2 capacity follow-ups do not rank now. Co-authored-by: Cursor <cursoragent@cursor.com> * Remove M2 measurement shell script; document verbatim invocations in receipt. Matches #7533 operator precedent: receipt is documentation, not shipped execution. Co-authored-by: Cursor <cursoragent@cursor.com> * Retract overstated handback (a); keep width>1 bar authoritative. Codex review 46229: width-1 falsifier receipt cannot record handback (a) or deprioritize the throughline's width > 1 exit metric. Receipt reframed as incomplete width-1 evidence; follow-ups remain NEXT. Co-authored-by: Cursor <cursoragent@cursor.com> * Fix primitive surface witness counts after #7562 arm. #7575 updated denominators for compile_dag_diagnostic_census only; parse_stage0_cargo_manifest_bins (#7562) left the roster one row ahead of the witness expectations. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Brian Searls <briansearls1@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Keeps #7533 entry-graph-union adjudication from main; five-minute-ci-gate registration preserved from branch. Co-authored-by: Cursor <cursoragent@cursor.com>
…roadmap authority - product boundary: an ordinary source edit reaches a required CI verdict in five minutes without recomputing any semantic fact whose inputs did not change; six sub-lanes (warm-merge-admission, native-selected-wit (#7597) * WIP: Dispatch K: register the five-minute-ci-gate program boundary in the roa * Fix five-minute-ci-gate roadmap authority per dispatch K spec. Correct six sub-lanes, close entry-graph-union as sibling disposition, and restore required red_control on all ticket fields so main_wet and the generated-artifact drift gate can execute. Co-authored-by: Cursor <cursoragent@cursor.com> * chore: regenerate drifted generated artifacts (ci auto-heal) * Incorporate operator sequence revision for five-minute-ci-gate (#7597). Settle native-at-small-scale (#7599 BANKED), register the six-step dependency sequence and staged expectations A/B/C, and add the warm-merge → native-bundle sequence edge. Co-authored-by: Cursor <cursoragent@cursor.com> * chore: regenerate drifted generated artifacts (ci auto-heal) * WIP: Dispatch K: register the five-minute-ci-gate program boundary in the roa * WIP: Dispatch K: register the five-minute-ci-gate program boundary in the roa * Correct #7599 rung honesty: in-flight not BANKED, verified witness receipts. Executed 25/25 witnesses at head 2f9e780; timing ratio figures are claimed-not-verified (PR body) until merge + fleet rerun. Regenerated DESIGN.md. Co-authored-by: Cursor <cursoragent@cursor.com> * Rebase on main and regenerate ROADMAP.md after conflict resolution. Keeps #7533 entry-graph-union adjudication from main; five-minute-ci-gate registration preserved from branch. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Brian Searls <briansearls1@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: gunbc-ci-auto-heal <gunbc-ci-auto-heal@users.noreply.github.com>
* WIP: Per-entry-assembly-decomposition measurement lane + #7533 post-merge clo * WIP: Per-entry-assembly-decomposition measurement lane + #7533 post-merge clo * Close union probe and price assembly subterms * Point union closeout at durable cache-law witness * WIP: Per-entry-assembly-decomposition measurement lane + #7533 post-merge clo * Correct assembly attribution receipts * Correct assembly decomposition design receipt * Preserve distinct typecheck compute sets * Partition reconcile attribution by span delta * WIP: Per-entry-assembly-decomposition measurement lane + #7533 post-merge clo * Clarify retired union measurement controls --------- Co-authored-by: Brian Searls <briansearls1@gmail.com>
Summary
Slice-2 measurement-only instrument for
entry-graph-union-construction(laneci-cost). Resolves production-selected or explicit entries against one sharedMultiEntryIndexand attributes typed-cache hit/miss/refused per(entry, typed module content key).Decision metric:
decision_ratio = repeated_typecheck_compute_ns / total_typecheck_compute_ns(cache-hit ratio diagnostic only).Operator verdict (bounded N≤50, taken on candidate head): Close
entry-graph-union-constructionas a no-go for union construction on the shared-typecheck hypothesis. Repeated typecheck compute is zero at every measured cell (three disjoint 50-entry windows + 7-entry reorder fixture). Do not begin union construction. Redirect to per-entry assembly decomposition (new hypothesis, new denominator).The candidate-head measurements have already taken the bounded operator verdict. After merge, one representative 50-entry cell plus the reorder control will be rerun on the merged SHA as a provenance/integration receipt — not as a second decision gate. Then delete one-shot measurement orchestration per receipt §G.
Instrument (dissolves post-merge)
reconcile_with_typed_cache/try_reconcile_all_cache_hitsmeasure_repeated_typecheck_attribution— receipt JSON (--receipt-out);--entry-offset+--max-entriesfor disjoint windowscli_run_repeated_typecheck_attribution_probe— dissolution intrinsic to this lane (merged-SHA provenance receipt → delete); not Serve exact-tree resolved graphs from verified cross-process materialization #7534Production receipts (N≤50, committed)
Explicit reorder (7-entry):
decision_ratio=0, identical distinct-compute set both orders.Full matrix + M2/retention context:
docs/plans/entry-graph-union-slice2-typecheck-attribution.md§F–§G.Structural law (retained post-deletion)
Within one shared typed-cache authority: one content key computes once; later requesters hit; entry order does not change the distinct-computation set. Enrolled in
v1-compiler-tests(repeated_typecheck_attribution_*).Controls (executed)
decision_ratioaggregation semantics (deletes with instrument per §G)Test plan
cargo test -p v1-compiler-tests repeated_typecheck_attributioncargo test -p v1-compiler repeated_typecheck_attribution_arithmetic8fc28f)