Decouple coily and agent-guard #6

Open
opened 2026-05-23 20:53:56 +00:00 by coilysiren · 0 comments
Owner

Originally filed by @coilysiren on 2026-05-22T13:20:24Z - https://github.com/coilysiren/coily/issues/322

Decouple coily and agent-guard

Problem. coily and agent-guard currently depend on each other, and they should not. coily delegates its PreToolUse hook routing to agent-guard. agent-guard carries a coilyRoutes table named after coily. coily carries TestApplyHookHandoffTrim_AlignedWithAgentGuardHookTable, which hand-mirrors agent-guard's table and fails CI if the two drift. The result: a routine coily routing change, like adding the coily pkg nix passthrough (coilysiren/coily#320, coilysiren/agent-guard#29), forces an edit to agent-guard.

Kai's rule: coily and agent-guard are separate things and must never depend on each other.

Goal. coily owns a fully self-contained routing and recovery surface. agent-guard carries zero coily-specific code. The AGENTS.md "Coily vs agent-guard Framing" section is rewritten to describe the decoupled design.

Fan-out. Build bottom to top:

  • coilysiren/coily#323 - make coily routing self-contained, drop the alignment test. Do first.
  • coilysiren/agent-guard#30 - remove coilyRoutes and all coily-specific code. Blocked on #323.
  • coilysiren/agentic-os-kai#744 - rewrite the AGENTS.md framing section. Blocked on #323 and agent-guard#30.

Note on the in-flight nix change. coilysiren/coily#320 and coilysiren/agent-guard#29 just added a nix row to both tables. The coily child must preserve nix routing inside coily's new self-contained surface. The agent-guard child removes the agent-guard copy along with the rest of coilyRoutes.

This is a tracking issue. It is not dispatched - the children are.

_Originally filed by @coilysiren on 2026-05-22T13:20:24Z - [https://github.com/coilysiren/coily/issues/322](https://github.com/coilysiren/coily/issues/322)_ ## Decouple coily and agent-guard **Problem.** coily and agent-guard currently depend on each other, and they should not. coily delegates its PreToolUse hook routing to agent-guard. agent-guard carries a `coilyRoutes` table named after coily. coily carries `TestApplyHookHandoffTrim_AlignedWithAgentGuardHookTable`, which hand-mirrors agent-guard's table and fails CI if the two drift. The result: a routine coily routing change, like adding the `coily pkg nix` passthrough (coilysiren/coily#320, coilysiren/agent-guard#29), forces an edit to agent-guard. Kai's rule: coily and agent-guard are separate things and must never depend on each other. **Goal.** coily owns a fully self-contained routing and recovery surface. agent-guard carries zero coily-specific code. The AGENTS.md "Coily vs agent-guard Framing" section is rewritten to describe the decoupled design. **Fan-out.** Build bottom to top: - [ ] coilysiren/coily#323 - make coily routing self-contained, drop the alignment test. Do first. - [ ] coilysiren/agent-guard#30 - remove `coilyRoutes` and all coily-specific code. Blocked on #323. - [ ] coilysiren/agentic-os-kai#744 - rewrite the AGENTS.md framing section. Blocked on #323 and agent-guard#30. **Note on the in-flight nix change.** coilysiren/coily#320 and coilysiren/agent-guard#29 just added a `nix` row to both tables. The coily child must preserve `nix` routing inside coily's new self-contained surface. The agent-guard child removes the agent-guard copy along with the rest of `coilyRoutes`. This is a tracking issue. It is not dispatched - the children are.
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#6
No description provided.