Skip to content

ci: repair nightly-rebase GPG step and pr-discovery turn budget - #9

Merged
oysteinkrog merged 1 commit into
if/mainfrom
fix/bot-autonomy-ci
Jul 24, 2026
Merged

ci: repair nightly-rebase GPG step and pr-discovery turn budget#9
oysteinkrog merged 1 commit into
if/mainfrom
fix/bot-autonomy-ci

Conversation

@oysteinkrog

Copy link
Copy Markdown
Member

What this does

Fixes the two fork-automation cron jobs that have failed every day for 8+ days: Nightly Rebase and PR Discovery. Neither failure is related to any branch content; both are workflow-config bugs.

Nightly Rebase

The attempt-rebase and open-pr jobs check out if/staging, then invoke the import-bot-gpg composite action by a workspace-relative path (./.github/actions/import-bot-gpg). if/staging is 93 commits behind if/main and does not carry that action, so the job died at "Import bot GPG key" with Can't find 'action.yml' before it ever attempted a rebase.

Pin both call sites to InitialForce/wpf/.github/actions/import-bot-gpg@if/main so the action resolves from the workflow's own line regardless of which branch a job checks out.

PR Discovery

The Haiku discovery agent ran with --max-turns 8. The scan queries upstream, emits one ledger event per new PR, then opens the batch issue — more than 8 tool turns — and hit error_max_turns at turn 9. Raised the budget to 50. No stuck loop or broken tool; the budget was simply too small.

How to review

Three lines across two files. actionlint validates the uses: syntax. Nightly Rebase's runtime path is exercised by tonight's cron; PR Discovery I verify by a manual workflow_dispatch on this branch before merge.

nightly-rebase checks out if/staging and referenced the import-bot-gpg
composite action by workspace-relative path. if/staging is 93 commits
behind if/main and does not carry that action, so the job died at
"Import bot GPG key" before it ever attempted the rebase. Pin the action
to InitialForce/wpf/.github/actions/import-bot-gpg@if/main so it resolves
from the workflow's own line regardless of which branch a job checks out
(both call sites: attempt-rebase and open-pr).

pr-discovery ran the Haiku discovery agent with --max-turns 8. The scan
queries upstream, emits one ledger event per new PR, then opens the batch
issue, which needs more than 8 tool turns; the run hit error_max_turns at
turn 9. Raise the budget to 50.

Both workflows had failed on these steps every day for 8+ consecutive
days, independent of any branch content.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@oysteinkrog
oysteinkrog merged commit b39e0d4 into if/main Jul 24, 2026
12 checks passed
@oysteinkrog
oysteinkrog deleted the fix/bot-autonomy-ci branch July 24, 2026 09:19
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.

1 participant