Repository navigation
[Fleet Monitor] petry-projects/google-app-scripts β ci-failure-analyst.ymlΒ #322
Description
Activity
- addeddev-leadFor dev-lead agent pickupFor dev-lead agent pickup
on May 25, 2026 Dev-Lead Implementation Plan
Issue: #322 β [Fleet Monitor] petry-projects/google-app-scripts β ci-failure-analyst.yml
Scope
Bump the pinned
ci-failure-analyst-reusable.ymlSHA in.github/workflows/ci-failure-analyst.ymlfrom121bee88to the currentpetry-projects/.github-privatemain SHA6610e8a0so the workflow picks up commitdb60a41e(ci: Add fallback-model opus to CI Failure Analyst) and6610e8a0(feat(engine): in-Claude model fallback before cross-provider switch), which resolve the Sonnet-rate-limit failures (You've hit your Sonnet limit Β· resets May 26, 4pm (UTC)) seen on both recent failed runs (26356873327 and 26372547948).Implementation Checklist
- Update pinned reusable workflow SHA in
.github/workflows/ci-failure-analyst.yml:44 - Run
npx prettier --write .to ensure formatting - Run
npm run check(prettier check + lint) - Run
npm test(Jest + coverage)
Tests to Write
None. This is a workflow-only configuration change β bumping a pinned commit SHA in a stub workflow that delegates all logic to a reusable workflow in another repository. No application code changes. Per
AGENTS.md, this qualifies as the "pure configuration / behavior-preserving" TDD exception (Phase 2). Existing Jest suite andnpm run checkstill gate the change.Test Command
npm test(andnpm run check)- Update pinned reusable workflow SHA in
Dev-Lead: Implementation Complete
Plan Execution
- Investigated both failed runs (26356873327, 26372547948) β root cause was
You've hit your Sonnet limit Β· resets May 26, 4pm (UTC)in theclaude --printstep of the reusable workflow. - Confirmed
petry-projects/.github-privatemain now containsdb60a41e(ci: Add fallback-model opus to CI Failure Analyst) and6610e8a0(feat(engine): in-Claude model fallback before cross-provider switch), which directly address this failure mode. - Bumped pinned reusable workflow SHA in
.github/workflows/ci-failure-analyst.yml:44from121bee88β6610e8a0. - Applied
npx prettier --write(also normalized pre-existing quote/whitespace drift in the same file sonpm run checkpasses). - Ran
npm run check,npm test,npm test -- --coverage, andnode scripts/check-coverage.js.
Test Results
> google-app-scripts@0.0.0 test > jest --runInBand Test Suites: 12 passed, 12 total Tests: 301 passed, 301 total Snapshots: 0 total Time: 4.142 s π Coverage Report: β statements : 98.91% (999/1010) [required: 95%] β branches : 90.00% (558/620) [required: 85%] β functions : 98.00% (98/100) [required: 95%] β lines : 100% (0/0) [required: 100%] β All coverage metrics meet requirements. npm run check β 0 errors (22 pre-existing unused-var warnings, unchanged)Files Changed
.github/workflows/ci-failure-analyst.yml: bumped pinned reusable-workflow SHA from121bee881bd13715706d30230b2d5a8d2d78b0b1to6610e8a03fc4d568946f45a02ea23bf3e858de3f; prettier-normalized incidental quote/whitespace drift in the same file.
Notes
- TDD exception applied: Per AGENTS.md, no tests were written β this is a pure workflow-config (pinned-SHA) change with no observable behavior change in this repo's code. All logic lives in the reusable workflow in
petry-projects/.github-private. - Root cause is rate-limit / external usage cap, not a defect in this repo's stub. The fix relies on the upstream reusable workflow's new
--fallback-model opusflag (db60a41e) plus the engine-level in-Claude fallback (6610e8a0) to keep the analyst functional when the primary Sonnet quota is exhausted. - Follow-up suggestion (not in scope here): the
templates/ci-failure-analyst.ymlinpetry-projects/.github-privatestill pins the old121bee88SHA. Other repos that deploy the template will hit the same issue until the template is bumped too.
- Investigated both failed runs (26356873327, 26372547948) β root cause was
- addeddev-leadFor dev-lead agent pickupFor dev-lead agent pickupand removeddev-leadFor dev-lead agent pickupFor dev-lead agent pickup
on Jun 3, 2026 Dev-Lead Implementation Plan
Issue: #322 β [Fleet Monitor] petry-projects/google-app-scripts β ci-failure-analyst.yml
Scope
Bump the pinned
ci-failure-analyst-reusable.ymlSHA in.github/workflows/ci-failure-analyst.ymlfrom121bee881bd13715706d30230b2d5a8d2d78b0b1(old) to93f03dbc88b5aa053efc09954c4d7bec75a7ead9(currentpetry-projects/.github-privatemain HEAD) to pick up all upstream fixes including the Sonnet rate-limit fallback (db60a41e,6610e8a0) and subsequent improvements.Implementation Checklist
- Update pinned reusable workflow SHA in
.github/workflows/ci-failure-analyst.ymlline 44 - Run
npx prettier --write .to ensure formatting - Run
npm run check(prettier check + lint) - Run
npm test(Jest + coverage)
Tests to Write
None β this is a pure workflow-configuration (pinned-SHA) change with no observable behavioral change in this repo's application code. All logic lives in the reusable workflow in
petry-projects/.github-private. Per AGENTS.md, this qualifies for the TDD exception.Test Command
npm test(andnpm run check)- Update pinned reusable workflow SHA in
Dev-Lead: Implementation Complete
Plan Execution
- Investigated issue β root cause was
You've hit your Sonnet limitin the reusable workflow; upstream fixes exist inpetry-projects/.github-privatemain since6610e8a0(ci: Add fallback-model opus) and beyond - Fetched current
petry-projects/.github-privatemain HEAD SHA:93f03dbc88b5aa053efc09954c4d7bec75a7ead9 - Bumped pinned reusable workflow SHA in
.github/workflows/ci-failure-analyst.ymlfrom121bee881bd13715706d30230b2d5a8d2d78b0b1β93f03dbc88b5aa053efc09954c4d7bec75a7ead9 - Fixed pre-existing ShellCheck SC2043 warnings in
scripts/apply-repo-settings.shandscripts/setup-code-quality-ruleset.sh(required bydev-lead-lint.sh) - Ran
npm run check,npm test,npm test -- --coverage,node scripts/check-coverage.js,bash .dev-lead/scripts/dev-lead-lint.sh
Test Results
Test Suites: 12 passed, 12 total Tests: 301 passed, 301 total Snapshots: 0 total Time: 1.841 s π Coverage Report: β statements : 98.91% (999/1010) [required: 95%] β branches : 90.00% (558/620) [required: 85%] β functions : 98.00% (98/100) [required: 95%] β lines : 100% (0/0) [required: 100%] β All coverage metrics meet requirements. npm run check β 0 errors (22 pre-existing unused-var warnings, unchanged) dev-lead-lint.sh β all checks passedFiles Changed
.github/workflows/ci-failure-analyst.yml: bumped pinned reusable-workflow SHA from121bee88...to93f03dbc...(current.github-privatemain HEAD), picking up all upstream fixes including the Sonnet rate-limit fallback and subsequent improvementsscripts/apply-repo-settings.sh: replaced single-itemfor cmd in ghloop with directcommand -v ghcheck (fixes ShellCheck SC2043 warning)scripts/setup-code-quality-ruleset.sh: same SC2043 fix as above
Notes
- TDD exception applied: Pure workflow-config + lint-fix change; no observable behavioral change in this repo's application code.
- SHA bumped to HEAD (not just
6610e8a0as in the prior attempt): the current HEAD93f03dbcincludes the Sonnet fallback plus all subsequent improvements merged through 2026-06-08. - Prior agent's PR was never merged β the previous attempt posted a completion report but the branch was abandoned without opening a PR. This run implements the fix fresh on
dev-lead/issue-322-20260608-2017.
- Investigated issue β root cause was
- addeddev-leadFor dev-lead agent pickupFor dev-lead agent pickupand removeddev-leadFor dev-lead agent pickupFor dev-lead agent pickup
on Jun 9, 2026 Dev-Lead Implementation Plan
Issue: #322 β [Fleet Monitor] petry-projects/google-app-scripts β ci-failure-analyst.yml
Scope
Bump the pinned
ci-failure-analyst-reusable.ymlSHA in.github/workflows/ci-failure-analyst.ymlfrom121bee881bd13715706d30230b2d5a8d2d78b0b1(original) to819d1a24bd717669416355e5ba6fadd1418b730c(currentpetry-projects/.github-privatemain HEAD as of 2026-06-09) to pick up the Sonnet rate-limit fallback fixes (db60a41e,6610e8a0) and all subsequent improvements. Previous attempts identified the root cause asYou've hit your Sonnet limitin the reusable workflow; this bumps to HEAD to capture all upstream fixes. Also fixes pre-existing ShellCheck SC2043 warnings inscripts/found bydev-lead-lint.sh.Implementation Checklist
- Update pinned reusable workflow SHA in
.github/workflows/ci-failure-analyst.yml(line 44) - Fix ShellCheck SC2043 warnings in
scripts/apply-repo-settings.shandscripts/setup-code-quality-ruleset.sh - Run
npx prettier --write .to ensure formatting - Run
npm run check(prettier check + lint) - Run
npm test(Jest + coverage) - Run
bash .dev-lead/scripts/dev-lead-lint.sh
Tests to Write
None β this is a pure workflow-configuration (pinned-SHA) change with no observable behavioral change in this repo's application code. All logic lives in the reusable workflow in
petry-projects/.github-private. Per AGENTS.md, this qualifies for the TDD exception (pure configuration change).Test Command
npm test(andnpm run check)- Update pinned reusable workflow SHA in
Dev-Lead: Implementation Complete
Plan Execution
- Investigated root cause β both original failures (and two recent ones on 2026-06-01) were
You've hit your Sonnet limitin theclaude --printstep of the reusable workflow - Fetched current
petry-projects/.github-privatemain HEAD SHA:819d1a24bd717669416355e5ba6fadd1418b730c(2026-06-09) - Bumped pinned reusable workflow SHA in
.github/workflows/ci-failure-analyst.ymlfrom121bee881bd13715706d30230b2d5a8d2d78b0b1β819d1a24bd717669416355e5ba6fadd1418b730c - Fixed pre-existing ShellCheck SC2043 warnings in
scripts/apply-repo-settings.shandscripts/setup-code-quality-ruleset.sh(flagged bydev-lead-lint.sh) - Ran
npx prettier --write .,npm run check,npm test,npm test -- --coverage,node scripts/check-coverage.js,bash .dev-lead/scripts/dev-lead-lint.sh
Test Results
Test Suites: 12 passed, 12 total Tests: 301 passed, 301 total Snapshots: 0 total Time: 4.324 s π Coverage Report: β statements : 98.91% (999/1010) [required: 95%] β branches : 90.00% (558/620) [required: 85%] β functions : 98.00% (98/100) [required: 95%] β lines : 100% (0/0) [required: 100%] β All coverage metrics meet requirements. npm run check β 0 errors (22 pre-existing unused-var warnings, unchanged) dev-lead-lint.sh β all checks passedFiles Changed
.github/workflows/ci-failure-analyst.yml: bumped pinned reusable-workflow SHA from121bee88...to819d1a24...(current.github-privatemain HEAD as of 2026-06-09), picking up the Sonnet rate-limit fallback (db60a41e,6610e8a0) and all subsequent improvementsscripts/apply-repo-settings.sh: replacedfor cmd in gh; dosingle-item loop with directcommand -v ghcheck (fixes ShellCheck SC2043)scripts/setup-code-quality-ruleset.sh: same SC2043 fix
Notes
- TDD exception applied: Pure workflow-config + lint-fix change; no observable behavioral change in this repo's application code. All analysis logic lives in the reusable workflow in
petry-projects/.github-private. - Root cause: Sonnet session-rate-limit exhaustion β not a defect in the stub workflow. The upstream
db60a41e+6610e8a0commits added--fallback-model opusto keep the analyst functional when the primary Sonnet quota is exhausted. - SHA bumped to current HEAD (
819d1a24) rather than just the initial fix commit (6610e8a0) to capture all improvements merged through 2026-06-09. - Prior attempts: Two previous agents implemented this fix (bumping to
6610e8a0then93f03dbc) but neither opened a PR; this run re-implements on the current branchdev-lead/issue-322-20260609-2206.
- Investigated root cause β both original failures (and two recent ones on 2026-06-01) were
β Auto-resolved by Fleet Monitor. This workflow's failure rate has been below the 10% threshold (or the workflow was removed) since 2026-05-27 (49 days) β the monitor stopped flagging it. Closing. It will reopen automatically if the workflow crosses the threshold again.
π‘ WARNING:
petry-projects/google-app-scripts/ci-failure-analyst.ymlWorkflow:
ci-failure-analyst.yml