Commit 484bbb8
committed
docs(codec): cross-stack mapping + integration plan + debt inventory
Lands `.claude/knowledge/pr-x12-codec-cognitive-substrate-mapping.md`
(~576 lines) as the survives-compaction companion to the as-shipped
`pr-x12-codec-x265-design.md`. Generalises the codec spec across the
four industries it implicitly unifies (HEVC video, Gaussian splat,
cognitive shaders / sparse attention, gradient compression for LLM
training).
# Why this doc
Triggered by the PR #195 review session. PR-X12's mode taxonomy
(Skip/Merge/Delta/Escape) shows up under different names in four
disconnected research communities; each treats its own corner as
the central knob (HEVC RDO, ZeRO buckets, splat sparsity reg,
attention pruning). Without explicit naming of the unification,
future agents will rediscover each corner independently and
reimplement what the codec already provides.
# Structure (citable by section number)
- §0 — the big claim (PR-X12 is the gradient-quantisation substrate
GenAI training has been missing for two years)
- §1 — four-axis mapping table (x265 / splat / cognitive / gradient)
- §2-§7 — deep mappings (mode taxonomy, CTU quad-tree, palette/basin
codebook, transform basis, rANS, λ-RDO)
- §8 — 15 numbered epiphanies (E-1..E-15)
- §9 — 7 holy grail claims (H-1..H-7)
- §10 — integration plan per sub-card (A4/A6/A7/A8) + 3 new PRs
(splat, cognitive, gradient consumers)
- §11 — exploration paths ranked by confidence (15 entries)
- §12 — technical debt inventory (23 items T-1..T-23 across codec,
ndarray substrate, lance-graph cognitive, cross-repo, PR #195)
- §13 — 6 blasgraph/MKL synergies the HEVC team couldn't reach in
2013 (block-matched ME, batched DCT, partition tree as tropical-
GEMM, CABAC replacement, learned deblocking, k-means at frame rate)
- §14 — cross-references (design docs, rules, code paths)
- §15 — how to use this doc (read order per use case)
# Holy grail claims (load-bearing, citable)
- H-1: PR-X12 + cam_pq is the HEVC SCC codec 2013 hardware couldn't
build (4096-entry codebook at 60 fps)
- H-2: The transform IS the optimiser (DCT-II ↔ Adam ↔ KFAC ↔
learned conv all share `Δ' = B·Δ`) — most underrated mapping
- H-3: CTU quad-tree is the universal hierarchical-attention
substrate (Mistral sliding window is depth-3 leaf processing)
- H-4: rANS + k-means achieves Shannon-optimal lossless gradient
compression (every published scheme is a special case)
- H-5: PR-X12 generalises ZeRO (Merge captures parameter sharing
that ZeRO's 3-bucket scheme can't)
- H-6: 64×64 CTU is the right unit for both 4K video and 7B LLMs
- H-7: The codec is the substrate; everything else is a renaming
# Technical debt (23 items)
Severity gradient P0/P1/P2/P3. Notable open items:
- T-1, T-2: PR #195 CodeRabbit findings (BASIN_NONE collision +
unwrap_or non-bijection) — actionable today
- T-10..T-15: ndarray substrate (HPC graduation incomplete, no
`Transform` trait yet, NEON tile-GEMM stub)
- T-20..T-23: cross-repo coordination (cognitive-substrate-
convergence-v1.md cross-ref, causal-edge v2 metadata wiring)
# Board hygiene
AGENT_LOG.md prepended with the session entry per CLAUDE.md rule
"every PR adding a finding/agent run must PREPEND an AGENT_LOG
entry in the same commit". Entry cites the doc structure, the 15
epiphanies + 7 holy grails by ID, and the 23 debt items.
# No code changes
Pure architecture / knowledge artifact. `cargo check --lib` clean
(nothing to recheck).
https://claude.ai/code/session_01HbqooFZHAjaUtFEzhA1R2u1 parent 17d0eae commit 484bbb8
2 files changed
Lines changed: 649 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
31 | 104 | | |
32 | 105 | | |
33 | 106 | | |
| |||
0 commit comments