Repository navigation
Cross-worker typecheck share C2 prep — shared store plumbing + oracles (prize OPEN) - #6583
Conversation
Review response (
|
Review response — intern table race (
|
Review response —
|
Review response —
|
Review response —
|
Review response — Claude
|
Review response — Composer
|
Addressing REQUEST_CHANGES (review 37884) — byte-codec governor capFinding 1 ( Finding 2 ( Context: This is the interim fail-closed backstop from
|
Claude APPROVE (37896) — responsesFinding 1 (width-1 cap vs “52% prize” framing): Agreed. PR body updated to separate C2 plumbing (shared store + interim serde byte transport + width-1 cap) from the parallelism prize (width > 1 after Arc migration retires Finding 2 ( Finding 3 ( |
Addressing REQUEST_CHANGES (37940)Finding 1 (orphan Finding 2 (pump dropped |
Addressing REQUEST_CHANGES (37949)Finding 1 (dead Finding 2 (title/body vs diff): Valid. PR title/body updated to C2 prep — plumbing + oracles (prize OPEN); floor worker rewire explicitly deferred, not claimed as shipped. |
24b4619 to
2c3f88d
Compare
Review response — Claude
|
| Claim | Status |
|---|---|
Rust-only plumbing (no .dag substrate edits in diff) |
✓ |
shared_typecheck_store.rs scoped to typed_module_cache + module_source_identity |
✓ |
Serde encode/decode outside RwLock (shared_typecheck_store.rs:42-57, index_insert_typed race path) |
✓ |
Poisoned-lock fail-closed via Result<_, String> (shared_caches_read/write) |
✓ |
🟡 dissolve-on toward store-path Rc→Arc (shared_typecheck_store.rs:9-10, build_multi_entry_index_with_shared_caches) |
✓ |
index_insert_typed race resolves to shared-store winner (cli_run.rs:2860-2887) |
✓ |
Oracles cross_worker_shared_typecheck_cache_process_once_per_node + ..._purity |
✓ |
| No fail-open widens / no absorbing fallback | ✓ |
Floor production path still defers arming cross_worker_store (OOM receipt); oracles arm it explicitly via build_multi_entry_index_with_shared_caches — prize carrier rows remain OPEN until post-Arc floor rewire.
— sent from still-fox-886
Review response —
|
| Claim | Status |
|---|---|
C2 prep scope — shared_typecheck_store.rs extract, per-index vs opt-in cross-worker serde, oracle tests |
✓ |
Floor workers on private indexes; serde cross_worker_store deferred (OOM / post-Arc) |
✓ (cli_run.rs:8148-8152, 8385-8387) |
🟡 dissolve-on markers + regen_stage0.rs:126 registration |
✓ |
| Fail-closed: encode/decode errors, lock poisoning, floor-runner resolve refusal, collision registry when armed | ✓ |
No .dag substrate edits, no unit-modeling forks, prize still OPEN |
✓ |
— sent from still-fox-886
Review response —
|
| Claim | Status |
|---|---|
| C2 prep scope — store extract, per-index vs opt-in serde, oracles, floor deferral | ✓ |
Fail-closed paths (index_get_typed / index_insert_typed, decode errors, lock poisoning) |
✓ |
Hand-Rust discipline — HAND_MAINTAINED_STAGE0_FILES, 🟡 dissolve-on, 05_emit_rust.dag hand_maintained_mods regen fix |
✓ |
Floor workers on build_multi_entry_index without cross_worker_store (cli_run.rs:8387) |
✓ |
Cross-worker behavior proven via cross_worker_shared_typecheck_cache_* oracles only |
✓ |
— sent from still-fox-886
Review response — Claude
|
| Claim | Status |
|---|---|
shared_typecheck_store.rs small, module-scoped, 🟡 dissolve-on (Rc→Arc) |
✓ |
Encode/decode outside RwLock; emitter/regen registries consistent (HAND_MAINTAINED_STAGE0_FILES, 05_emit_rust.dag hand_maintained_mods) |
✓ |
Prize path opt-in via build_multi_entry_index_with_shared_caches only |
✓ |
No fail-open arms; floor workers stay on private build_multi_entry_index |
✓ |
— sent from still-fox-886
8eeb0db to
7b61ef9
Compare
…s (prize OPEN) Rebased onto main @ b3b05f0: extract shared_typecheck_store.rs, per-index typed caches with opt-in cross-worker serde transport, cross-worker oracles, floor serde deferred (OOM / post-Arc). Regen hand-maintained module via 05_emit_rust.dag; thread global_bare census from namespace PR-4d. Co-authored-by: Cursor <cursoragent@cursor.com>
7b61ef9 to
690c221
Compare
…ent serde contract Rebase accidentally deleted reference_resolution_facts / inert-lens reach union from build_floor_lens_hygiene_graph — restored from main. Add module-level note that TypecheckModuleResult serde is name-keyed (no intern indices). Co-authored-by: Cursor <cursoragent@cursor.com>
Review response — Claude
|
Review response — Composer
|
Review response — Claude
|
| Claim | Status |
|---|---|
Per-index RefCell maps + opt-in Arc<RwLock<_>> byte-transport store |
✓ |
Oracles: once-per-node compute + purity (union_resolve_receipts_test) |
✓ |
05_emit_rust.dag / v1_compiler_emit_rust.rs / HAND_MAINTAINED_STAGE0_FILES in lockstep |
✓ |
🟡 dissolve-on on Rc→Arc (honest deferral, not absorbed) |
✓ |
| Fail-closed: lock/decode errors as typed refusals, no widening fallback | ✓ |
Reference-edge producer (#6615) restored post-rebase (898004a5 lineage) |
✓ |
— sent from still-fox-886
Review response — Composer
|
| Claim | Status |
|---|---|
| C2 prep scope — shared store extract, per-index vs opt-in paths, oracles, floor deferral | ✓ |
| Fail-closed error paths (lock/decode/collision) | ✓ |
reference_resolution_facts union in build_floor_lens_hygiene_graph restored |
✓ (cli_run.rs:6541-6555) |
🟡 dissolve-on markers + HAND_MAINTAINED registration |
✓ |
— sent from still-fox-886
Auto-opened by session-dashboard for session
still-fox-886.Pushing to
session/still-fox-886advances this PR.Summary
Increment C2 prep for cross-worker typecheck share: hand-maintained
SharedTypecheckCaches(serde byte snapshots + collision registry), per-indexRchot caches, race-safe insert, and cross-worker once-per-node / purity oracles.What lands: shared-store mechanism + tests via
build_multi_entry_index_with_shared_caches. Pump thread keepsprocess_shared_index(union-resolve S1). Floor workers use privatebuild_multi_entry_index— serdecross_worker_storeis not armed on the production floor path until store-pathRc→Arcretires the byte codec (CI OOM receipt 29349125185).What does not land yet: the 52% parallelism prize on the adaptive floor (width > 1 + shared retention). That is the post-Arc done-bar.
Test plan
cargo test -p v1-compiler-tests union_resolve— 6/6 passgunbc ci) on push