docs/plans/2026-05-25-universal-goal-planning-flows.md
Objective: Update the universal goal skill source so every derived workflow can choose one of three generic flow modes: one-shot execution, agent-led plan hardening, or collaborative planning. Completion requires source and generated skill docs to define the modes without project-specific skill references, the human README to explain developer usage, generated outputs to be synced, focused source audits to pass, and this goal plan to pass the completion checker.
Goal plan: docs/plans/2026-05-25-universal-goal-planning-flows.md
Template: docs/plans/templates/task.md
Flow mode: one-shot execution
Task source:
Completion threshold:
.agents/rules/goal.mdc documents the three flow modes and how derived
skills select or override them..agents/skills/goal/SKILL.md and .claude/skills/goal/SKILL.md are synced
from the source rule..agents/rules/goal/README.md explains the developer flow concisely.node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-25-universal-goal-planning-flows.md
passes.Verification surface:
pnpm installrg -n "Goal Flow Modes|One-Shot Execution|Agent-Led Plan Hardening|Collaborative Planning|Flow mode:|which flow mode it uses" .agents/rules/goal.mdc .agents/skills/goal/SKILL.md .claude/skills/goal/SKILL.md .agents/rules/goal/README.mdrg -n "slate-plan|Slate|autoreview|Autoreview|--template task|--template slate|\\$task|\\$slate" .agents/rules/goal.mdc .agents/skills/goal/SKILL.md .claude/skills/goal/SKILL.md .agents/rules/goal/README.md || truesed -n '1,14p' .agents/skills/goal/SKILL.mdsed -n '74,140p' .agents/skills/goal/SKILL.mdnode .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-25-universal-goal-planning-flows.mdConstraints:
.agents/rules/goal.mdc; generated skill files are
synced by pnpm install.Boundaries:
.agents/rules/goal.mdc..agents/rules/goal.mdc, generated goal skill outputs,
.agents/rules/goal/README.md, and this goal plan.Blocked condition:
Autonomous work only blocks if pnpm install cannot sync generated skills, if
the source/generation ownership is unclear, or if the user changes the requested
flow taxonomy.
Task state:
update_goal close itCurrent 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 handoff evidence is recorded, and
node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-25-universal-goal-planning-flows.md passes.Start Gates:
| Gate | Applies | Evidence |
|---|---|---|
| Skill analysis before edits | yes | Read the relevant goal/task context and used the named goal skill for the durable update. |
| Active goal checked or created | yes | get_goal showed no active goal, then active goal was created for this request. |
| Source of truth read before edits | yes | Edited .agents/rules/goal.mdc, the source for generated goal skills. |
| Tracker comments and attachments read | no | N/A: local skill/rule request with no tracker link. |
| Video transcript evidence required | no | N/A: no video or screen recording in the request. |
docs/solutions checked for non-trivial existing-code work | no | N/A: this is a universal skill/rule documentation update, not product code. |
| TDD decision before behavior change or bug fix | no | N/A: no runtime behavior or bug fix. |
| Branch decision for code-changing task | no | N/A: user did not ask for branch, commit, push, or PR. |
| Release artifact decision | no | N/A: no package release surface changed. |
| Browser tool decision for browser surface | no | N/A: no browser surface. |
| PR expectation decision | no | N/A: no PR requested for this turn. |
| Tracker sync expectation decision | no | N/A: no tracker requested. |
Work Checklist:
<video-transcripts> XML, or marked N/A with reason.
N/A: no video evidence involved..agents/**, .claude/**,
.codex/**, skills, hooks, commands, prompts, or user-action tooling.Completion Gates:
| Gate | Applies | Required action | Evidence |
|---|---|---|---|
| Named verification threshold | yes | Run the command, proof, source audit, or artifact check named in this plan | pnpm install passed; focused rg/sed audits passed; checker is the final gate. |
| Bug reproduced before fix | no | Record failing test/repro or N/A with reason | N/A: workflow docs update, not a bug fix. |
| Targeted behavior verification | yes | Run focused test/proof for changed behavior or record N/A | Focused rg and generated-skill metadata audits prove the universal text and generated sync. |
| TypeScript or typed config changed | no | Run relevant typecheck | N/A: markdown/rule documentation only. |
| Package exports or file layout changed | no | Run pnpm brl before final verification and keep generated barrel updates | N/A: no package exports or file layout changed. |
| Package manifests, lockfile, or install graph changed | no | Run pnpm install and relevant package checks | N/A: no manifest or lockfile intent; pnpm install was run for Skiller sync. |
| Agent rules or skills changed | yes | Run pnpm install and verify generated skill sync | pnpm install passed and .agents/skills/goal/SKILL.md metadata points to .agents/rules/goal.mdc. |
| Workspace authority proof | yes | Run verification in the owning repo/package/app/route/tool and record cwd; do not count the wrong workspace as proof | All verification ran in /Users/zbeyens/git/plate-2, which owns the edited goal rule and generated skills. |
| Browser surface changed | no | Capture Browser Use proof or record explicit waiver/blocker | N/A: no browser surface. |
| Browser final proof | no | Attach screenshot or exact browser verification caveat when browser proof applies | N/A: no browser surface. |
| CI-controlled template output changed | no | Restore generated template output or record why it is intentionally kept | N/A: no CI-controlled template output changed. |
| Package behavior or public API changed | no | Add a changeset or record why no changeset applies | N/A: no package behavior or public API changed. |
| Registry-only component work changed | no | Update docs/components/changelog.mdx or record N/A | N/A: no registry component work. |
| High-risk mini gate | yes | For public API/runtime/package-boundary/browser/agent-action/command-contract changes, record realistic failure mode, proof plan, and why the chosen boundary is right; otherwise N/A | Failure mode: universal goal docs accidentally bake in project-specific examples. Proof: negative rg audit for those examples across source/generated/readme. Boundary: source rule plus generated sync is the right ownership. |
| Agent-native review for agent/tooling changes | yes | For .agents/**, .claude/**, .codex/**, skills, hooks, commands, prompts, or user-action tooling, load .agents/skills/agent-native-reviewer/SKILL.md and close accepted/actionable findings, or record N/A | Agent-native reviewer loaded; no action-parity finding applies because this is skill text, not a UI/tool action replacement. |
| Local install corruption suspected | no | Run pnpm run reinstall once, rerun the exact failing command, or record N/A | N/A: no install-corruption signal. |
| Autoreview for non-trivial implementation changes | no | Load .agents/skills/autoreview/SKILL.md; use dirty local --mode local, branch/PR --mode branch --base <base>, or committed slice --mode commit --commit <ref> until no accepted/actionable findings, or record N/A for docs-only/trivial/no local patch | N/A: instruction-only docs/rule update; targeted audits and agent-native decision cover the risk. |
| PR create or update | no | Run check before PR work and sync PR body to final handoff | N/A: no PR requested. |
| PR proof image hosting | no | If PR body needs browser proof, replace local image paths with hosted GitHub URLs or record N/A | N/A: no PR and no browser image. |
| Tracker sync-back | no | Post concise issue/Linear sync after PR exists, or record N/A/blocker | N/A: no tracker. |
| Final handoff contract | yes | Fill the final handoff fields below with exact PR/issue/confidence/tests/browser/outcome/caveats/design/verification content or N/A reason | Filled below. |
| Final lint | no | Run pnpm lint:fix or scoped equivalent | N/A: markdown/instruction sync only; focused audits are the relevant proof. |
| Goal plan complete | yes | Run node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-25-universal-goal-planning-flows.md | Command included in final verification evidence. |
| Knowledge extraction | no | Evaluate ce-compound; capture if useful | N/A: no reusable product-code solution beyond the edited universal skill itself. |
Phase / pass table:
| Phase | Status | Evidence | Next |
|---|---|---|---|
| Intake and source read | complete | User request mapped to universal goal source and active goal created. | implementation |
| Implementation | complete | .agents/rules/goal.mdc and .agents/rules/goal/README.md updated; generated skills synced. | verification |
| Verification | complete | pnpm install, positive/negative rg audits, and generated metadata/source excerpt checks passed. | closeout |
| PR / tracker sync | complete | N/A: no PR or tracker requested. | final response |
| Closeout | complete | Goal plan records evidence and is ready for checker/update_goal. | final response |
Findings:
Decisions and tradeoffs:
Implementation notes:
.agents/rules/goal.mdc now defines Goal Flow Modes with one-shot
execution, agent-led plan hardening, and collaborative planning.Flow mode..agents/rules/goal/README.md documents how a developer chooses and uses the
three flows.pnpm install synced .agents/skills/goal/SKILL.md and
.claude/skills/goal/SKILL.md from .agents/rules/goal.mdc.Review fixes:
Error attempts:
| Error / failed attempt | Count | Next different move | Resolution |
|---|---|---|---|
| Scaffolded goal plan contained unresolved placeholders | 1 | Replace the whole scaffold with a completed ledger | This file now records concrete evidence and resolved gates. |
Verification evidence:
/Users/zbeyens/git/plate-2: pnpm install passed and Skiller synced Codex
and Claude skill outputs./Users/zbeyens/git/plate-2: positive rg audit found the three flow modes,
Flow mode, and derived-skill flow-mode contract in .agents/rules/goal.mdc,
.agents/skills/goal/SKILL.md, .claude/skills/goal/SKILL.md, and
.agents/rules/goal/README.md./Users/zbeyens/git/plate-2: negative rg audit for project-specific
examples returned no matches across source/generated goal docs and README./Users/zbeyens/git/plate-2: sed -n '1,14p' .agents/skills/goal/SKILL.md
confirmed generated metadata still points to .agents/rules/goal.mdc./Users/zbeyens/git/plate-2: sed -n '74,140p' .agents/skills/goal/SKILL.md
confirmed generated skill text includes the three universal flow modes./Users/zbeyens/git/plate-2: node .agents/rules/goal/scripts/check-complete.mjs docs/plans/2026-05-25-universal-goal-planning-flows.md
is the final mechanical closeout check for this file.Final handoff contract:
pnpm install, positive/negative rg audits, generated metadata
check, generated content excerpt check, and goal completion checker.Final handoff / sync:
Timeline:
.agents/rules/goal.mdc.pnpm install synced generated goal skills.Reboot status:
| Question | Answer |
|---|---|
| Where am I? | Closeout after implementation and focused verification. |
| Where am I going? | Run the mechanical goal-plan checker, close the active goal, then final response. |
| What is the goal? | Make the universal goal skill support three generic flow modes without project-specific references. |
| What have I learned? | The right abstraction is a flow-mode contract in base goal, with derived skills choosing defaults. |
| What have I done? | Updated source goal docs, synced generated skills, updated human README, and recorded verification. |
Open risks: