Skip to content

feat(claude): autonomous PR merge-readiness automation - #2718

Merged
Andriy Knysh (aknysh) merged 16 commits into
mainfrom
osterman/loops-for-review
Jul 13, 2026
Merged

Andriy Knysh (aknysh) merged 16 commits into
mainfrom
osterman/loops-for-review

Conversation

@osterman

@osterman Erik Osterman (Cloud Posse) (osterman) commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

What

Builds a full autonomous PR merge-readiness system for Claude Code sessions in this repo, layered up from an initial hourly rebase-and-CodeRabbit loop into a complete one-shot/recurring check-and-fix pipeline:

  • pr-maintenance-loop skill — schedules the check hourly via Claude Code's native CronCreate/ScheduleWakeup primitives (not GitHub Actions, no external service). Calls CronCreate directly rather than the generic /loop skill, since this loop is inherently tied to the local git/gh session (signing key, checkout state) and has no cloud-compatible equivalent.
  • fix-all skill — the one-shot merge-readiness pass pr-maintenance-loop runs every cycle: sync with origin/main, check CI, resolve CodeRabbit threads, patch-scoped lint, patch-scoped test/coverage, and a final readiness check that announces (via the say skill's audible nudge, plus a written summary) once the PR needs nothing but human final review. That readiness check also reconciles the PR title/description against the patch's full accumulated scope before announcing, using a narrowly-scoped gh pr edit --title/--body-file permission (labels/reviewers/base/milestone stay denied and human-owned).
  • lint / test-coverage skills — patch-aware (--new-from-rev=origin/main) lint and test/coverage checks reused both standalone and from fix-all.
  • say skill — a macOS audible nudge (say) for every human-attention exit path, plus the one positive "ready for final review" case.
  • New agents — lint-fix, test-coverage-fix, merge-conflict-resolve, and coderabbit-review (existing, reused) do the actual fixing/resolving work each skill delegates to.
  • atmos fix custom commands (.atmos.d/fix.yaml) — sync/ci/threads/comments/lint/coverage/tests/--all, the mechanical half each skill step wraps.
  • .claude/settings.json — the real enforcement boundary: a narrow allow/deny list covering exactly the git/gh/go commands this automation needs, with explicit denies for force-push, git reset --hard/clean, gh pr merge/close/edit --base/--add-reviewer/--milestone/--add-label, and edits to .github/workflows/**, Makefile, go.mod, go.sum.
  • CLAUDE.md — points every future session/worktree at the loop.

Why

PR maintenance chores — rebasing against main, responding to CodeRabbit threads, keeping lint/coverage green, and knowing when a PR is actually ready for a human's final pass — currently need manual attention every cycle. This automates the full loop hourly in any worktree, using only the local git/gh session already in use (no new external service or secrets), while keeping merge fully human-gated, treating all PR/CodeRabbit content as untrusted data rather than instructions, and giving an explicit audible+written signal once a PR is genuinely ready for review instead of leaving that judgment call to whoever happens to check next.

References

None — internal Claude Code tooling change, no linked issue.

Adds a pr-maintenance-loop skill that rebases the current PR against
main when behind and delegates unresolved CodeRabbit threads to the
coderabbit-review agent, run via Claude Code's native /loop primitive.
A committed .claude/settings.json enforces the real security boundary
(no force-push, no merge/close, no workflow/Makefile/go.mod edits) so
untrusted PR/CodeRabbit content can only ever be treated as data.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@atmos-pro

atmos-pro Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Tip

Atmos Pro  

No affected stacks workflow was detected for this pull request.
If this is expected, no action is needed.
Learn More. Ask AI.

@osterman Erik Osterman (Cloud Posse) (osterman) added the no-release Do not create a new release (wait for additional code changes) label Jul 11, 2026
@github-actions github-actions Bot added the size/m Medium size PR label Jul 11, 2026
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

@mergify

mergify Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Important

Cloud Posse Engineering Team Review Required

This pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes.

To expedite this process, reach out to us on Slack in the #pr-reviews channel.

@mergify mergify Bot added the needs-cloudposse Needs Cloud Posse assistance label Jul 11, 2026
@coderabbitai

coderabbitai Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Adds Claude Code permissions, atmos fix maintenance commands, supporting GitHub and Go scripts, specialized remediation agents, and session-bound workflows for recurring or one-shot pull request maintenance.

Changes

PR maintenance automation

Layer / File(s) Summary
Maintenance permissions policy
.claude/settings.json
Adds allowlisted Git, GitHub, Go, and notification commands while denying destructive operations, mutation patterns, and protected file edits.
Fix command orchestration
.atmos.d/fix.yaml, .claude/skills/pr-maintenance-loop/scripts/*, .claude/skills/test-coverage/scripts/*
Adds atmos fix subcommands and scripts for branch sync, CI and review-thread reporting, thread replies, and patch-scoped coverage.
Recurring and one-shot workflows
.claude/skills/pr-maintenance-loop/SKILL.md, .claude/skills/fix-all/SKILL.md, CLAUDE.md
Defines session-bound hourly execution, PR checks, cycle expiry and cancellation, one-shot maintenance, escalation behavior, and final summaries.
Lint and coverage remediation
.claude/skills/lint/SKILL.md, .claude/skills/test-coverage/SKILL.md, .claude/agents/lint-fix.md, .claude/agents/test-coverage-fix.md
Documents patch-aware lint and coverage workflows, delegates fixes to specialized agents, and specifies validation and reporting guardrails.
Notification and agent guidance
.claude/skills/say/SKILL.md, .claude/agents/README.md, .claude/agents/merge-conflict-resolve.md
Adds macOS audible notification rules and cataloged agent procedures for maintenance and merge conflicts.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Agent
  participant AtmosFix
  participant GitHub
  participant GoTools
  Agent->>AtmosFix: start recurring or one-shot maintenance
  AtmosFix->>GitHub: inspect PR, CI, branch, and review threads
  AtmosFix->>GoTools: run patch-scoped lint and coverage
  AtmosFix->>GitHub: post replies or resolve review threads
  AtmosFix-->>Agent: report cycle or run summary
Loading

Suggested labels: minor

Poem

I’m a rabbit with scripts in my hat,
Keeping PR branches tidy and flat.
Hourly hops, checks shining bright,
Threads get replies, conflicts see light.
With carrots and commits, the queue feels right!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: autonomous PR merge-readiness automation for Claude Code.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch osterman/loops-for-review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/settings.json:
- Around line 8-9: Update the Bash permission rules in the settings
configuration to explicitly deny git add -A and commit-signing bypass variants,
including --no-gpg-sign and -c commit.gpgsign=false. Preserve the existing
allowed git add and git commit patterns while ensuring these prohibited forms
cannot be authorized by the current wildcard entries.
- Around line 15-16: Tighten the Bash allowlist entries in the settings
configuration: restrict the gh api graphql permission to read-only operations,
and restrict the pull-request API pattern to read-only methods so it cannot
perform merge or close actions. Preserve the existing gh pr merge and gh pr
close denials while ensuring these broader gh api patterns cannot bypass them.
- Around line 8-16: Restrict the Bash and gh command permissions in
.claude/settings.json at lines 8-16 and 23-24 so broad wildcard rules cannot
permit git add -A, commit-signing bypass flags, force pushes, or PR/API write
operations; narrow the patterns or add explicit deny rules for each unsafe
variant. In .claude/skills/pr-maintenance-loop/SKILL.md at lines 60-63, revise
the “fail-closed by construction” wording to acknowledge that this depends on
keeping the allowlist aligned with prohibited variants.

In @.claude/skills/pr-maintenance-loop/SKILL.md:
- Around line 60-63: The description of the permissions boundary in the
surrounding enforcement guidance overstates its guarantees. Update the text near
the “real enforcement boundary” statement to say it fails closed only for
commands outside the allowlist, and explicitly note that the
`.claude/settings.json` deny rules must remain synchronized with the documented
prohibitions.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5b3bafb6-8fbb-4bdc-98e0-b74271198dd8

📥 Commits

Reviewing files that changed from the base of the PR and between b3fd0b3 and 931b4c6.

📒 Files selected for processing (3)
  • .claude/settings.json
  • .claude/skills/pr-maintenance-loop/SKILL.md
  • CLAUDE.md

Comment thread .claude/settings.json Resolved
Comment thread .claude/settings.json Resolved
Comment thread .claude/settings.json Resolved
…nance loop

git add:*/git commit:* allow rules admitted git add -A and commit-signing
bypass flags with no matching deny entry, and gh api graphql:*/pulls/*
allowed arbitrary mutations and non-GET pulls calls not covered by the
gh pr merge/close denies. Add explicit deny patterns for each, and soften
SKILL.md's "fail-closed by construction" claim to note the guarantee only
holds where deny stays in sync with the documented prohibitions.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@coderabbitai coderabbitai Bot 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
.claude/skills/pr-maintenance-loop/SKILL.md (3)

106-110: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Verify the signature after committing.

git log --show-signature -1 runs before git add and git commit, so it validates the previous HEAD, not the commit produced by this cycle. Move signature verification after the commit and fail closed before pushing if the new HEAD is not validly signed.

Proposed fix
    - `git log --show-signature -1` to confirm the new commit is signed.
    - `git add` only the files it actually touched — never `git add -A`.
    - Commit, then plain `git push` (never a flag that could force).
+   - `git add` only the files it actually touched — never `git add -A`.
+   - Commit, then run `git log --show-signature -1` and verify the new commit.
+   - Push only after signature verification succeeds.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/pr-maintenance-loop/SKILL.md around lines 106 - 110, Update
the post-review commit sequence in the “If threads were found” workflow so `git
log --show-signature -1` runs after `git add` and commit, validating the newly
created HEAD. Before the plain `git push`, fail closed if that commit is not
validly signed; keep staging restricted to files actually touched and never use
force-push options.

106-110: 🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift

Require a clean worktree before the agent commits.
git add-ing only touched files still risks picking up pre-existing edits in the same file. Require a clean worktree up front, or compare against the starting diff and reject any overlapping hunks before committing.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/pr-maintenance-loop/SKILL.md around lines 106 - 110, Update
the thread-handling workflow in the skill instructions to require a clean
worktree before delegating to the coderabbit-review agent or committing changes.
If the worktree is not clean, stop rather than risking inclusion of pre-existing
edits; retain the existing restriction to stage only files actually touched and
never use git add -A.

96-110: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Sync the local branch after gh pr update-branch.

That command updates the PR branch on GitHub only; the local worktree can stay behind, so the next commit may land on stale history and git push can fail as non-fast-forward. Fetch and fast-forward/reset before delegating, or stop until local HEAD matches the remote branch.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/pr-maintenance-loop/SKILL.md around lines 96 - 110, Update
the mergeStateStatus == BEHIND flow after gh pr update-branch to synchronize the
local branch with the updated remote branch before delegating review-thread
work. Fetch the remote and fast-forward or reset local HEAD to the remote
branch, or stop the cycle if they do not match; do not proceed with stale
history.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In @.claude/skills/pr-maintenance-loop/SKILL.md:
- Around line 106-110: Update the post-review commit sequence in the “If threads
were found” workflow so `git log --show-signature -1` runs after `git add` and
commit, validating the newly created HEAD. Before the plain `git push`, fail
closed if that commit is not validly signed; keep staging restricted to files
actually touched and never use force-push options.
- Around line 106-110: Update the thread-handling workflow in the skill
instructions to require a clean worktree before delegating to the
coderabbit-review agent or committing changes. If the worktree is not clean,
stop rather than risking inclusion of pre-existing edits; retain the existing
restriction to stage only files actually touched and never use git add -A.
- Around line 96-110: Update the mergeStateStatus == BEHIND flow after gh pr
update-branch to synchronize the local branch with the updated remote branch
before delegating review-thread work. Fetch the remote and fast-forward or reset
local HEAD to the remote branch, or stop the cycle if they do not match; do not
proceed with stale history.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 69af54d1-2163-4ce4-b964-8db27de86dd1

📥 Commits

Reviewing files that changed from the base of the PR and between 931b4c6 and e588e1f.

📒 Files selected for processing (2)
  • .claude/settings.json
  • .claude/skills/pr-maintenance-loop/SKILL.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .claude/settings.json

@codecov

codecov Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.62%. Comparing base (50947fa) to head (276ef83).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2718   +/-   ##
=======================================
  Coverage   81.61%   81.62%           
=======================================
  Files        1639     1639           
  Lines      154739   154739           
=======================================
+ Hits       126294   126304   +10     
+ Misses      21527    21520    -7     
+ Partials     6918     6915    -3     
Flag Coverage Δ
unittests 81.62% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 10 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 11, 2026
…mmands, fix-all skill

Extends the hourly pr-maintenance-loop toward full autonomous merge-readiness:

- New atmos fix custom commands (.atmos.d/fix.yaml): sync, ci, threads, comments,
  lint, coverage, tests, and --all — a real CLI surface for the same checks the
  loop runs, usable standalone. Toast-styled status output throughout.
- New lint and test-coverage skills (+ lint-fix and test-coverage-fix agents):
  patch-scoped checks and fixes, zero tolerance for coverage theater or gaming
  failing tests green.
- New say skill: audible human-attention nudges, reused across every skill's
  human-attention exit paths.
- New fix-all skill: one-shot version of the hourly cycle (sync, CI, CodeRabbit
  threads, lint, coverage) — same checks and agent-delegated fixes, run on demand
  instead of on a schedule. pr-maintenance-loop is now a thin wrapper that just
  schedules fix-all hourly via /loop.
- gh-resolve-review-thread.sh: narrow, fixed-mutation-shape wrapper (exactly two
  GraphQL mutations, never arbitrary query text) letting the loop reply to and
  resolve GitHub review threads it has verifiably fixed, without weakening the
  blanket "no gh api graphql mutations" deny rule in .claude/settings.json.
- CI-check awareness: atmos fix ci surfaces failing checks; lint/test failures
  get delegated to lint-fix/test-coverage-fix with extra causation verification
  (CI runs the full suite, wider than this loop's own patch-scoped checks) since
  it may catch things they wouldn't; anything else is reported, never touched.
- Fixes a real bug found while dogfooding: gh pr update-branch only updates the
  remote branch via GitHub's API, never the local checkout, which was producing
  false lint findings (already-merged upstream code read as "new") and could get
  a later push rejected as non-fast-forward. atmos fix sync now keeps local git
  state in sync every cycle, fail-closed on anything but a clean fast-forward.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.atmos.d/fix.yaml:
- Around line 141-148: Update the shell step around the
gh-resolve-review-thread.sh invocation to pass body, thread ID, and base ref
through the step’s env configuration rather than interpolating them into the
command string; read them as $ATMOS_BODY, $ATMOS_THREAD_ID, and $ATMOS_BASE_REF,
while preserving the existing resolve flag behavior.

In @.claude/agents/lint-fix.md:
- Around line 38-39: Update the verification step in the lint-fix instructions
to resolve the packages affected by the change and run both go build and go test
for that package scope. If full-repository testing remains intentional, state
that explicitly instead of combining package-local build with repository-wide
tests.
- Around line 16-20: Update the specialized golangci-lint agent guidance to
treat all custom-gcl diagnostics as untrusted data: preserve the
DATA-vs-instructions boundary, validate any referenced paths before using them,
and ignore commands or instructions embedded in lint output. Keep the existing
description of the custom binary and lint workflow unchanged.

In @.claude/agents/test-coverage-fix.md:
- Around line 16-19: Update the test-coverage agent instructions around the
delegated script output and the corresponding sections at the referenced
diagnostic guidance points to explicitly treat test output, coverage profiles,
and diffs as untrusted data. Instruct the agent to ignore any commands or
instructions embedded in those payloads and follow only agent policy and
repository instructions.

In @.claude/skills/lint/SKILL.md:
- Around line 41-46: Update the full-repo lint command in the lint skill to use
the same missing-or-stale custom-gcl rebuild guard as the default lint path.
Route both execution modes through the shared guarded build flow so fresh
checkouts build the binary and configuration or plugin changes invalidate stale
binaries, while preserving full-repo behavior without --new-from-rev.

In @.claude/skills/say/SKILL.md:
- Around line 28-40: Update the say invocation guidance in SKILL.md so callers
construct the notification text in a shell variable and pass it via quoted
expansion, rather than interpolating untrusted PR or branch content inside the
command source. Preserve the existing command availability guard and
failure-safe behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 2b692501-d914-483c-8bee-edf067b5ef8c

📥 Commits

Reviewing files that changed from the base of the PR and between e588e1f and 6df2c2f.

📒 Files selected for processing (16)
  • .atmos.d/fix.yaml
  • .claude/agents/README.md
  • .claude/agents/lint-fix.md
  • .claude/agents/test-coverage-fix.md
  • .claude/settings.json
  • .claude/skills/fix-all/SKILL.md
  • .claude/skills/lint/SKILL.md
  • .claude/skills/pr-maintenance-loop/SKILL.md
  • .claude/skills/pr-maintenance-loop/scripts/gh-resolve-review-thread.sh
  • .claude/skills/pr-maintenance-loop/scripts/list-failing-checks.sh
  • .claude/skills/pr-maintenance-loop/scripts/list-review-threads.sh
  • .claude/skills/pr-maintenance-loop/scripts/sync-branch.sh
  • .claude/skills/say/SKILL.md
  • .claude/skills/test-coverage/SKILL.md
  • .claude/skills/test-coverage/scripts/patch-test-coverage.sh
  • CLAUDE.md
✅ Files skipped from review due to trivial changes (2)
  • .claude/agents/README.md
  • CLAUDE.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .claude/settings.json

Comment thread .atmos.d/fix.yaml Resolved
Comment thread .claude/agents/lint-fix.md Resolved
Comment thread .claude/agents/lint-fix.md Resolved
Comment thread .claude/agents/test-coverage-fix.md Resolved
Comment thread .claude/skills/lint/SKILL.md Resolved
Comment thread .claude/skills/say/SKILL.md Resolved
@mergify

mergify Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏

@mergify mergify Bot added the conflict This PR has conflicts label Jul 11, 2026
Resolves the one real conflict in .claude/settings.json: our permissions
block and main's new hooks.PostToolUse block (security-remediate-trigger)
are independent sibling top-level keys, kept both.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@mergify mergify Bot removed the conflict This PR has conflicts label Jul 11, 2026
The loop's whole point is to reach merge-ready without a human in the
loop, and "report a conflict and stop" wasn't that -- confirmed for
real: a cycle hit a genuine conflict in .claude/settings.json (this
loop's own permissions block vs. a separately-merged PR's new hooks
block) and just sat there instead of resolving it.

sync-branch.sh now falls back to a local `git merge origin/main` when
`gh pr update-branch` fails on a real conflict, and reports
STATUS: MERGE_CONFLICT with the conflicted files' full content instead
of erroring out blind. The new merge-conflict-resolve agent only
resolves conflicts it's confident are structural/non-overlapping (both
sides independently adding different things, like the settings.json
case); anything semantically overlapping, or touching
.github/workflows/**, Makefile, go.mod, or go.sum, it aborts and
reports for human attention instead of guessing.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
.claude/skills/fix-all/SKILL.md (2)

18-19: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Clarify that only fixes are patch-scoped.

The workflow also synchronizes origin/main and inspects full-suite Acceptance Tests, so “every check” is broader than the PR patch. Change this to state that automated fixes and remediations remain scoped to PR-attributable changes.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/fix-all/SKILL.md around lines 18 - 19, Update the scope
statement in the workflow documentation to clarify that automated fixes and
remediations are limited to changes attributable to the PR diff, while
synchronization with origin/main and full-suite Acceptance Test inspection may
cover broader repository state.

142-155: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Move the signature check after commit
git log --show-signature -1 currently checks the existing HEAD, not the commit created for this run. Stage, commit, then confirm the new HEAD is signed before pushing.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/fix-all/SKILL.md around lines 142 - 155, Reorder the commands
in step 4 so the touched files are staged and committed before running git log
--show-signature -1. Ensure the signature check validates the newly created
HEAD, then perform the existing plain git push.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/agents/merge-conflict-resolve.md:
- Line 48: Update the JSON validation instruction in the merge-conflict
resolution guidance to pass the file path as a safely quoted command-line
argument, then read it via sys.argv[1] inside Python instead of interpolating it
into Python source. Preserve the existing requirement that JSON files must
parse.
- Around line 46-51: Update the validation steps in the
structural/non-overlapping conflict workflow to require no unresolved Git index
entries before staging or committing. After resolving files, verify both `git
diff --name-only --diff-filter=U` or `git ls-files -u` are empty, aborting and
reporting unresolved conflicts when they are not; retain the existing
conflict-marker and format-specific validation.
- Around line 53-56: Update the standard git-hygiene wrapper instructions in the
merge-resolution flow to require the repo-approved signing path when creating
the merge commit, rather than relying on plain git commit configuration. Before
the final plain git push, validate that git log --show-signature -1 reports a
valid signature and block the push if it does not.

---

Outside diff comments:
In @.claude/skills/fix-all/SKILL.md:
- Around line 18-19: Update the scope statement in the workflow documentation to
clarify that automated fixes and remediations are limited to changes
attributable to the PR diff, while synchronization with origin/main and
full-suite Acceptance Test inspection may cover broader repository state.
- Around line 142-155: Reorder the commands in step 4 so the touched files are
staged and committed before running git log --show-signature -1. Ensure the
signature check validates the newly created HEAD, then perform the existing
plain git push.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 332cba21-82da-4114-be6e-e4af47b07cb0

📥 Commits

Reviewing files that changed from the base of the PR and between 976de8c and 5472d91.

📒 Files selected for processing (6)
  • .atmos.d/fix.yaml
  • .claude/agents/README.md
  • .claude/agents/merge-conflict-resolve.md
  • .claude/settings.json
  • .claude/skills/fix-all/SKILL.md
  • .claude/skills/pr-maintenance-loop/scripts/sync-branch.sh
✅ Files skipped from review due to trivial changes (1)
  • .claude/agents/README.md
🚧 Files skipped from review as they are similar to previous changes (3)
  • .claude/skills/pr-maintenance-loop/scripts/sync-branch.sh
  • .claude/settings.json
  • .atmos.d/fix.yaml

Shell-injection hardening in .atmos.d/fix.yaml (Go-template-expanded
flag/argument values now pass through env: + $VAR instead of being
interpolated straight into the sh -c command string); explicit
untrusted-DATA treatment for lint-fix/test-coverage-fix's inputs;
build/test verification scoped to affected packages instead of a
whole-repo/single-package mismatch; full-repo lint mode now goes
through the same custom-gcl staleness guard as the default mode;
say's documented invocation builds the message in a variable first;
merge-conflict-resolve now also checks the git index (not just text
markers) for unresolved conflicts, passes file paths as argv instead
of interpolating them into Python source, and treats commit-signature
verification as a hard gate before push.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 11, 2026

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.claude/skills/fix-all/SKILL.md (1)

142-146: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Verify the commit after creating it, not before.

git log --show-signature -1 currently runs before git add and Commit, so it can validate the previous HEAD rather than the fix being pushed. Stage and create the signed commit first, then verify that new commit, and only afterward push. If the delegated agent already commits, verify its commit SHA and do not create a second commit.

Proposed ordering
 After it reports back:
-- `git log --show-signature -1` to confirm the new commit is signed.
 - `git add` only the files it actually touched — never `git add -A`.
-- Commit, then plain `git push` (never a flag that could force).
+- Create the signed commit.
+- `git log --show-signature -1` to confirm that commit is signed.
+- Plain `git push` (never a flag that could force).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/fix-all/SKILL.md around lines 142 - 146, Reorder the
post-delegation workflow so `git add` the files actually touched and create the
signed commit before running `git log --show-signature -1`; then verify the
newly created commit and perform a plain `git push`. If `coderabbit-review`
already committed, verify that commit’s SHA instead of creating a second commit.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/agents/merge-conflict-resolve.md:
- Around line 51-52: Update the Go validation guidance in the merge-conflict
resolution instructions so both go build and go test use the same resolved
affected-package list, rather than go build . and the repository-wide go test
./.... Preserve the YAML parsing check and ensure unrelated packages are
excluded while nested affected packages remain covered.

In @.claude/skills/lint/SKILL.md:
- Line 45: Update the code fence in the lint skill documentation to declare the
bash language, preserving the existing command content and satisfying the
markdown fence language requirement.

---

Outside diff comments:
In @.claude/skills/fix-all/SKILL.md:
- Around line 142-146: Reorder the post-delegation workflow so `git add` the
files actually touched and create the signed commit before running `git log
--show-signature -1`; then verify the newly created commit and perform a plain
`git push`. If `coderabbit-review` already committed, verify that commit’s SHA
instead of creating a second commit.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6de2e5f7-c7a7-4276-b811-ee6444b02b64

📥 Commits

Reviewing files that changed from the base of the PR and between 976de8c and 6c3e924.

📒 Files selected for processing (10)
  • .atmos.d/fix.yaml
  • .claude/agents/README.md
  • .claude/agents/lint-fix.md
  • .claude/agents/merge-conflict-resolve.md
  • .claude/agents/test-coverage-fix.md
  • .claude/settings.json
  • .claude/skills/fix-all/SKILL.md
  • .claude/skills/lint/SKILL.md
  • .claude/skills/pr-maintenance-loop/scripts/sync-branch.sh
  • .claude/skills/say/SKILL.md
✅ Files skipped from review due to trivial changes (1)
  • .claude/agents/README.md
🚧 Files skipped from review as they are similar to previous changes (4)
  • .claude/agents/test-coverage-fix.md
  • .claude/skills/pr-maintenance-loop/scripts/sync-branch.sh
  • .claude/settings.json
  • .atmos.d/fix.yaml

Comment thread .claude/skills/lint/SKILL.md Resolved
fix-all now checks CI, coverage, unresolved threads, CodeRabbit's actual
review verdict, and local commit/push state at the end of an otherwise-clean
cycle, and gives an audible + written nudge once the PR needs nothing more
than human final review.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.claude/skills/fix-all/SKILL.md (1)

149-153: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Verify that this run created the signed fix.

git log --show-signature -1 only checks the current HEAD; a pre-existing signed commit could satisfy it even when coderabbit-review made no change. Capture the pre-agent SHA, require a new commit when a fix is reported, and derive staged paths from Git rather than agent-reported data.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/fix-all/SKILL.md around lines 149 - 153, Update the
post-agent workflow in “fix-all” to capture the pre-agent commit SHA, require
and verify a new signed commit after “coderabbit-review” reports a fix, and
reject unchanged HEADs. Replace agent-reported file selection with paths derived
from Git’s staged or changed-file state, while preserving the restriction
against “git add -A” and force-pushing.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/skills/fix-all/SKILL.md:
- Around line 193-197: Update the final readiness check in the fix-all workflow
to verify symmetric upstream divergence, replacing the one-sided `git rev-list
--count @{u}..HEAD` check with a comparison such as `git rev-list --left-right
--count HEAD...@{u}` and requiring both counts to be zero. Preserve the existing
`git status --porcelain` cleanliness check and readiness-banner behavior.
- Around line 187-190: The CodeRabbit approval check must verify approval
applies to the current PR head, not merely use the latest review state. Update
the review query and validation in the fix-all workflow to compare the approved
review’s commit_id with the current head SHA, or use GitHub’s final review
decision while preserving the required APPROVED outcome.

---

Outside diff comments:
In @.claude/skills/fix-all/SKILL.md:
- Around line 149-153: Update the post-agent workflow in “fix-all” to capture
the pre-agent commit SHA, require and verify a new signed commit after
“coderabbit-review” reports a fix, and reject unchanged HEADs. Replace
agent-reported file selection with paths derived from Git’s staged or
changed-file state, while preserving the restriction against “git add -A” and
force-pushing.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 50dbc2fe-f014-4473-861e-2a826e5fe6c9

📥 Commits

Reviewing files that changed from the base of the PR and between 6c3e924 and e6e9dfe.

📒 Files selected for processing (1)
  • .claude/skills/fix-all/SKILL.md

Comment thread .claude/skills/fix-all/SKILL.md Resolved
Comment thread .claude/skills/fix-all/SKILL.md Resolved
…uncement

fix-all's step 8 now rewrites a stale PR title/body to match the patch's
full accumulated scope (not just the opening commit) before announcing
readiness, using the pull-request skill's template. Adds a narrowly scoped
gh pr edit allowlist entry (title/body only) with explicit denies for
--base, reviewers, milestone, and labels, which stay human-owned.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Scope go build/test to the same affected-package paths in merge-conflict
resolution guidance, add a bash language tag to a lint skill fence, and fix
two real bugs in fix-all's readiness check: the CodeRabbit-approval check now
verifies the approving review's commit SHA matches the PR's current head
(not just the latest review state, which could be stale), and the
local-sync check now uses symmetric divergence so a checkout behind
upstream is caught too, not just one ahead of it.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/skills/fix-all/SKILL.md:
- Around line 194-213: Update the CodeRabbit approval check in the GraphQL query
to page through the reviews connection until the newest relevant review is
included, rather than limiting evaluation to the first 100 reviews. Preserve the
existing requirement that the latest CodeRabbit review has state APPROVED and
its commit.oid matches headRefOid, and ensure the final result remains true only
when both conditions hold.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c654294d-274b-46b7-ab08-27d5289597ba

📥 Commits

Reviewing files that changed from the base of the PR and between 8e03fd7 and 547d3d5.

📒 Files selected for processing (3)
  • .claude/agents/merge-conflict-resolve.md
  • .claude/skills/fix-all/SKILL.md
  • .claude/skills/lint/SKILL.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .claude/skills/lint/SKILL.md

Comment thread .claude/skills/fix-all/SKILL.md Resolved
The CodeRabbit-approval check's GraphQL query used reviews(first: 100),
which pages forward from the oldest review — on a long-lived PR with more
than 100 total reviews, the newest review could fall outside that window.
Switch to reviews(last: 100) to page backward from the end of the
connection instead, guaranteeing the most recent review is always in scope.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 12, 2026
This loop depends on the local git/gh session (worktree, signing key, gh
auth) by design, so a cloud-scheduled agent in a fresh isolated environment
can't run it. Calling CronCreate directly instead of routing through the
generic /loop skill stops it from asking a cloud-vs-session question that
has no useful answer here.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@osterman Erik Osterman (Cloud Posse) (osterman) changed the title feat(claude): add hourly PR-maintenance loop skill feat(claude): autonomous PR merge-readiness automation Jul 12, 2026

@coderabbitai coderabbitai Bot 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.claude/skills/pr-maintenance-loop/SKILL.md (1)

11-12: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Stale /loop references contradict the direct-CronCreate design.

Lines 11-12 describe scheduling as "via Claude Code's native /loop primitive" and line 66 says the prompt is "re-enqueued every cycle via /loop 60m", but lines 27 and 51-56 explicitly direct the agent to call CronCreate directly and not route through /loop. The PR objectives confirm this was an intentional switch. These two references were not updated to match.

📝 Proposed fix

Line 12:

-Schedules the [`fix-all`](../fix-all/SKILL.md) skill to run every hour via Claude Code's native
-`/loop` primitive (`CronCreate`/`ScheduleWakeup`) — not GitHub Actions, no new external service,
+Schedules the [`fix-all`](../fix-all/SKILL.md) skill to run every hour via Claude Code's native
+`CronCreate`/`ScheduleWakeup` primitives — not GitHub Actions, no new external service,

Line 66:

-This is the literal text re-enqueued every cycle via `/loop 60m`:
+This is the literal text re-enqueued every cycle by the recurring `CronCreate` job:

Also applies to: 66-66

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/pr-maintenance-loop/SKILL.md around lines 11 - 12, Update the
scheduling descriptions in the skill documentation to reflect the direct
CronCreate/ScheduleWakeup design rather than Claude Code’s /loop primitive.
Revise the references near the skill overview and cycle prompt to describe
direct cron scheduling, while preserving the existing instruction not to use
/loop.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In @.claude/skills/pr-maintenance-loop/SKILL.md:
- Around line 11-12: Update the scheduling descriptions in the skill
documentation to reflect the direct CronCreate/ScheduleWakeup design rather than
Claude Code’s /loop primitive. Revise the references near the skill overview and
cycle prompt to describe direct cron scheduling, while preserving the existing
instruction not to use /loop.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: ebb6ee05-d0b3-463d-9978-72b34ea043df

📥 Commits

Reviewing files that changed from the base of the PR and between 547d3d5 and 276ef83.

📒 Files selected for processing (2)
  • .claude/skills/fix-all/SKILL.md
  • .claude/skills/pr-maintenance-loop/SKILL.md

@aknysh
Andriy Knysh (aknysh) merged commit c6bd0fc into main Jul 13, 2026
77 checks passed
@atmos-pro

atmos-pro Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Tip

Atmos Pro  

No affected stacks workflow was detected for this pull request.
If this is expected, no action is needed.
Learn More. Ask AI.

@aknysh
Andriy Knysh (aknysh) deleted the osterman/loops-for-review branch July 13, 2026 13:57
@mergify mergify Bot removed the needs-cloudposse Needs Cloud Posse assistance label Jul 13, 2026
Erik Osterman (Cloud Posse) (osterman) added a commit that referenced this pull request Jul 13, 2026
The autonomous-loop guardrails added in #2718 blocked gh pr edit
--add-label/--remove-label and gh pr close globally, including in
interactive sessions, so the pull-request skill's own label workflow
couldn't run without a manual permission grant. Merge stays
human-gated; label and close are now allowed.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

Copy link
Copy Markdown

These changes were released in v1.223.0-rc.10.

Andriy Knysh (aknysh) pushed a commit that referenced this pull request Jul 14, 2026
…#2751)

* feat(claude): add changelog and fix-log skills, convert roadmap agent to skill

Consolidates blog-post authoring rules (previously duplicated across CLAUDE.md,
pull-request, and docs skills) into a single changelog skill with real
before/after examples for problem-first framing, backtick-opening prose, cast
embeds, and authorship. Adds a fix-log skill for durable fix records under
docs/fixes/. Converts the roadmap agent to a skill since its work is a
deterministic data-editing procedure that doesn't need isolated subagent
context.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(claude): allow gh pr label edits and pr/issue close

The autonomous-loop guardrails added in #2718 blocked gh pr edit
--add-label/--remove-label and gh pr close globally, including in
interactive sessions, so the pull-request skill's own label workflow
couldn't run without a manual permission grant. Merge stays
human-gated; label and close are now allowed.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(claude): make fix-all actually fix missing/wrong PR semver labels

Permission was allowed but the skill text still told the model not to
touch labels, and a failing PR Semver Labels CI check fell into the
generic "report only" bucket instead of getting fixed. Adds a labels
case to step 2's CI-failure handling and a second reconciliation pass
in step 8 for label drift that never trips CI.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(claude): align blog-post requirement docs with changelog-check.yml

The workflow only requires release docs for non-draft PRs targeting
main and accepts both .md and .mdx, but the changelog skill, docs
skill, and CLAUDE.md all read like a blanket .mdx-only rule with no
draft/base-branch exemption. Aligns all three to the actual gate.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
Erik Osterman (Cloud Posse) (osterman) added a commit that referenced this pull request Sep 8, 2026
Agents dispatch workflows (e.g. the cache warmup) as part of CI
maintenance; the deny rule blocked `gh workflow run` during this PR's
validation. Continues the deny-rule removal from #2718.

Co-Authored-By: Claude Fable 5 <[email protected]>
Andriy Knysh (aknysh) pushed a commit to zack-is-cool/atmos that referenced this pull request Sep 9, 2026
…#3077)

* fix(ci): make Go caches restore-only with a real warmup writer

The Tests workflow's Go caches were functionally hollow: the nightly
warmup saved entries with an empty GOCACHE that then froze (setup-go
keys are immutable per go.sum hash), any go.sum change cold-started
every OS (no restore-keys), the Linux build leg saved its warm cache to
RunsOn's S3 where the ten hosted Linux shards could never read it, and
kubernetes-e2e nullified its own restore with a GOCACHE override.
Measured live: 504s `go build` and a 27-minute race job on every run
despite "warm" caches, plus 1-1.8GB re-saved per platform per PR after
any dependency merge.

- setup-go-cache: restore-only actions/cache with restore-keys
  fallback; key excludes ImageOS so RunsOn and hosted legs share one
  lineage; no job ever saves
- setup-go-cache-warmup: the sole writer; adds a Linux leg, runs the
  real compiles (build, acceptance precompile, race-namespace warm) and
  a push-to-main trigger on go.mod/go.sum changes
- test.yml: build linux leg and race job move to the GitHub cache
  backend; race job upgraded to runner=xlarge; kubernetes-e2e GOCACHE
  override removed; restore-only toolchain cache added to lint,
  hooks-tflint, floci, floci-go, and race
- native-ci: PR runs are restore-only; a push-to-main warm-cache job is
  the provider-mirror key's single writer
- codeql: cache the custom-gcl binary keyed on its inputs
- website workflows: cache the pnpm store
- atmos.yaml: toolchain cache key rolls on .tool-versions changes

See docs/fixes/2026-09-07-ci-go-cache-restore-only-warmup-writer.md.

Co-Authored-By: Claude Fable 5 <[email protected]>

* chore(claude): remove gh workflow deny rule

Agents dispatch workflows (e.g. the cache warmup) as part of CI
maintenance; the deny rule blocked `gh workflow run` during this PR's
validation. Continues the deny-rule removal from cloudposse#2718.

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(ci): re-warm native-ci cache on tool-pin changes; fix doc wording

Review follow-ups: the native-ci warm-cache job now also runs when
.tool-versions or atmos.yaml change on main, and the fix record states
the YAML validation that was actually run.

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(ci): run the Build linux leg on a 4-core RunsOn runner

The "terraform" runner resolves to a 2-core i4i.large; the Build linux
leg is the critical path every acceptance shard waits on, and its cold
compile measured 721s there against ~350s on the 4-core hosted legs.
Also records in the fix log that dispatching the warmup on a PR branch
cannot warm that PR (pull_request runs read only their merge ref and
the base branch scope), so the warm-cache numbers are post-merge only.

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(ci): retry transient jobs-API failures in the shard aggregate check

The per-OS "Acceptance Tests (<os>)" aggregate check failed a rerun
whose shards had all passed because one jobs-API request answered
HTTP 502 (run 34234932427, attempt 2). rerun.IsTransient classifies
5xx responses and transport errors; CheckShardResults now treats a
transient listing failure like an unsettled poll (report it, wait,
list again) instead of failing the attempt. Definitive errors (4xx,
cancelled context) still fail at once, and a transient error on the
final poll fails with errShardListingFails wrapping the cause.

Co-Authored-By: Claude Fable 5 <[email protected]>

* test(ci/acceptance): table-drive the shard fetch-error scenarios

Review follow-up: the definitive / transient-then-success / transient-
until-exhausted listing cases now share one table with per-case mock
setup, expected error chain, wait count and output assertions.

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(ci): complete the warmup's harden-runner allowlist

The first dispatched run of the rewritten warmup was flagged by
StepSecurity: the new linux leg's `apt-get update` refreshes the hosted
image's Microsoft and Google Chrome repos too, apt resolves
_http._tcp.<mirror> SRV records before every fetch, and the Windows leg
reached Delivery Optimization and Windows Update download hosts missing
from the background-services list. Allow the repo hosts and the Windows
hosts, and disable apt's SRV lookups (Acquire::EnableSrvRecords=false)
so that class of DNS noise stops appearing at all.

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(ci): disable apt SRV lookups via apt.conf.d in the warmup

The command-line -o Acquire::EnableSrvRecords=false only reached the
apt-get processes it was passed to; apt's post-update hooks (ESM, motd)
spawn their own apt runs, and StepSecurity still saw their
_https._tcp.esm.ubuntu.com / motd.ubuntu.com SRV lookups on the
validation run. A drop-in under /etc/apt/apt.conf.d applies to all of
them.

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-release Do not create a new release (wait for additional code changes) size/l Large size PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants