docs/plans/2026-05-24-editor-harvest-goal-template-refactor.md
Objective:
Refactor the editor harvest planning workflow so it uses agent-native goals and
docs/plans templates instead of hook-era completion files. Closure requires
updated generic/skill guidance, generated skill sync, no stale
editor-harvest-ralplan or harvester completion-file state in the edited
workflow, fresh verification evidence, and this plan passing the goal checker.
Goal plan: docs/plans/2026-05-24-editor-harvest-goal-template-refactor.md
Completion threshold:
editor-harvest-ralplan is renamed to editor-harvest-plan at the rule and
generated skill layers.editor-test-harvester uses active goal + docs/plans goal plan state
instead of active goal state state.docs/plans/templates/editor-test-harvester.md and
docs/plans/templates/editor-harvest-plan.md exist and contain the reusable
checklist/score/pass tables for their workflows..agents/AGENTS.md and generated AGENTS.md name the new skill and template
set.pnpm install, stale-reference greps, pnpm lint:fix, and this plan's
check-complete.mjs verification pass.Verification surface:
.agents/rules/editor-test-harvester.mdc,
.agents/rules/editor-harvest-plan.mdc, generated .agents/skills/**,
.agents/AGENTS.md, AGENTS.md, and docs/plans/templates/editor-*.md.pnpm install, stale-reference rg, generated-file test, focused
rg section checks, pnpm lint:fix, and
node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-24-editor-harvest-goal-template-refactor.md.Constraints:
SKILL.md directly; sync them from .agents/rules.active goal state state..tmp/editor-test-harvester/<repo>/; durable/versioned output uses fresh
invariant wording only.Boundaries:
.agents/AGENTS.md, generated AGENTS.md,
.agents/rules/editor-test-harvester.mdc,
.agents/rules/editor-harvest-plan.mdc,
generated .agents/skills/editor-test-harvester/SKILL.md,
generated .agents/skills/editor-harvest-plan/SKILL.md,
docs/plans/templates/editor-test-harvester.md,
docs/plans/templates/editor-harvest-plan.md, skills-lock.json, and this
plan..agents/rules/editor-harvest-ralplan.mdc and
.agents/skills/editor-harvest-ralplan/SKILL.md.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-editor-harvest-goal-template-refactor.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-editor-harvest-goal-template-refactor.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 goal skill, goal scripts, AGENTS, harvest skills, skiller sync notes, and relevant docs/solutions | patch workflow |
| Implementation | complete | added harvest templates, renamed route skill source, updated harvester/AGENTS, synced generated skills | verification |
| Verification | complete | pnpm install, stale-reference checks, generated-skill checks, pnpm lint:fix | closeout |
| Closeout | complete | this plan updated with evidence and ready for check-complete | final |
Findings:
editor-test-harvester still had a hook-era completion state block and
bun run completion-check -- --id editor-test-harvest-<repo> verification.editor-harvest-ralplan carried both routing policy and plan shape; the plan
shape belongs in docs/plans/templates/editor-harvest-plan.md..agents/rules/editor-harvest-plan.mdc generated
.agents/skills/editor-harvest-plan/SKILL.md and removed the old skill.Decisions and tradeoffs:
active goal state" wording because it
prevents reintroducing the old state file model.docs/plans/*ralplan* artifacts; they are historical
records outside this workflow source refactor.Error attempts:
| Error / failed attempt | Count | Next different move | Resolution |
|---|---|---|---|
pnpm lint:fix --version passed an unsupported argument through the script | 1 | Run the actual verification command without extra flags | Reran pnpm lint:fix; passed |
External/browser findings:
Timeline:
goal, editor-test-harvester,
editor-harvest-ralplan/rename target.get_goal; none existed.docs/plans/templates/editor-test-harvester.md.docs/plans/templates/editor-harvest-plan.md..agents/rules/editor-harvest-ralplan.mdc with
.agents/rules/editor-harvest-plan.mdc..agents/rules/editor-test-harvester.mdc from completion file state
to goal/report state..agents/AGENTS.md skill/template references.pnpm install; skiller apply completed successfully..agents/skills/editor-harvest-plan/SKILL.md exists and
old .agents/skills/editor-harvest-ralplan/SKILL.md is absent.pnpm lint:fix; Biome checked 3419 files and applied no fixes.Verification evidence:
pnpm install: completed; bun x skiller@latest apply applied rules for
Claude Code and Codex successfully.test -f .agents/skills/editor-harvest-plan/SKILL.md && test ! -e .agents/skills/editor-harvest-ralplan/SKILL.md && test ! -e .agents/rules/editor-harvest-ralplan.mdc && test -f docs/plans/templates/editor-harvest-plan.md && test -f docs/plans/templates/editor-test-harvester.md: passed.rg -n "editor-harvest-ralplan|harvest-test-processing-ralplan|bun run completion-check -- --id editor-test-harvest|current_pass_skill: .agents/skills/editor-harvest-ralplan|completion-state and continuation" .agents/AGENTS.md AGENTS.md .agents/rules .agents/skills docs/plans/templates: no matches.rg -n "Goal And Report State|--template editor-test-harvester|node .agents/rules/goal/scripts/check-complete.mjs docs/plans/<goal-plan>.md" .agents/rules/editor-test-harvester.mdc .agents/skills/editor-test-harvester/SKILL.md: matched expected source and generated skill rows.rg -n "Goal And Plan State|--template editor-harvest-plan|Full harvest row accounting|Accepted-plan execution handoff" .agents/rules/editor-harvest-plan.mdc .agents/skills/editor-harvest-plan/SKILL.md docs/plans/templates/editor-harvest-plan.md: matched expected source, generated skill, and template rows.pnpm lint:fix: passed; Checked 3419 files in 5s. No fixes applied.pnpm lint:fix --version: failed because --version is not accepted by the
script; not used as evidence.pnpm lint:fix: rerun passed; Checked 3419 files in 5s. No fixes applied.node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-24-editor-harvest-goal-template-refactor.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? | Goal-backed editor harvest workflow refactor |
| What have I learned? | See Findings |
| What have I done? | See Timeline |
Open risks:
ralplan names; they are archival, not
active workflow instructions.