Skip to content
91 changes: 91 additions & 0 deletions .claude/board/PR_ARC_INVENTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,97 @@
> anti-pattern the imported board rules name. Backfilled below in one
> pass rather than left stale; PR #4 onward gets its entry at merge time.

## PR #47 — plan: mask-membrane-valhalla-integration-v1, the layered consolidation (merged 2026-08-28, `9f6e9a2` — 6 commits, head `586d081`)

- **Added:** `.claude/plans/mask-membrane-valhalla-integration-v1.md` —
the PR #44→#46 arc consolidated under the layer model (masking
underneath / Panama the membrane / Valhalla cheap addresses /
everything else substrate-private): frozen decisions F1–F7 (incl. the
measured F7 convergence-tail ground truth that keeps the W4.2 write
seam blocked and D-id-less), the honesty-gap layer table (G-A..G-E),
waves W0–W4.1, pre-registered falsification conditions.
`.claude/plans/epoch-recheck-phase0-v1.md` — the committed W1.1
Phase-0 council spec (frozen decisions, input inventory, resolutions
(a)/(b), gates, five per-savant question sets).
`.claude/knowledge/github-access-paths.md` — the measured
three-paths/two-identities GitHub access map (session-proxy credential
vs the shared user-200276742 identity; secondary-limit signature;
thread resolution as the one no-fallback operation).
Board: `INTEGRATION_PLANS.md` prepend + `STATUS_BOARD.md`
D-LGJ-MMV-0..4 rows.
- **Locked (review-hardened, 9 findings across Codex + CodeRabbit, all
verified-then-fixed):** the ABI-citizen requirement on any epoch-only
export; DOWNGRADED-DOCUMENTED (never "resolved") for fallback (b); the
requireMinor-before-lazy-holder invariant for W1.2; the W1/W2 flip
condition in reproducible units (ns/accessor-call, 2× threshold),
measured ON THE CACHED-DESCRIPTOR ACCESSORS (the banked benches are
structurally blind to them); the check-then-read ATOMICITY constraint
as a mandatory W1.1 council output (serialize/lease + interleaving
falsifier, or a written scoped contract — wording never exceeds the
chosen arm); the measurement runs UNDER the chosen arm; W0 scope
honesty (lexical fences are tripwires, not proofs) and the standing
gate-observability question for every future gate.
- **Confidence:** high on the frozen decisions (each cites its ruling);
the plan itself is PROPOSED→ratified-by-merge; wave outcomes are
gated, not promised.

## PR #48 — W0: the three doctrine fences, each proven able to fire (opened 2026-08-28)

- **Added:** `DoctrineFenceTest` (17 checks) — the plan
`mask-membrane-valhalla-integration-v1.md` W0 / D-LGJ-MMV-0 deliverable,
turning the PR #46-corrected doctrine's three prose claims into
executable fences: **fence 1** pins the exact per-file occurrence count
of every materialization-shaped pattern in `java/src/main` against the
doctrine's exhaustive five-site list (an unfenced site, new file or
old, fails until list AND pin move together); **fence 2** asserts zero
worker-topology tokens on the consumer surface — all of `java/src/main`
plus the ABI's consumer-facing files only (`abi.rs` + `exports.rs`;
substrate-internal scheduling deliberately out of scope, per §E's own
ownership logic); **fence 3** confines backend tokens to their three
define/relay homes and rejects any code line that both carries a
backend token and branches; **fence 2b** (added in review) re-checks
§E REFLECTIVELY — no public facade method may be topology-named — the
spelling-immune arm no lexical scan can equal (`ApiSurfaceTest`'s own
footing applied to §E). All fences read ONE shared comment filter
(`codeLines`), so prose in a javadoc can neither move a pinned count
nor report a leak; fence 3's branch markers match the canonicalized
line and cover ternaries/boolean operators, closing the in-place
ternary rewrite that kept the carrier census unchanged. Registered in
`AllTests` including the no-native path (source fences need no `.so`,
same rationale as `ApiSurfaceTest`).
- **Locked:** each fence arm observed red-then-green on a planted
violation before landing — unfenced `Arrays.copyOf`+`new long[` in
`View.java` (fence 1, both patterns), `public View workers(int)`
(fence 2), the SAME method with its name and paren split across two
lines (invisible to any per-line lexical scan — ONLY fence 2b fired,
proving the reflective arm adds coverage rather than redundancy),
`if (simdBackend().equals("avx512"))` (fence 3, both halves), a stray
`SIMD_AVX2` reference in `View.java` (fence 3 homes half), and a
pinned `Layouts.java` carrier line rewritten IN PLACE to a ternary —
census count unchanged, caught by the widened marker half alone.
Stay-silent twin: a planted comment line carrying `Arrays.copyOf` +
`new long[64]` + `workers(8)` moves nothing (prose is filtered by the
shared `codeLines`). A second round closed the shared-line hole
(`/* c */ new long[4];` was blanked whole-line by the prefix skip —
the filter now removes comment SPANS, honoring string/char literals
so a `//` inside a URL neither starts a comment nor truncates code).
Anti-vacuity guards pin the corpus as real (≥20 files scanned, ≥20
compiled public types against the measured 29, ≥5 backend-token code
lines) so an empty-scan pass cannot masquerade as clean.
- **Deliberately source-text where the property lives only in source**
(call sites, branches), reflective where it lives in the compiled
surface (topology-named methods, fence 2b) — and honest about the
split: lexical fences are TRIPWIRES, not proofs; the census pins are
what force a determined evasion to touch the pin table in the same
diff, making it reviewable.
- **Gates:** full Java suite 331/331 (314 prior + 17 new), zero
regressions; no Rust/`abi.md`/public-API change of any kind.
- **Board note:** the `STATUS_BOARD` D-LGJ-MMV-0 row lives on PR #47 (the
plan, in flight when this opened); it flips Queued → Shipped once both
are on `main`.
- **Confidence:** high — every claim is a pinned count, a red-then-green
disable-run, or the 331-check suite.

## PR #45 — board: PR #44 arc entry + EXP-KIA-A2-64K fresh measurement + zero-copy/memory-safety doctrine pin (merged 2026-08-28, `b2956d3` — 2 commits, head `22f3293`)

- **Added:** the PR #44 backfill entry below (this file); a fresh
Expand Down
41 changes: 33 additions & 8 deletions java/src/test/java/com/adaworldapi/lancegraph/AllTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ private AllTests() {}
public static void main(String[] args) {
Map<String, Consumer<Checks>> suites = new LinkedHashMap<>();
suites.put("ApiSurfaceTest", ApiSurfaceTest::run);
suites.put("DoctrineFenceTest", DoctrineFenceTest::run);
suites.put("AbiContractTest", AbiContractTest::run);
suites.put("SmokeTest", SmokeTest::run);
suites.put("FixtureParityTest", FixtureParityTest::run);
Expand All @@ -34,14 +35,38 @@ public static void main(String[] args) {
suites.put("ColumnarStoreTest", ColumnarStoreTest::run);

if (!NativeRuntime.isAvailable()) {
// ApiSurfaceTest needs no native library — the API's shape is a compile-time property —
// so run it anyway before reporting the skip. It is exactly the check most worth having
// before the artifact exists.
System.out.println();
System.out.println("=== ApiSurfaceTest ===");
Checks shape = new Checks("ApiSurfaceTest");
ApiSurfaceTest.run(shape);
int shapeCode = shape.report();
// ApiSurfaceTest and DoctrineFenceTest need no native library — the API's shape is a
// compile-time property and the doctrine fences scan source — so run them anyway
// before reporting the skip. They are exactly the checks most worth having before the
// artifact exists.
int shapeCode = 0;
for (String name : new String[] {"ApiSurfaceTest", "DoctrineFenceTest"}) {
Consumer<Checks> suite = suites.get(name);
if (suite == null) {
// A renamed registry key must fail as a report, not as an NPE mid-loop
// (CodeRabbit, PR #48).
System.out.println(" FAIL unregistered native-independent suite " + name);
shapeCode = 1;
continue;
}
System.out.println();
System.out.println("=== " + name + " ===");
Checks shape = new Checks(name);
try {
suite.accept(shape);
} catch (Throwable t) {
// Same rule as the main loop: one suite blowing up must not silently
// prevent the next from running (CodeRabbit, PR #48).
System.out.println(" FAIL suite threw " + t);
t.printStackTrace(System.out);
shapeCode = 1;
continue;
}
int code = shape.report();
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
if (shapeCode == 0) {
shapeCode = code;
}
}
int skipCode = Checks.reportUnavailable("AllTests");
System.exit(shapeCode != 0 ? shapeCode : skipCode);
}
Expand Down
Loading