os-doc-hygiene: deterministic file-length signal + implementation-status.md distill to index-with-progressive-disclosure #25
Labels
No Label
P0
P1
P2
P3
afk-ready
hitl
next
ready-for-agent
review
semi
waiting
wayfinder:grilling
wayfinder:map
wayfinder:research
wayfinder:task
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jared/cc-os#25
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type: Semi · Triage: ready
Problem
AI-read markdown files grow unbounded: docs/implementation-status.md is 670 lines and read routinely at main-loop rates. The os-doc-hygiene scanner (scripts/scanner.py) emits objective signals (broken refs, version skew, churn, archive ratio, frontmatter markers) but has no length/size signal — the bloat/distill/split taxonomy exists downstream in the classifier, so oversized files are only caught if some other signal fires.
Part 1 — length signal (afk-ready)
Add a deterministic
file_lengthsignal to the scanner: line count + estimated tokens (token_estimator.py already exists) over a configurable threshold (default suggestion: 400 lines or ~4k tokens). Objective fact only, no classification — consistent with the doc-scanner spec. Tests alongside existing scanner tests. This makes /os-doc-hygiene:check flag every oversized doc from now on, cheaply.Part 2 — distill implementation-status.md (semi: structure decisions are human gates)
Restructure to index-with-progressive-disclosure:
Part 3 — convention (human gate)
Record the resulting rule as an ADR: AI-maintained knowledge files are indexes with progressive disclosure; details live in leaf files; the length signal enforces it. Applies later to CLAUDE.md cleanup (see os-context prompt-files card).
Acceptance
Codex review adjustments (2026-07-13), adopted:
Parts 2-3 shipped in commit
15807ef(part 1 wasef8b7e4). Index is 110 lines / ~1.8k tokens; 8 component leaves + operational-procedures leaf; ADR-restated detail removed; CLAUDE.md updated; ADR-0032 Accepted. All acceptance criteria met.