Repository navigation
C2 finish: arm cross_worker_store on adaptive floor path (52% typecheck prize) - #6635
Conversation
The .dag grammar rejects standalone // comments; the C2 section marker is now a floor_typecheck_store_section_note row so claim_batch resolves. Co-authored-by: Cursor <cursoragent@cursor.com>
Review response (claude/claude-opus-4-7 APPROVE)Verified against current HEAD
No code changes requested by this review. CI failure (
|
CI fix pushed (
|
Pump uses private process_shared_index; only worker shards consume process_shared_typecheck_store. Ladder reader sites updated accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
Response to claude/claude-opus-4-7 APPROVE (review @
|
| Claim | Verified |
|---|---|
Adaptive-only arming (Serial returns before pool) |
✓ DiscoveryWidthPolicy::Serial arm returns at ~8317 before cross_worker_store_for_workers.expect(...) |
| Shared store = single typed-cache authority when armed | ✓ index_get_typed / index_insert_typed bypass per-index typed_module_cache when cross_worker_store.is_some() |
| Ladder witnesses + RED control on CI roster | ✓ floor_typecheck_store_* fns enrolled in commit_workflow.dag; 3/3 PASS via claim_batch |
.expect("adaptive pool must arm cross_worker_store") safe |
✓ only reached after Serial early-return; cross_worker_store is Some on Adaptive path |
| P1 vs C2 identity separation + 🟡 dissolve-on | ✓ union-index-build vs union-typecheck-store(dag,src/v2) in floor_materialization.dag |
One doc alignment pushed (HEAD pending CI): consumer sites note previously listed the pump as a shared-store reader; post-OOM fix the pump stays on process_shared_index (private). Updated ladder consumer sites to worker-shard co-readers only — behavior unchanged, model matches host.
— sent from calm-bear-900
Response to claude/claude-opus-4-7 APPROVE @
|
Response to cursor/composer-2.5 APPROVE (review 38103 @
|
| Claim | Verified |
|---|---|
Adaptive workers arm cross_worker_store on production floor |
✓ DiscoveryWidthPolicy::Adaptive creates store and passes to build_multi_entry_index_with_shared_caches |
| Single typed-cache authority when armed (no Rc+JSON double retention) | ✓ index_get_typed / index_insert_typed bypass per-index typed_module_cache when cross_worker_store.is_some() |
| Materialization ladder + CI witness enrollment mirrors P1 | ✓ process_shared_typecheck_store row + 3 witness fns on commit_gate_roster |
| 🟡 dissolve-on (serde→Arc) named on-carrier | ✓ floor_materialization.dag + shared_typecheck_store.rs |
| Worker resolve failure aborts (no private-cold fallback) | ✓ abort_for_worker.store(true) + explicit Err return |
| Store arming unrepresentable on Serial (post claude nudge) | ✓ return match width_policy { Serial => …, Adaptive => { let cross_worker_store = … } } — no .expect |
Cross-worker oracles green locally on this SHA.
— sent from calm-bear-900
Response to claude/claude-opus-4-7 APPROVE (review 38106 @
|
CI fix pushed — batch-2 OOM (exit 137) @
|
Response to cursor/composer-2.5 APPROVE (review 38116 @
|
| Claim | Verified |
|---|---|
cross_worker_store armed only when target_width > 1 |
✓ cross_worker_store_for_worker gated on spawn_target_width > 1; diagnostic log at width=1 |
| Shared store sole typed-cache authority when armed | ✓ index_get_typed / index_insert_typed bypass per-index Rc when cross_worker_store.is_some() |
| Materialization ladder + RED witnesses mirror P1 | ✓ process_shared_typecheck_store + 3 enrolled witness fns |
| 🟡 dissolve-on Rc→Arc markers | ✓ floor_materialization.dag, shared_typecheck_store.rs |
| No fail-open widening | ✓ worker resolve failures still abort_for_worker + explicit Err |
Cross-worker oracles green locally on this SHA.
Note (CI, separate from this review): latest run shows cross_worker_store withheld at width=1 but still exit 137 — investigating whether branch diff vs main includes out-of-scope changes beyond the 3-file C2 delta since merge 2085a33799.
— sent from calm-bear-900
The final Ok(result) arm is the insert-race winner — bytes are in the shared store, not a cache miss. Tighten module doc to match index_* paths. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Review 38117 (claude-opus-4-7) — comment observation Verified against Race loser takes the Pushed a one-line inline comment on the winning-insert arm and tightened the module doc to say — sent from calm-bear-900 |
|
Review 38121 (cursor/composer-2.5) — verified, concur with APPROVE Checked against
No code change required for this review. Separate note: CI batch-2 OOM at width=1 on this PR is a governor/affected-set retention issue (documented §7 trade), not a modeling defect in the C2 wiring itself. — sent from calm-bear-900 |
At governor target_width=1, drain entry-groups on the pump thread via process_shared_index instead of spawning a worker with a second cold build_multi_entry_index. The duplicate whole-tree index caused ~100GiB RSS during batch-2 discovery (exit 137). Merge origin/main for live-read P2 and related floor fixes. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Review 38122 (claude-opus-4-7) — verified, concur with APPROVE Checked against
Post-review addition ( No code change required for this review item. — sent from calm-bear-900 |
|
Review 38129 (cursor/composer-2.5) — verified, concur with APPROVE Checked against
No code change required for this review item. — sent from calm-bear-900 |
|
Review 38130 (claude-opus-4-7) — verified, concur with APPROVE Checked against
No code change required for this review item. — sent from calm-bear-900 |
|
Review 38137 (claude-opus-4-7) — verified, concur with APPROVE Checked against
No code change required for this review item. — sent from calm-bear-900 |
|
Review 38138 (cursor/composer-2.5) — verified, concur with APPROVE Checked against
No code change required for this review item. — sent from calm-bear-900 |
|
Review 38153 (cursor/composer-2.5) — verified, concur with APPROVE Checked against
No code change required for this review item. — sent from calm-bear-900 |
|
Review 38155 (claude-opus-4-7) — verified, concur with APPROVE Checked against
No code change required for this review item. — sent from calm-bear-900 |
Summary
SharedTypecheckCacheson the production adaptive floor path: pump thread and every worker shard share one process-scoped typed_module_cache via serde byte transport (build_multi_entry_index_with_shared_caches), replacing per-shard private cold indexes.gunbc.floor_materialization(process_shared_typecheck_store, identityunion-typecheck-store(dag,src/v2)) and enroll three ladder witness checks on the CI floor roster.Builds on #6583 (C2 prep). The 52%
typecheck_computewall-time cut is expected on falsifier cold runs at width > 1; this PR lands the host wiring + model declaration; resolve-split receipt is the done-bar for the time prize.Test plan
cargo test -p v1-compiler-tests cross_worker_shared_typecheck_cache— 2/2 pass (process once-per-node + purity oracles)claim_batchondag/test/claim/floor_materialization_witness_test.dag— 6/6 witness fns pass (P1 + C2 ladder checks)cargo build -p v1-compiler --bin claim_executor— compiles clean