feat(run): squads pause/resume — activation state enforced by runner + org planner (#877)#892
Merged
Merged
Conversation
) Remove all references to `squads autopilot` (deprecated) from docs/commands.md and docs/running.md, replacing with the correct `squads autonomous` commands. Add a Pause and Resume section to docs/commands.md covering usage, options, and runtime behavior when a squad is paused. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- #883: update --force description to mention pause-enforcement bypass - #884: resumeCommand returns cleanly (exit 0) when squad is not paused, making the command idempotent; setSquadPauseState is never called - #885: add test coverage verifying command field in all JSON error responses for pauseCommand and resumeCommand Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ity (#877) Refuse 'squads run' on a paused squad (--force overrides); org planner and cron/scheduled dispatch skip paused squads; status + dash surface pause state. Reads existing SQUAD.md frontmatter (status/paused_since/paused_reason). Co-Authored-By: Claude <noreply@anthropic.com>
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Jun 14, 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.
What & why
Implements #877: squad pause state was declarative-only (SQUAD.md frontmatter
status: paused) — nothing read it, so the org planner dispatched paused squads anyway and freezes only worked by agents happening to read prose. This makes pause first-class and enforced in one command.Changes
squads pause <squad> [--reason]/squads resume <squad>(src/commands/pause.ts) — write existing SQUAD.md frontmatter (status,paused_since,paused_reason); no new state store;--jsonsupported.squads runrefuses a paused squad (--forcebypasses); org runner/planner skips paused (org-cycle.ts, fixes the dispatch-paused waste bug); cron/scheduled skips them (autonomous.ts).squads status+squads dashshow paused state + since/reason.Validation
build✓ ·tsc --noEmit✓ ·eslint✓ · 2001 tests pass (60 new: pause writes frontmatter, run refuses paused,--forceoverrides, org skips paused).Closes #877. Also resolves polish items found during implementation: #879, #881, #883, #884, #885.