|
| 1 | +# Agent W2 Scratchpad — Sprint-10 Specs Patch (CSV Prep) |
| 2 | + |
| 3 | +**Date:** 2026-05-16 |
| 4 | +**Branch:** `claude/sprint-10-specs-patch-csv-prep` |
| 5 | +**Target spec:** `.claude/specs/pr-ce64-mb-2-causaledge64-v2.md` |
| 6 | +**Plan anchor:** `.claude/plans/cognitive-substrate-convergence-v1.md` §5 (20 locked decisions), §6 (v2 bit layout), §12 (W2 patch row) |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +## Work Done |
| 11 | + |
| 12 | +Applied ~150 LOC delta to `pr-ce64-mb-2-causaledge64-v2.md` across 11 patch operations: |
| 13 | + |
| 14 | +### 1. OQ-LAYOUT-1 RESOLVED everywhere |
| 15 | + |
| 16 | +- **§0 header callout** (already present in prior partial patch): confirms Option F ratified |
| 17 | +- **§11 Open Questions**: replaced old `OQ-LAYOUT-1 (BLOCKER)` text with `OQ-LAYOUT-1 (RESOLVED 2026-05-16)` citing plan §6, L-2, L-3, L-4, L-6, L-7 |
| 18 | +- **§10 Risk Matrix**: replaced stale "Option C not ratified / MED likelihood" row with "Option F resolved / RESOLVED" row |
| 19 | +- **§12 DELTA item 1**: updated to describe Option F rather than Option C |
| 20 | +- **§12 DELTA item 8** (new): explicit note that Counterfactual = causal_mask, NOT a separate bit |
| 21 | + |
| 22 | +### 2. §"Signed Mantissa Rationale" added (~50 lines, inserted before §3) |
| 23 | + |
| 24 | +- **Why sign = direction**: full table showing |mantissa| → rule name in +/− directions |
| 25 | +- **8 base slots**: Identity(0), Deduction(1), Induction(2), Exemplification(3), Revision+(4), Synthesis(5), Reserved5/6 (absorbs PR-LL-1 Intervention/Counterfactual), Extension(7) |
| 26 | +- **PR-LL-1 absorption**: `+6` = Intervention, `−6` = Counterfactual — zero new bits needed |
| 27 | +- **Three SIMD wins**: Win1 signum/abs free (arithmetic-right-shift), Win2 palette×mantissa stays i4/i8 family, Win3 8ch→SPO transcode is near-bitcast via `net_strength.signum()` |
| 28 | + |
| 29 | +### 3. §"Counterfactual via causal_mask, NOT via separate bit" added (~20 lines, inserted before §3) |
| 30 | + |
| 31 | +- Full causal_mask 8-state table: 0b000..0b111 → Pearl rung 0..3 |
| 32 | +- 0b111 SPO = Pearl-3 Counterfactual by construction — no extra bit needed |
| 33 | +- Three arguments against a separate Pearl-3 modifier: redundant, inconsistent, wasteful |
| 34 | +- Orthogonality: causal_mask = WHICH rung; mantissa = WHICH rule AT that rung |
| 35 | +- Example: `causal_mask=0b111` + `mantissa=−6` = Pearl-3 counterfactual via PR-LL-1 Counterfactual rule |
| 36 | + |
| 37 | +### 4. §4 Accessor sketches updated (G-slot removed, signed mantissa added) |
| 38 | + |
| 39 | +- Removed: `g_slot()`, `with_g_slot()`, `set_g_slot()` and all G_SHIFT/BITS5_MASK/G_MASK references |
| 40 | +- Added: `inference_mantissa() -> i8`, `inference_direction() -> i8`, `inference_rule_index() -> u8` |
| 41 | +- Updated: `with_routing(w, t)` — no `g` parameter (G-slot absent per L-3) |
| 42 | +- Updated: v1 stub block to match |
| 43 | + |
| 44 | +### 5. Supporting sections cleaned up |
| 45 | + |
| 46 | +- **§5 feature flag comment**: replaced Option C reference with Option F description |
| 47 | +- **§6.1 PAL8 byte analysis**: removed G-slot row, updated bit positions to Option F layout |
| 48 | +- **§7 per-method semantics**: replaced g_slot section with w_slot + inference_mantissa sections |
| 49 | +- **§13 coordination notes**: W4/W6 notes updated to reflect no G-slot; meta-reviewer note updated |
| 50 | + |
| 51 | +--- |
| 52 | + |
| 53 | +## Key Design Decisions Captured |
| 54 | + |
| 55 | +| Decision | Location in plan | Location in spec | |
| 56 | +|---|---|---| |
| 57 | +| Drop temporal(12b) | L-2 | §2, §3 const V1_TEMPORAL_SHIFT | |
| 58 | +| Drop G-slot entirely | L-3 | §0, §1, §4 (removed), §12 item 1 | |
| 59 | +| 4b signed i4 mantissa | L-4 | §2, §3, §4, §"Signed Mantissa Rationale" | |
| 60 | +| causal_mask 0b111 IS Pearl-3 | L-5 | §"Counterfactual via causal_mask" | |
| 61 | +| W-slot 6b corpus handle | L-6 | §2, §3 W_SHIFT=53 | |
| 62 | +| Truth-band lens 2b | L-7 | §2, §3 TRUTH_SHIFT=59 | |
| 63 | +| Reserved5/6 absorb PR-LL-1 | L-9 | §"Signed Mantissa Rationale" PR-LL-1 absorption | |
| 64 | + |
| 65 | +--- |
| 66 | + |
| 67 | +## Files Modified |
| 68 | + |
| 69 | +- `/home/user/lance-graph/.claude/specs/pr-ce64-mb-2-causaledge64-v2.md` — 874 lines, 43671 chars (from ~712 lines) |
| 70 | + |
| 71 | +--- |
| 72 | + |
| 73 | +## No Commits, No Pushes, No Branch Switches |
| 74 | + |
| 75 | +Per task instructions: applied edits only, wrote scratchpad. Branch remains `claude/sprint-10-specs-patch-csv-prep`. |
0 commit comments