Specification
Used in the playbook Project foundation, stage 3.
The source, as in the repository: specification.md Download
How to use
The template's own instructions:
Template from the UASK Engineering Hub, playbook mgmt.project-foundation (stage 3, requirements; item req.requirements-specification). Use it when one requirement or a group of requirements of the PRD needs more detail than a PRD line can hold: the exact behaviour, interfaces and data of a feature or component, written so that someone who has not been in the conversation can build and test it. Skip it for a small change that the PRD line and its acceptance criteria already settle. Save as project/specs/<slug>.md. Refer to the PRD by id (FR-n, NFR-n) and never restate the requirement; the PRD stays the one home of "what is required". Sections marked "Optional" may be deleted; delete these comments in the copy.
Fields
Front-matter fields and sections of the document the template creates. A section marked Optional in the template may be deleted from a copy; every other field and section stays (tools/check_artifacts.py checks this for the kinds it knows).
| Field or section | Where | Required |
|---|---|---|
template | front matter | required |
title | front matter | required |
status | front matter | required |
version | front matter | required |
date | front matter | required |
owner | front matter | required |
| Purpose and scope | section | required |
| Requirements covered | section | required |
| Behaviour | section | required |
| Interfaces and data | section | required |
| Errors and edge cases | section | required |
| Quality limits | section | optional |
| Acceptance | section | required |
| Open questions | section | optional |
Example
A filled-in copy for an invented product, templates/examples/specification.md, in the Hub repository.It shows the level of detail to aim for, not text to reuse.
---template: specification/1title: Specificationstatus: draftversion: 0.1.0date: 2026-03-04owner: Product Owner---
# Specification — Saving a note
## Purpose and scope
This specification says exactly how Fieldnotes writes a note to the device. It covers the save, the file name and what survives a kill of theapp. It does not cover sync to a Git host (FR-2) or the export archive (FR-3).
## Requirements covered
| Requirement | What this specification adds ||---|---|| FR-1 | The file format, the file name and the order of the write that makes a save safe. || NFR-1 | The write goes to a temporary file first, so a killed save leaves the previous version intact. |
## Behaviour
1. **S1.** The app MUST write each note to its own UTF-8 Markdown file named `<id>.md` in the notes folder, with no network call.2. **S2.** A save MUST write `<id>.md.tmp`, flush it to disk, then rename it to `<id>.md`.3. **S3.** The app MUST save a note 2 seconds after the last key press and on leaving the note.4. **S4.** On start the app MUST delete any `*.md.tmp` file left by a killed save and MUST open the last complete `<id>.md`.
## Interfaces and data
| Name | Direction | Format and limits | Owner or contract ||---|---|---|---|| note file | written and read | UTF-8 Markdown, front matter with `id` and `changed`, up to 1 MB | the user's device storage || notes folder | read | app-private folder, no sub-folders | the operating system |
## Errors and edge cases
| Situation | Expected behaviour ||---|---|| Storage is full | The save fails with a visible message; the previous version stays and the text stays on screen. || The app is killed during a save | On the next start the previous version opens (S4). || The note is larger than 1 MB | The save is refused with a message that names the limit. |
## Quality limits
A save of a note of 10 000 characters completes in under 100 ms on the reference phone.
## Acceptance
| Behaviour | Proved by ||---|---|| S1, S3 | AC-1 || S2, S4 | AC-2 |
## Open questions
- Whether to keep one earlier version of each note (the owner decides before 2026-03-20).Completion checks
A copy is complete when:
- every required field and section above is present, in the same order, and no bracketed placeholder is left;
- the template's comments are deleted from the copy;
- the exit criteria of stage 3 of the playbook Project foundation are met;
- the owner has approved it, where the playbook asks for approval. Only the owner sets
approved.
Source
templates/specification.md, as in the repository. Placeholders are in square brackets; comments carry the instructions.
---template: specification/1title: Specificationstatus: draft # draft | review | approved — only the owner sets approvedversion: 0.1.0date: YYYY-MM-DDowner: Product Owner---
# Specification — Feature or component name
<!-- Template from the UASK Engineering Hub, playbook mgmt.project-foundation (stage 3, requirements; item req.requirements-specification). Use it when one requirement or a group of requirements of the PRD needs more detail than a PRD line can hold: the exact behaviour, interfaces and data of a feature or component, written so that someone who has not been in the conversation can build and test it. Skip it for a small change that the PRD line and its acceptance criteria already settle. Save as project/specs/<slug>.md. Refer to the PRD by id (FR-n, NFR-n) and never restate the requirement; the PRD stays the one home of "what is required". Sections marked "Optional" may be deleted; delete these comments in the copy. -->
## Purpose and scope
<!-- Two or three sentences: what this specification covers, for whom, and what it leaves out. -->
## Requirements covered
<!-- The PRD requirements this specification elaborates, by id; every id appears in the PRD. -->
| Requirement | What this specification adds ||---|---|| FR-n | … |
## Behaviour
<!-- What the system does, as numbered statements, one testable behaviour each, using MUST / SHOULD / MAY (RFC 2119, RFC 8174). Say what happens, not how it is coded. Number them S1, S2, … so tests and acceptance criteria can cite them. -->
1. **S1.** …
## Interfaces and data
<!-- Inputs, outputs, formats, limits, and the data stored with its owner and retention. Name each external interface once and point to its contract or owner (Blueprint section 3). -->
| Name | Direction | Format and limits | Owner or contract ||---|---|---|---|| … | … | … | … |
## Errors and edge cases
<!-- What happens when input is missing, wrong, too large, repeated, or when a dependency is down. Each row is a behaviour that can be tested. -->
| Situation | Expected behaviour ||---|---|| … | … |
## Quality limits
<!-- Optional. Numbers that apply only to this feature: response time, size, availability, accessibility level. Each is a measurable value, not an adjective; global limits stay in the PRD's non-functional table. -->
## Acceptance
<!-- How the specification is accepted: the acceptance criteria (AC-n) that prove each behaviour, or a link to the acceptance-criteria document made from templates/acceptance-criteria-document.md. Every S-number is proved by at least one criterion. -->
| Behaviour | Proved by ||---|---|| S1 | AC-n |
## Open questions
<!-- Optional. Anything the owner or another person must decide before the status can be review; name who decides. An open question that blocks a behaviour is not left in the text as if decided. -->