Loading
docs(dev): make specs record what they defer and why it is safe
Summary
- Problem: code is now cheap to generate, and agents tend to reach for the most complete, best-looking solution. So we design and build more than we need, and ship later than we could. Our process doesn't push back: specs say what they do and what is out of scope, but not what they leave out for now, or why leaving it out is safe. When we do simplify, a deferral that quietly closes a door, like a schema that needs a backfill later, is easy to miss in review. Designing remote cache cleanup (S35, !3831 (merged)) showed both: the first design was heavier than it needed to be, and simplifying it safely took a Deferred section with a test for each row.
- Goal: switch the default. Simplify as much as we can now, stay forward compatible, and write down what we deferred, how we'd add it, and what would trigger it.
- Impact: the team: whoever writes or reviews the next spec or plan.
- Change:
- A "simplify now, defer safely" principle in
docs/dev/agentic-development.md. - A Deferred section in the spec template: a table of what is left out, how we'd add it, and when, with the test each row must pass: not a one-way door, no risk to integrity or safety, no major performance cost, and a safe path back that already exists or that the spec creates now. When a row fails, the spec does the least work now that makes deferring it safe, such as adding a column so the feature later needs no backfill.
- The same Deferred section in the monolith spec template, after Follow-ups, with a line on the difference: a follow-up is planned work with an issue, a deferral waits for its trigger.
- A question in the Plan MR template: does any step close the safe path a deferral relies on?
- A "simplify now, defer safely" principle in
- Downsides: one more section in each new spec. The Spec MR template is unchanged on purpose: the spec's Deferred section answers the question, and the MR template asks only what the file can't.
Checklist
- Ran it: n/a, process docs only. Markdown, link and Vale lint pass.
- Interfaces and data: none.
- Failure: n/a.
- Rollout: n/a. Existing specs don't need a Deferred section until they next change in a way that defers something.
- Hot path: n/a.
- Database: n/a.
- Security: n/a.
- ADRs: none govern process docs; checked.
- E2E: n/a.
- Simplicity: I rejected repeating the test in the Spec MR template and in the principle: it lives once, in the spec template, and the principle points to it.
Split out of !3864 (merged), because Danger keeps guardrail files out of an MR with code.
Edited by João Pereira