Skip to content

Remove unsupported shell helpers from safe-output guidance - #68751

Closed
pelikhan wants to merge 1 commit into
mainfrom
pelikhan-safeoutputs-cli-prompt-alignment
Closed

pelikhan wants to merge 1 commit into
mainfrom
pelikhan-safeoutputs-cli-prompt-alignment

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

CLI-proxy automatically permits the safeoutputs executable, but it does not grant auxiliary commands such as jq or shell file-staging operations. Runtime guidance nevertheless recommended heredoc staging and jq pipelines, leading agents into permission denials, including Daily SPDD Spec Planner run 38593520635.

Replace those recommendations in the CLI-proxy, base safe-output, and shell-expansion-guard prompts with direct, shell-quoted inline JSON and escaped newlines. Preserve native tool usage only when explicitly exposed, and direct blocked submissions to report_incomplete without unapproved shell workarounds. No workflow permissions, safe-output budgets, denial limits, or transport configuration are broadened.

Regression coverage checks that the prompts no longer recommend helper serialization, parses the documented JSON example, and verifies that the actual SDK permission handler accepts it with only shell(safeoutputs:*) while rejecting an unauthorized jq pipeline.

Validation: make fmt-cjs, make lint-cjs, focused composed-prompt Go tests, all 11 workflow tool-policy alignment tests, and make agent-report-progress passed. No workflow was dispatched.

Coordination: the helper-based guidance in the separate, unmerged #68716 needs reconciliation with this user-directed approach.

Use direct inline JSON for CLI calls, preserve native transport boundaries, and report blocked submissions without unapproved shell workarounds.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan pelikhan closed this Oct 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Great work aligning safe-output guidance with actual permissions! This focused PR with clear validation looks ready for review.

Generated by ✅ Contribution Check · copilot · auto · 44.5 AIC · ⌖ 0.613 AIC · ⊞ 9.3K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant