Skip to content

fix: let model source maintenance publish unattended - #11924

Merged
lpcox merged 1 commit into
mainfrom
fix-model-maintenance-git-allowlist
Nov 22, 2026
Merged

lpcox merged 1 commit into
mainfrom
fix-model-maintenance-git-allowlist

Conversation

@lpcox

@lpcox lpcox commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Problem

Run 44968178263 (Model source maintenance) failed in conclusion with report_incomplete. The agent had a validated proposal (OpenRouter refresh + Decisions facts; required tests passed), but its single chained publish command was denied:

git checkout -b … && git add … && git --no-pager diff --cached … && git commit … && git status --short && git branch --show-current && git --no-pager log -1 …

Every segment must match the allowlist; git --no-pager … and git status --short (only bare git status was allowed) did not, and unattended runs deny unmatched segments (denied-no-approval-rule-and-could-not-request-from-user). The agent then declined to retry, so no PR was created.

Fix

  • Allow git status:* and git log:* in tools.bash.
  • Prompt: run each publishing step as its own plain git command, no global options (--no-pager, -c), no chaining/piping, and retry in allowlisted form if denied instead of abandoning publication.
  • Recompiled with gh-aw v1.3.1 (matching lock metadata) and post-processed; lock diff is limited to the two new --allow-tool entries.
  • Workflow test updated to pin the new allowlist and guidance.

Validation

npx jest scripts/ci/model-api-mapping-updater-workflow.test.ts scripts/model-information/maintenance-command.test.ts scripts/ci/apply-general-workflow-patches.test.ts — 80 passed.

Run 44968178263 prepared a validated proposal but lost it when a chained commit command was denied: `git status --short` and `git --no-pager log`/`diff` segments did not match the bash allowlist, and unattended runs deny unmatched segments.

Allow `git status:*` and `git log:*`, and instruct the agent to run each publishing step as a separate plain git command without global options, retrying in the allowlisted form if denied.

Co-authored-by: Copilot App <[email protected]>
Copilot AI adaptive review requested due to automatic review settings November 22, 2026 01:06

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.

🟢 Approval recommended

No active review issues are reported for the workflow permission and publishing-guidance updates.

No open issues 🎉

What changed in this PR

This PR updates AWF’s model source maintenance workflow so unattended runs can publish validated changes without being blocked by Git command allowlist mismatches.

Changes:

  • Allows argument-bearing git status and git log commands.
  • Instructs the agent to publish using separate plain Git commands and retry denied commands in allowlisted form.
  • Regenerates the workflow lock and extends regression assertions for the permissions and publishing guidance.
File Description
scripts/​ci/​model-api-mapping-updater-workflow.test.ts Adds assertions for Git permissions and publishing guidance.
.github/​workflows/​model-api-mapping-updater.md Expands the allowlist and clarifies unattended publishing steps.
.github/​workflows/​model-api-mapping-updater.lock.yml Updates generated metadata and runtime tool permissions.

Review effort: Balanced (adaptive)

@lpcox
lpcox merged commit f7114d2 into main Nov 22, 2026
38 of 39 checks passed
@lpcox
lpcox deleted the fix-model-maintenance-git-allowlist branch November 22, 2026 03:01
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.

2 participants