Plan template

Source: nodfirst/templates/plan-template.md

<!--
PLAN TEMPLATE v0.5 — copy to specs/NNN-feature-name/plan.md
Rules:
- The plan answers HOW. It may only start from a spec with status Approved.
- Never contradict the spec. If the plan needs a different behavior, stop and change the spec first (C1).
- A choice with real alternatives, a cost, an account or a lasting effect is a decision (C10): context, options, decision, consequences. Any other choice takes one line.
- Say each thing once (C13): what the spec already states (criteria, examples, security points) is cited by ID, never restated.
- Every new dependency needs a justification (C8).
- Remove all <!-- comments -->. A section that does not apply keeps its heading and one line: `N/A – reason` (C13).
-->

# Plan NNN: <Feature name>

- **Spec:** `specs/NNN-feature-name/spec.md`
- **Status:** Draft | Approved
- **Last updated:** YYYY-MM-DD

## What you are approving
<!-- Write it last. At most five lines, in everyday words, in the language of the conversation (C12, C13): what changes for the people who use the product; what the agent decided on the human's behalf; what is left out; risks. Guided: only what the human can judge; technical choices in one line pointing to their section, said by their effect ("a test that sometimes fails is not retried, so problems are not hidden"), never by tool name or command. The human may approve from this box alone. -->

## 1. Summary
<!-- 3-5 sentences: the approach in plain words. -->

## 2. Constitution check
<!-- Every rule C1-C14 was checked. List only the rules with an exception (and its justification) or a note specific to this feature; keep the closing line. Never write the approval status of the plan here: it goes stale. -->
| Rule | Exception or note |
|------|-------------------|
| | |

All other rules (C1-C14): complied with, no exception.

## 3. Technical context
<!-- Only what is specific to this feature. Stack comes from the profile; do not repeat it. -->
- **Touched areas:** 
- **Existing code/modules reused:** 
- **Constraints:** 

## 4. Decisions
<!-- One entry per decision. Link to open decisions in the profile (D1…). -->
### Decision: <title>
- **Context:** 
- **Options:** A) … B) …
- **Decision:** 
- **Consequences:** 

## 5. Data model
<!-- Entities, fields, relations, ownership (who owns each record), constraints, migrations. -->
- 

## 6. Interfaces and contracts
<!-- Endpoints, actions, events or module interfaces that other code or other people call: inputs, outputs, errors, who may call them. Each cites requirement IDs. Internal helpers that only one module uses are not listed. N/A when the feature exposes none. -->
| Interface | Purpose | Input → Output / errors | Auth | Covers |
|-----------|---------|--------------------------|------|--------|
| | | | | R1 |

## 7. Security and privacy
<!-- For each security and privacy point of the spec (cited by ID, not restated): the mechanism and its test, one line each. Then threats the spec does not name, from the checklist of each active module (for web: OWASP Top 10): authentication, authorization, input validation, data exposure, rate limiting, logging of personal data, retention and deletion. -->
- 

## 8. Test strategy
<!-- Every acceptance criterion gets a test level (C4, C5), grouped by level and cited by ID (ranges allowed). The criterion's own example is the test input; do not restate it (C13). List a criterion on its own only when its test needs something the example does not say: the input that would make a weak implementation pass (for example a case that a simpler algorithm gets wrong), a prepared state, or a manual check. -->
- **Unit** (<runner>): AC…
- **Integration** (<what runs for real>): AC…
- **End to end** (<tool, browsers or devices>): AC…
- **Manual** (who, when): AC…
- **Infrastructure:** runner, fixtures, services and where they come from.

| AC | What the test adds to the criterion's example |
|----|-----------------------------------------------|
| | |

## 9. UI and UX (if applicable)
<!-- Components, routes/screens, state handling (empty, loading, error, offline), i18n keys, accessibility.
     Reference design.md and project/design-system.md; do not duplicate them. -->
- 

## 10. Dependencies
<!-- New libraries or services. Justify each: what it replaces, maintenance status, size/risk, alternative considered. -->
| Dependency | Why | Alternatives considered |
|------------|-----|-------------------------|
| | | |

## 11. Risks and mitigations
| Risk | Likelihood / impact | Mitigation |
|------|---------------------|------------|
| | | |

## 12. Rollout and migration (if applicable)
<!-- Data migrations, feature flags, backward compatibility, rollback. -->
- 

## 13. Open questions
- [ ] 

## 14. Approval
- Approved by: 
- Date:

Back to top

NodFirst is released under the MIT licence. These pages are generated from the files in the repository.

This site uses Just the Docs, a documentation theme for Jekyll.