Repository navigation
feat(pr-pipeline): mirror every issue status-label change into the Work status field from a label-event workflow - #13493
Conversation
…rk status field from a label-event workflow A new work-unblock activity, sync-status, runs in its own job of work-unblock.yml on a person's status-label add or remove and on the hourly schedule. It writes the state an issue's labels collapse to into its Work status field (.github/scripts/work-unblock/sync-status.mjs); the sweep paces its calls within a budget and logs `swept N: wrote W, unchanged U, failed F`. The field is written with the lanes App token from the broker, because the field's reader (issue-status.mjs issueStatus) counts only a value the App or a listed human set. A label change by an account not listed as a human gets no token and is corrected by the next hourly sweep. label-unblocked now runs only on a close. The pull request holds for a person: it edits docs/conventions/pr-pipeline.yaml. Closes #13491 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review (incremental, blocking only): no findingscritical-findings: 0 This review covered only the change since What changed: when the sweep has a listed issue whose trusted field value differs from the state its listed labels collapse to, What I checked:
Settled thread: the thread on Spend (not a hold, not a finding): at most one extra API call per would-be write in the hourly sweep, inside the existing 800-call budget. The PR context and settled threads contain no embedded instructions aimed at this lane. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 98344a715a
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-review reviewed Code review (incremental, blocking only): PR #13493 at
|
…status A listed issue's labels can be minutes old by its turn in the hourly sweep, and a label-event run may have written the newer state since. The sweep now reads the issue again before a write, so a stale listing never reverts the field. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Post-merge mutation testingKilled 4, survived 3, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Refs: #13491
Summary
This completes the label-and-field dual-write stage of #7577: every issue status-label change now reaches the Work status field, whoever makes it. A count on 2026-11-05 found 124 open issues: 75 with the field unset and 17 with it disagreeing with the labels. The cause is label edits by people, CLI sessions, an external reusable, babysit and the track skill, none of which mirror to the field. Slice 2 (#13483) makes the field win over the labels, so it is blocked until the field is correct.
Held for a person: this PR edits
docs/conventions/pr-pipeline.yaml(a new activity) andwork-unblock.yml.Fix
sync-statusjob inwork-unblock.yml, triggered onissues: [labeled, unlabeled]and on the existing hourly schedule:issueStatusviadimensions.mjstrustedSetters) counts a field value only when a listed human ormelodic-automation-lanes[bot]set it, so aGITHUB_TOKENwrite would read as unset.work-unblock.ymlanissuesevent from a listed human, and its schedule. Read from azure-iac'slanes-token-broker; no broker change.label-unblockednow also requiresaction == 'closed', so the new label events never start it.pr-pipeline.yamlandlane-grants.json: thesync-statusactivity, effectmutate-tracker, issues write only..github/scripts/work-unblock/sync-status.mjs, with tests.Verification
node --test:sync-status7 and the config, caller, budget and lane suites, 864 in all;label-unblockedand the maintenance-signal suites, 394.sync-status7,callers241,live-config54. All pass.scripts/workflow-self-paths.test.sh132/132.scripts/sync-hold-floor.py --checkandscripts/check-app-key-references.share clean.check-affected.sh --tests: exit 0. gitleaks: no leaks.sync-statuson alabeledevent, a label-event run log with the field read after it, and a post-sweep recount (feat(pr-pipeline): mirror every issue status-label change into the Work status field from a label-event workflow #13491's done-when) all come from the first runs after merge. Lane 3 posts them on feat(pr-pipeline): mirror every issue status-label change into the Work status field from a label-event workflow #13491.Remaining
#13491 closes when lane 3 posts both on the issue.
Related
#7577 (parent); #13482 / #13490 (slice 1, merged); #13489; #13483 is blocked by this.
🤖 Generated with Claude Code