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
78 changes: 75 additions & 3 deletions .claude/board/ISSUES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,69 @@
# Issues Log — Open + Resolved (double-entry, append-only)

## ISS-LGJ-G11-FENCE-WAS-PROSE (2026-09-03) — RESOLVED same day

**The gate that the doctrine names, the source cites, and nothing built.**
Root `CLAUDE.md` § Enforcement listed "the G11 contract-import fence" beside
the reflective allowlist and the allocation gates as *structural, not
aspirational* enforcement. `Cargo.toml` said `src/` "may import ONLY
`lance_graph_contract::{class_view, canonical_node, ontology}`".
`class_view_provider.rs:73` referred to "the G11 contract-import fence's
concern". **No test existed.** The sentence was the fence.

**And the sentence was already false.** Three files import
`lance_graph_contract::facet::CascadeShape` — `class_view_provider.rs:65`,
`kernels.rs:35`, `rowstore.rs:506` — the lane-carving enum, a legitimate
member of the surface this crate consumes, imported without the allowlist
ever growing. Found while surveying the R2IL / `ogar-loco` seam: the
allowlist is about to grow by a vocabulary provider, and a list enforced by
nothing would have taken that growth silently too. The cognitive modules
(`kanban`, `mul`, `cognition`, `soa_view`, `scheduler`, …) compile
unconditionally in `lance-graph-contract`, so this list is the ONLY thing
between `lgj-abi` and the engine it must never depend on.

**Fixed:** `native/lgj-abi/tests/g11_contract_import_fence.rs` scans
`src/*.rs` for every `lance_graph_contract::<module>` reference (plain path,
brace group, doc-link) and rejects any module outside
`{canonical_node, class_view, facet, ontology}`, naming file and line. The
allowlist is widened in `CLAUDE.md` and `Cargo.toml` with the omission
struck in place, not deleted.

**Disable-verified, and the disable is the narrowest one that exists:** one
line, `use lance_graph_contract::kanban::KanbanMove;`, appended to
`fixture.rs` → red at `fixture.rs:298` naming `kanban`; `git checkout` →
green. Nothing wider had to be removed to turn it red, so the fence catches
exactly the regression it names (the #60 rule: *"if it has to be widened to
go red, the widening IS the finding"* — here it did not). Anti-vacuity is
asserted in the test itself: ≥5 files scanned, ≥3 referencing the contract,
and the two known-live modules (`class_view`, `facet`) actually seen — a
scanner pointed at an empty or wrong directory cannot pass.

**The pattern, thirteenth instance.** `ISS-LGJ-SECOND-VERDICT-BESIDE-THE-FIRST`:
the doctrine verified that the allowlist was *stated*; nobody verified it
was *enforced*, and the stated list had drifted from the code beside it.
Ledger row added below.

**And a fourteenth, inside the fix, found by Codex on #63 before merge.** The
first fence disable-tested ONE path (a direct `kanban` import in a top-level
file) and reported the fence real. Three bypasses stood beside it: (1) the
scan used `read_dir` and skipped directories, so a forbidden import in a
nested module dir passed; (2) `use lance_graph_contract as c; use c::kanban::…`
never has `::` after the crate name, so the literal search saw nothing; (3)
`use lance_graph_contract::*;` — not named by Codex, found while fixing (2) —
continues with no identifier, so the scanner yielded nothing and the anti-
vacuity arms stayed satisfied by the other files. Plus the P2: the test
carried its own copy of the allowlist and never read the two documented ones,
so the "same commit" promise was a promise, not a check. **The #62 rule
verbatim: a disable proves the path it walks and no other.** Fixed in the same
PR: recursive walk; any `lance_graph_contract` not followed by `::` is itself a
violation (an alias IS the bypass); a non-identifier continuation (`*`, `self`)
is a violation; and `g11_documented_allowlists_equal_the_enforced_one` parses
the `CLAUDE.md` and `Cargo.toml` lists and requires both to equal `ALLOWED`.
**Six disables, each on its own path, each red-then-green:** direct import,
nested-dir import, alias, glob, `CLAUDE.md` list edited, `Cargo.toml` list
edited — the last two failing the doc test and NOT the scan test, so the two
arms are independent. Ledger row 14 below.

## ISS-LGJ-ORPHAN-MASK-CLOSE-LEAKED (2026-08-28) — RESOLVED same day (#57)

**A real leak, found behind a disagreement between two reviewers about a doc
Expand Down Expand Up @@ -305,6 +369,8 @@ path while **leaving a second, independent verdict standing beside it**:
| #58 (10th) | Q4's *conclusion*, made conditional | the *adjacent* sentence, still claiming close-after-cache is out of contract |
| #60 (11th) | fence 1b, built to catch a missing W1 block | a whole-file scan the block's own deletion could not turn red |
| #60→#62 (12th) | fence 1c, disable-tested against DELETION | a REWRITE keeping both phrases while gutting what they describe |
| G11 (13th) | the allowlist, *stated* in `CLAUDE.md` + `Cargo.toml` and cited by source | the allowlist *enforced* — no test existed, and the stated list was already missing `facet` |
| #63 (14th) | the fence, disable-tested on a direct top-level `kanban` import | nested dirs, crate aliases, `::*` globs, and the documented lists the test never read — three bypasses and a drift channel beside the one path walked |

**The tenth arrived inside the fix for the eighth's cousin, one hop sideways.**
Two reviewers made Q4's conclusion conditional; the qualification landed, and
Expand Down Expand Up @@ -821,7 +887,7 @@ half via render_classid decomposition), never by bounds-truncating the
full u32 — the fixture ignores the value, so behavior is unaffected
today.

## ISS-LGJ-FANOUT-UNREVIEWED (2026-08-17) — PARTIALLY RESOLVED
## ISS-LGJ-FANOUT-UNREVIEWED (2026-08-17) — RESOLVED 2026-09-03 (Lab half superseded by a board row)

**Resolution for the core (Rust ABI + Java facade), same day:** all three
closing conditions this entry names ran for real. (1) D-LGJ-AUDIT ran, one
Expand Down Expand Up @@ -854,7 +920,9 @@ spawned agent, per `TECH_DEBT.md`'s cargo-hygiene entry — actually passes.
Closes when all three have run and their results are folded into
`LATEST_STATE.md`.

## ISS-LGJ-TARGET-DIR-SIZE-WATCH (2026-08-17) — OPEN
**RESOLVED 2026-09-03 — the open half is tracked elsewhere and a standalone issue duplicated it.** `bench/` has since produced source and been reviewed and gated through the #49–#62 arc (Component H, the R-series measurements, the JMH harness); `valhalla-lab/`'s three-truths measurements are cited in `CLAUDE.md` (R4/R10) and its production consequence is `D-LGJ-MMV-3` on `STATUS_BOARD.md`, *Queued (evidence-gated)*. What this entry still asked for — "the same audit + central-verification treatment" — is exactly that D-row's gate. Two trackers for one obligation is the shape the one-writer rule exists to prevent; the board row is the survivor.

## ISS-LGJ-TARGET-DIR-SIZE-WATCH (2026-08-17) — RESOLVED 2026-09-03 (watch expired)

`/home/user/ndarray/target` measured 2.7 GB and
`/home/user/lance-graph-java/target` measured 602 MB partway through the
Expand All @@ -866,7 +934,9 @@ at last check, 22G free) before any further large parallel work is
dispatched. Not urgent at last measurement; filed so it's watched rather
than rediscovered as a surprise "no space left on device" failure.

## ISS-LGJ-DEV-BRANCH-STILL-UNCOMMITTED (2026-08-17) — OPEN
**RESOLVED 2026-09-03 — the condition it watched no longer exists.** Agents have not been permitted to run cargo since `agent-cargo-hygiene.md` landed; every build in the #49–#62 arc ran orchestrator-side in the one shared `target/`, and no ENOSPC occurred. A watch with no trigger left is a stale row, not an open issue. If disk pressure returns it gets a NEW dated entry with the measurement that raised it.

## ISS-LGJ-DEV-BRANCH-STILL-UNCOMMITTED (2026-08-17) — RESOLVED same day (header regraded 2026-09-03)

`claude/lance-graph-java-panama-valhalla-sus9w8` (the designated dev
branch per the mission's cross-repo branch instructions) has zero commits
Expand All @@ -884,3 +954,5 @@ sequencing the audit first.
violation was fixed BEFORE this commit rather than after. First commit on
the dev branch lands in the same action as this board update, containing
already-audited, already-green code.

**Header regraded 2026-09-03.** The body's last paragraph already said *RESOLVED same day* on 2026-08-17; only the header still read OPEN, so every status grep since has counted a closed issue as open. Body untouched; header brought in line with it.
33 changes: 33 additions & 0 deletions .claude/board/PR_ARC_INVENTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,39 @@
> 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 #63 — G11 built: the fence the doctrine named and nothing enforced (opened 2026-09-03, head `5a25b60`)

- **Opened because a gate existed only as a sentence.** `CLAUDE.md` § Enforcement,
`Cargo.toml`, and `class_view_provider.rs:73` all cite "the G11 contract-import
fence" as structural enforcement. No test existed. Found while surveying the
R2IL / `ogar-loco` seam — the allowlist is about to grow by a vocabulary
provider, and a list enforced by nothing would have taken that silently too.
- **Added:** `native/lgj-abi/tests/g11_contract_import_fence.rs` — walks `src/` recursively
for every `lance_graph_contract` reference (plain / brace group / alias / glob /
doc-link), rejects any outside `{canonical_node, class_view, facet, ontology}`
by file:line. Anti-vacuity asserted in-test; scanner pinned separately.
- **Locked:** the allowlist has ONE spelling in two places (`ALLOWED` + the
`CLAUDE.md` paragraph), and the test keeps them together. `facet` added — it had
been live in three files with the list never growing. Old list struck, not deleted.
- **Disable:** one appended `use lance_graph_contract::kanban::KanbanMove;` →
red at `fixture.rs:298`; checkout → green. The narrowest disable that exists,
so the #60 widening rule was not triggered.
- **Board:** `ISS-LGJ-G11-FENCE-WAS-PROSE` (opened + resolved); ledger row 13;
`FANOUT-UNREVIEWED` / `TARGET-DIR-SIZE-WATCH` / `DEV-BRANCH-STILL-UNCOMMITTED`
closed by dated appended paragraphs.
- **Deferred:** the vocabulary-provider growth of the allowlist (`ogar_loco`) —
gated on W4 of `r2il-machine-semantic-contract-v1.md` and the OGAR custom-space
ruling, not on anything here.
- **Correction (2026-09-03, same PR, pre-merge — Codex P1×2 + P2):** the
first fence had three bypasses beside the one disabled path (nested module
dirs skipped; crate aliases invisible; `::*` globs yielded nothing) and never
read the documented lists it promised to track. All closed; six disables now,
each on its own path; the fourteenth ledger instance. The "narrowest disable"
claim above was true and insufficient — narrow on ONE path says nothing about
the others.
- **Confidence:** high on the fence (six paths red-then-green; doc lists parsed,
not copied); the three closures are supersession/expiry, not new evidence.

## PR #60 — W1+W2 built, and the fence that had to be fixed twice (merged 2026-08-28, `97f25c5` — 4 commits, head `c6d8a4c`)

- **Opened because a board entry hid two obligations behind two words.** #57's
Expand Down
17 changes: 15 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,24 @@ ranges, or descriptors.
committed G2 no-per-row-engine check (call sites, not javadoc
`{@link}`s), the allocation gates (`getThreadAllocatedBytes`,
population-size independent), and the G11 contract-import fence
(`native/lgj-abi` imports `lance_graph_contract::{class_view,
canonical_node, ontology}` ONLY — the cognitive modules compile
(`native/lgj-abi` imports `lance_graph_contract::{canonical_node,
class_view, facet, ontology}` ONLY — the cognitive modules compile
unconditionally; the fence is the only barrier). Spec §5 is the
canonical gate list.

> ⊘ **G11 was prose until 2026-09-03.** The sentence above WAS the fence:
> no test enforced the allowlist, `class_view_provider.rs` cited "the G11
> contract-import fence" as if one existed, and the list was already false —
> `facet::CascadeShape` (the lane-carving enum) had been imported in three
> files without the list growing. Struck: the three-module list. Now:
> `native/lgj-abi/tests/g11_contract_import_fence.rs` walks `src/` recursively and
> rejects any `lance_graph_contract::` module outside the four named,
> disable-verified red-then-green (`ISS-LGJ-G11-FENCE-WAS-PROSE`). The
> allowlist has ONE spelling in two places — the test's `ALLOWED` and this
> paragraph — and the test is what keeps them from drifting again. When the
> vocabulary provider lands (`ogar_loco::Vocabulary` beside `ClassView`,
> both resolved per classid), it grows here and there in the same commit.

## The compute model (inherited architecture — spec Part II)

Three axes, never collapsed: **EXECUTION** (empirical policy: Java
Expand Down
6 changes: 4 additions & 2 deletions native/lgj-abi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ ndarray = { path = "../../../ndarray", default-features = false, features = ["st
# The `ClassView`/`FieldMask` LAW `lgj_hop` consults — never the full
# lance-graph engine (root CLAUDE.md: the contract/engine split is
# deliberate blast-radius containment, not semantic optionality). This
# crate's `src/` may import ONLY `lance_graph_contract::{class_view,
# canonical_node, ontology}` (the G11 contract-import fence) — the
# crate's `src/` may import ONLY `lance_graph_contract::{canonical_node,
# class_view, facet, ontology}` (the G11 contract-import fence, enforced by
# `tests/g11_contract_import_fence.rs` — until 2026-09-03 this comment was
# the whole fence and it already omitted `facet`) — the
# cognitive modules (kanban, mul, cognition, soa_view, scheduler, …)
# compile UNCONDITIONALLY regardless of feature flags, so the fence, not
# `default-features`, is the only barrier keeping that prohibition real.
Expand Down
Loading