Preserve the current managed hook block during rollout cleanup #607

Closed
opened 2026-07-18 05:09:28 +00:00 by coilyco-ops · 0 comments
Member

The hook rollout helper strips managed repository entries before it refreshes the current marker block. Since standard hygiene repositories moved inside that block, the cleanup deletes the first end marker, leaves the old aos entry in place, and appends a duplicate block at EOF. This malformed ward pre-commit config while trying to consume the Windows TruffleHog fix. Acceptance: refresh an existing managed block in place, remove stale managed repositories only outside that block, preserve repository-local hooks, and cover the ward-shaped config with a regression test.

The hook rollout helper strips managed repository entries before it refreshes the current marker block. Since standard hygiene repositories moved inside that block, the cleanup deletes the first end marker, leaves the old aos entry in place, and appends a duplicate block at EOF. This malformed ward pre-commit config while trying to consume the Windows TruffleHog fix. Acceptance: refresh an existing managed block in place, remove stale managed repositories only outside that block, preserve repository-local hooks, and cover the ward-shaped config with a regression test.
Sign in to join this conversation.
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-flight-deck/agentic-os#607
No description provided.