Skip to content

Transport native task results through a result file#1764

Merged
chubes4 merged 1 commit into
mainfrom
fix/native-result-file
Jul 14, 2026
Merged

Transport native task results through a result file#1764
chubes4 merged 1 commit into
mainfrom
fix/native-result-file

Conversation

@chubes4

@chubes4 chubes4 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add an atomic agent-task-run --result-file transport with private file permissions
  • make the reusable executor read and validate a controlled result file rather than bounded stdout
  • fail closed for invalid paths, files, sizes, schemas, statuses, and configured secrets

Fixes #1763
Regression: https://github.com/Automattic/wp-codebox/actions/runs/29296787203

Testing

  1. npm run build
  2. npm run test:agent-task-contracts
  3. npm run test:redaction
  4. npm run test:production-boundary-enforcement
  5. npm run test:runtime-tool-policy
  6. npx tsx tests/cli-main-output-drain.test.ts
  7. actionlint .github/workflows/run-agent-task.yml

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenAI GPT-5.6 Terra and OpenCode
  • Used for: Implemented the result-file transport, tests, documentation, and verification with Chris's requested scope.

@chubes4
chubes4 merged commit f24630c into main Jul 14, 2026
4 checks passed
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.

Transport native task results outside bounded stdout

1 participant