Skip to content

Bound CI doctor reviews and stop filtered-evidence retries - #11923

Merged
lpcox merged 5 commits into
mainfrom
copilot/aw-fix-ci-integration-doctor-updater
Nov 22, 2026
Merged

lpcox merged 5 commits into
mainfrom
copilot/aw-fix-ci-integration-doctor-updater

Conversation

@lpcox

@lpcox lpcox commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

CI and Integration Doctor Updater selected a 50-PR batch, repeatedly requested integrity-filtered evidence, and substituted Git history before reporting incomplete. The proposed changes constrain review scope and stop evidence-access failures before they consume the run budget.

  • Bounded review

    • Cap each run at 5 candidates; start with 1 when review cost is unknown.
    • Preserve carry-forward backlog and immediate receipt persistence.
  • Evidence-access handling

    • Probe the first selected candidate and inspect filter warnings even when HTTP or command execution succeeds.
    • Stop PR-content reads on denial; prohibit cross-PR retries and Git or transport fallbacks.
    • Report exact failure context without classifying unattempted candidates.
    • Allow smaller pages for response-size limits, never integrity denials.
  • Safeguards

    • Front-load existing safety restrictions and add focused regression coverage.
    • Regenerate the target lock without changing permissions, sandboxing, cache protections, or dependency pins.

Genuine evidence-access failures still report incomplete; this does not relax the gateway policy.

@lpcox lpcox changed the title [WIP] Fix reported incomplete result in CI and Integration Doctor Updater Bound CI doctor reviews and stop filtered-evidence retries Nov 22, 2026
@lpcox
lpcox marked this pull request as ready for review November 22, 2026 03:01
Copilot AI adaptive review requested due to automatic review settings November 22, 2026 03:01

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

Deferred-candidate rotation checkpoints all offered candidates rather than actual attempts, so the five-candidate cap can repeatedly skip eligible work.

1 open issue
What changed in this PR

This PR bounds AWF’s CI diagnosis-maintenance reviews and stops filtered-evidence retries early, addressing the budget exhaustion reported in #11922.

Changes:

  • Cap reviews at five candidates, starting with one when cost is unknown, while preserving backlog and receipts.
  • Add an access probe and stop-on-denial guidance that prohibits cross-PR retries and evidence fallbacks.
  • Add focused regression assertions and refresh lock metadata without changing permissions, sandboxing, or dependency pins.
File Description
scripts/​ci/​diagnosis-maintenance-workflow.test.ts Adds assertions for bounded batches and filtered-evidence stop conditions.
.github/​workflows/​ci-integration-doctor-updater.md Defines review limits, evidence-access handling, and front-loaded safeguards.
.github/​workflows/​ci-integration-doctor-updater.lock.yml Updates the generated body hash for the revised instructions.

Review effort: Max (adaptive)

Comment on lines +110 to +111
within those limits and the time budget. Select at most 5 candidates for this
workflow, starting with 1 when review cost is unknown; never fill the shared
@lpcox

lpcox commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot address review feedback

Copilot AI commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

@copilot address review feedback

Implemented actual-attempt-based deferred rotation and added multi-run regression coverage for partial batches and early evidence denial. The fix is in commit 4976fcf.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@lpcox Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@lpcox

lpcox commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

@copilot fix failing ci check https://github.com/github/gh-aw-firewall/actions/runs/44981374313/job/137082382860?pr=11923

Fixed the failing CI prompt contract assertions and committed the lock-safe wording update in 067313a.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 94.44% 94.44% ➡️ +0.00%
Statements 93.07% 93.08% 📈 +0.01%
Functions 93.64% 93.64% ➡️ +0.00%
Branches 87.36% 87.36% ➡️ +0.00%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/enclave/host-executor-socket.ts 95.9% → 95.9% (+0.00%) 90.2% → 91.5% (+1.22%)
src/commands/main-action-cleanup.ts 96.9% → 97.9% (+1.03%) 97.0% → 98.0% (+0.99%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox
lpcox merged commit 0a92800 into main Nov 22, 2026
38 of 39 checks passed
@lpcox
lpcox deleted the copilot/aw-fix-ci-integration-doctor-updater branch November 22, 2026 07:59
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.

[aw] CI and Integration Doctor Updater: reported incomplete result

4 participants