Skip to content

refactor(ci): simplify intake-triage.yml workflow (part 2 of 2) - #15771

Merged
kyle-sexton merged 1 commit into
mainfrom
refactor/s059-intake-triage-part2
Nov 13, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
refactor/s059-intake-triage-part2

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #15754

session: Simplify E2 B

Summary

A /simplify pass over the second half of .github/workflows/intake-triage.yml: lines 1149-2296 of 2296 at origin/main 6a506e3, which holds the jobs refine-issue-subscription through triage-split-children. The range was already clean apart from one derivable expression.

Fix

  • In apply-refinement, the "Post the refinement" step's KILL_SWITCH env is now the literal proceed, the form refine-select already uses. The step runs only when a lane token was issued. Getting that token required the config, context and who-check steps to pass, and the who-check runs only when steps.kill.outputs.proceed == 'true'. So the old expression always evaluated to proceed.

Unchanged: the file name, the workflow name:, every job id and job name:, the triggers, the outputs, the step ids, the printed text, and the number and order of API writes.

Review findings left out:

  • refine-issue-subscription and refine-issue-fallback: callers.test.mjs (refineLegShape) locks their steps to refine-issue, which is in part 1. The exempt fields are pinned elsewhere in the same test. The subscription leg's "Fail without a refinement" if cannot take refine-issue's form, because when the credential step fails it must fail the job, not skip it.
  • Removing born-triaged from apply-refinement's needs, or merging triage-split-children's validate and dispatch loops: the first changes skip propagation, and the second could send POSTs before rejecting a bad number.

Verification

  • 17 local test files name this workflow. Each run with scripts/run-test-file.sh passes:
    • callers.test.mjs (280), apply-verdict.test.mjs (288), reconcile.test.mjs (183), refine.test.mjs (145), reenter.test.mjs (130), collect.test.mjs (84), log-api-budget.test.mjs (76), triage-sweep.test.mjs (66), check-kill-switch.test.mjs (53), check-upstream-status.test.mjs (14), plus the other five node files;
    • morning-brief.test.sh and post-merge-demotion-alert.test.sh.
  • node scripts/check-artifact-retention.mjs: 152 upload steps match (101 families).
  • Local actionlint 1.7.12 reports only the three unexpected key "cache-mode" errors, which the origin/main copy reports too. CI's pinned actionlint action decides.
  • The full .github suite is left to ci-status, under the one-suite-per-machine rule.

Related

Follow-ups

  • Everything below needs another file, so it is for the restructuring pass (R2, Restructure and dedupe workflow files (final group, host sessions) #15695):
    • The two "Log the API calls at the end" steps in redispatch-refined and triage-split-children are byte-identical.
    • apply-refinement's "Revoke the lane token" step repeats apply-verdict's.
    • A small composite action could replace either. The hub reads the notice text, so that text must stay the same.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Q3CfCWdBxXQpDLrC7B

apply-refinement's "Post the refinement" runs only after the kill
switch proceeded (lane-token, config, context and who-check gate on
it), so its KILL_SWITCH expression always yields `proceed`. Write the
literal, as refine-select does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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-13T02:37:06.717078Z 1372931 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-review reviewed 13729316b2bc3e4f15e95402d552c82d06e4f80f: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #15771 (refactor(ci): simplify intake-triage.yml workflow (part 2 of 2))

This PR changes one line in a trusted-path file. In the apply-refinement job's "Post the refinement" step, KILL_SWITCH changes from ${{ steps.kill.outputs.proceed == 'true' && 'proceed' || '' }} to the literal proceed.

The change keeps the same behavior. I traced the gate chain at head:

  • apply-refinement: who runs only if: steps.kill.outputs.proceed == 'true' (L2101).
  • context runs only when steps.who.outputs.proceed == 'true' (L2129).
  • config runs only when steps.context.outcome == 'success' (L2141).
  • lane-token runs only when config succeeded and applies (L2159).
  • "Post the refinement" runs only when steps.lane-token.outputs.token != '' (L2175).

When the kill check does not return proceed, who is skipped and gives no outputs, so every later step is skipped and the write step never runs. On every path where the step runs, the old expression already evaluated to proceed. refine.mjs's own KILL_SWITCH !== "proceed" check keeps working as before. The new literal matches refine-select's form (L792) and intake-reenter.yml.

Tests: the only test that pins this expression is callers.test.mjs:584. It asserts on apply-verdict's "Write the verdict" step, not apply-refinement, so this change leaves it intact. The step on L637 is in part 1's range and is correctly left alone.

Closing issue #15754 acceptance criteria:

  • Behavior unchanged: met, by the gate trace above. No test pins apply-refinement's KILL_SWITCH. Any change on this path would be a no-op, so there is nothing a test could catch.
  • Diff edits only the listed file: met.
  • Within 400 lines / 15 files: met (1 line).
  • File names, job ids and triggers unchanged: met.
  • Only jobs in range 2 of 2 changed: met (apply-refinement starts at L2047).
  • ci-status green: I can't check this from here. It is CI's call.

I did not run the tests or actionlint. The PR body's results for both are the author's claims, not checked by me.

No spend implications. No embedded instructions in the PR context.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #15771

No security issues found.

Scope. I read all of the one changed file, .github/workflows/intake-triage.yml. It is on the trusted-path list, so I also read the whole apply-refinement job (L2047-L2213) that the changed line sits in.

The change. In the "Post the refinement" step, KILL_SWITCH changes from ${{ steps.kill.outputs.proceed == 'true' && 'proceed' || '' }} to the literal proceed. That step reads the lanes kill switch, so I checked the step chain to see whether the kill switch can still stop the lane:

  • L2175: "Post the refinement" runs only when steps.lane-token.outputs.token != ''.
  • L2159: the lane-token request runs only when steps.config.outcome == 'success'.
  • L2141: config runs only when steps.context.outcome == 'success'. A skipped step's outcome is skipped, so a skipped context step stops it.
  • L2129: context runs only when steps.who.outputs.proceed == 'true'.
  • L2101: who runs only when steps.kill.outputs.proceed == 'true'. A skipped who step sets no outputs.

So whenever "Post the refinement" runs, the old expression had already evaluated to proceed. The new literal behaves the same in every run that reaches the step. The kill switch is still read at L2092-L2097 and still gates the whole chain.

Trust controls.

  • The trusted-actor check (who, L2099-L2110) is unchanged.
  • The lane-token request and its scope inputs (L2157-L2171) are unchanged.
  • The step's permissions are unchanged.

Nothing is widened. Running the lane after the kill switch is set is not possible any more than it was before.

PR context. It contains no embedded instructions aimed at the review.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 541f8b0 Nov 13, 2026
56 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/s059-intake-triage-part2 branch November 13, 2026 02:49
@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 intake-triage.yml workflow (part 2 of 2)

1 participant