Skip to content

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

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

kyle-sexton merged 1 commit into
mainfrom
refactor/s058-intake-triage-part1

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Closes #15749

session: Simplify E2 B

Summary

A /simplify pass over the first half of .github/workflows/intake-triage.yml (lines 1-1148 of 2296 at origin/main 6836949: the header and the jobs born-triaged through refine-issue). This range is already tight, and tests pin most of its structure, so the change is small. The parsed workflow is unchanged.

Fix

  • refine-select, step scan-upload: the one-line if: no longer sits in a folded >- block. YAML parses both forms to the same string, which is the form scripts/check-artifact-retention.mjs compares against the upload's if:.
  • Header comment: one 130-column line rewrapped to match the rest of the header.

Unchanged: the file name, the workflow name:, every job id and job name:, the triggers, the outputs, the step ids, and the printed text.

Review findings left out, with the reason for each:

  • Resolve main's tip (4 copies) and the revoke-token curl block: callers.test.mjs pins the inline text, and a shared action would mean moving code to another file.
  • Redundant-looking (pred) && clean upload conditions: this is the shape the retention checker requires.
  • grep -Eq to [[ =~ ]] in step bots: the bash form rejects a variable value that contains a newline, which grep accepts, so it is not strictly behavior-preserving.

Verification

  • 17 local test files name this workflow: 15 node suites and 2 shell scripts. I ran each with scripts/run-test-file.sh.
    • The 15 node suites all pass: callers.test.mjs (280 tests), apply-verdict.test.mjs (288), refine.test.mjs (145), reenter.test.mjs (130), triage-sweep.test.mjs (66), api-budget-coverage.test.mjs (5), plus check-kill-switch, check-upstream-status, log-api-budget, credential-legs, reentry-eval build-suite, reentry-prompt, triage-sweep-voided, monitor-signals collect and reconcile.
    • The 2 shell scripts (morning-brief.test.sh, post-merge-demotion-alert.test.sh) both pass.
  • node scripts/check-artifact-retention.mjs: 152 upload steps match (101 families).
  • scripts/check-affected.sh (without --tests): 10 passed, 6 skipped.
  • Local actionlint 1.7.12: the only errors are three unexpected key "cache-mode" errors (lines 896, 1332, 1714). The origin/main copy gets the same three, so this diff does not cause them. 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

  • In the "Write the prompt and schema" step, the CONTEXT_FILE/REPO_DIR substitutions are written twice in each of the three refine legs. They could run once, after the fi. callers.test.mjs (refineLegShape) holds that step equal in refine-issue, refine-issue-subscription and refine-issue-fallback, and the first leg is in part 1 while the other two are in part 2. Neither part can make the change alone, so it belongs to the restructuring pass (R2, Restructure and dedupe workflow files (final group, host sessions) #15695).

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Q3CfCWdBxXQpDLrC7B

Fold refine-select's one-line scan-upload condition out of a folded
block scalar and rewrap the overlong header comment line. The parsed
workflow is unchanged.

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-13T01:58:02.434859Z 6cb178d 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 6cb178d7c65667a6321a1f69b79de8128b1fc302: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #15758 (head 6cb178d)

I found no security issues in this change.

I read the full diff for .github/workflows/intake-triage.yml, which is on the trusted-path list. It has two hunks:

  1. Header comment (lines 9-11): one long comment line is rewrapped. This changes only comment text; nothing in it is executed or evaluated.
  2. Step scan-upload in refine-select (line ~807): the if: condition moves from a single-line folded >- block to a plain scalar. YAML reads both forms as the same string, steps.select.outputs.refine == 'true': >- strips the trailing newline, and the body is one line, so no folding happens. The credential scan runs under the same condition as before. The step's uses: pin, its with: path, its permissions and the step it gates are untouched.

Trust controls: this diff does not widen the trusted-trigger check, the lane token scope, the kill switch, the merge holds or the untrusted-text paths. No plugin manifest is touched, and no standing instruction is deleted or softened.

Embedded text: there are no directives aimed at the review lane in the PR context. The closing issue's body was left out by the wrapper.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: no findings. I read every hunk of the one changed file, .github/workflows/intake-triage.yml, which is on the trusted-path list.

  • Header comment (lines 9–11): one comment line is rewrapped to match the rest of the header. Only the comment changes.
  • refine-select / scan-upload if: (line 807): the condition moves from a >- folded block to a plain scalar. YAML reads both as the same string, steps.select.outputs.refine == 'true', so the step still runs under the same condition. It now has the same form as the if: on the step before it, hash (line 802). The upload condition on line 814 that it feeds is unchanged.

Closing issue #15749, acceptance criteria:

  • Behavior unchanged: met. The parsed workflow is the same, and no job id, trigger or file name changes.
  • Only the listed file is edited: met.
  • Within 400 changed lines and 15 hand-edited files: met (3 changed lines).
  • Both edits fall in range 1 of 2: met (lines 9–11 and around line 807 of 2296).
  • ci-status green: I can't check this from here. The PR's test runs and the check-artifact-retention.mjs result are the author's claims; I did not run them.

No embedded instructions were found in the PR context. No paved-path or plugin-manifest items apply.

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 6a506e3 Nov 13, 2026
71 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/s058-intake-triage-part1 branch November 13, 2026 02:14
@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 1 of 2)

1 participant