feat(plan): bare-bones /plan MVP with gate, research, validate and record agents #249

Merged
Defame1297 merged 3 commits from feat/plan-mvp into main 2026-11-29 11:50:03 +00:00
Owner

Sets up a minimal MVP of the plan package from plugins/plan/docs/outline.md (steps 0–10). Every primitive is a minimal stub, written by hand on purpose, to build out later.

What's added

  • /plan prompt (.apm/prompts/plan.prompt.md, hand-invoked): the orchestrator.
    • It takes #N, free text, or the issue /next picked earlier in the conversation.
    • It runs the gate, then the discovery loop (grill → research → validate → offer a plan → agreement), and offers to park the idea after two loops on the same point.
    • It records decisions in a docs PR, then hands off to the spec and the tickets.
  • Agents:
    • plan-gate (step 1, read-only)
    • plan-researcher (step 3, repo or web scope, writes only to the scratchpad)
    • plan-validator (step 4, read-only)
    • plan-recorder (step 7, the docs PR)
  • Skill plan-track: the criteria for choosing between the spec-and-tickets track and the tickets-only track.
  • Steps 8–10 use upstream /to-spec and /to-tickets.
    • Both are hand-invoked, so /plan tells the user to type them, and the user running them is the approval.
    • /to-tickets sets Status/Ready for Agent, per the outline. The maintainer accepted the conflict with delivery's rule that only a human sets it.
    • Afterwards, /plan removes that label from any filed ticket that has no acceptance criteria.
  • /next now offers /plan as a handoff.
  • Version and docs: plan goes from 0.3.0 to 0.4.0, with marketplace.json regenerated. The outline's "What ships today" and the README are updated.

Notes

  • Undeclared dependencies. The prompt and agents route to gitea-*, git-commits and agentsmd-author, which plan does not declare. The outline notes that plan assumes the gitea, git and core packages are installed.
  • Spec issue label. Upstream to-spec also labels the spec issue ready-for-agent. Remove that label by hand until plan owns its own spec template.
  • Release tag. After merge, plan-v0.4.0 needs its release tag, created with scripts/tag-plugin-releases.sh.

Verification

  • Two clean-context review rounds. Round 1 found two blocking issues, both fixed. Round 2 found none.
  • check-apm-agents-valid and apm-pack-check-clean pass.
  • tests/run-tests.sh: all 24 suites pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi

Sets up a minimal MVP of the `plan` package from `plugins/plan/docs/outline.md` (steps 0–10). Every primitive is a minimal stub, written by hand on purpose, to build out later. ## What's added - **`/plan` prompt** (`.apm/prompts/plan.prompt.md`, hand-invoked): the orchestrator. - It takes `#N`, free text, or the issue `/next` picked earlier in the conversation. - It runs the gate, then the discovery loop (grill → research → validate → offer a plan → agreement), and offers to park the idea after two loops on the same point. - It records decisions in a docs PR, then hands off to the spec and the tickets. - **Agents**: - `plan-gate` (step 1, read-only) - `plan-researcher` (step 3, repo or web scope, writes only to the scratchpad) - `plan-validator` (step 4, read-only) - `plan-recorder` (step 7, the docs PR) - **Skill `plan-track`**: the criteria for choosing between the spec-and-tickets track and the tickets-only track. - **Steps 8–10** use upstream `/to-spec` and `/to-tickets`. - Both are hand-invoked, so `/plan` tells the user to type them, and the user running them is the approval. - `/to-tickets` sets `Status/Ready for Agent`, per the outline. The maintainer accepted the conflict with delivery's rule that only a human sets it. - Afterwards, `/plan` removes that label from any filed ticket that has no acceptance criteria. - **`/next`** now offers `/plan` as a handoff. - **Version and docs**: `plan` goes from 0.3.0 to 0.4.0, with `marketplace.json` regenerated. The outline's "What ships today" and the README are updated. ## Notes - **Undeclared dependencies.** The prompt and agents route to `gitea-*`, `git-commits` and `agentsmd-author`, which `plan` does not declare. The outline notes that `plan` assumes the gitea, git and core packages are installed. - **Spec issue label.** Upstream `to-spec` also labels the spec issue `ready-for-agent`. Remove that label by hand until `plan` owns its own spec template. - **Release tag.** After merge, `plan-v0.4.0` needs its release tag, created with `scripts/tag-plugin-releases.sh`. ## Verification - Two clean-context review rounds. Round 1 found two blocking issues, both fixed. Round 2 found none. - `check-apm-agents-valid` and `apm-pack-check-clean` pass. - `tests/run-tests.sh`: all 24 suites pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Claude added 3 commits 2026-11-29 11:44:24 +00:00
Add the /plan orchestrator prompt for outline steps 0-10, four stub
agents (plan-gate, plan-researcher, plan-validator, plan-recorder) and
the plan-track skill. Steps 8-10 hand off to the hand-invoked /to-spec
and /to-tickets, which the user runs as their approval. /next now
offers /plan as a handoff. Bump plan to 0.4.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Agent descriptions named the /plan prompt in slash form, which the
agent validator reads as an unresolved routing target. Regenerate
marketplace.json for plan 0.4.0. /plan now strips the ready label from
filed tickets without acceptance criteria, and the outline notes the
packages plan assumes are installed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
/plan is hand-invoked like /ship, step 6 states that agreeing also
approves the docs PR, and the outline's agent notes are corrected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Defame1297 approved these changes 2026-11-29 11:49:49 +00:00
Defame1297 merged commit 219a084c25 into main 2026-11-29 11:50:03 +00:00
Defame1297 deleted branch feat/plan-mvp 2026-11-29 11:50:11 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#249