Implement the following plan:
Plan: Pre-publication documentation audit and alignment
Context
All 16 scripts are implemented and merged to main. Before publishing the repo, a comprehensive audit found that scripts are clean (all 16 pass the commenting standard — thesis, section headers, seed, autograd callouts, high comment density) but documentation has 18 issues ranging from critically stale status lines to broken cross-references and spec/code hyperparameter drift.
Issue Summary
| Severity | Count | Examples |
|---|
| Critical | 2 | Stale "planning phase" in CLAUDE.md, placeholder your-username in clone URL |
| High | 7 | "To be implemented" status on microgpt, missing scripts from autograd docs, broken overview.md reference |
| Medium | 5 | Stale "planned" language, hyperparameter mismatches, incomplete learning path |
| Low | 4 | Duplicate dataset entry, cosmetic alignment, stale alternative text |
Files to Modify (8 files)
1. README.md — 3 fixes
| Line | Issue | Fix |
|---|
| 61 | your-username placeholder in clone URL | Replace with Mathews-Tom (actual GitHub org) |
| 80-90 | Learning path lists 9/16 scripts, no indication it's a subset | Add heading "Quick Start Path" and a note that the full 16-script path is in each tier's README |
| 83 | microgpt.py arrow misaligned | Reformat alignment in the learning path block |
2. .claude/CLAUDE.md — 5 fixes (not git-tracked, local config)
| Line | Issue | Fix |
|---|
| 9 | "Planning/documentation phase. No implementation files exist yet." | Update to "All 16 scripts implemented across 3 tiers." Remove "765 lines" and "17 planned scripts" claims |
| 40 | overview.md in repo structure — file doesn't exist | Remove the line |
| 41 | "17 scripts" | Change to "16 scripts" |
| 46-57 | "Scripts must be built in this order" — future tense | Reframe as historical reference: "Scripts were built in this order" or remove the sequencing table entirely since all are done |
| 84 | Autograd list missing microkv, microquant, microbeam | Add all 3 to the "Used in:" list |
3. docs/implementation.md — 8 fixes
| Line | Issue | Fix |
|---|
| 3 | "every script planned" | Change to "every script in" |
| 96 | microgpt "Status: To be implemented" | Remove the entire Status line (no other script has one) |
| 167 | micrornn spec: lr=0.01, steps=500 vs code: lr=0.1, steps=3000 | Update spec to match code: lr=0.1, steps=3000 and note SGD instead of Adam |
| 204 | microtokenizer "or a small text corpus" alternative | Remove the alternative — actual implementation uses names.txt |
| 297-299 | microrag has duplicate **Dataset:** entries | Remove the first (exploratory) entry, keep the second (final) |
| 542 | microppo spec: 200 PPO steps, batch_size=5 vs code: 100, 4 | Update spec to match code: 100 PPO steps, batch_size=4 |
| 823-824 | microbeam spec: n_layer=2, ~1,000 params draft vs code: n_layer=1, ~1,300 params | Update spec to match code |
| 856-868 | Phasing section uses future tense | Reframe: "Scripts were built in this order" with past tense throughout |
4. docs/autograd-interface.md — 3 fixes
| Line | Issue | Fix |
|---|
| 3 | "8+ scripts" | Update to "9 scripts" |
| 79-85 | Extensions table missing microgpt, microkv, microquant, microbeam | Add all 4 scripts to the table. microgpt = base set. microkv, microquant, microbeam = base set (document as "(none beyond base)") |
| 83 | microdpo.py lists log() as extension, but log() is in the base operations table (line 39) | Remove log() from microdpo's extensions since it's already a base operation. Same for microppo's log(). Keep clip() for microppo as a real extension |
5. CONTRIBUTING.md — 2 fixes
| Line | Issue | Fix |
|---|
| 193 | "claim it" language implies scripts are unclaimed | Reword: "The implementation.md file documents all scripts with detailed specs." |
| 222 | References overview.md — file doesn't exist | Remove the overview.md reference, keep CONTRIBUTING.md |
6-8. Tier READMEs — no changes needed
All three (01-foundations/README.md, 02-alignment/README.md, 03-systems/README.md) are accurate and complete.
Execution Order
- Update
docs/implementation.md (most changes, spec-level fixes)
- Update
docs/autograd-interface.md (autograd table corrections)
- Update
README.md (clone URL, learning path)
- Update
CONTRIBUTING.md (stale references)
- Update
.claude/CLAUDE.md (local config, not committed)
- Commit tracked changes:
docs: align documentation with implemented codebase
Steps 1-4 are independent (different files) and can be parallelized.
Verification
grep -ri 'planned\|to be implemented\|your-username\|overview\.md\|17.*script' README.md CONTRIBUTING.md docs/ .claude/CLAUDE.md — confirm all stale markers are gone
grep -c 'Dataset:' docs/implementation.md — confirm microrag duplicate is removed (expect 15, one per script that has a dataset section, not 16)
- Spot-check
docs/implementation.md hyperparameters against actual code for micrornn, microppo, microbeam
- Verify
docs/autograd-interface.md extensions table now lists 9 scripts
If you need specific details from before exiting plan mode (like exact code snippets, error messages, or content you generated), read the full transcript at: /Users/druk/.REDACTED.jsonl
If this plan can be broken down into multiple independent tasks, consider using the TeamCreate tool to create a team and parallelize the work.