Skip to content

Commit bccc8e3

Browse files
authored
Merge pull request #111 from AdaWorldAPI/claude/ledger-efficiency-epiphany
docs: EPIPHANIES.md — ledger efficiency + ambient arc-knowledge loss findings
2 parents 9d0c9cb + 1776b05 commit bccc8e3

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.claude/board/EPIPHANIES.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# ndarray — Epiphanies (append-only)
2+
3+
## 2026-04-19 — Prompt↔PR ledger is 10⁷× cheaper than code grep
4+
**Status:** FINDING
5+
**Scope:** @workspace-primer domain:bookkeeping
6+
7+
To answer "what did we ship for topic X":
8+
9+
- **Grep across code:** ~100 MB of Rust across N crates, ~25M tokens of context, minutes of agent turns.
10+
- **Grep the ledger:** one `grep X .claude/board/PROMPTS_VS_PRS.md` returns `<prompt file> | #N <title>`. ~25 tokens, sub-second.
11+
12+
Seven orders of magnitude cheaper. The pairing **prompt-file ↔ PR** is the
13+
minimum addressable record of "this artifact was built to answer this
14+
brief" — the hyperlink that replaces re-discovery by full-text scan.
15+
16+
The line is mechanical bookkeeping (Haiku-level, no synthesis). The
17+
value accumulates on every subsequent "what about X" query thereafter:
18+
ledger-first, code-never-unless-necessary.
19+
20+
Cross-ref: PR #213 (lance-graph, 41 prompts × merged PRs), PR #110
21+
(ndarray, 25 prompts × merged PRs). Both shipped in ~90s on a dumb
22+
enumerate+match+append loop. No code reads, no MCP, no synthesis.
23+
24+
## 2026-04-19 — Code-arc knowledge loss is 30-50% of session tokens (ambient)
25+
**Status:** FINDING
26+
**Scope:** @workspace-primer domain:bookkeeping
27+
28+
Empirical (per user, 2026-04-19): **30-50% of session tokens** burn on
29+
rediscovering what code paths exist, what was tried, what got reverted,
30+
what decisions led to the current shape. This is **orthogonal** to the
31+
20-30-turn cold-start tax — it's the *ambient* loss across every query,
32+
every subagent spawn, every refactor.
33+
34+
The ledger closes three channels at once:
35+
36+
| Channel | Before | After | Discount |
37+
|---|---|---|---|
38+
| Cold-start (once per session) | 20-30 turns | 3-5 turns | ~|
39+
| Find-code (per query) | ~25M tokens (grep codebase) | ~25 tokens (grep ledger) | 10⁷× |
40+
| **Ambient arc knowledge (every turn)** | **30-50% of session budget** | **~0%** | **2×-eternal** |
41+
42+
All three channels collapse to two text-file reads: PROMPTS_VS_PRS.md +
43+
PR_ARC_INVENTORY.md. The second file is read only when arc detail is
44+
needed (Knowledge Activation trigger), so the routine cost is 0.
45+
46+
Cross-ref: PR #110 (ndarray ledger), PR #213 (lance-graph ledger).
47+
EPIPHANIES.md 10⁷× finding above.

0 commit comments

Comments
 (0)