lockdown: emit code-comments-compliant lockdown-deny.sh #94

Closed
opened 2026-05-26 05:22:52 +00:00 by coilysiren · 1 comment
Owner

Problem

coily lockdown --apply --replace emits a 5-line contiguous comment block in .claude/lockdown-deny.sh, which violates the agentic-os v0.2.8 code-comments rule (MAX_CONTIGUOUS=2). Repos that adopt the v0.2.8 hook suite then trip on the regenerated file every time coily lockdown runs.

Current output

```sh
#!/bin/sh

Auto-generated by coily. Do not edit; regenerate via coily lockdown --apply --replace.

Delegates to coily hook pre-tool-use, which calls the shared

cli-guard/hook engine with coily's integrity rules + route

table. See coilysiren/coily#248 + cli-guard#74.

exec coily hook pre-tool-use
```

Desired

A 1-2 line header pointing to durable docs. Hand-fixed in cli-mcp@dispatch/issue-66 as:

```sh
#!/bin/sh

Auto-generated by coily lockdown --apply --replace. See docs/lockdown.md.

exec coily hook pre-tool-use
```

(Or any other shape that fits MAX_CONTIGUOUS=2 and the 90-char cap. The cli-guard / coily#248 references can live in a docs/ pointer or in the SKILL.md.)

Origin

Surfaced by coilysiren/cli-mcp#66 while sweeping code-comments violations.


Ported from coilysiren/coily#343.

**Problem** `coily lockdown --apply --replace` emits a 5-line contiguous comment block in `.claude/lockdown-deny.sh`, which violates the agentic-os v0.2.8 `code-comments` rule (MAX_CONTIGUOUS=2). Repos that adopt the v0.2.8 hook suite then trip on the regenerated file every time `coily lockdown` runs. **Current output** \`\`\`sh #!/bin/sh # Auto-generated by coily. Do not edit; regenerate via coily lockdown --apply --replace. # # Delegates to coily hook pre-tool-use, which calls the shared # cli-guard/hook engine with coily's integrity rules + route # table. See coilysiren/coily#248 + cli-guard#74. exec coily hook pre-tool-use \`\`\` **Desired** A 1-2 line header pointing to durable docs. Hand-fixed in cli-mcp@dispatch/issue-66 as: \`\`\`sh #!/bin/sh # Auto-generated by coily lockdown --apply --replace. See docs/lockdown.md. exec coily hook pre-tool-use \`\`\` (Or any other shape that fits MAX_CONTIGUOUS=2 and the 90-char cap. The cli-guard / coily#248 references can live in a docs/ pointer or in the SKILL.md.) **Origin** Surfaced by coilysiren/cli-mcp#66 while sweeping code-comments violations. --- _Ported from coilysiren/coily#343._
Author
Owner

Merged into #85 in the 2026-05-29 backlog burn-down. Duplicate lockdown-deny.sh comment-header TOL=2 bug Reopen if it should stand alone.

Merged into #85 in the 2026-05-29 backlog burn-down. Duplicate lockdown-deny.sh comment-header TOL=2 bug Reopen if it should stand alone.
Sign in to join this conversation.
No labels
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilyco-bridge/coily#94
No description provided.