Repository navigation
Add task reopen for operators to undo task done - #26
Merged
Merged
Conversation
`done` was terminal with no way back, so a task closed by mistake (or reopened by a regression) needed a new task and lost its history. `quorumgit task reopen <task> --reason <r>` returns a done task to `open`. Undoing a terminal state is an authority decision, so it uses the same require_operator check as policy and role changes; the reason is required and recorded in a `task.reopened` audit event. Only done tasks can be reopened. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SHGwY6PLGwr7kQY63qQGq6
No conflicts. Full suite passes on the merged tree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q8BpCkArA34hB1aSyVcnZp
Deep-Sixed
marked this pull request as ready for review
September 30, 2026 01:26
Deep-Sixed
pushed a commit
that referenced
this pull request
Sep 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q8BpCkArA34hB1aSyVcnZp
Deep-Sixed
pushed a commit
that referenced
this pull request
Sep 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q8BpCkArA34hB1aSyVcnZp
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.
Follow-up to #24.
donewas terminal with no way back, so a task closed by mistake, or one that regresses, needed a new task and lost its history.Command
quorumgit task reopen <task> --reason <r>registry.require_operatorcheck thatrepo policyandagent roleuse. Undoing a terminal state is an authority decision, and a worker can't reopen a task even if it completed it. The store's existing bootstrap rule applies as elsewhere: with no operator registered yet, the check is skipped.donetask back toopen, so anyone can claim it again, and records atask.reopenedaudit event with the reason.done(open, claimed, handoff), or an empty--reason. Omitting--reasonis a usage error (exit 2).No schema change is needed.
Docs
README: the Task concept, the
task doneparagraph, the command table, and the operator-actions list.Tests
4 new tests in
tests/test_task_done.py:--reasonexits 2, and an operator succeeds.Locally:
pytest tests184 passed;ruff checkclean;pyright0 errors.🤖 Generated with Claude Code
https://claude.ai/code/session_01SHGwY6PLGwr7kQY63qQGq6
Generated by Claude Code