Skip to content

refactor(ci): simplify the reconcile-lost-runs and tidy-code-upkeep workflows - #15802

Merged
kyle-sexton merged 1 commit into
mainfrom
refactor/s062-maintenance-workflows-3
Nov 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
refactor/s062-maintenance-workflows-3

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15763

session: Simplify E2 B

Summary

A /simplify pass over maintenance-reconcile-lost-runs.yml and maintenance-tidy-code-upkeep.yml. Tests or the repo's checkers already pin both files, so the only change is whitespace. Behavior is unchanged.

Fix

  • maintenance-tidy-code-upkeep.yml: removed the extra blank lines in model-subscription (one) and model-fallback (two). They were left behind when steps that only the key leg has were removed. YAML parsing ignores them, and so does the step splitter in lib/workflow-text.mjs.

Considered and left as is

  • The ${{ always() }} form on the two "Pick the next leg" steps: callers.test.mjs ("every select-model-credential next-leg call runs bare or under always()") and maintenance-tidy-code-upkeep/credential-legs.test.mjs both match it as text. A trial change to bare always() failed both, so I reverted it.
  • The rm -rf before mkdir -p in the marker and seal steps: these run after a model leg with sandbox: "false", and the file's own comment names that threat.
  • maintenance-reconcile-lost-runs.yml: already clean. Every env var and output has a reader. The "Mark this tick's work done" step is the pacer's marker (pace.test.mjs). The three scans over record.json have to stay, because of the conjunct shape scripts/check-artifact-retention.mjs (gatedBy) requires.

Verification

  • I ran each of the 19 local test files that name these workflows with scripts/run-test-file.sh; all pass. They include:
    • check-trusted-trigger.test.mjs (485), callers.test.mjs (280), reconcile.test.mjs (183), rate-guard.test.mjs (159)
    • fix-ci-dispatch.test.mjs (80), log-api-budget.test.mjs (76), merge-holds.test.mjs (71), workflow-gates.test.mjs (66), live-config.test.mjs (65)
    • tidy-code-upkeep/credential-legs.test.mjs (3), recent-pass.test.mjs (7), pace.test.mjs (15)
    • ci-lanes-pr-hold.test.sh and ci-rerun-ci-status.test.sh
  • Local actionlint 1.7.12 reports no error other than the cache-mode key it does not know, which it also reports on origin/main.
  • node scripts/check-artifact-retention.mjs: 152 upload steps match (101 families).
  • The full .github suite is left to ci-status, under the one-suite-per-machine rule.

Related

Follow-ups

These are for the restructuring pass (R2, #15695), because each needs another file:

  • maintenance-tidy-code-upkeep.yml:
    • The "Revoke the lane token" step is identical in push-branches and publish.
    • The SHA-256 plan check appears in both of those jobs.
    • The stage/prepare/seal scripts repeat once per leg. callers.test.mjs holds the legs equal, and they mirror upstream-apply-changelog.yml.
  • maintenance-reconcile-lost-runs.yml: the three record scans could become one only if check-artifact-retention.mjs gatedBy accepted an extra conjunct.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Q3CfCWdBxXQpDLrC7B

…orkflows

Drop the blank lines left in model-subscription and model-fallback where
steps only the key leg has were taken out. maintenance-reconcile-lost-runs
is already clean: every candidate is held by a test or by
check-artifact-retention's gating shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VQb9Q3CfCWdBxXQpDLrC7B
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T03:27:03.332738Z 5c04968 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 5c04968f2aa83341806c9d5bb3b85956cb42dbf9: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15802

I found no security issues.

I read the whole diff. It changes one file, .github/workflows/maintenance-tidy-code-upkeep.yml, which matches a trusted path. The change removes three blank lines: one before the "Report the subscription's handoff" step and two before the "Record the leg" step. No step, if: condition, permissions: block, token request, trigger, environment variable or script changes.

A YAML parser ignores blank lines between steps, so the workflow runs the same at base and head. The change widens no trust control: the trusted-trigger check, the scope of the lane token, the kill switch, the merge holds and the untrusted-text paths are all unchanged. It also deletes no standing instruction.

This matches what the PR says it does: a whitespace-only /simplify pass.

Spend: none. The change does not alter model usage, run frequency or billing.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 5c04968f2aa83341806c9d5bb3b85956cb42dbf9: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #15802

No findings. Full review: I read every hunk of the one changed file.

The pull request removes three blank lines from .github/workflows/maintenance-tidy-code-upkeep.yml. One sat between steps in model-subscription (base line 756) and two in model-fallback (base lines 1044–1045). Each spot still has one blank line between its steps. No step, key, indentation or expression changed, so the YAML parses to the same document and the workflow behaves the same.

Closing issue #15763, acceptance criteria:

  • Behavior is unchanged; no listed file renamed, moved or deleted: met. The change is whitespace only, and the file keeps its path.
  • The diff edits only the listed files (plus asserted test lines and changelog fragments): met. One listed file changed.
  • Within 400 changed lines and 15 hand-edited files: met. 3 lines removed, 1 file.
  • ci-status is green: I can't check this from this lane. The author says the local tests and actionlint pass; I did not run them.
  • Every workflow file name, job id and trigger is unchanged: met. None appear in the diff.

No test could fail if a blank line came back, and none is needed: blank lines are not behavior. The PR body says maintenance-reconcile-lost-runs.yml was already clean. The issue's criteria don't require that file to change, so leaving it alone breaks no criterion.

No plugin manifest changed. Nothing in the PR context or prior-findings file tells the lane what to do. The workflow is on the trusted-path list, so I read its whole change: it is whitespace only and gates nothing new.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 146e133 Nov 13, 2026
52 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/s062-maintenance-workflows-3 branch November 13, 2026 03:41
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify the maintenance-reconcile-lost-runs.yml and maintenance-tidy-code-upkeep.yml workflows

1 participant