Add a hook bus and permission decisions for tool calls #13

Merged
weichen merged 1 commits from feature/permission-hooks into main 2026-10-03 17:06:47 +00:00
Owner

Why: Squad members never saw the direct-run stop, reminder, and before-tool gates.

Evidence: GOWORK=off go test of runtime, hooks, policy, and adapters/native passed, including an A/B comparison.

Impact: An empty bus leaves stop reason, reminder count, and deny count unchanged.

Refs: feature/permission-hooks

Why: Squad members never saw the direct-run stop, reminder, and before-tool gates. Evidence: GOWORK=off go test of runtime, hooks, policy, and adapters/native passed, including an A/B comparison. Impact: An empty bus leaves stop reason, reminder count, and deny count unchanged. Refs: feature/permission-hooks
weichen added 1 commit 2026-10-03 17:06:20 +00:00
Add a hook bus and permission decisions for tool calls
ci / vet-and-test (pull_request) Successful in 46s
ci / docker-checkout-hostgateway (pull_request) Successful in 1s
0a52d9f976
Why: Squad members never saw the direct-run stop, reminder, and before-tool gates, and there was no shared place to decide deny, ask, or allow.
Evidence: GOWORK=off go test ./runtime/hooks/ ./runtime/policy/ ./runtime/ ./adapters/native/ passed, including an A/B run where hook adapters match the old callbacks.
Impact: An empty bus leaves stop reason, reminder count, and deny count unchanged. Callers opt in by setting GateOptions.
Refs: feature/permission-hooks
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen merged commit ba90a7d9ae into main 2026-10-03 17:06:47 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-Native#13