Skip to content

Align workflow commands with scoped tool permissions - #78164

Merged
pelikhan merged 1 commit into
mainfrom
pelikhan/improved-umbrella
Nov 15, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pelikhan/improved-umbrella

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

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

  • Visual Regression Checker uses standalone, bounded readiness and browser commands, avoids redundant directory creation, and verifies cleanup through process handles.
  • Daily Spec Coverage Review invokes the exact authorized scanner command and searches for title-matching issues before merging and deduplicating results. Integrity filtering still requires an incomplete result, and the deprecated missing-tool configuration is migrated.
  • Daily Cracktro Maintainer uses a fixed-purpose preview launcher through its existing Node permission. The launcher fixes the document root, loopback bind and port, creates the screenshot directory, propagates failures, and forwards cleanup signals only to its child. The unusable direct Python grant is removed and the exact loopback IP is authorized.

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.
  • Read-only security review passed for the exact source and generated lock hashes; no confirmed vulnerabilities found.

No workflows or live browser/server components were run. Integrity-filtered issue evidence remains an intentional incomplete outcome, not an empty or clean audit.

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`:
@pelikhan
pelikhan marked this pull request as ready for review November 15, 2026 22:36
Copilot AI adaptive review requested due to automatic review settings November 15, 2026 22:36
@pelikhan
pelikhan merged commit ae19b70 into main Nov 15, 2026
63 checks passed
@pelikhan
pelikhan deleted the pelikhan/improved-umbrella branch November 15, 2026 22:36
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_action

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.

Generated by PR Specification Reviewer for #78164 · copilot · gpt56 · ~2 AIC · ⌖ ~2 AIC · ⊞ 1.6K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

Matt Pocock Skills Reviewer

Outcome: reported_action

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.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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: reported_no_action

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.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

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.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated by Ponytail Reviewer for #78164 · codex · routed: gpt61 medium · ~5 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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.

3 participants