feat!: goal lifecycle v2 — blocked state, complete-replacement, oversized-objective correction - #1
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
create_goal, archiving the prior state, and safely spills oversized objectives with marker-aware truncation.tokenBudgetwire compatibility; releases pi-goal 0.3.0.Approved plan and evidence
/Users/yeongyu/local-workspaces/senpi/.omo/plans/pi-todo-goal-upgrade.md(todos 1-7, Wave 1A)..omo/evidence/pi-todo-goal-upgrade/task-1.txtthroughtask-7.txtin the task worktree.Verification
npx vitest run: 9 files passed, 85 tests passed.npm run check: TypeScript, Biome, and no-excuse checks passed..github/workflows/ci.yml; merge only after GitHub checks are green.Summary by cubic
Goal lifecycle v2: adds a real blocked state, safe objective handling, and mid-turn usage accounting. Improves reliability by preventing unwanted continuations, archiving completed goals, and keeping wire compatibility in
pi-goal0.3.0.New Features
create_goalcan replace a completed goal and archives the previous goal to per-thread JSONL history.tokenBudgetis persisted inertly for wire compatibility.Migration
update_goalonly acceptsstatus: "complete"orstatus: "blocked". A non-emptyreasonis required forblockedand rejected forcomplete.create_goal({ objective })no longer acceptstoken_budget. Objectives are limited to 4,000 characters.active,paused,blocked, andcomplete. Pause/resume remain user/system controlled.Written for commit aed15fb. Summary will update on new commits.