Repository navigation
refactor(maintenance): take agent-ready off rewritten issues through Work status - #14019
Conversation
…Work status Refs: #13486 The monitor and lane-sweep rewrites deleted the agent-ready label, then moved a Work status field at agent-ready to needs-triage. On an issue whose field was unset, the label DELETE was the only thing taking agent-ready off. leaveAgentReady now takes an orUnset option that also writes the state while no trusted state is set; a set field drops the agent-ready label as a queue label, so both call sites drop their label DELETE and the rewritten issue still reads not-agent-ready. A failed write still throws StatusWriteError into done.failed, and the other callers keep the agent-ready-only default. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBVgc4pJaXmFWFcgoa4NW
…ready-field-write
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
claude-security-review reviewed Security review: PR #14019 (head 298c4fc)I found no security issues. I read every hunk of all 6 changed files. critical-findings: 0 What I checkedTrusted path
Did removing the
Failure ordering
Other lenses
|
|
claude-review reviewed Code review: PR #14019, full review of 6 of 6 filesNo findings. The PR stops the monitor and lane-sweep rewrites from deleting the Correctness
Tests: The new cases run a real
I did not run the tests. The author's "70 pass, 0 fail" is their claim and I have not verified it. PR context: The PR only refers to #13486 ("Refs") and closes no issue, so there are no acceptance criteria to check. The PR context has no text addressed to the review lane. Spend: Rolling issues with an unset field now get one extra Work status write the first time they are rewritten. Later runs make no write. This uses only API calls, not paid billing. |
Refs: #13486
Summary
Toward #13486 done-when 3 ("No .github or plugin code writes an issue status label"): the monitor and lane-sweep rewrites stop deleting the
agent-readylabel, and the trust rule they serve still holds: a rewrite takes agent-ready off, since a person vetted the earlier text.Fix
.github/actions/resolve-config/write-status.mjs:leaveAgentReady(number, state, {orUnset})also writesstatewhen the issue has no trusted Work status (unset, or set by an untrusted account). A set field drops the agent-ready label as a queue label (read-status.mjsstatusLabels), so a rewritten issue still reads not-agent-ready. Any other trusted state is left alone. The default (withoutorUnset) is unchanged for its other callers (report-outcome.mjs,label-unblocked.mjs,sync-status.mjs)..github/scripts/maintenance-monitor-signals/monitor.mjsand.github/scripts/maintenance-audit-lane-runs/file-findings.mjs: theagent-readylabel DELETE is removed; each callsleaveAgentReady(number, "needs-triage", { orUnset: true }). A failed status write still lands indone.failedbefore the body PATCH, so the rewrite never runs with agent-ready left on.Verification
node --testonwrite-status.test.mjs,monitor.test.mjsandfile-findings.test.mjs: 70 pass, 0 fail. Cases: field unset and field agent-ready both write needs-triage; a person's needs-owner-decision gets no write; a failed write lands in done.failed with no PATCH; no test issues a label DELETE.Related
status: needs-decisionremovals inintake-triage/refine.mjsstay: the reader keeps hold labels on top of the field (read-status.mjs:3,:47), so whether done-when 3 covers hold labels is with the owner.🤖 Generated with Claude Code