Skip to content

Commit da68929

Browse files
G5: docs/hooks.md architecture umbrella + loop_limit clamp
Cherry-picked onto current main; plan-doc G table conflict resolved to keep the G5-landed rows. Co-authored-by: Jonathan Kingston <jonathanKingston@users.noreply.github.com>
1 parent deb7680 commit da68929

5 files changed

Lines changed: 358 additions & 4 deletions

File tree

‎docs/claude-hooks.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
handlers) so repos that already ship Claude Code policy hooks work without a Cursor-format
66
`hooks.json`. Tracks issue #639.
77

8-
This is the Claude counterpart to [`docs/cursor-hooks.md`](./cursor-hooks.md).
8+
This is the Claude counterpart to [`docs/cursor-hooks.md`](./cursor-hooks.md). For the
9+
dialect-agnostic architecture (registry, canonical events, async/budget/epoch, spine,
10+
sandbox, UI) see [`docs/hooks.md`](./hooks.md).
911

1012
## On-disk layout
1113

‎docs/copse-hooks.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ vendor translation layer. It also exposes Copse-native knobs the imported dialec
1010

1111
Each hook is a process that receives a JSON payload on **stdin**, may print a JSON response
1212
on **stdout**, and can observe, block, or annotate the action that triggered it. Dialect is
13-
determined by source path (decision 8): `.copse/hooks.json` → the Copse adapter.
13+
determined by source path (decision 8): `.copse/hooks.json` → the Copse adapter. For the
14+
dialect-agnostic architecture (registry, canonical events, async/budget/epoch, spine,
15+
sandbox, UI) see [`docs/hooks.md`](./hooks.md).
1416

1517
The official JSON schema is published at
1618
[`schemas/copse-hooks.schema.json`](../schemas/copse-hooks.schema.json)

‎docs/cursor-hooks.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ can observe, block, or annotate the action that triggered it.
77

88
This document records the Cursor hooks contract, what Copse honours today, and what
99
remains for fuller parity. It is the hooks counterpart to
10-
[`docs/cursor-plugins.md`](./cursor-plugins.md).
10+
[`docs/cursor-plugins.md`](./cursor-plugins.md). For the cross-cutting architecture — the
11+
unified registry, canonical events, executors, async/budget/epoch, spine, sandbox, and UI
12+
that are dialect-agnostic — see [`docs/hooks.md`](./hooks.md).
1113

1214
## On-disk layout
1315

@@ -327,6 +329,7 @@ UPDATE_HOOK_PAYLOAD_SNAPSHOTS=1 npm test
327329
- `src/main/services/hooks/payload-snapshots.test.ts` — dialect wire payload snapshot tests (G4)
328330
- `src/main/services/hooks/__snapshots__/wire-payloads.json` — committed golden wire-payload fixture (G4)
329331
- `src/main/services/exec/child-process-env.ts` — secret-scrubbed env for hook processes
332+
- `docs/hooks.md` — dialect-agnostic hooks architecture umbrella
330333
- `docs/claude-hooks.md` — Claude Code hooks contract
331334
- `docs/cursor-plugins.md` — sibling exploration of Cursor plugin support
332335
- `docs/supply-chain-security.md` — trust boundaries for executed code

0 commit comments

Comments
 (0)