docs/plans/2026-05-24-sync-clawpatch-goal-completion.md
Objective:
Sync Clawpatch workflow docs so the rule source and generated skill no longer
instruct agents to use active goal state or the old
tooling/scripts/completion-check.mjs closeout command. Clawpatch restartable
work should use the active goal plus one docs/plans goal plan.
Goal plan: docs/plans/2026-05-24-sync-clawpatch-goal-completion.md
Completion threshold:
.agents/rules/clawpatch.mdc names active goal + one docs/plans/** goal
plan for restartable progress..agents/rules/clawpatch.mdc uses
node .agents/rules/goal/scripts/check-complete.mjs docs/plans/<goal-plan>.md
for goal-plan closeout..agents/skills/clawpatch/SKILL.md mirrors the source after
pnpm install.active goal state and
node tooling/scripts/completion-check.mjs are absent from Clawpatch source
and generated skill.pnpm lint:fix and this plan's check-complete.mjs pass.Verification surface:
.agents/rules/clawpatch.mdc and
.agents/skills/clawpatch/SKILL.md.pnpm install, exact stale-reference rg, pnpm lint:fix, and
node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-24-sync-clawpatch-goal-completion.md.Constraints:
.agents/rules/clawpatch.mdc; sync generated skill via pnpm install.SKILL.md.active goal state state.Boundaries:
.agents/rules/clawpatch.mdc, generated
.agents/skills/clawpatch/SKILL.md, skills-lock.json, and this plan.Blocked condition:
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 the named verification
evidence is recorded below and
node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-24-sync-clawpatch-goal-completion.md passes.active goal state for this goal. This
file plus the active goal are the durable state.Required checklist:
get_goal checked; create_goal called only when no active goal existed,
or the active matching goal was recorded.learnings-researcher / docs/solutions checked, or marked N/A with
reason.docs/plans goal plan created before substantive edits.check run before PR create/update, or marked N/A with reason.node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-24-sync-clawpatch-goal-completion.md
passes after final evidence is recorded.ce-compound evaluated after non-trivial verified work.Phase / pass table:
| Phase | Status | Evidence | Next |
|---|---|---|---|
| Intake and source read | complete | read Clawpatch rule/generated skill, AGENTS goal guidance, and Clawpatch workflow solution notes | patch workflow |
| Implementation | complete | updated Clawpatch restart/closeout instructions in rule source | verification |
| Verification | complete | synced generated skill, exact stale refs absent, lint passed | closeout |
| Closeout | complete | this plan updated with evidence and ready for final check | final |
Findings:
active goal state
state file and node tooling/scripts/completion-check.mjs.docs/plans plan and
node .agents/rules/goal/scripts/check-complete.mjs <plan>.Decisions and tradeoffs:
active goal state / active goal state
so agents do not recreate hook-era state.docs/solutions references because they
describe past behavior, not active Clawpatch instructions.Error attempts:
| Error / failed attempt | Count | Next different move | Resolution |
|---|---|---|---|
| None yet | 0 |
External/browser findings:
Timeline:
goal, clawpatch.get_goal; none existed..agents/rules/clawpatch.mdc and generated
.agents/skills/clawpatch/SKILL.md..agents/rules/clawpatch.mdc to use active goal + docs/plans plan.pnpm install; skiller apply completed successfully..agents/skills/clawpatch/SKILL.md mirrors source.pnpm lint:fix; Biome checked 3419 files and applied no fixes.Verification evidence:
pnpm install: passed; skiller applied rules for Claude Code and Codex.rg -n "\\.tmp/<session-id>/completion-check\\.md|node tooling/scripts/completion-check\\.mjs" .agents/rules/clawpatch.mdc .agents/skills/clawpatch/SKILL.md: no matches.rg -n "completion-check\\.md|tooling/scripts/completion-check|continue\\.md|docs/plans/<goal-plan>|active goal plus one" .agents/rules/clawpatch.mdc .agents/skills/clawpatch/SKILL.md: confirmed only the new active-goal wording, negative no-active goal state guard, and goal check command remain.pnpm lint:fix: passed; Checked 3419 files in 11s. No fixes applied.node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-24-sync-clawpatch-goal-completion.md: passed with [goal] complete.Reboot status:
| Question | Answer |
|---|---|
| Where am I? | Closeout |
| Where am I going? | Run final check-complete and final response |
| What is the goal? | Sync Clawpatch to active goal/docs-plans completion state |
| What have I learned? | See Findings |
| What have I done? | See Timeline |
Open risks: