Clear the comment-block backlog and drop its exemptions #95
No reviewers
Labels
No labels
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/agent-proxy!95
Loading…
Reference in a new issue
No description provided.
Delete branch "comment-block-discipline"
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?
Closes #89.
The
[tool.agentic-os.code-comments]exemption list inpyproject.tomlis gone. Only the permanent.pre-commit-config.yamlentry remains — that file is generated byapply-agentic-os-hooks.pyand its BEGIN/END markers are how the generator finds its own block on a re-run.The shape of the work
The issue counted 96 violations; the hook now reports 98 (small drift since filing). But per-line failures overstate the job: an over-long block emits one failure per line past the second. 98 failures were 41 distinct blocks, and 17 of those were three-line section dividers — a rule line, a title, a rule line — which collapse to a single-line title with zero loss of meaning.
That left 17 blocks carrying real reasoning. Per the hook's own instruction those moved to
docs/rather than being deleted:docs/ward-verbs.md— per-verb rationale, tower and daemon requirements, the emptysecurity:policy. YAML turned out to have a stricter rule than Python: no comments below the top header at all, because a key-sorter would drift one away from the verb it describes. So every inline comment in.ward/ward.yamlhad to move, not just the long ones.docs/context-safety-settings.md— thenum_ctxceiling (#32), theOLLAMA_NUM_PARALLELcoupling (#33), and the delivered-context detection rule with both its outcomes.docs/backend-catalog.md—/api/tagscache semantics, fail-open discovery, and why prompt measurement is deliberately approximate.Each code site keeps a two-line comment naming the concept and pointing at the document. The context-budget arithmetic, route resolution, and fallback/circuit policy the issue flagged as load-bearing are all preserved — moved, not lost.
Two judgement calls worth flagging
Test comments were compressed, not relocated. The detail in
tests/is about why a specific assertion exists, which is most useful next to the assertion. Each is now a two-line comment that keeps the claim and drops the restatement. Nothing moved todocs/fromtests/.The doc split was forced by #88's caps.
context-safety-settings.mdlanded at 3741 of 4000 permitted chars. The catalog and token-measurement notes therefore went into a second file rather than a third section of the first, which would have breached the cap and simply added a new entry to #88's backlog. Both new documents sit under the 80-line and 4000-char limits.Verification
pre-commit run code-comments --all-files— 0 failures with the backlog exemptions removedpre-commit run --all-files— every hook passespytest258 passed ·ruff·black·mypyall cleanREADME.mdand from each other;dead-cross-linkspasses, so no pointer added here danglesNote on overlap
This touches
.ward/ward.yamlandREADME.md, which #93 also touches, in different regions (#93 adds verbs and a Development note; this rewrites the header comment and adds to the Planning index). They should merge cleanly in either order, but worth knowing if you are sequencing merges.