docs(audit): exec.approval.* (singular) wire-path broken — #2606#2609
Merged
alexey-pelykh merged 1 commit intomainfrom Apr 27, 2026
Merged
docs(audit): exec.approval.* (singular) wire-path broken — #2606#2609alexey-pelykh merged 1 commit intomainfrom
alexey-pelykh merged 1 commit intomainfrom
Conversation
…2606) The gateway handlers for `exec.approval.{request,waitDecision,resolve}` were deleted by PR #2375 (commit 4e84640, 2026-04-16) — themselves zero-caller stubs at that point, after the original implementation was gutted by PR #70/#71 (commit 45d6734, 2026-02-27). The protocol-level declarations (method-scopes, server-methods-list, schemas, validators, broadcast scope guards) and live RPC callers (TS agents node-tool, CLI nodes-cli register.invoke, web UI app.ts, macOS GatewayConnection + ExecApprovalsGatewayPrompter) survived. Net result: an unreachable RPC surface where every live caller would receive `INVALID_REQUEST: unknown method: exec.approval.*` from the gateway today. The audit (`docs/refactor/exec-approval-singular-audit-2606.md`) walks each of #2606's four acceptance criteria with file:line evidence, documents the subsystem split (singular `exec.approval.*` request/decision flow vs plural `exec.approvals.*` policy/storage — the latter is in active use and out of scope), confirms zero broadcast producers exist for `exec.approval.{requested,resolved}` events, and verifies that no shared correlation shape would be worth extracting before deletion. Documentation finding: `docs/concepts/exec-approvals-architecture.md` was written 2026-04-26 (10 days after the singular handlers were deleted by PR #2375) and still asserts "End-to-end functional" for this path. The audit doc is now the authoritative current-status reference. This PR is audit-only — restore-vs-full-gut is a follow-up sized after this lands, per the issue body. Recommendations live at the end of the audit doc. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 27, 2026
alexey-pelykh
added a commit
that referenced
this pull request
Apr 27, 2026
#2618) Two doc-only changes anticipating the broader cleanup tracked in #2618: 1. ICED banner on docs/concepts/exec-approvals-architecture.md — the architecture described is not currently implemented (gateway handlers for exec.approval.{request,waitDecision,resolve} were deleted by PR #2375; macOS-mediated path is broken; verified by the audit doc at docs/refactor/exec-approval-singular-audit-2606.md from PR #2609). Status changed: Accepted → Iced. Doc preserved for historical context only; will be replaced when the new approach ships. 2. middleware-architecture.md § The Middleware Boundary Principle table gains a row clarifying the boundary for tool-approval routing: - LEFT (RemoteClaw): AgentRuntime tool-approval routing (capture and surface to channels) - RIGHT (Agent): Tool-execution decisions and the actual invocation post-approval Plus a clarifying paragraph: routing is RemoteClaw's because the user is reachable only via RemoteClaw's channel adapters (the "requires RemoteClaw infrastructure?" test is satisfied); tool execution itself remains the agent CLI's responsibility. The broader cleanup (gut 4 stranded callers + protocol declarations + tests) is in #2618. The chat-mediated AgentRuntime tool-approval routing implementation is in #2616 (referenced from the new boundary-table paragraph). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
alexey-pelykh
added a commit
that referenced
this pull request
Apr 27, 2026
#2618) (#2619) Two doc-only changes anticipating the broader cleanup tracked in #2618: 1. ICED banner on docs/concepts/exec-approvals-architecture.md — the architecture described is not currently implemented (gateway handlers for exec.approval.{request,waitDecision,resolve} were deleted by PR #2375; macOS-mediated path is broken; verified by the audit doc at docs/refactor/exec-approval-singular-audit-2606.md from PR #2609). Status changed: Accepted → Iced. Doc preserved for historical context only; will be replaced when the new approach ships. 2. middleware-architecture.md § The Middleware Boundary Principle table gains a row clarifying the boundary for tool-approval routing: - LEFT (RemoteClaw): AgentRuntime tool-approval routing (capture and surface to channels) - RIGHT (Agent): Tool-execution decisions and the actual invocation post-approval Plus a clarifying paragraph: routing is RemoteClaw's because the user is reachable only via RemoteClaw's channel adapters (the "requires RemoteClaw infrastructure?" test is satisfied); tool execution itself remains the agent CLI's responsibility. The broader cleanup (gut 4 stranded callers + protocol declarations + tests) is in #2618. The chat-mediated AgentRuntime tool-approval routing implementation is in #2616 (referenced from the new boundary-table paragraph). Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Audit-only PR resolving #2606. Documents that the gateway handlers for
exec.approval.{request,waitDecision,resolve}(singular) have been deleted (PR #2375 in 2026-04-16, after the original implementation was gutted by PR #70/#71 in 2026-02-27), but the protocol surface (method-scopes, server-methods-list, schemas, validators, broadcast scope guards) and live RPC callers (TS agentsnodes-tool.ts:550, CLIregister.invoke.ts:247, web UIapp.ts:467, macOSGatewayConnection.swift:91) survive — leaving an unreachable RPC surface where every live caller would receiveINVALID_REQUEST: unknown method: exec.approval.*from the gateway today.The audit walks each of #2606's four acceptance criteria with file:line evidence, distinguishes the singular
exec.approval.*(request/decision flow — broken) from the pluralexec.approvals.*(policy/storage — working, out of scope per the issue body), confirms no production broadcast producers exist forexec.approval.{requested,resolved}, and verifies no shared correlation shape would be worth extracting before deletion.Documentation alignment finding:
docs/concepts/exec-approvals-architecture.md(2026-04-26, issue #2573, Path A) still asserts the singular path is "End-to-end functional" — written 10 days after the handlers were physically deleted. The audit doc is now the authoritative current-status reference.This PR is audit-only. Restore-vs-full-gut is a follow-up sized after this lands, per the issue body. Recommendations live at the end of the audit doc.
Test plan
pnpm format:checkclean (5126 files)pnpm tsgocleanpnpm lintclean (3404 files, 0 warnings, 0 errors)pnpm lint:tmp:no-random-messagingcleanpnpm lint:no-remoteclaw-aicleanpnpm lint:ui:no-css-class-driftclean (0 orphans)Closes #2606
🤖 Generated with Claude Code