Repository navigation
Description
Caution
Protected files were modified in this change.
This pull request is in request-review mode and requires explicit human scrutiny before merge.
Protected files: .github/workflows/shared/python-dataviz.md, .github/workflows/shared/trending-charts-simple.md
Allow intentional protected-file changes
If this workflow is intended to modify these files, add specific filenames or folder prefixes to safe-outputs.create-pull-request.protected-files.exclude in the workflow Markdown frontmatter. For example, to allow .changeset/*, exclude the folder using .changeset/:
safe-outputs:
create-pull-request:
protected-files:
policy: request-review
exclude:
- .changeset/Keep your existing policy and exclusions. Folder exclusions use path prefixes, not glob patterns, and allow all files beneath that folder, including subfolders. Other protected files still require review. If allowed-files is configured, these paths must also match it. Run gh aw compile after updating the workflow.
Summary
Two shared chart prompts show upload_asset payloads with a "type": "upload_asset" field. The upload_asset tool schema (additionalProperties: false) rejects it, so agents that copy the example hit a validation error and must retry.
Evidence (last 24h, 379 runs; coverage is count-limited, see below)
Run §44921549614 (Daily Security Observability Report, claude-haiku-5.5) made 5 upload_asset calls with {"type":"upload_asset","path":"..."}. Each failed with:
Invalid arguments: unknown parameter type (closest: path). Supported parameters for this tool: path, secrecy, integrity, depends-on.
The agent then dropped type and retried every call successfully. The cause is the prompt, not the tool description: the tool schema is correct and the shared include contradicts it.
.github/workflows/shared/python-dataviz.mdstep 2 showed{ "type": "upload_asset", "path": ... }.github/workflows/shared/trending-charts-simple.md"Step 2" showed the same payload
These includes are used by 6 workflows: copilot-pr-nlp-analysis, daily-experiment-report, daily-security-observability, daily-spending-forecast, github-mcp-structural-analysis, org-health-report.
Change
Both examples now show { "path": "..." } only, with a note that the tool rejects a type field.
Validation
agenticworkflows compile(read-only MCP validation) ondaily-security-observabilityandorg-health-report: valid, no errors or warnings.make recompilecould not run in this sandbox (Go module download blocked: TLS failure to proxy.golang.org), so no.lock.ymlfiles were regenerated and no Go tests were run. A maintainer must runmake recompileand commit the locks.
Other observations (not changed here)
report_missing_toolcalled withtool_nameinstead oftool(§44881490972, 1 occurrence). Single occurrence, so no description change yet.create_discussioncalled withlabels(§44885084617, 1 occurrence, smoke test).- Other prompts (for example
approach-validator.md,plan.md,smoke-temporary-id.md,issue-arborist.md) also show"type"in tool-call examples. I did not audit which of these are raw JSONL appends (wheretypeis valid) versus tool-call arguments, so they are a candidate follow-up. - Coverage is incomplete: the log download hit its count limit (continuation
end_date2026-11-21T07:23:36Z,before_run_id44880120428), so older runs in the 24h window were not analyzed.work/poolvalidation errors in work-queue runs are out of scope (not a safe-output tool).
🤖 Generated with [Claude Code]((claude.com/redacted)
Note
This was originally intended as a pull request, but the git push operation failed.
Original error: ERR_SYSTEM: git push failed (exit code 1): To https://github.com/github/gh-aw.git ! [remote rejected] fix/safeoutputs-upload-asset-type-field-fb9f4c822fef5f37 -> fix/safeoutputs-upload-asset-type-field-fb9f4c822fef5f37 (refusing to allow a GitHub App to create or update workflow `.github/workflows/shared/python-dataviz.md` without `workflows` permission) error: failed to push some refs to 'https://github.com/github/gh-aw.git'
Workflow Run: View run details and download bundle artifact
The bundle file is available in the agent artifact in the workflow run linked above.
Create the pull request manually
# Download the artifact from the workflow run
gh run download '44948652942' -n agent -D '/tmp/agent-44948652942'
# Resolve the bundle source ref, fetch it into a temporary ref, then create the local branch
bundle_path='/tmp/agent-44948652942/aw-github-gh-aw-fix-safeoutputs-upload-asset-type-field.bundle'
temp_ref='refs/bundles/create-pr-fix-safeoutputs-upload-asset-type-field-fb9f4c822fef5f37-13b971fa'
target_ref='refs/heads/fix/safeoutputs-upload-asset-type-field-fb9f4c822fef5f37'
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 ~ /^refs\/heads\// { print $2 }')
if [ -z "$bundle_source_ref" ]; then
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 == "HEAD" { print $2 }')
fi
if [ "$(printf '%s\n' "$bundle_source_ref" | sed '/^$/d' | wc -l | tr -d ' ')" != "1" ]; then
echo "Expected exactly one bundle source ref, found: $bundle_source_ref" >&2
exit 1
fi
git fetch "$bundle_path" "${bundle_source_ref}:${temp_ref}"
git update-ref "$target_ref" "$temp_ref"
git checkout 'fix/safeoutputs-upload-asset-type-field-fb9f4c822fef5f37'
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d "$temp_ref"
# Push the branch to the target remote
git push 'origin' 'fix/safeoutputs-upload-asset-type-field-fb9f4c822fef5f37'
# Create the pull request
gh pr create --title '[safeoutputs] Fix incorrect safe output usage in shared chart prompts (upload_asset)' --base 'main' --head 'fix/safeoutputs-upload-asset-type-field-fb9f4c822fef5f37' --repo 'github/gh-aw'Generated by ⚡ Daily Safe Output Tool Optimizer · claude · routed: sonnet55 high · ~48 AIC · ⌖ ~2 AIC · ⊞ 10K · ◷
- expires on Nov 23, 2026, 1:08 PM UTC-08:00
Activity
github-actions commentedon Nov 21, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪