You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feature] Make saved goal plans editable and grounded in the existing repository #286
Goal decomposition is a keyword template. A description containing “app” adds scaffold/backend/frontend work; “ship” adds Docker, CI, and deploy phases. This can turn a narrow existing-repo task into a larger plan unrelated to what the user asked.
Evidence: src/commands/goals.ts. The comment already labels this as a heuristic, while help describes an agent-planned goal.
Proposed outcome
Draft a bounded plan using the user's exact objective and read-only repository facts: existing stack, relevant files, available checks, and constraints. Show assumptions and let the user edit/remove/reorder phases and their completion criteria before saving.
Constraints and alternatives
Keep an offline/manual planning path: if the selected model is unavailable, let the user author phases rather than substituting an unrelated template. A model-generated draft is editable planning text, not proof that work ran.
Do not add scaffolding, auth, dependencies, tests, or deployment solely because a keyword appears. A “no new dependencies” or “do not publish” constraint remains attached to the plan. Repository inspection obeys workspace/context rules and planning does not execute shell mutations.
Acceptance
“Fix the app's existing failing parser test; no new dependencies” produces a narrow repair plan with the existing check, without new backend/auth/deploy phases.
Users can modify phases, notes, and criteria; the saved plan matches what they accepted and can be reopened.
Unknown stack, missing checks, empty repo, offline Ollama, and model failure keep uncertainty visible and support manual editing.
Plans include explicit verification criteria and an unresolved state where no check is known.
Tests use representative existing-repo fixtures and mocked planner output; help accurately distinguishes drafted, accepted, and executed work.
Priority: P2. Plan authoring only; running a saved phase is a separate slice. Source reviewed at ca4180d (0.4.0 candidate). This ticket is an implementation spec; live service qualification remains separate.
Implemented and closed by #298 (merge commit b88886d).
Evidence:
/goal <objective> now creates an unsaved, repository-grounded draft from bounded read-only inspection. The keyword template that added scaffold/backend/auth/deploy work is removed.
Users can add, remove, reorder, rename, and describe phases; edit criteria and notes; review the full draft; accept it with /goal save; and reopen saved plans with /goal edit [id]. A cancelled save leaves the stored goal unchanged.
The plan records stack, relevant files, available checks, repository instruction files, assumptions, user constraints, and known or unresolved verification. Drafting and saving do not run a phase or modify source files.
The parser fixture for “Fix the app's existing failing parser test; no new dependencies” identifies the existing parser file and npm test, keeps the constraint, and creates no backend/auth/deploy phase. Tests also cover an empty repo, unknown checks, mocked planner output and failure, manual edits, reopening, cancellation, legacy store safety, and command/help consistency.
Local npm run build, 34 focused tests, and npm run docs:check all passed. No GitHub Actions checks were reported for this PR; the repository ruleset required checks, so it was merged with the repository administrator override based on the local evidence above.
Plan authoring only; executing a saved phase remains #287.
Activity
AetherAI3 commentedon Oct 6, 2026
Implemented and closed by #298 (merge commit
b88886d).Evidence:
/goal <objective>now creates an unsaved, repository-grounded draft from bounded read-only inspection. The keyword template that added scaffold/backend/auth/deploy work is removed./goal save; and reopen saved plans with/goal edit [id]. A cancelled save leaves the stored goal unchanged.npm test, keeps the constraint, and creates no backend/auth/deploy phase. Tests also cover an empty repo, unknown checks, mocked planner output and failure, manual edits, reopening, cancellation, legacy store safety, and command/help consistency.npm run build, 34 focused tests, andnpm run docs:checkall passed. No GitHub Actions checks were reported for this PR; the repository ruleset required checks, so it was merged with the repository administrator override based on the local evidence above.Plan authoring only; executing a saved phase remains #287.