Repository navigation
One label-edit module changes an issue's labels for the Claim, the Sweep and the Architect plan and idea - #366
Merged
Merged
Conversation
The Claim, the Sweep and the Architect plan and idea name the labels to take off and put on, and the labels module's Edit owns the read, the choice of request, adding missing labels to the repository, and the by-hand commands. Marking a plan ready writes from a read made after its checks, and ready-for-agent and needs-triage are now added to a repository that lacks them, with their descriptions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A label both taken off and put on is put on, the Claim's release labels are named for what they are, and two doc comments read right. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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
The Claim, the Sweep, and the Architect plan and idea now name only the labels to take off and the labels to put on. The new
Editinsrc/labels.rshandles the rest.ready-for-agentandneeds-triageare now added to a repository that lacks them, with their descriptions.in-progressand still carriesready-for-agentnow DELETEsready-for-agent. It used to PUT the labels back. The issue's other labels therefore keep their order:tests/continuation.rswas updated for this.Evidence
needs-triageandArchitect-Planwroteready-for-agentwith no description, and created no labels.After:
marking_a_plan_ready_adds_ready_for_agent_with_its_description_to_a_repository_that_lacks_itandlabelling_an_idea_adds_needs_triage_with_its_description_to_a_repository_that_lacks_itpass.a_repository_that_has_the_architect_plan_label_keeps_it_as_it_isnow expects onegh label create ready-for-agent.labels::testscover no request, a single DELETE as the issue spells the label, a PUT with missing labels added first, case-insensitive off and on, a label in both off and on, and the by-hand commands.cargo test,cargo clippy --all-targetsandcargo fmt --checkall pass.Merge Danger
Door: two-way
A revert restores the old label handling. The repository labels the new code creates,
ready-for-agentandneeds-triage, are harmless.Blast Radius: labels
Every label change thirdshift makes now goes through one path. A bug in
Editwould affect Claims, the Sweep and the Architect run together. Progress lines, warnings and by-hand commands are unchanged.Unaddressed findings
Standards
Requestenum: the issue specifies this internal seam ("a pure private function, unit-tested in the labels module").Edit::labels()widens the interface: the issue asks for it explicitly ("what the issue's labels were").off/ontravel together;by_handcould be a method): the issue specifiesby_handas a separate function that needs no read. Bundlingoffandoninto a type would add a type with no rule of its own.remove_if_closedandsweep: the shared part is three lines, and the two handle failure differently (retry and warn vs. a warning per issue).Spec
ghhas no hook for changing labels in the middle of a run.Closes #365
🤖 Generated with Claude Code