os-doc-hygiene: deterministic file-length signal + implementation-status.md distill to index-with-progressive-disclosure #25
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#25
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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.