Repository navigation
Align workflow commands with scoped tool permissions - #78164
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
|
||
| function startCracktroPreview() { | ||
| fs.mkdirSync("/tmp/gh-aw/agent/cracktro-review", { recursive: true }); | ||
| const server = spawn("python3", ["-m", "http.server", "4329", "--bind", "127.0.0.1", "--directory", "docs/public"], { |
| Use the GitHub MCP `list_issues` tool to fetch the 5 most-recently-created open issues from | ||
| `${{ github.repository }}` that contain "spec" or "docs" in their title. Record issue numbers | ||
| and titles. | ||
| Use GitHub MCP `search_issues` for these two queries, each with `perPage: 5`: |
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅ Matt Pocock Skills ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
🟡 Changes recommended
The workflow leaves conflicting preview-launch and port instructions unresolved, risking stop-on-denial failures or browser checks against a port its launcher does not serve.
2 open issues
What changed in this PR
Updates three gh-aw workflows so their instructions match scoped tool permissions without weakening integrity checks or broadening shell access.
Changes:
- Use standalone, bounded readiness and browser commands with process-handle cleanup.
- Search issue titles, merge and deduplicate matches, and preserve incomplete outcomes when integrity filtering applies.
- Add a fixed-purpose Cracktro preview launcher, contract tests, and regenerated workflow locks.
| File | Description |
|---|---|
actions/setup/js/visual_regression_workflow.test.cjs |
Tests standalone commands and rejection of helper chains. |
.github/workflows/visual-regression-checker.md |
Clarifies readiness, denial handling, and cleanup instructions. |
.github/workflows/visual-regression-checker.lock.yml |
Refreshes compiled workflow hashes. |
.github/workflows/daily-spec-coverage-kiro.md |
Requires the exact scanner command and title-scoped issue searches. |
.github/workflows/daily-spec-coverage-kiro.lock.yml |
Refreshes hashes for the updated source and configuration. |
.github/workflows/daily-cracktro-maintainer.md |
Uses the Node preview launcher and authorizes exact loopback access. |
.github/workflows/daily-cracktro-maintainer.lock.yml |
Updates compiled permissions, network configuration, and hashes. |
.github/scripts/test_cracktro_preview.cjs |
Tests fixed launch settings, failures, signals, and workflow configuration. |
.github/scripts/test_audit_spec_coverage.cjs |
Adds scanner-command and issue-search contract assertions. |
.github/scripts/cracktro_preview.cjs |
Adds the fixed-root, loopback-only preview launcher with signal forwarding. |
Review effort: Max (dynamic)
| Run `node .github/scripts/cracktro_preview.cjs` as one standalone async Bash call. | ||
| It serves `docs/public` on `127.0.0.1:4329` and creates | ||
| `/tmp/gh-aw/agent/cracktro-review/`. | ||
| Keep its process handle; do not run Python directly, `mkdir`, or shell loops. |
| ## Steps | ||
|
|
||
| 1. **Start the sandbox-local preview** — Run `npm --prefix docs run preview -- --host 127.0.0.1 --port 4321` with the Bash tool's background/async mode. Keep its process handle for cleanup. Do not start a runner-host server, bind to `0.0.0.0`, install packages, or change proxy configuration. Poll `curl http://localhost:4321/gh-aw/ --fail --silent --show-error --connect-timeout 2 --max-time 5` for at most 30 seconds until it returns successfully; stop and report a setup failure if it does not become ready. Loopback preview traffic uses the sandbox's existing local bypass; do not inspect environment variables to discover proxy settings. | ||
| 1. **Start the sandbox-local preview** — Run `npm --prefix docs run preview -- --host 127.0.0.1 --port 4321` with the Bash tool's background/async mode. Keep its process handle for cleanup. Do not start a runner-host server, bind to `0.0.0.0`, install packages, or change proxy configuration. Poll `curl http://localhost:4321/gh-aw/ --fail --silent --show-error --retry 15 --retry-connrefused --retry-delay 2 --retry-max-time 25 --connect-timeout 2 --max-time 5` as one standalone call, bounded to 30 seconds; stop and report a setup failure if it does not become ready. Loopback preview traffic uses the sandbox's existing local bypass; do not inspect environment variables to discover proxy settings. |
|
🎉 This pull request is included in a new release. Release: |


Why
Three workflows reported incomplete work because required commands did not match their tool-permission contracts. Align the requested behavior with narrowly scoped capabilities rather than broadening shell access or weakening integrity controls.
Approach
Runtime engines, model selection, credential routing, safe-output limits, and sandbox protections remain unchanged. Generated locks accompany the source changes.
Investigated runs: Visual Regression, Spec Coverage, Cracktro.
Validation
node --test .github/scripts/test_audit_spec_coverage.cjs .github/scripts/test_cracktro_preview.cjs: 16 passing fixture tests; preview startup is mocked.npm --prefix actions/setup/js run test:js -- visual_regression_workflow.test.cjs: 7 passing permission-contract tests../gh-aw compile visual-regression-checker daily-spec-coverage-kiro daily-cracktro-maintainer --dry-run --no-check-update --json: passed source validation, model checks and shellcheck.GOMAXPROCS=2 VERSION=1.0.103 make recompile: all 368 workflows compiled.GOMAXPROCS=2 VERSION=1.0.103 make agent-report-progress: passed formatting, lint, applicable tests and workflow-drift checks.No workflows or live browser/server components were run. Integrity-filtered issue evidence remains an intentional incomplete outcome, not an empty or clean audit.