From a3f9c1ab67b8788c503dee2eed4b91ea19e6f0d7 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 13 Oct 2026 05:33:13 +0000 Subject: [PATCH 1/2] board: PR arc and latest state for #1505-#1524 Eleven PRs merged on 2026-10-12/13 without PR_ARC_INVENTORY or LATEST_STATE entries: #1505, #1506, #1507, #1508, #1509, #1514, #1516, #1518, #1520, #1523, #1524. Each gets its arc entry, with the seven whose code #1524 moved to backup marked WITHDRAWN. LATEST_STATE gets one section for what is live on main, what was withdrawn, and what is open (#1525, #1526). Hygiene only: per the termination clause this PR gets no arc entry itself. append_only_gate passes; entries index unchanged and current. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh --- .claude/board/LATEST_STATE.md | 8 ++++ .claude/board/PR_ARC_INVENTORY.md | 66 +++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/.claude/board/LATEST_STATE.md b/.claude/board/LATEST_STATE.md index 1ba14d802..60a134765 100644 --- a/.claude/board/LATEST_STATE.md +++ b/.claude/board/LATEST_STATE.md @@ -1,3 +1,11 @@ +## 2026-10-13 — main after #1505, #1506, #1507–#1509, #1514, #1516, #1518, #1520, #1523, #1524 (merged); #1525, #1526 open + +- **On `main`, live:** `.cargo/config.toml` defaults to `-Ctarget-cpu=native` with `config-v3.toml` as the portable baseline and `debug = 0` everywhere (#1505); `compute_dag_kahn` checks all 256 field positions (#1506); R2IL `MIN`/`MAX` lowering onto mask-risc (#1518, the part outside glove-parity). +- **Merged then withdrawn by #1524 (D-CMR-RESET):** the class-method layer of `lance-graph-glove-parity` (`method`, `call`, `decl`, `gremlin`, `awareness`; #1507, #1508, #1509, #1514, #1516, #1518, #1520). Prior state: `backup/session-011BMJ-2026-10-12`. Inventory: entry `2026-10-12-session-reset-inventory.md`. +- **Docs only:** SAG capstone (#1523): `ProposedMethod`, four-state status; not built. +- **Open:** #1525 D-NALP W1/W2 (`lance-graph-nal`: NodeGuid-keyed beliefs, byte apertures, `Question`/`TruthAtLeast`/`Choice` over compiled mask-risc programs; mask-risc `CompiledProgram`). #1526 CI: the native default plus `rust-cache` reused AVX-512 artifacts on runners without it (SIGILL in `dir-sim log in Lance`); fix spells `native` out as the runner's feature list and keys the cache to it. +- **Rules carried from this session (operator):** classid-dependent methods go through the existing `hotplug.rs` plug-and-play; NAL/NARS operations are global core methods (no classid check, no plug, no `BeliefClass`); internal pins are forbidden (the v3 pins in the Dockerfiles and wheel build are an open decision). + ## 2026-10-12 — dir-sim membership path witness + role evidence on branch `ccr-0455e606-wmtsor` (unmerged) - `lance-graph-dir-sim` (additive): `View::membership_path` / `membership_path_through` return a `MembershipPath` (the user, then each group on one chain of direct memberships). The upward walk is now breadth first and records where each group was reached from; the reached set is unchanged. Witness = shortest chain, lowest ordinal among equals. diff --git a/.claude/board/PR_ARC_INVENTORY.md b/.claude/board/PR_ARC_INVENTORY.md index e5871d953..e14ed3479 100644 --- a/.claude/board/PR_ARC_INVENTORY.md +++ b/.claude/board/PR_ARC_INVENTORY.md @@ -1,3 +1,69 @@ +## 2026-10-13 — lance-graph PR #1523 (merged `8884173`, branch `ccr-9f3b8075-74u47l-capstone`, head `11b61ba`, 53 commits) — D-SAG-CAP-1: SAG capstone alignment of #1510, #1511, #1512, #1513, #1515, #1517 + +- **Added:** the six parallel SAG research PRs merged and aligned in `.claude/plans/sag-capstone-alignment-v1.md`; docs plus #1517's Python oracle, no Rust. One name, `ProposedMethod` (Rewrite shape on `awareness::Candidate`, Action shape on `EffectClass::Propose`), replacing five per-PR names; #1511's probe choice renamed `SchedulerDecision`; one four-state status (Witnessed / Refuted / Undetermined / Conflicted). +- **Locked:** Ruff is a source-structure oracle, never a semantic-equivalence oracle; ONA pin `dc4efd0`; execution classes are the shipped `EffectClass` names; receipts are content-addressed, not signed. +- **Deferred / open:** `ProposedMethod` and the four-state status are not built (SAG Step 4); #1517's oracle tests F0, F7, F8 are vacuous or missing ("claimed, unverified"). Note: merged after #1524, so the `awareness` code the capstone anchors on is in backup, not on `main`. +- **Confidence:** documentation only; index regeneration `--check` passes. + +## 2026-10-12 — lance-graph PR #1524 (merged `ecb9d9a`, branch `ccr-9f3b8075-74u47l-reset`, head `9cfdf2a`, 1 commit) — D-CMR-RESET: class-method layer moved to backup + +- **Added:** entry `2026-10-12-session-reset-inventory.md` (everything removed and kept, with reasons). Removed from `lance-graph-glove-parity`: modules `method`, `call`, `decl`, `gremlin`, `awareness`, ten test files, two fixtures, four examples (−10,716 lines). Kept: D-XGP `basis.rs`, `tests/authority.rs`, `tests/canonical_front.rs`. +- **Locked:** the layer was a second algebra beside the folds (fresh `Filter::cmp` scratch per call, no `Compiled`/`lower_fused`/resident planes) and slower than a row loop: `billable_hours` 430–480 µs vs 283 µs (1,048,576 rows, AVX-512, release). Hops were foreign-key reads; the graph has no foreign keys. +- **Deferred / open:** the rebuild over the folds (first wave: D-NALP, #1525). Prior state on `backup/session-011BMJ-2026-10-12`; #1519, #1521, #1522 backed up as `-sagfix`, `-hops`, `-chain2`. +- **Confidence:** high for the removal; supersedes the code of #1507, #1508, #1509, #1514, #1516, #1518, #1520. + +## 2026-10-12 — lance-graph PR #1520 (merged `8ae5bce`, branch `ccr-9f3b8075-74u47l-mn`, head `ef27527`, 6 commits) — D-CMH-G1-4b: edge table as the anchor, distinct targets of a hop + +- **Added:** an M:N relation as its own concept with a functional relation to each end; `Fold::Distinct { rel }` lowered to the liveness test plus `COUNT(DISTINCT key)` via `Terminal::CountKeyRunsU32`; a key lane out of order refused with `LaneNotOrdered`. +- **Locked:** bag vs set counts equal a row oracle; second hop, `V(parent).in(rel)` and `bothE` refused by name. +- **Deferred / open:** chained hops. +- **Confidence:** WITHDRAWN by #1524 (code in backup). + +## 2026-10-12 — lance-graph PR #1518 (merged `bf06ba1`, branch `ccr-9f3b8075-74u47l-ord`, head `ead959d`, 4 commits) — D-CMH-G1-6: ordered I32 conditions and MIN/MAX as method steps + +- **Added:** `Cond::Order` lowered to `Cmp::{Lt,Le,Gt,Ge}I32` (Quack) and `procs::and_cmp_i32` (R2IL); `Fold::Min`/`Max`; R2IL `MIN`/`MAX` wired onto mask-risc `MaskedMinI32`/`MaskedMaxI32` (no new opcode); empty selection answers `Extremum(None)`. +- **Locked:** both frontends equal a row loop at n ∈ {1, 64, 65, 4097} and five thresholds; eight disable runs each red on its own test. +- **Confidence:** the method-layer part is WITHDRAWN by #1524. The `lance-graph-r2il` `MIN`/`MAX` lowering survives on `main` (`tests/procs.rs::min_max_match_the_reference` present after the reset). + +## 2026-10-12 — lance-graph PR #1516 (merged `c1ce262`, branch `ccr-9f3b8075-74u47l-rel2`, head `d746905`, 2 commits) — #1514 follow-up: refuse two populations of one relation target concept + +- **Added:** `PrepareError::ConflictingUniverse(concept)` with a silence twin; carried the Codex finding that missed #1514's merge. +- **Confidence:** WITHDRAWN by #1524 (code in backup). + +## 2026-10-12 — lance-graph PR #1514 (merged `10325b3`, branch `ccr-9f3b8075-74u47l-rel`, head `4f73869`, 3 commits) — D-CMH-G1-4a: functional relation carrier, `out(rel)` as a method + +- **Added:** relations on a method `Glove`; `out(rel)` → `Filter::Semijoin`, `out(rel).has` → `Filter::EqU32Via`; second hop, values/dedup/where through a relation and fan-out refused by name. +- **Confidence:** WITHDRAWN by #1524: a hop as a foreign-key read is the design the reset rejected. + +## 2026-10-12 — lance-graph PR #1509 (merged `42fa2a3`, branch `ccr-9f3b8075-74u47l-sag`, head `b3e3b3a`, 8 commits) — D-SAG-1: software-awareness graph + +- **Added:** the methods of #1504's `BillableWorkEntry` projected into typed rows from the `MethodTable`; questions over them as Quack `Draft`s on mask-risc; candidate H1 with a measured cost gap; plan `software-awareness-graph-v1.md`. +- **Locked:** one concept, one hop; no new opcode, Quack variant, engine or registry; nothing applies a transformation. +- **Confidence:** code WITHDRAWN by #1524; the plan and the SAG research line (#1510–#1517, capstone #1523) remain. + +## 2026-10-12 — lance-graph PR #1508 (merged `5217049`, branch `ccr-9f3b8075-74u47l-gremlin`, head `772bb8e`, 9 commits) — D-CMH-G1: Gremlin steps as composable ClassId methods + +- **Added:** `billable_hours` calling the separately declared predicate `is_billable`, as text loaded at run time; lowering equals the direct Quack `Program`; answers equal a row oracle on Quack and R2IL at n ∈ {1, 64, 65, 4097}. +- **Confidence:** WITHDRAWN by #1524 (second algebra, slower than a row loop). + +## 2026-10-12 — lance-graph PR #1507 (merged `b77d43a`, branch `ccr-9f3b8075-74u47l-decl`, head `5ace57f`, 5 commits) — D-CMH-1 step 2: class method declarations loaded at run time + +- **Added:** `decl.rs` (`parse_decls`, `MethodTable::prepare_with`), lifetimes on `Cond`/`Fold`/`Law`/`MethodBody`/`MethodSpec`. +- **Confidence:** WITHDRAWN by #1524. + +## 2026-10-12 — lance-graph PR #1506 (merged `3c54c1f`, branch `ccr-9f3b8075-74u47l-dag256`, head `b4369f3`, 3 commits) — fix(contract): compute-DAG gate reads all 256 field positions + +- **Added:** `compute_dag_kahn`, one Kahn pass over four 64-bit words shared by `compute_dag_is_acyclic` and `compute_dag_topo_order` (`lance-graph-contract/src/class_view.rs`). +- **Locked (test-pinned, red on the 64-bit code):** cycles crossing 63/64 and entirely above 63 are rejected; a 255-target chain through every `u8` position is ordered; both functions agree. Replaces the test that pinned the skip. +- **Confidence:** high; on `main`, unaffected by #1524. + +## 2026-10-12 — lance-graph PR #1505 (merged `c8686a0`, branch `ccr-9f3b8075-74u47l-native-default`, head `12cdfde`, 2 commits) — build: native target-cpu by default, debug 0 everywhere + +- **Added:** `.cargo/config.toml` defaults to `-Ctarget-cpu=native`; new `.cargo/config-v3.toml` (portable AVX2); `[profile.dev]`/`[profile.test]` `debug = 0` for every build under the tree, including the 19 standalone workspaces. +- **Locked:** measured on `lance-graph-glove-parity`: before `-C debuginfo=2 -C target-cpu=x86-64-v3`, after `-C target-cpu=native` and no debuginfo. +- **Deferred / open:** (1) the native default plus `rust-cache` reused AVX-512 artifacts on runners without it and turned `dir-sim log in Lance` red with SIGILL; fixed in #1526 (open). (2) The Dockerfiles and the wheel build pin x86_64 to v3; whether those internal pins stay is an open operator decision. +- **Confidence:** high for the flags; the CI regression is the caveat above. + ## 2026-10-09 — lance-graph PR #1432 (merged `d29d0aa`, branch `ccr-edc85bd9-89tiwe`, head `669fc42`, 7 commits) — D-SCF-CARE-PAIR-0: crossing counterfactuals, pairwise nogoods, folded chain relations - **Added:** `cognitive-shader-driver/examples/crossword_crossing_care_probe.rs` (`test = true`; 10 tests) over the unchanged `shared/crossword_core.rs`: letter support, single- and two-crossing counterfactuals, pairwise nogoods, existential elimination of internal slots into a canonical reusable 31×31 count relation. From 0e2381b3ddfb2887e1f7bb18dd12f21614815e29 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 13 Oct 2026 05:35:18 +0000 Subject: [PATCH 2/2] board: arc entry for #1526; LATEST_STATE records it as merged Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh --- .claude/board/LATEST_STATE.md | 5 +++-- .claude/board/PR_ARC_INVENTORY.md | 9 ++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.claude/board/LATEST_STATE.md b/.claude/board/LATEST_STATE.md index 60a134765..82210ed6e 100644 --- a/.claude/board/LATEST_STATE.md +++ b/.claude/board/LATEST_STATE.md @@ -1,9 +1,10 @@ -## 2026-10-13 — main after #1505, #1506, #1507–#1509, #1514, #1516, #1518, #1520, #1523, #1524 (merged); #1525, #1526 open +## 2026-10-13 — main after #1505, #1506, #1507–#1509, #1514, #1516, #1518, #1520, #1523, #1524, #1526 (merged); #1525 open - **On `main`, live:** `.cargo/config.toml` defaults to `-Ctarget-cpu=native` with `config-v3.toml` as the portable baseline and `debug = 0` everywhere (#1505); `compute_dag_kahn` checks all 256 field positions (#1506); R2IL `MIN`/`MAX` lowering onto mask-risc (#1518, the part outside glove-parity). - **Merged then withdrawn by #1524 (D-CMR-RESET):** the class-method layer of `lance-graph-glove-parity` (`method`, `call`, `decl`, `gremlin`, `awareness`; #1507, #1508, #1509, #1514, #1516, #1518, #1520). Prior state: `backup/session-011BMJ-2026-10-12`. Inventory: entry `2026-10-12-session-reset-inventory.md`. - **Docs only:** SAG capstone (#1523): `ProposedMethod`, four-state status; not built. -- **Open:** #1525 D-NALP W1/W2 (`lance-graph-nal`: NodeGuid-keyed beliefs, byte apertures, `Question`/`TruthAtLeast`/`Choice` over compiled mask-risc programs; mask-risc `CompiledProgram`). #1526 CI: the native default plus `rust-cache` reused AVX-512 artifacts on runners without it (SIGILL in `dir-sim log in Lance`); fix spells `native` out as the runner's feature list and keys the cache to it. +- **Open:** #1525 D-NALP W1/W2 (`lance-graph-nal`: NodeGuid-keyed beliefs, byte apertures, `Question`/`TruthAtLeast`/`Choice` over compiled mask-risc programs; mask-risc `CompiledProgram`). +- **CI (#1526, merged `abc0a1f`):** the native default plus `rust-cache` reused AVX-512 artifacts on runners without them (SIGILL in `dir-sim log in Lance`). `native` is now written out as each runner's exact feature list, and the cache is keyed to it. - **Rules carried from this session (operator):** classid-dependent methods go through the existing `hotplug.rs` plug-and-play; NAL/NARS operations are global core methods (no classid check, no plug, no `BeliefClass`); internal pins are forbidden (the v3 pins in the Dockerfiles and wheel build are an open decision). ## 2026-10-12 — dir-sim membership path witness + role evidence on branch `ccr-0455e606-wmtsor` (unmerged) diff --git a/.claude/board/PR_ARC_INVENTORY.md b/.claude/board/PR_ARC_INVENTORY.md index e14ed3479..3fcf4e89f 100644 --- a/.claude/board/PR_ARC_INVENTORY.md +++ b/.claude/board/PR_ARC_INVENTORY.md @@ -1,3 +1,10 @@ +## 2026-10-13 — lance-graph PR #1526 (merged `abc0a1f`, branch `ccr-9f3b8075-74u47l-cpukey`, head `8342c9f`, 4 commits) — CI: spell target-cpu=native out per runner and key the cache to it + +- **Added:** `.github/scripts/resolve-native-rustflags.sh`: prints `-Ctarget-feature=` with the runner's exact native feature list and no CPU name, and fails unless `rustc --print cfg` under those flags equals native; `--cpu` prints the name for logs. `dir-sim-persist.yml` and `identity.yml` set `RUSTFLAGS` from it before each of their three rust-cache steps, key the cache on its hash, and write the CPU to the job summary. +- **Locked:** a named `-Ctarget-cpu` enables its model defaults and a `+feature` list cannot remove them (`-Ctarget-cpu=skylake-avx512 -Ctarget-feature=+sse2` still reports `avx512f`; codex P1). Disable run: the CPU name put back makes the self-check fail and list the 16 extra features. On runners, one run got two different feature lists (`avx512bf16` on one job, absent on two): the heterogeneity behind the SIGILL, now separate flags and caches. +- **Deferred / open:** cache hit rate and build time across CPU types are not measured yet (first runs were all cold); features stable rustc hides (amx, avx10) are never enabled. Companion: AdaWorldAPI/ndarray#360 warns at build time about enabled features `cpu_guard` has no row for. +- **Confidence:** high for correctness; the cache cost is unmeasured. + ## 2026-10-13 — lance-graph PR #1523 (merged `8884173`, branch `ccr-9f3b8075-74u47l-capstone`, head `11b61ba`, 53 commits) — D-SAG-CAP-1: SAG capstone alignment of #1510, #1511, #1512, #1513, #1515, #1517 - **Added:** the six parallel SAG research PRs merged and aligned in `.claude/plans/sag-capstone-alignment-v1.md`; docs plus #1517's Python oracle, no Rust. One name, `ProposedMethod` (Rewrite shape on `awareness::Candidate`, Action shape on `EffectClass::Propose`), replacing five per-PR names; #1511's probe choice renamed `SchedulerDecision`; one four-state status (Witnessed / Refuted / Undetermined / Conflicted). @@ -61,7 +68,7 @@ - **Added:** `.cargo/config.toml` defaults to `-Ctarget-cpu=native`; new `.cargo/config-v3.toml` (portable AVX2); `[profile.dev]`/`[profile.test]` `debug = 0` for every build under the tree, including the 19 standalone workspaces. - **Locked:** measured on `lance-graph-glove-parity`: before `-C debuginfo=2 -C target-cpu=x86-64-v3`, after `-C target-cpu=native` and no debuginfo. -- **Deferred / open:** (1) the native default plus `rust-cache` reused AVX-512 artifacts on runners without it and turned `dir-sim log in Lance` red with SIGILL; fixed in #1526 (open). (2) The Dockerfiles and the wheel build pin x86_64 to v3; whether those internal pins stay is an open operator decision. +- **Deferred / open:** (1) the native default plus `rust-cache` reused AVX-512 artifacts on runners without it and turned `dir-sim log in Lance` red with SIGILL; fixed in #1526 (merged `abc0a1f`). (2) The Dockerfiles and the wheel build pin x86_64 to v3; whether those internal pins stay is an open operator decision. - **Confidence:** high for the flags; the CI regression is the caveat above. ## 2026-10-09 — lance-graph PR #1432 (merged `d29d0aa`, branch `ccr-edc85bd9-89tiwe`, head `669fc42`, 7 commits) — D-SCF-CARE-PAIR-0: crossing counterfactuals, pairwise nogoods, folded chain relations