code-comments and documentation-layout need a vendored/generated-files escape hatch #22
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?
Problem
The
code-commentsvalidator (agentic_os/check_code_comments.py) walks every code file in the repo regardless of vendored / generated status. TheSKIP_DIR_NAMESset covers obvious build dirs (__pycache__,node_modules,vendor, etc.) but does not cover:Assets/Art/ThirdPartyPublic/,Assets/Art/Editor/, etc.).claude/lockdown-deny.sh,.claude/settings.json)Consequence:
eco-mods-assetsreports 2012 code-comment violations on first pre-commit run, almost entirely third-party DOTween / Unity asset code that Kai cannot edit without breaking the upstream.Proposed fix
Either:
.documentation-layout-ignore/.code-comments-ignorefile at repo root (pre-commit-style glob list), orSKIP_DIR_NAMESto coverThirdParty*,ThirdPartyPublic, and add a path-based skip for.claude/lockdown-deny.shand.claude/settings.jsonsince those are coily-managed and the agent is told never to hand-edit them.Option 1 is the principled answer because the unknown-third-party-trees set is open-ended.
Workaround until then
Consumer adds an
exclude:regex to the upstream-ref block. The managed-block rewriter (apply-agentic-os-hooks.py) currently overwrites the consumer's hook list, so any per-repoexclude:would need to live outside the managed markers or the rollout script needs to preserve consumerexclude:annotations.Origin
Surfaced during the v0.2.7 baseline rollout to
eco-mods-assets. See coilysiren/agentic-os#61 for the rollout tracker.the config should go inside of precommit itself