Suggestions and approvals in /acp-status, /acp-why, wait steer (0.27.0) - #46
Merged
Merged
Conversation
…mand (0.27.0) The gateway's status response now carries `advice`: the top items from the merged policy + cost feed (gatewaystack-connect#1325). The status command prints up to three under "Suggestions from your usage", each followed by the command that acts on it. Gateway text is stripped of control characters and capped. The section is omitted when the field is absent, so an older gateway prints exactly what it did before. Version 0.27.0: the hook file changed, and attestation is trust-on-first- use per (client, version).
…acp-status (0.27.0) - When the gateway says an admin decides a hold and names acp_wait_approval (gatewaystack-connect#1326), the hook's steer tells the agent to wait with that tool, retry once on approved and stop on denied or timeout, instead of the generic "hand it over" line. - /acp-why (gatewaystack-connect#1327): explains the last call ACP held in this session and the command that would change it. Read from a local file the hook writes on every deny or ask; no network, no key. Kept apart from the receipt counters, which Stop clears every turn. - /acp-status lists each pending approval with its own link (https only) instead of a count. - /acp-apply also takes context-guard (the gateway maps it to the lever).
Matches the gateway's wait hint. On Codex the owner is often the one approving in the console.
The /acp-status, /acp-why and approval-list filters removed C0 controls and ESC but not C1 (U+0080-U+009F) or bidi overrides, which can reorder what a terminal shows. Found in review.
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.
Plugin half of davidcrowe/gatewaystack-connect#1325, #1326 and #1327. Version 0.27.0.
/acp-statusprints "Suggestions from your usage": up to three items, each with its command. It also lists every pending approval with its own link, https only.acp_wait_approval, the steer tells the agent to wait with that tool instead of "hand it over"./acp-whyexplains the last call ACP held in this session and the command that would change it. It reads a local file the hook writes on each deny or ask, with no network call and no key needed./acp-applyalso takescontext-guard.Tests: 284 pass. An Opus adversarial review ran; its finding for this repo is fixed in ccd8188.
Note that installer-based Codex installs fetch this
bin/govern.mjsfrom main, so they get the wait steer too.