Skip to content

docs(learnings): tighten — archive 13 cold lessons - #1127

Merged
SQPferrer merged 1 commit into
masterfrom
dev/2026-07-26-memory-tighten
Jul 26, 2026
Merged

docs(learnings): tighten — archive 13 cold lessons#1127
SQPferrer merged 1 commit into
masterfrom
dev/2026-07-26-memory-tighten

Conversation

@Ljferrer

Copy link
Copy Markdown
Owner

Operator-gated /lessons-learned tighten pass.

Why now

The MEMORY.md projection was 24,379 B — 21 bytes under the 24,400 hard refuse cap. The next lesson written would have made render-index refuse outright.

What changed

Archived the 13 coldest eligible lessons (query hits 4–26), all repo-root. Archive is a move, not a delete — every slug stays queryable under docs/learnings/archive/ and inbound [[wikilinks]] still resolve.

Projection before 24,379 B / 132 lines
Projection after 22,156 B / 119 lines
Freed 2,223 B
Hot lessons 104 → 91
Redaction lint clean

What was deliberately NOT struck

The tool's default cutIndex was the entire 19-entry eligible list — including readme-undersell-guard-couples-doc-prose-to-true-slot-count (118 query hits), plan-can-name-a-nonexistent-lens-even-in-an-anti-drift-plan (70), and red-team-drift-guard-spine-probes-are-lead-run-prose-not-spine-array-entries (49). It proposed them only because eviction alone cannot reach the advisory line at all. Dropping the three most-queried lessons in the corpus out of agent prefetch to reclaim ~160 B each is a bad trade, so the operator approved the cold prefix only.

Known residual

Still above the 17,000 B advisory line. Eviction can free at most 3,238 B against a 7,879 B goal — the eligible set is floor-bounded and simply cannot get there.

The remaining lever is description compression: summary cells are 15,285 B of the file (63%), with 59 cells at or above 150 B. Capping cells near 80 B would free ~5,971 B, which combined with eviction clears the advisory. That is a separate pass over ~59 lesson files.

🤖 Generated with Claude Code

Operator-gated /lessons-learned tighten pass. The MEMORY.md projection was
24,379 B — 21 bytes under the 24,400 hard refuse cap, where the next lesson
written would have made render-index refuse outright.

Archived the 13 coldest eligible lessons (query hits 4–26), all repo-root.
Archive is a move, not a delete: every slug stays queryable under
docs/learnings/archive/ and inbound [[wikilinks]] still resolve.

Deliberately NOT struck: the six highest-hit eligible lessons (29–118 hits),
including readme-undersell-guard-couples-doc-prose-to-true-slot-count (118
hits) — the tool's default cutIndex included them only because eviction alone
cannot reach the 17,000 B advisory line, and dropping the most-queried lessons
out of agent prefetch to reclaim ~160 B each is a bad trade.

Projection: 24,379 B / 132 lines → 22,156 B / 119 lines.
Still above the 17,000 B advisory: eviction can free at most 3,238 B against a
7,879 B goal. The remaining lever is description compression — summary cells
are 15,285 B of the file (63%), with 59 cells at or above 150 B.

Redaction lint clean over the whole directory.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants