Repository navigation
fix(state): default Stage for every new issue, not only the bot's - #52
Merged
Merged
Conversation
`issues: opened` set `Stage: Proposed` and `awaiting` only when `ev.issue.user.login === BOT`. A ticket filed from a local session, from the GitHub UI, or by an outside contributor on the four public repos landed with an empty `Stage` and no `awaiting` — invisible on the board, and absent from `🙋 Awaiting you`, the one view that answers "what needs me". The failure this prevents: the workflow's own doctrine is that if an event determines the answer, the workflow owns it, and that an actor guard was already tried once and was wrong. This author test was that same mistake surviving inverted. It had a visible cost — three skills carry a paragraph telling a local run to write `Stage` and `awaiting` itself, which is the two-writers shape the doctrine forbids. Those paragraphs come out in a follow-up, once this has run. `if (!stage)` is unchanged, so the default never overwrites a Stage the filer chose, and the write stays idempotent. The `ops-journal` early return still keeps the diary out. `BOT` keeps its other three uses: whose assignment an `assigned` event describes, whose PR opened, and who to unassign. Also updates the 📥 Backlog board view, whose `is:issue no:stage` filter can now only ever show the pre-existing Stage-less backlog. Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This was referenced Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
issues: openedsetStage: Proposedandawaitingonly when the bot authored the issue:So a ticket filed from a local Claude Code session, from the GitHub UI, or by an outside
contributor on the four public repos landed with an empty
Stageand noawaiting— invisible on🎫 Pipeline, and absent from🙋 Awaiting you, the one view that answers "what needs me".The failure this prevents
docs/why.md#the-state-machine-is-not-the-loops-jobalready says both halves of this:This author test was that same mistake surviving inverted — and it had a measurable cost.
Three skills carry a paragraph telling a local run to write
Stageandawaitingitself, which isexactly the two-writers shape the doctrine forbids:
draft-ticket/SKILL.md— "This skill is the exception that writes its own state."cross-repo-issue/SKILL.md— "No bot event fires here, so setStageandawaitingyourself."implement-issue/SKILL.md— "Locally, set both yourself, since no bot event fires."Those paragraphs are what actually failed. The observed symptom was tickets filed locally with no
Stage, noEffort, and noawaiting. They come out in a follow-up PR, not this one — onebehaviour per PR, and the workflow half should run against real issues first.
Changes
openedbranch loses its author test.if (!stage)is unchanged, so the default neveroverwrites a Stage the filer chose, and the write stays idempotent.
BOTisstill for: naming whose PR or assignment an event describes, never deciding whether a rule applies.
Its three other uses (
assigned, PRours,unassignBot) are untouched.docs/why.mdgains the story under the existing anchor.docs/routine-setup.md— the📥 Backlogview'sis:issue no:stagefilter can now only evershow the pre-existing Stage-less backlog, so it is re-pointed at
stage:Proposed. This needs amatching edit in the Projects UI, which has no API.
The
ops-journalearly return is untouched, so the diary still gets no Stage.Verification
This cannot be tested before merge — for
issuesevents GitHub always runs the workflow from thedefault branch, so neither the reusable workflow nor a caller can be exercised from a branch.
After merging, in this repo:
The run's job summary lists each transition, so a no-op is visible there.
🤖 Generated with Claude Code