Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
546b17a
Core vertical slice: docs/abi.md contract, native/lgj-abi, Java facade
AdaWorldAPI Aug 17, 2026
a1e65cc
Merge main (bootstrap commit) into dev branch to establish shared his…
AdaWorldAPI Aug 17, 2026
bdd40b2
Valhalla lab: three-truths method, causal isolation, 3 real reproducers
AdaWorldAPI Aug 17, 2026
317ee83
Merge main (squash of PR #1) to fix history divergence for PR #2
AdaWorldAPI Aug 17, 2026
ea4753c
Merge main (squash of PR #2) to keep dev branch history aligned
AdaWorldAPI Aug 17, 2026
4ab0da8
Vector API bench: real JMH, cross-checked; the crossing does not alwa…
AdaWorldAPI Aug 17, 2026
96eccff
Merge main (squash of PR #3) to keep dev branch history aligned
AdaWorldAPI Aug 17, 2026
cd7782b
Phase I synthesis docs + fusion-sweep 256-row re-run + board hygiene
AdaWorldAPI Aug 17, 2026
ddeaecb
Merge main (squash of PR #4) to keep dev branch history aligned
AdaWorldAPI Aug 17, 2026
e4463cb
Board: PR #4 arc entry (post-merge)
AdaWorldAPI Aug 17, 2026
e8b6dc2
SoA row store: 512B rows, 32 facet lanes, ABI minor 2 (W1+W2)
AdaWorldAPI Aug 17, 2026
aff72f3
Merge main (squash of PR #5) to keep dev branch history aligned
AdaWorldAPI Aug 17, 2026
8fceaca
Board: PR #5 arc entry (post-merge)
AdaWorldAPI Aug 17, 2026
91e22f3
Knowledge: assess the archived layout-bridge discussion; name W6
AdaWorldAPI Aug 17, 2026
6927961
Plans: OGAR Machine (exploratory) + lance-graph-hydrate dependency note
AdaWorldAPI Aug 17, 2026
7e218ed
Merge main (squash of PR #6) to keep dev branch history aligned
AdaWorldAPI Aug 17, 2026
9cc85ad
Board: PR #6 arc entry (post-merge)
AdaWorldAPI Aug 17, 2026
f3bbab7
Waves calcified: dispatch maps for every plan; Ghidra plan from real …
AdaWorldAPI Aug 17, 2026
dac0f0b
Merge main (squash of PR #7) to keep dev branch history aligned
AdaWorldAPI Aug 17, 2026
57a7e48
Board: PR #7 arc entry (post-merge)
AdaWorldAPI Aug 17, 2026
83b8994
Plan: lance-graph #958 merged (was open at last check)
AdaWorldAPI Aug 17, 2026
572f865
Java RowStore facade: W3 shipped (185/185, one bug found+fixed)
AdaWorldAPI Aug 17, 2026
b138382
Merge main (squash of PR #8) to keep dev branch history aligned
AdaWorldAPI Aug 17, 2026
bc6f91a
Board: PR #8 arc entry (post-merge)
AdaWorldAPI Aug 17, 2026
619b3de
Plan: r2sleigh recorded as third lift path + decompiler candidate
AdaWorldAPI Aug 17, 2026
84e73ca
Bench Component F: the boundary re-asked on the real row-store layout…
AdaWorldAPI Aug 17, 2026
897fd92
Merge main (squash of PR #9) to keep dev branch history aligned
AdaWorldAPI Aug 17, 2026
201a626
Board: PR #9 arc entry (post-merge)
AdaWorldAPI Aug 17, 2026
ed4fb7c
Parity: the third independent read path (ROW_LAYOUT segment reads)
AdaWorldAPI Aug 17, 2026
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
21 changes: 21 additions & 0 deletions .claude/board/PR_ARC_INVENTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@
> 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 #9 — bench Component F: the boundary on the real layout (merged 2026-08-17, squash `b28bd34`)

- **Added:** `F_RowStoreFacetScan` + `RowStoreData` + two `Kernels`
facet-match arms (Java mirrors of the Rust chunk algorithm,
line-for-line traceable); `summarise.sh` F-table generator (old "E/F"
section retitled "E" — real naming collision); `RESULTS.md` §F;
`execution-boundary.md` re-measured paragraph; `RowStore.handle()`
(package-private, bench bridge only); the r2sleigh plan addendum
(lift candidate C + decompiler candidate, `libsla-sys` FFI fact pinned).
- **Locked:** the W4 finding — Component C's direction survives on the
512-byte-row layout, its margin collapses: Vector API wins the 32-facet
strided scan 2.51×/1.92×/1.14× (4K/65K/1M rows) vs C's 56×; all arms
converge on memory bandwidth at 512 MiB. Cross-check-before-timing held
at every row count. Native arm's per-call allocation asymmetry
disclosed; `facetMatchesInto` named as follow-up.
- **Deferred:** consumer waves (operator-gated shelf); W6 (named).
- **Docs:** RESULTS/TABLES regenerated mechanically from the merged CSV.
- **Confidence:** High — real JMH, 9/9 combos, cross-checks green, main
suite re-verified 185/185 against the fresh minor-2 `.so`. Bot
reviewers at usage limits, did not run.

## PR #8 — Java RowStore facade: W3 shipped (merged 2026-08-17, squash `320808d`)

- **Added:** `RowStore`/`FacetMatchView`/`FacetId`/`NativeResource` public
Expand Down
12 changes: 12 additions & 0 deletions .claude/plans/ghidra-integration-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ tree, not the README alone:
pushing or PRs against r2sleigh require re-attaching with push access.
Any fix we need upstream goes through the operator first.

## HANDOFF BOUNDARY (operator, 2026-08-17) — r2sleigh/ruff arrives from ANOTHER session

> *"we will hand you via another session a proper integration of r2sleigh
> and ruff after the other session implements R2IL."*

Consequence: **this session does not build toward r2sleigh, ruff, or R2IL.**
The G0 addendum above stays as recorded context; lift-candidate C and the
r2dec decompiler direction are FROZEN until that handoff lands. When it
does, the receiving session should reconcile the handoff against this
plan's G-waves (they may supersede G1's lift-path decision entirely) rather
than running both designs in parallel.

## The integration shape — two roles, both offline

```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,44 @@ public static void run(Checks c) {
c.throwsUp("FacetId(32) is rejected", IllegalArgumentException.class, () -> new FacetId(32));
c.eq("FacetId(0) is accepted", 0, new FacetId(0).index());
c.eq("FacetId(31) is accepted", 31, new FacetId(31).index());

// The THIRD independent read path (the wave file's original spec item, closing the gap
// the W3 dispatch honestly flagged as dropped): Java reads every classid DIRECTLY from
// the raw lane-0 segment, addressing it through ROW_LAYOUT's own byteOffset arithmetic —
// no native kernel, no mask, no FacetMatchView anywhere on this path. Three ways now
// reach the same numbers: the native kernels (sections above), the pure-Java generator
// transcription, and the structured-layout segment read below. This is also
// Layouts.ROW_LAYOUT's first real consumer — before this section its byteOffset
// arithmetic was defined, size-checked at class-init, and read by nothing.
c.section("raw lane-0 segment reads through ROW_LAYOUT offsets vs the generator");
try (RowStore store = RowStore.open(n1000, seed)) {
com.adaworldapi.lancegraph.internal.ffm.Engine.LaneWindow win =
com.adaworldapi.lancegraph.internal.ffm.Engine.describeLane(store.handle(), 0);
// The raw lane's own description first: contiguous U8, exactly n*512 bytes — the
// exact-span rule for a contiguous lane (abi.md §11).
c.eq("raw lane byte length is n_rows * 512", (long) n1000 * 512L, win.byteLength());
c.that("raw lane reports contiguous", win.isContiguous());

java.lang.foreign.MemorySegment raw = win.segment();
long rowBytes = com.adaworldapi.lancegraph.internal.ffm.Layouts.ROW_LAYOUT.byteSize();
int layoutMismatches = 0;
for (int row = 0; row < n1000; row++) {
for (int facet = 0; facet < FACETS_PER_ROW; facet++) {
// The offset comes from the LAYOUT, not from hand-multiplied constants —
// that is the point: this section proves ROW_LAYOUT's carving agrees with
// the generator, not merely that 16*facet does.
long off = com.adaworldapi.lancegraph.internal.ffm.Layouts.ROW_LAYOUT.byteOffset(
java.lang.foreign.MemoryLayout.PathElement.sequenceElement(facet),
java.lang.foreign.MemoryLayout.PathElement.groupElement("classid"));
int got = raw.get(java.lang.foreign.ValueLayout.JAVA_INT_UNALIGNED,
(long) row * rowBytes + off);
if (got != classids1000[row][facet]) {
layoutMismatches++;
}
}
}
c.eq("all " + (n1000 * FACETS_PER_ROW) + " classids read through ROW_LAYOUT match the"
+ " transcribed generator", 0, layoutMismatches);
}
}
}