Skip to content

refactor(ci): simplify pr-require-checks.yml workflow (part 3 of 4) - #15897

Merged
kyle-sexton merged 1 commit into
mainfrom
refactor/simplify-pr-require-checks-p3
Nov 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
refactor/simplify-pr-require-checks-p3

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15851

session: Simplify E2 A

Summary

Runs /simplify on the third quarter of .github/workflows/pr-require-checks.yml (E2 chunk S073, part 3 of 4), after part 2 (#15884) merged. The file had 7726 lines at origin/main; part 3 owns lines 3865-5796, so the jobs that start there: test-node, check-managed-files, check-tests and ci-status (which runs to line 7712). Every edit is a comment: the parsed workflow, and so every job, step, if:, env line, output, permission and printed line, is unchanged.

Fix

Comments that misstated the code:

  • ci-status timeout: the pinned aggregate-results lookup retries for 120 s, not 45 s ("up to 9 reads over 120 seconds" in its action.yml), so the composites' waits come to about five and a half minutes. The paragraph is now a list, and the lanes-hold parenthetical no longer splits a sentence.
  • test-node: the "keyed on every lockfile" comment sat on setup-pinned-node, which takes no cache input; it now sits on "Restore the npm cache". The header no longer claims every sub-project has typecheck and lint chains (only miro lints).
  • human_gated: pr-merge's refusal is recognised by both <!-- babysit-merge-risk --> and the escalation marker in its first two lines, as the jq requires.
  • Lifted-by: a body comment said only the relabeling person's removal lifts a new hold; the code (and the step's own header) accepts any listed human's. The stale-hold comment now matches the code (the App's newest comment in the window must carry the marker).
  • queued_author names no pr-unblock step that reads its cache, and an unread config leaves verify_judged unset (not both outputs); "the step above" in three headers now names the step it means.
  • The hold-config paragraph ("as is merge-holds.mjs, whose ...") is rewritten so it parses, with the same facts.

Also: "as before" and ticket back-references in prose are cut, a duplicate check-tests sentence and a course-digest comment that repeated video-digest's are dropped, and about a dozen comments that broke mid-sentence or ran past the width (up to 200 columns) are rewrapped.

Left out: two path-literal substitutions in the hold steps ("$module" for a path already in a variable), since they change executable lines on a gate path for no behavior gain, and the duplicated jq predicates and ls-remote reads listed below.

Verification

  • actionlint .github/workflows/pr-require-checks.yml: clean; node scripts/check-artifact-retention.mjs: 152 upload steps match.
  • scripts/check-docs-only-gate.sh --check and scripts/check-lane-coverage.sh --check: pass.
  • node --test --test-concurrency=4 on the 30 node test files that name this workflow: 4034/4034 pass.
  • scripts/run-test-file.sh on the 36 shell test files that name it, including the ones that run ci-status step bodies (ci-hold-*, ci-lanes-pr-hold, ci-review-lanes, ci-gh-read, ci-ordered-skips), under uv run --with pyyaml: all pass.
  • test_merge_holds_sync.py and test_babysit_verify_evidence.py: 462 passed.
  • Left to CI: the full .github suite (ci-status).

Follow-ups

  • scripts/ci-gh-read.test.sh prints "aggregate-results' 202 s of waits", computed with the old 45 s retry window; with 120 s it is 277 s.
  • The verify_judged jq predicate, the base-SHA check with the tracker read, and the gh-readonly-queue sed are each repeated across ci-status steps; sharing them means a helper file.

Related

Part of #15694 (E2, the /simplify epic's workflow group). Parts 1-2: #15870, #15884. Part 4: S074 (#15861), which owns report-ci-status.

🤖 Generated with Claude Code

Comments only, in the jobs that start in the third quarter of the file
(test-node, check-managed-files, check-tests, ci-status): correct
comments that misdescribe the code (the composites' own-gate retry
window is 120 s, so their waits total about five and a half minutes;
the npm cache, not setup-node, is keyed on the lockfiles; only miro
lints; pr-merge's refusal needs both markers in its first two lines;
any listed human's removal lifts a trusted relabel; which steps "the
step above" meant; what an unread config leaves unset), replace "as
before" and ticket back-references with present-tense wording, untangle
the hold-config and timeout paragraphs, and rewrap comments that broke
mid-sentence or ran past the width.

Closes #15851

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 07:50
@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-13T07:51:38.621339Z 18cd581 Draft marked ready
ℹ️ 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 18cd5811827f95f038e31c1e0f82fe44ed0c1490: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15897 (pr-require-checks.yml simplify, part 3 of 4)

I found no security issues.

I read every hunk of the only changed file, .github/workflows/pr-require-checks.yml. It is a trusted path and holds the ci-status hold steps, which are a merge-hold control, so I checked the whole change. Every added or removed line is a YAML # comment, including the reflowed comment inside the run: block at pr-require-checks.yml:6776-6777. No step, if:, env, permissions:, output, uses: pin or shell line changed. Nothing that decides holds changed either:

  • the human-gated jq predicate
  • the lifted-by and stale-hold checks
  • the merge-group label hold
  • the lanes-hold step
  • the review-lanes wait loop
  • the base-config read

So this change widens no trust control and weakens no merge hold.

Instruction-surface lens: the comments removed include a note on re-labeling recovery (old line ~6070), a duplicate check-tests skip sentence and some ticket back-references. These are notes for maintainers, not instructions a model follows. The code they describe is unchanged and still enforces the same behavior. I did not read the instruction exception register; I judged the removals by what they affect, and they affect nothing at runtime.

Embedded text in PR context: none directs the lane.

Prior findings: none; this is the first review of this PR (not blocking-only).

Cost: none. The change spends no credits or billable resources.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. This PR changes comments only in .github/workflows/pr-require-checks.yml. I read every hunk of the diff. No executable line, if:, env value, output, permission or printed string changes. The only code lines in the diff are the cache key: and the [[ " $PACKAGES " ... ]] || exit 0 guards, and those are unchanged context.

I checked each rewritten comment against the code it describes at head:

  • npm cache comment (test-node): it moved to "Restore the npm cache". It now says the cache is keyed on the Node pin and the five sub-projects' lockfiles, which is exactly the hashFiles(...) list at
    key: npm-${{ runner.os }}-${{ hashFiles('.node-version', 'plugins/miro/server/package-lock.json', 'plugins/ai-briefing/skills/generate/output/build/package-lock.json', 'plugins/knowledge/skills/video-digest/extraction/package-lock.json', 'plugins/knowledge/skills/course-digest/extraction/package-lock.json', '.github/actions/resolve-config/package-lock.json') }}
    . The old wording ("every lockfile they install from") overstated it, because the outside-node packages' lockfiles are not in the key.
  • ci-status timeout list: it now says 120 s of own-gate retries. That matches the existing GH_READ_MARGIN_SECONDS comment at
    # aggregate-results' 60 s rate-limit wait, 120 s of own-gate retries, 7 s
    . The 120 s figure itself comes from the pinned external aggregate-results composite. I could not open that file, so the figure is the author's claim and I have not verified it.
  • human_gated: the comment now names both markers in the first two lines, matching the jq at
    and ([.body | splits("\r?\n")][0:2] | map(gsub("^\\s+|\\s+$"; "")) | index("<!-- babysit-merge-risk -->") != null
    and index("<!-- work-items:escalation lane=pr-merge kind=escalated -->") != null))))
    .
  • Lifted-by body comment: it was dropped. It was wrong: $since takes the newest label event by any listed human, and any listed human's removal after that passes (L6070-L6076).
  • Stale-hold comment: it matches the code, which takes the App's newest comment between $held_at and $lifted_at and requires the marker on its first line (L6113-L6115).
  • queued_author: the comment is accurate:
    • Only the lanes-hold step reads pulls/$pr through pr_read with the same args (L6708).
    • An unread config writes lanes=false and leaves verify_judged unset (L6401-L6422).
  • The "step above" fixes now name the steps they mean: the human-gated step, queued_author and the queued hold-label step.
  • Dropped sentences: the check-tests sentence was a duplicate (the job's if: comment already states the gates). The course-digest comment repeated video-digest's.
  • Tests: none of them assert on the removed phrases. #1507 survives only in plugins/knowledge/CHANGELOG.md. The "the lanes kill switch is on" text that reconcile.test.mjs pins is still in the comment.

Closing issue #15851:

  • Behavior unchanged: met. Only comments change.
  • Only the listed file is edited: met.
  • Within 400 lines: met.
  • Job ids and triggers unchanged: met.
  • Only part-3 jobs touched: met. The hunks are in test-node, check-managed-files, check-tests and ci-status.
  • ci-status green: left to CI.

No test could fail on a comment change, and none is needed.

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 5e30eed Nov 13, 2026
100 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/simplify-pr-require-checks-p3 branch November 13, 2026 08:16
@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 pr-require-checks.yml workflow (part 3 of 4)

1 participant