Repository navigation
feat: persist run and task checkpoints (#48) - #51
Merged
Merged
Conversation
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
Adds durable run and task checkpoints under
.team/runs/so the orchestrator can continue after compaction, a restart or an interrupted tool call without repeating completed work or skipping unfinished work.run.json, one event file per task start/finish, one approval file per human gate. Writes are atomic (temp file +os.replace).run_state.pycommands:start-run,start-task,finish-task,retry,approve,status.statusis read-only and is the resume entry point.statusat session start and after compaction, records each dispatch and finish, retries explicitly, and records human approval only after the gate.Files
skills/team-memory/run_state.py— stdlib-only helper.scripts/test-run-state.py— 34-check self-test (also runs on Windows CI).agents/orchestrator.md,skills/team-memory/SKILL.md,commands/team.md,commands/team-status.md— protocol and resume behavior.docs/runs.md,docs/memory.md,docs/pipeline.md,README.md,README.tr.md,team/AGENTS.md— documentation..github/workflows/checks.yml— checkpoint test on Ubuntu and Windows.TESTING-RUNS.md— verification results, manual scenarios and limits.Verification
python3 scripts/test-run-state.pyruby scripts/validate.rb./scripts/test-memory-compact.shbash -n install.sh scripts/*.sh skills/team-memory/*.sh./scripts/smoke-install.shnpm run generate:referencenpm run docs:buildManual OpenCode scenarios that need a live session (fresh
/team, real context compaction) were not run in this environment;TESTING-RUNS.mdmarks them as pending instead of claiming a result.Acceptance criteria
status; there is no runtime hook, and the orchestrator must run it.TESTING-RUNS.md).Closes #48