docs/plans/templates/goal-repair.md
Objective: TODO: Repair the owning goal-backed rule/template/helper so this expectation is handled correctly on future runs.
Goal plan: {{PLAN_PATH}}
Template: docs/plans/templates/goal-repair.md
Expectation:
Completion threshold:
.agents/rules/** changed, a source audit proves the
repair text exists, the repaired template or rule is smoke-checked, deliberate
non-repairs are recorded, and
node .agents/rules/autogoal/scripts/check-complete.mjs {{PLAN_PATH}} passes.Verification surface:
Constraints:
Boundaries:
autogoal repair <expectation> request.Blocked condition:
Repair state:
Current verdict:
Completion rule:
update_goal(status: complete) while any required checklist item
remains unchecked. If an item does not apply, check it and add N/A: <reason>.update_goal(status: complete) until every completion threshold
above is satisfied, final repair evidence is recorded, and
node .agents/rules/autogoal/scripts/check-complete.mjs {{PLAN_PATH}} passes.Start Gates:
| Gate | Applies | Evidence |
|---|---|---|
| Expectation restated | pending | pending |
| Active goal checked | pending | pending |
| Named plan or skill read | pending | pending |
| Owning source selected | pending | pending |
| Repair classification selected | pending | pending |
| Safety conflict checked | pending | pending |
Work Checklist:
autogoal ownership decision is recorded.Completion Gates:
| Gate | Applies | Required action | Evidence |
|---|---|---|---|
| Source owner patched | pending | Patch the selected source owner or record runtime-plan-only repair | pending |
| Generated skill sync | pending | If .agents/rules/** changed, run pnpm install and verify generated SKILL.md sync | pending |
| Template smoke | pending | Instantiate the repaired template or inspect it directly when a smoke plan would create noise | pending |
| Incomplete-plan guard | pending | Verify an unfinished generated plan still fails check-complete.mjs, or record N/A with reason | pending |
| Completed-plan representability | pending | Verify the repaired expectation can be recorded in a completed plan without editing the template again, or record N/A | pending |
| Helper/checker tests | pending | If scripts changed, run focused script tests; otherwise N/A | pending |
| Autoreview / review | pending | Run applicable review gate or record N/A for docs-only/source-rule-only repair | pending |
| Final lint | pending | Run scoped formatter/lint or record ignored-path/N/A reason | pending |
| Goal plan complete | yes | Run node .agents/rules/autogoal/scripts/check-complete.mjs {{PLAN_PATH}} | pending |
Phase / pass table:
| Phase | Status | Evidence | Next |
|---|---|---|---|
| Intake | in_progress | created repair plan | target selection |
| Target selection | pending | patch | |
| Patch | pending | verification | |
| Verification | pending | closeout | |
| Closeout | pending | final response |
Findings:
Decisions and tradeoffs:
Repair patch notes:
Deliberate non-repairs:
Error attempts:
| Error / failed attempt | Count | Next different move | Resolution |
|---|---|---|---|
| None yet | 0 |
Verification evidence:
Final repair handoff:
Timeline:
Reboot status:
| Question | Answer |
|---|---|
| Where am I? | Intake |
| Where am I going? | Target selection, patch, verification, closeout |
| What is the goal? | TODO: Fill from Objective |
| What have I learned? | See Findings |
| What have I done? | See Timeline |
Open risks: