c_agri_trade/.agents/skills/up-iteration-plan/SKILL.md

68 lines
5.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: up-iteration-plan
description: Select the next iteration's vertical slice of 3-8 related use cases and produce a scoped iteration backlog, plan, and delivery-surface matrix covering frontend portals, APIs, data, integrations, infrastructure, and QA. Use this at the start of every Construction iteration, including the very first one once the Elaboration exit gate (QG-E) has passed. This is Stage 10 (Construction) of the UP-AI v1.0 Process (00_prompts/AI_Native_Unified_Process_v1.md).
---
# up-iteration-plan — Stage 10 (Construction, loop entry point)
## Objective
Plan one iteration at a time — a vertical slice of related use cases taken end-to-end to working, demoable, integrated software — instead of authoring the entire program's backlog and sprint schedule once, up front.
## When to invoke
- At the start of Construction, immediately after the Elaboration Exit Gate (QG-E) passes.
- At the start of every subsequent iteration, once the previous iteration's retrospective is done.
- Never author more than one iteration's backlog in a single pass — planning iteration N+2 before iteration N's retrospective defeats the purpose of the loop.
## Read first
- `04_generated_documentation/00_process_control/architecture_risk_register.md` (grouping/dependency data)
- `04_generated_documentation/00_process_control/traceability_graph.md` (which FRs/use cases are not yet Delivered)
- Previous iteration's `retrospective.md`, if any (carried-over stories, raised CRs)
- `04_generated_documentation/07_test_design/regression_test_cases.md` (flaky or deprecated-pending-replacement regression debt to carry forward)
- `00_prompts/AI_Native_Unified_Process_v1.md` §6 "Stage 10"
## Procedure
Using `architecture_risk_register.md`'s grouping data and the current state of `traceability_graph.md`, select the next 3–8 related use cases not yet delivered (`status != Delivered`) for `iteration-NN`.
Prefer grouping by shared HLD service or BRD epic to minimize cross-service coordination within the iteration.
Produce `iteration_backlog.md`: for each `UC-xxx` in scope, list its `FR-xxx` children as `STORY-xxx` entries (story points, priority, acceptance criteria carried from the FR).
Produce `iteration_plan.md`: iteration goal (one sentence), demo criteria (what will be shown working at the end), capacity, any carried-over stories from the previous iteration's retrospective, and any carried-over regression debt from `regression_test_cases.md`.
When two or more implementation lanes are proposed, produce `parallel_work_plan.md` before Stage 13. For each lane record: owner; STORY-xxx and surfaces; allowed paths/modules; shared artifacts and their single owner; required contracts; dependencies; isolated branch/worktree and test data/environment; target master lane branch and common base SHA; source branch name and expected handoff SHA; merge order; and lane completion evidence.
Produce `iteration_surface_matrix.md` for every FR/story with at least:
`FR | STORY | actor/portal | screen/route | API | database/migration | integration/dependency | runtime/configuration | unit/API-integration/browser-E2E/operational test | owner | status`.
For each web actor named by the FR or demo criteria, name the actual portal and route/screen. Mark a surface deferred or not applicable only with an explicit reason and approved `CR-xxx`/`DEC-xxx`.
Rules:
- Do not plan an iteration around use cases that haven't passed Gate 9.1 (FR↔SRS↔HLD↔LLD completeness).
- Do not silently drop a carried-over story from the last retrospective.
- Do not silently drop regression debt.
- Do not leave a delivery surface implicit: frontend portal/screen, API/backend, database, integration, infrastructure/configuration, and QA/observability must each be classified.
- Do not schedule concurrent AI-assisted work without an approved `parallel_work_plan.md`.
- For any iteration touching external third-party APIs (e.g. Identity Providers, e-KYC services, payment gateways, ERP connectors, messaging/notification services), Wave 0 in `parallel_work_plan.md` MUST explicitly schedule and scaffold deterministic Sandbox/Mock adapters under `app/integrations/sandbox/` before business logic lanes execute.
## Output expected
`04_generated_documentation/05_iteration_planning/iterations/iteration-NN/iteration_backlog.md`, `iteration_plan.md`, `iteration_surface_matrix.md`, and `parallel_work_plan.md` when concurrent lanes are planned.
## Exit criteria
Iteration scope selected and agreed; every story traces to an FR-xxx that passed Gate 9.1; no applicable delivery surface is unclassified; every in-scope web portal/screen has an implementation owner and browser-QA owner; every concurrent lane has an approved boundary, dependency, integration order, and evidence plan.
## Sample invocation
> "Run up-iteration-plan for iteration-02. Group by the Account & Billing HLD service since iteration-01's retrospective flagged user-account stories as a good next dependency cluster."
> "This is the first Construction iteration — run up-iteration-plan now that QG-E has passed, prioritizing the Authentication and User Profile use cases since they unblock the most downstream stories."
## Related skills
Previous: `up-hld-lld-generate` + `up-traceability-gate` (Gate 9.1) for the first iteration; the previous iteration's retrospective for subsequent ones. Next: `up-wireframe-spec` and `up-test-model-generate` (Stage 11/12, can run in parallel), then `up-code-generate` (Stage 13).