Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .claude/board/AGENT_LOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
## 2026-08-28 — W1.1 epoch-recheck 5+3 council (8 agents, orchestrator-consolidated)

**D-ids:** D-LGJ-MMV-1a (council half). **Output:**
`.claude/plans/epoch-recheck-v3.md` (RATIFIED), `epoch-recheck-v2-draft.md`
(SUPERSEDED, retained for auditability). One writer: this log and every
board file below were written by the orchestrating main thread; no
sub-agent wrote any file (all eight were briefed READ-ONLY and returned
findings as their final message).

**Phase 1 — five savants**, one per spec §6 lens, cast in parallel:
handle safety, ABI membrane, zero-copy law, Java surface, measurement.
Yield: the headline unreachability finding (two lenses independently),
the ABI fallback struck, the bench-blindness claim falsified, the
`Mask.words()` guard gap.

**Phase 2 — consolidation** before any reviewer existed, per the
anti-mush sequencing. Two savants conflicted on the same lines
(`Mask.words()` guarded or not); the orchestrator settled it against
source and produced a finding neither had: the two cached sites are
structurally asymmetric (`RowStore.lane()` guards per accessor call;
`Mask.words()` has no guard and one caller that guards once per scan).

**Phase 3 — three reviewers on the draft only**: overclaim, falsifier,
dilution/collapse. Yield: **one BLOCKING defect** (the draft's own
replacement falsifier rested on a use-after-free, so its "deterministic"
RED was UB — the exact evidence class the draft disqualified arm (i) for
three paragraphs later), **one open question closed** (per-access
placement is forced by falsifiability, not chosen on cost), an invented
closure status caught, two normative corrections rescued from under a
"CLEAN" heading, a wrongly-routed falsifier corrected (the test tree is
the same package — no bench bridge needed), and five factual errors.

**Phase 4 — v3**, with an audit ledger (§8) naming every Phase-3 change.

**Outcome:** council COMPLETE, implementation queued as four STATUS_BOARD
rows. The `Mask` half ships regardless; the `RowStore` half is gated on a
per-accessor benchmark that does not exist yet.

**What the fan-out cost, honestly:** eight agents to change one wave's
deliverable from "wire the epoch check" to "ship a liveness probe, in two
halves, one of which may not ship at all". The reviewers earned their
keep: the blocking finding was against the orchestrator's own draft, and
the draft would otherwise have shipped a mandatory falsifier that cannot
reliably report failure.

## 2026-08-25 — ABI minors 6→8 + board hygiene (main thread, no fan-out)

Straight-line main-thread work; no subagents spawned, so no tag-files to
Expand Down
30 changes: 30 additions & 0 deletions .claude/board/EPIPHANIES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
## E-THE-GUARD-YOU-WIRE-IS-NOT-THE-GUARD-YOU-NAMED-1 (2026-08-28)

**Finding.** A wave chartered as "wire the epoch re-check" cannot deliver
an epoch check at all. `registry::close` bumps the slot generation and
`insert` hands the already-advanced generation out on reuse, while
`lgj_resource_info` opens with `resolve` — so a stale handle throws before
any epoch is returned, and the cached-vs-live comparison the issue was
named for can only fire after a `u32` generation wrap. What the wave
actually ships is a **native generation-checked liveness probe replacing a
Java boolean**.

**Why it generalizes.** The issue, the doctrine bullet, the plan row and
the council spec all carried the same name for a mechanism none of them
had traced end to end — and the name survived four documents because each
inherited it from the last. The field `LgjLaneDesc.epoch` existing was
read as evidence that comparing it was the fix; existence is not a
mechanism. **Before a wave is chartered around a named mechanism, trace
the mechanism's failure path in source once.** The cost of not doing so
here was small (a council caught it); the cost of shipping it would have
been a guard whose javadoc named a check it does not perform.

**Second-order, same day.** `Engine.epoch`'s own javadoc already says
*"Java re-checks this before trusting a cached lane segment"* while having
**zero callers** — the doc-comment-is-not-a-behaviour rule violated in the
exact file three savants cited without noticing. A stale javadoc is how a
mechanism gets believed into a plan.

**Status:** FINDING (verified independently three times in source).
**Confidence:** high.

# Epiphanies Log — Findings, Corrections, "Aha" Moments (APPEND-ONLY)

> Prepend new entries at the top. Never edit a past entry except its
Expand Down
31 changes: 31 additions & 0 deletions .claude/board/INTEGRATION_PLANS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
## 2026-08-28 — epoch-recheck v1→v2→v3 (RATIFIED; the W1.1 5+3 council)

Plans: `.claude/plans/epoch-recheck-phase0-v1.md` (spec),
`epoch-recheck-v2-draft.md` (Phase-2 consolidation, SUPERSEDED but
retained — the reviewers' findings are only auditable against the draft
they attacked), `epoch-recheck-v3.md` (**RATIFIED, implement from this**).

Full 5+3 run for `mask-membrane-valhalla-integration-v1` W1.1: five
savants (handle safety, ABI membrane, zero-copy, Java surface,
measurement), consolidated, then three reviewers (overclaim, falsifier,
dilution/collapse) on the draft only.

**The headline reframes the deliverable.** An epoch MISMATCH is
unreachable through `lgj_resource_info` **short of a `u32` generation
wrap on one slot** — `close` bumps the slot generation, `insert` hands the
advanced generation out, and the export opens with `resolve` — so a stale
handle throws rather than returning a mismatched epoch. What ships is a **native generation-checked liveness
probe replacing a Java boolean**, not "epoch checking". Verified
independently three times.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

Also: the spec's own pre-registered disable-run was unconstructible and
its nearest approximation vacuous (replaced); the fallback ABI export is
struck (no new symbol needed, and one that skipped `resolve` would pass
the disable-run while losing the guarantee); the merged plan's "banked
benches are structurally blind" claim is FALSE for bench G (storno in the
same PR); and `Engine.epoch`'s javadoc claims a re-check with zero callers.

**Status: RATIFIED.** Implementation is D-LGJ-MMV-1a's four rows on
`STATUS_BOARD.md`; the `Mask` half ships regardless, the `RowStore` half
is gated on a per-accessor benchmark that does not yet exist.

## 2026-08-28 — mask-membrane-valhalla-integration-v1 (ACTIVE; the layered consolidation)

Plan: `.claude/plans/mask-membrane-valhalla-integration-v1.md`. The
Expand Down
29 changes: 28 additions & 1 deletion .claude/board/ISSUES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
# Issues Log — Open + Resolved (double-entry, append-only)

## ISS-LGJ-EPOCH-UNCHECKED (2026-08-28) — OPEN
## ISS-LGJ-EPOCH-UNCHECKED (2026-08-28) — OPEN (council ruled; implementation queued)

> **⊕ COUNCIL RULING (2026-08-28, `epoch-recheck-v3.md`).** The 5+3 council
> found this issue's own framing narrower than the truth: an epoch
> **mismatch is unreachable** through `lgj_resource_info` — `close` bumps
> the slot generation (`registry.rs:331-338`), `insert` hands the advanced
> generation out (`:253-257`), and the export opens with `resolve`
> (`exports.rs:214-222`), so a stale handle **throws** rather than
> returning a mismatched epoch (only a `u32` wrap could make the compare
> fire). The fix is therefore a **native generation-checked liveness probe
> replacing the Java `closed` boolean** at the cached-descriptor seam — not
> "wiring epoch checking". The hazard the probe defends is real and
> reachable (close the native handle out from under a live wrapper; the
> cached segment then reads freed storage), which is why resolution (b)
> was NOT selected despite the unreachability finding: (b) requires the
> HAZARD unreachable, and it is not.
>
> **Closure terms, pre-registered and PER-HALF** (tightened 2026-08-28
> after external review on PR #49 — the first wording would have let this
> close on the `Mask` half alone while `RowStore`'s cached path stayed
> boolean-guarded, i.e. with the issue's own condition still true):
> **RESOLVED only when BOTH halves ship.** If measurement rejects the
> per-access `RowStore` probe, this issue stays **OPEN**, re-scoped in
> writing to `RowStore`, and the doctrine's cached-descriptor exclusion
> stays live for that path. A **NEW** issue is opened in the same commit
> for the cross-thread lifecycle-vs-access window arm (ii) documents
> rather than fixes. Two entries, never one — a scoped resolution must
> not absorb an unfixed window.

**Found.** By the 5+3 council's `handle-lifecycle-auditor` pass on PR #45
(the zero-copy/memory-safety doctrine review). `LgjLaneDesc`/`LgjMaskDesc`
Expand Down
39 changes: 39 additions & 0 deletions .claude/board/PR_ARC_INVENTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,45 @@
the plan itself is PROPOSED→ratified-by-merge; wave outcomes are
gated, not promised.

## PR #49 — W1.1: the epoch-recheck 5+3 council, ratified (v3) (opened 2026-08-28)

- **Added:** `.claude/plans/epoch-recheck-v3.md` (RATIFIED — implement
from this) and `epoch-recheck-v2-draft.md` (SUPERSEDED, retained: the
Phase-3 findings are only auditable against the draft they attacked).
Full 5+3 for `mask-membrane-valhalla-integration-v1` W1.1 — five
savants, consolidation, three reviewers on the draft only, ratified v3
with an audit ledger (§8).
- **Headline:** an epoch MISMATCH is unreachable through
`lgj_resource_info` **short of a `u32` generation wrap on one slot**
(close bumps the slot generation, insert hands the advanced generation
out, the export opens with `resolve`), so what W1.1 ships is a **native
generation-checked liveness probe replacing a Java boolean** — not
"epoch checking". Derived independently three times from source, and
pinned by a committed test as a W1.1 deliverable (source reading
establishes today's path; only a test keeps a refactor honest).
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
- **Locked:** atomicity arm (ii) scoped contract on three verified
reasons (arm (i)'s mandatory falsifier cannot report red — no threads
in the test tree); six obligations W1-W6 with W1/W2 given mechanical
fence legs; no new ABI symbol; the `Mask` half ships regardless, the
`RowStore` half is per-access-or-not-at-all and gated on a benchmark
that does not yet exist.
- **Reviewers changed the deliverable, not just its prose:** one BLOCKING
defect (the draft's own falsifier asserted on use-after-free bytes —
the evidence class it disqualified arm (i) for), one open question
closed on falsifiability, a wrongly-routed falsifier, an invented
closure status, two normative corrections rescued from under a "CLEAN"
heading, five factual errors — including a storno on the merged plan's
false "benches are structurally blind" claim, and a live `main` defect
nobody had noticed (`Engine.epoch`'s javadoc claims a re-check with
zero callers).
- **Gates:** doc-only — no Rust, Java, `abi.md`, or public-API change; the
suite is untouched at 331/331 from PR #48. Every file:line in v3 was
either given with evidence by a savant or verified by the consolidation;
the load-bearing ones were re-verified a third time by a reviewer.
- **Confidence:** high on the headline (three independent source
derivations) and on the arm decision; the implementation's cost
question is explicitly UNRESOLVED and gated, not assumed.

## PR #48 — W0: the three doctrine fences, each proven able to fire (merged 2026-08-28, `42fba54` — 7 commits, head `fc281e0`)

- **Merge-time addendum (rounds 4-5, post-entry):** the review cycle ran
Expand Down
6 changes: 5 additions & 1 deletion .claude/board/STATUS_BOARD.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ the membrane / Valhalla cheap addresses / everything else underneath).
| D-id | Deliverable | Status |
|---|---|---|
| D-LGJ-MMV-0 | Mechanical fences: materialization-list gate, §E worker-topology fence (+ reflective arm 2b), SIMD-branch fence — each proven able to fire | Shipped (PR #48, merged `42fba54`) |
| D-LGJ-MMV-1a | Resolve `ISS-LGJ-EPOCH-UNCHECKED` by EITHER accepted outcome: (a) epoch re-check wired on the cached-descriptor path, disable-run red-then-green, per-accessor overhead measured on the accessors themselves (not the native benches — they never touch this path); or (b) a falsifier-backed unreachability proof + doctrine downgrade, chosen only on measured cost | Queued |
| D-LGJ-MMV-1a | Resolve `ISS-LGJ-EPOCH-UNCHECKED`. **5+3 council COMPLETE** — ratified at `.claude/plans/epoch-recheck-v3.md`: ship (a) as a native generation-checked liveness probe (NOT "epoch checking" — the compare is unreachable), arm (ii) scoped contract, six obligations W1-W6, C1's rewritten falsifier, no new ABI symbol | Council done, implementation Queued |
| D-LGJ-MMV-1a-mask | The `Mask` half — probe at `words()`, one downcall per whole scan, falsifiable at negligible cost. **Ships regardless of measurement** | Queued |
| D-LGJ-MMV-1a-rowstore | The `RowStore` half — probe per-access inside `lane()`; forced by falsifiability, not chosen on cost (a first-resolve probe is blind to the only scenario it could catch). Does not ship if per-access proves too costly | Queued, gated on §5 |
| D-LGJ-MMV-1a-hook | Test-only ABI export: invalidate a registry slot (bump generation) while deliberately leaking the `Arc`, so the allocation stays mapped — without it W5's disable arm performs a read-after-free and cannot report failure deterministically (Codex P1, PR #49). Full ABI citizen: minor bump, manifest + `abi.md`, lazy holder, `requireMinor`, `OldAbiCompatTest` leg. The ONLY new symbol this wave admits | Queued |
| D-LGJ-MMV-1a-bench | Isolated per-accessor JMH benchmark (build-time variant swap, Blackhole, ≥5 forks) — does not exist today; §5's gate is undecidable without it | Queued |
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
| D-LGJ-MMV-1b | Minors 2-4 lazy `Downcalls` holders; `OldAbiCompatTest` minor-1 leg; doctrine "fails cleanly at the call" wording restored by storno | Queued |
| D-LGJ-MMV-2a | Fused single-plane columnar pass — the lab arm's ~10× claim verified through the real ABI, equivalence before timing | Queued |
| D-LGJ-MMV-2b | Register-sweep family (§14-16) answers facet-major; −18 refusal re-pinned two-sided, kept reachable | Queued |
Expand Down
Loading