chore(code-comments): remove enabled=false escape hatch, fix managed-marker false-positive, drop grandfather excludes #200
Labels
No labels
burndown-2026-06
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/agentic-os#200
Loading…
Add table
Add a link
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?
What
The
code-commentscheck lives here. Cleaning it up across the fleet (catalogue built 2026-06-08, per-repo issues filed in each repo) surfaced three changes the check itself needs.1. Remove the
enabled = falseescape hatch for code-commentsNo repo sets
enabled = falseunder[tool.agentic-os.code-comments]. The disable path exists but is unused, and Kai does not want code-comments to be silenceable repo-wide. Drop theis_enabled(HOOK_ID)guard incheck_code_comments.main()so the check cannot be turned off. Per-pathexcludesstay as the only escape, scoped to genuinely generated or vendored content.2. Fix the managed-marker false-positive
scripts/apply-agentic-os-hooks.pywrites the block delimiters as comments below content:Both lines sit below the first content line of
.pre-commit-config.yaml, so the YAML rule (comments only in the top header) flags two violations in every consumer repo. This is the recurring.pre-commit-config.yaml(2)noise seen fleet-wide. It is upstream, not per-repo. Options: emit the markers differently, exclude.pre-commit-config.yamlfrom the YAML rule, or special-case generator-owned markers.3. Drop this repo's own grandfather excludes
pyproject.tomlcarries an 8-entryexcludeslist for code-comments that hides agentic-os's own 77 YAML violations (.agents/skills/categories.yaml,.coily/coily.yaml,docs/*.yaml,warp/launch_configurations/**, and others). Remove the grandfather entries, keep only genuinely generated paths, and clean what surfaces.Related quirk - generated/vendored not skipped
The check walks
git ls-files, so checked-in generated or vendored source gets flagged (e.g.generated/dirs, vendored mod source). Consider teaching the check or its docs a default-skip convention for obvious generated trees, so consumers do not have to enumerate them by hand.Done when
code-commentscannot be disabled viaenabled = falseapply-agentic-os-hooks.pyrun produces a.pre-commit-config.yamlthat passes the YAML ruleexcludesare gone andpre-commit run code-comments --all-filespassesBacklog burndown 2026-06-17: closing low-priority (P3/P4) to bring the open count to a manageable level. Nothing lost — reopen if this resurfaces. Batch tag:
burndown-2026-06.