-
Notifications
You must be signed in to change notification settings - Fork 1
backlog(B-0537): memory/MEMORY.md index-entry lengths cleanup + CI gate (P3) #3580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AceHack
merged 2 commits into
main
from
backlog/b0537-memory-index-entry-lengths-cleanup-gate-otto-cli-2026-05-15
May 15, 2026
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
.../backlog/P3/B-0537-memory-md-index-entry-lengths-cleanup-and-gate-2026-05-15.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| id: B-0537 | ||
| priority: P3 | ||
| status: open | ||
| title: "memory/MEMORY.md index-entry length cleanup (100 long entries) + CI gate" | ||
| tier: factory-infrastructure | ||
| effort: M | ||
| created: 2026-05-15 | ||
| last_updated: 2026-05-15 | ||
| depends_on: [] | ||
| composes_with: [B-0535, B-0536] | ||
| tags: [memory, index, hygiene, mechanization] | ||
| type: feature | ||
| --- | ||
|
|
||
| # memory/MEMORY.md index-entry length cleanup + CI gate | ||
|
|
||
| ## Origin | ||
|
|
||
| Per the CLAUDE.md convention ("Keep index entries to one line under ~200 chars; move detail into topic files"), `memory/MEMORY.md` index entries should be ≤200 chars. The existing audit `tools/hygiene/audit-memory-index-entry-lengths.ts` flags violations as detect-only. | ||
|
|
||
| **Empirical baseline 2026-05-15 (tick 2031Z)**: scanner reports **100 long entries** in `memory/MEMORY.md` (110 total lines), with lengths ranging 200–759 chars. Audit exits 0 (detect-only); no CI gate. | ||
|
|
||
| This is the same pattern as B-0535 (duplicate-ID detection logic existed but wasn't gated) — the detection tool predates the CI wiring. | ||
|
|
||
| ## Two-slice plan | ||
|
|
||
| ### Slice A — cleanup (100 entries → 0) | ||
|
|
||
| Tighten each long entry to ≤200 chars while preserving: | ||
|
|
||
| - Topic-file pointer (`[Title](feedback_x_y_z.md)`) | ||
| - Date / round / PR anchor | ||
| - Single-sentence hook explaining WHY future-Otto should read the linked file | ||
|
|
||
| Detail content moves INTO the linked topic file (the index is supposed to be a one-line table-of-contents pointer, not a summary of the file content). | ||
|
|
||
| 100 entries × ~30 sec per careful edit ≈ ~50 minutes of focused content-judgment work. Could be split into per-section batches (Aaron entries / B-NNNN entries / methodology entries / etc.) or per-tick mini-batches. | ||
|
|
||
| ### Slice B — CI gate wiring | ||
|
|
||
| Add `--enforce-long-entries` flag to `audit-memory-index-entry-lengths.ts` (exit 1 on findings + flag set). Wire into `.github/workflows/gate.yml` as `lint-memory-index-entry-lengths` job. Same pattern as B-0535's lint-backlog-id-uniqueness. | ||
|
AceHack marked this conversation as resolved.
Outdated
|
||
|
|
||
| Sequence: Slice A first (clean baseline) → Slice B (enforce). Trying to gate-first would block every PR touching MEMORY.md. | ||
|
|
||
| ## Out of scope | ||
|
|
||
| - User-scope MEMORY.md (`~/.claude/projects/<slug>/memory/MEMORY.md`) — different file, separate audit scope | ||
| - Per-topic-file content quality — only the index-entry length is in this row's scope | ||
|
|
||
| ## Composes with | ||
|
|
||
| - [B-0535](B-0535-backlog-id-uniqueness-lint-extension-of-b0532-2026-05-15.md) — same catch-once-then-lint pattern (detection exists, wiring missing) | ||
| - [B-0536](B-0536-orphan-ferry-ref-cleanup-and-audit-false-positives-2026-05-15.md) — same substrate-honest residual pattern from today's audit-driven session | ||
| - `tools/hygiene/audit-memory-index-entry-lengths.ts` — the detection tool | ||
| - CLAUDE.md MEMORY.md convention — "Keep index entries to one line under ~200 chars" | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.