You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ACP: carry the originating tool-call id on hook events #6
A blocked PreToolUse hook can't be surfaced on the correct ACP tool card. HookPayload carries no originating tool-call id, so projectHook falls back to an agent_thought_chunk instead of marking the related tool_call_update as failed.
Validated (independent cross-check):
HookPayload has exactly Phase, Tool, Decision — no call id (internal/session/event.go); the proto Hook message mirrors that (contracts/proto/mecatl/v1/harness.proto).
All hook emit sites in internal/agent/dispatch.go have the tool-call c.ID in scope but never thread it into the payload.
projectHook emits a thought chunk because the id is absent — its comment is effectively the spec for this fix (internal/adapter/acp/projector.go).
Proposed approach
Add the originating tool-call id to HookPayload (domain event.go → proto Hook message + regenerate → the dispatch.go emit sites → server/mapper.go); the ACP projector then marks the correct tool_call_updatefailed with the veto reason. Small but cross-cutting (proto change). Also improves the existing TUI hook rendering.
Part of ACP Phase 3 long-tail (docs/adr/0001-acp-adapter.md).
Done in 22bd0f4. Implemented beyond the original scope: surfacing the veto required opening the tool_call card before the permission/hook gate (a new openCard helper in dispatch, emit removed from execute), since EvToolCall was previously emitted only inside execute — which PreToolUse blocks and permission denials short-circuit before reaching. That also fixes the pre-existing permission-deny phantom-card bug. PostToolUse blocks stay thought-chunk annotations (annotate-only domain semantics). Panel-reviewed (architecture caught the phantom-card gap; security confirmed no dropped vetoes / no premature execution).
Activity
JAORMX commentedon Jun 1, 2026
Done in 22bd0f4. Implemented beyond the original scope: surfacing the veto required opening the
tool_callcard before the permission/hook gate (a newopenCardhelper in dispatch, emit removed fromexecute), since EvToolCall was previously emitted only insideexecute— which PreToolUse blocks and permission denials short-circuit before reaching. That also fixes the pre-existing permission-deny phantom-card bug. PostToolUse blocks stay thought-chunk annotations (annotate-only domain semantics). Panel-reviewed (architecture caught the phantom-card gap; security confirmed no dropped vetoes / no premature execution).fix(acp): surface hook vetoes & denials on a tool card opened before …
feat(memory): genuine tier-0 index + cross-process file locking
refactor(memory): address tier-0 panel findings
feat(prompt): enrich the default system prompt + model-aware agency d…
feat(prompt): --output-economy terse posture knob (ADR 0041)
feat(prompt): output-economy default tone (ladder + prose scope + saf…
feat(prompt): --output-economy terse posture knob (ADR 0041)
feat(prompt): output-economy default tone (ladder + prose scope + saf…
feat(prompt): --output-economy terse posture knob (ADR 0041)
feat(prompt): output-economy default tone (ladder + prose scope + saf…
feat(prompt): --output-economy terse posture knob (ADR 0041)
feat(prompt): output-economy default tone (ladder + prose scope + saf…
fix(prompt): rebalance defaultTone — protect reasoning, scope brevity…
perf(prompt): pre-size the StablePrefix builder so a longer defaultTo…
fix(prompt): rebalance defaultTone — protect reasoning, scope brevity…
perf(prompt): pre-size the StablePrefix builder so a longer defaultTo…
feat(adapter/cronparse): parser-only cron helper + robfig dep (#189, …
feat(adapter/cronparse): parser-only cron helper + robfig dep (#189, …
feat(adapter/cronparse): parser-only cron helper + robfig dep (#189, …
feat: scheduled tasks — durable registry + tick loop + claim-before-f…
fix(steer): TUI queue-model rework — one bundle, id-correlated lifecy…
fix(steer): TUI queue-model rework — one bundle, id-correlated lifecy…