lockdown-deny.sh autogen header exceeds code-comments TOL=2 #85

Open
opened 2026-05-26 03:43:13 +00:00 by coilysiren · 0 comments
Owner

Problem

coily lockdown --apply --replace writes .claude/lockdown-deny.sh with a 5-line contiguous comment header:

#!/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

agentic-os v0.2.8 code-comments allows max 2 contiguous comment lines, so every coily-managed repo fails the hook on this file. Manual fixes in consumer repos get clobbered the next time coily lockdown runs anywhere.

Fix shape

Shrink the emitted header to <=2 lines in coily's lockdown template:

#!/bin/sh
# Auto-generated by coily lockdown. Delegates to coily hook pre-tool-use.
exec coily hook pre-tool-use

The coily#248 / cli-guard#74 cross-references are durable but belong in this repo's source, not in every consumer repo's autogen file.

Repro

Surfaced fixing coilysiren/backend#91. Manual in-tree edit landed in coilysiren/backend@5c4cc59 as a known-clobberable workaround until this lands.

## Problem `coily lockdown --apply --replace` writes `.claude/lockdown-deny.sh` with a 5-line contiguous comment header: ```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 ``` agentic-os v0.2.8 `code-comments` allows max 2 contiguous comment lines, so every coily-managed repo fails the hook on this file. Manual fixes in consumer repos get clobbered the next time `coily lockdown` runs anywhere. ## Fix shape Shrink the emitted header to <=2 lines in coily's lockdown template: ```sh #!/bin/sh # Auto-generated by coily lockdown. Delegates to coily hook pre-tool-use. exec coily hook pre-tool-use ``` The coily#248 / cli-guard#74 cross-references are durable but belong in this repo's source, not in every consumer repo's autogen file. ## Repro Surfaced fixing coilysiren/backend#91. Manual in-tree edit landed in coilysiren/backend@5c4cc59 as a known-clobberable workaround until this lands.
coilysiren added
P4
and removed
P3
labels 2026-05-31 06:59:45 +00:00
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#85
No description provided.