Skip to content

ci(lanes): start work-resolve-issue's admit on a person's Work status change - #13716

Merged
kyle-sexton merged 3 commits into
mainfrom
ci/13484-field-trigger
Nov 6, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
ci/13484-field-trigger

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Refs: #13484

Summary

A listed person setting an issue's Work status field to agent-ready now starts a work-resolve-issue run. The run checks the trusted sender, logs the field change and ends green. The agent-ready label still starts the work. This delivers #13484's trigger slice under hub decisions H72 (human senders only) and H73 (admission-only), and deletes the temporary field_added probe from #13697.

Fix

  • on.issues.types is now [labeled, field_added]. admit's if: also accepts a field_added event when field 48484079 (Work status) moves to option 84879220 (agent-ready) and sender.type == 'User'. Both ids are models.issue-status's in pr-pipeline.yaml, and a test checks them against it. The key names come from the probe's live payload (run 42228210010, recorded on #13484).
  • On a field run, admit runs check-trusted-trigger unchanged: a listed human passes on the sender, and the App is refused (bot-actor). It then logs .changes and skips the blocker read, so proceed stays false and no later job starts. Every other job's if: is still label-only.
  • The lanes App's own Work status writes (the label mirror) fail the field condition. They start no job. The concurrency group stays the label's alone, so no field write, a person's included, can replace a waiting agent-ready label run (fixed after both review lanes flagged a person's field run replacing a pending label run). The broker invariant (azure-iac authorize.mjs: App mints only on its agent-ready labeled event) is unchanged.

Why the field cannot start work yet: write-issue.mjs readAdmittedAt freezes the issue text at the admitting label event and throws without one. report-outcome.mjs's restart count, re-fire check and lateRecord also anchor on label events. Moving those anchors is an integrity-control change, routed to #13486 for the owner.

Verification

  • node --test over the 7 test files that read this workflow or its gate: 1547 pass, 0 fail. After the rebase onto main, the 2 touched files pass again (690/690). New cases: a human's field_added proceeds at the gate, while the App's and a stranger's stop; the trigger condition is checked for 6 cases (the label, another label, a person's field change, the App's mirror write, another option, another field).
  • actionlint and zizmor --offline on work-resolve-issue.yml: clean.
  • Live payload shape read from the probe run above: issue_field.id, issue_field_value.option.id, changes.issue_field_value.from, sender.type.
  • Left out: a live field-triggered run, which needs a person to set the field after merge (feat(pr-pipeline): start the issue lane on the Work status field_added trigger beside the label #13484 done-when 1).

Related

Remaining

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 6, 2026 08:50
… change

A listed human setting the Work status field to agent-ready (issues
field_added) joins the agent-ready run group and runs admit's trigger
check, then stops green with a notice; the agent-ready label still starts
work, since the text freeze and restart counts anchor on it. The lanes
App's mirror writes, other fields and other options start nothing and take
the other group. Deletes the field_added probe.

Refs: #13484

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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T13:56:28.455521Z
We couldn’t complete this review. Comment @codex review to try again.
069c26e 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #13716, incremental (069c26e → f9b038a)

I found no security issues. I read every hunk of both files in the incremental scope: .github/actions/resolve-config/callers.test.mjs and .github/workflows/work-resolve-issue.yml. This lane had already reviewed an earlier head, so this pass reports blocking findings only.

critical-findings: 0

What I checked

  • Concurrency group (work-resolve-issue.yml L55-L57). The group now reads work-resolve-issue-${{ github.event.issue.number }}-${{ github.event.label.name == 'agent-ready' }}.
    • On a field_added event github.event.label is absent, so the suffix is false. A field write therefore lands in the same group as other labels, which start no work.
    • This narrows the group. A person's field write can no longer replace a waiting agent-ready label run, which closes the non-security queue-replacement note from the previous round.
    • cancel-in-progress: false is unchanged.
  • What a run can reach. This push leaves the trigger gate unchanged:
    • admit's if: (L76-L80) is the same.
    • Its token is still contents: read / issues: read (L83-L85).
    • The credentialed jobs downstream of admit are untouched.
    • No token scope grows, no trusted actor is added, and no new path carries untrusted text to a lane.
  • Injection. Moving the group expression onto one line adds no run: interpolation. The expression only compares event fields to a constant and produces a boolean.
  • Test file. The change only adjusts assertions so they check the narrowed group (joins is now separate from admits). It is not a trust control: resolve-config's tests are excluded from that control.
  • Kill switch, merge holds, token broker, manifests. This push touches none of them.

The push deletes no standing instruction, so I didn't need the instruction exception register.

@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: 1 inline finding(s) on 069c26e4b8e09929adf68b7175323434f5c4ea34; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #13716, incremental review of 069c26e4 → f9b038a7

No findings. I read both files in scope in full: .github/workflows/work-resolve-issue.yml and .github/actions/resolve-config/callers.test.mjs. This lane already reviewed an earlier head, so this review covered blocking findings only.

What changed: this push fixes the advisory finding from the last review, that a person's field run could cancel a pending label run. The owner resolved that thread with a reply stating the fix.

  • The workflow. In work-resolve-issue.yml L56, the run group now depends only on the label: ${{ github.event.label.name == 'agent-ready' }}.
    • On a field_added event, github.event.label is null, so every field write lands in the -false group. That includes a person's change to agent-ready.
    • So no field write can replace a pending agent-ready label run.
    • The comment above it (L51–54) now says the same thing.
    • admit's if: (L77–80) is unchanged, so a person's agent-ready field change still runs admit's trigger check.
  • The test. callers.test.mjs now compares the whole group string exactly (L1224–1227). The table of cases now has separate admits and joins columns. The person's-field case expects admit to run (true) and the run to stay out of the agent-ready group (false). The other five cases are unchanged.
    • The prefix strip at L1238 leaves only the ${{ … }} expression, which evaluate scores against label.name: "". That matches how GitHub compares a null label name.

Not verified by me: the owner's reply says the 19 work-resolve-issue tests pass and actionlint is clean. I had no shell, so I ran neither.

Closing issue: the PR only references #13484 (Refs:) and closes no issue, so there are no acceptance criteria to check.

A person's Work status change joined the agent-ready group, so its pending
run could replace a waiting label run and drop that work. Field runs start
no work, so the group goes back to the label alone.

Refs: #13484

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 949f152 Nov 6, 2026
64 checks passed
@kyle-sexton
kyle-sexton deleted the ci/13484-field-trigger branch November 6, 2026 14:15
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.

1 participant