Skip to content

feat(pr-pipeline): mirror the lane and maintenance status-label writers into the Work status field - #13490

Merged
kyle-sexton merged 3 commits into
mainfrom
feat/13482-mirror-status-writers
Nov 5, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
feat/13482-mirror-status-writers

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #13482

Summary

Slice 1 of the #7577 cutover from status labels to the Work status issue field. Four .github status-label writers that did not update the field now pass each label add or remove to statusMirror, as admit, apply-verdict, refine and label-unblocked already do. Labels stay the source of truth, and a failed field write only warns. Nothing reads the field yet; readers are slice 2 (#13483).

Fix

  • work-resolve-issue/report-outcome.mjs: every stop route's label plan, the close path's queue and state strips, the stale re-fire and the late-record redispatch. It runs from a copy of its own directory, so baseMirror(env) loads write-status.mjs and createGitHub from the base checkout, and warns and does nothing if that load fails.
  • maintenance-audit-lane-runs/triage-sweep.mjs (needs-triage add), file-findings.mjs and maintenance-monitor-signals/monitor.mjs (agent-ready removals). The mirror gets its own client, because their call() sends no custom headers and the field API needs a version header.
  • maintenance-audit-lane-runs.yml and maintenance-monitor-signals.yml: the three jobs that ran no resolve-config action now install its packages, with the npm env callers.test.mjs requires, so the config read works. No permission changed; each job already had issues: write.
  • Split out to chore(pr-pipeline): install resolve-config's packages in the intake-reenter job so its status reader can read the field #13489: intake-reenter (its workflow is a path ci-status holds for a person) and security-outside-actor/flag.mjs, a needs-human writer the build found.

Verification

  • node --test: report-outcome 411, triage-sweep 45, file-findings 21, monitor 20, reenter 68 (unchanged), callers 240, and both maintenance workflow.test.mjs suites (10 and 5). All pass. Each touched writer has a new case asserting the mirror gets that write's had, add and remove.
  • git grep -n statusMirror -- .github ':!*.test.mjs' lists all four writers.
  • scripts/check-affected.sh --tests: exit 0, 10 passed and 70 skipped past its 120 s budget, left to CI. gitleaks: no leaks.
  • Left out: a live run. Whether GITHUB_TOKEN may POST issue-field-values in the maintenance jobs is UNVERIFIED. A refusal only warns, and the first scheduled run shows the answer.

Related

#7577 (parent); slices #13483, #13484, #13485, #13486; follow-up #13489.

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 5, 2026 04:26
…rs into the Work status field

report-outcome (every stop route, the close, the stale re-fire and the
late-record redispatch), the triage sweep, the lane-sweep digest and the
monitoring lane now pass each status-label add or remove to statusMirror,
as admit, apply-verdict, refine and label-unblocked do. Each takes a
mirrorStatus callback that defaults to a no-op, and its test asserts the
had, add and remove of the write.

report-outcome runs from a copy of its own directory, so it loads
write-status.mjs and createGitHub from the base checkout at the command
line. The maintenance scripts' call() sends no custom headers, so the mirror
gets its own createGitHub client outside their call budgets. The three jobs
that ran no resolve-config action (the lane sweep's file and triage-sweep,
maintenance-monitor-signals) now install its packages, which the config
read needs.

Closes #13482

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 5, 2026 09:34
@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T09:36:33.407504Z 3da7b97 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

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 7f9e5a30c2b155e3957916b0948449e383872619: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found

This was an incremental review. I read every hunk of all 3 files changed since 3da7b9724de8d4618414e8b1a133dc11e0a42f22. This lane already reviewed an earlier head, so only CRITICAL and IMPORTANT findings would be posted.

What I checked

continue-on-error: true on the three resolve-config install steps (both jobs in maintenance-audit-lane-runs.yml, at L1151-L1158 and L1230-L1237, and the job in maintenance-monitor-signals.yml at L85-L92):

  • Each step's if: gate (download outcome or kill switch) is unchanged.
  • The command is unchanged: npm ci --ignore-scripts --omit=dev ... --prefix .base/.github/actions/resolve-config, installing from main's lockfile with install scripts off.
  • No permissions: block or token request changed.
  • If the install fails now, the only effect is that statusMirror's import of resolve-config fails. It already catches that failure and only warns. The label writes then run as they did before this PR.
  • No kill switch, trusted-actor check or merge hold depends on this step's outcome, so no control is widened.
  • This change fixes the settled thread on these lines. I did not re-raise that thread.

report-outcome.test.mjs: four new test cases and a mirrorStatus parameter passed into the runLateRecord helper. This is test-only code, with no runtime or credential surface.

Not applicable:

  • No plugin manifest, standing instruction or trust-control action changed in this increment.
  • The PR context file holds no embedded instructions.

Spend (not a hold): none new in this increment. A failed install now finishes the job instead of failing it.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 3da7b9724de8d4618414e8b1a133dc11e0a42f22; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 7f9e5a30c2b155e3957916b0948449e383872619: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Incremental code review: 3da7b97..7f9e5a3 (#13490)

Blocking only. This lane already reviewed an earlier head, so this pass looked only for blocking findings. It found none.

I read every hunk of all 3 files that changed since 3da7b972:

  • .github/scripts/work-resolve-issue/report-outcome.test.mjs
  • .github/workflows/maintenance-audit-lane-runs.yml
  • .github/workflows/maintenance-monitor-signals.yml

The two earlier findings are both addressed in this push:

  1. npm ci could block the label writes. All three "Install resolve-config's packages" steps now have continue-on-error: true: the file and triage-sweep jobs in maintenance-audit-lane-runs.yml and the monitor job in maintenance-monitor-signals.yml. If an install fails, the step's outcome is failure but its conclusion is success. The later writer steps' implicit success() still passes, so the label writes run and only the field mirror warns.
  2. Some mirror paths had no test. There are four new cases in report-outcome.test.mjs:
    • applyHandBack's kept filter: a 500 on status: ready keeps that label out of remove, and a 404 on admission-deferred still counts as removed. I checked this against the park test's full plan ["agent-ready", "status: ready", "admission-deferred"] and against report-outcome.mjs L2216-2225.
    • The outside-author stop: had comes from the fresh issue read.
    • The late-record redispatch through main: add is ["status: ready", "agent-ready"].
    • refireStale: the mirror is called with had and add: ["agent-ready"], after the label write.

Closing issue #13482:

  • "Each of the four files calls a mirror after every status-label add or remove, and its test file has a case asserting the mirror receives the had, add and remove labels of that write": met. The report-outcome.mjs sites the earlier review listed now have cases.
  • "bash scripts/check-affected.sh --tests passes": the author says it does, but I could not check it because this lane has no shell. The same goes for the reply's "670 of 670" suites and the claim that breaking each site fails its new test.

No settled thread or prior finding is raised again. No embedded instructions were found in the PR context, settled-threads or prior-findings files.

Spend: this push adds no new spend. The three npm ci steps were already counted in the last review and run on standard hosted runners, so this is not a billing change.

…s, and test every report-outcome mirror

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit e18cceb Nov 5, 2026
53 checks passed
@kyle-sexton
kyle-sexton deleted the feat/13482-mirror-status-writers branch November 5, 2026 09:54
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 3, survived 3, timeout 0, no coverage 0, invalid 0, not run 1.
Covered-code score 50%; mutation score 50%.

File Killed Survived Timeout No coverage Invalid Not run
.github/scripts/maintenance-audit-lane-runs/file-findings.mjs 1 1 0 0 0 0
.github/scripts/maintenance-audit-lane-runs/triage-sweep.mjs 1 1 0 0 0 0
.github/scripts/maintenance-monitor-signals/monitor.mjs 1 1 0 0 0 0
.github/scripts/work-resolve-issue/report-outcome.mjs 0 0 0 0 0 1

Surviving mutants

Location Operator Disposition Cause
.github/scripts/maintenance-audit-lane-runs/file-findings.mjs:256 other productive input-gap
.github/scripts/maintenance-audit-lane-runs/triage-sweep.mjs:364 other productive no-assertion
.github/scripts/maintenance-monitor-signals/monitor.mjs:247 other productive input-gap

The run's summary has the full report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(pr-pipeline): mirror every .github status-label writer into the Work status field

1 participant