Skip to content

Commit ea3bfde

Browse files
lesnik512claude
andauthored
Bump planning convention 1.1.0 -> 2.0.0 (#6)
* chore(planning): bump convention to 2.0.0 Applies the lesnik512/planning-convention APPLY.md update 1.1.0 -> 2.0.0: swap index.py + templates (drop plan.md template), flatten the single change folder to a flat change file (dropping the committed plan.md), merge the 2.0.0 convention prose into planning/README.md, retire "bundle" wording in CLAUDE.md, and record .convention-version=2.0.0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * docs: retire "change bundle" wording in living-truth prose Promotion-rule prose now says "change file" (2.0.0 flat-file model). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent df60ba2 commit ea3bfde

10 files changed

Lines changed: 131 additions & 316 deletions

File tree

‎CLAUDE.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Guidance for agents working in `modern-di-aiohttp` — the
77

88
Before making a change, follow the **Quick path** in
99
[`planning/README.md`](planning/README.md) — the authoritative planning
10-
convention. Pick a lane (Full / Lightweight / Tiny), create the change bundle
10+
convention. Pick a lane (Full / Lightweight / Tiny), create the change file
1111
under `planning/changes/` when the lane calls for one, and run
1212
`just check-planning` before pushing.
1313

@@ -17,7 +17,7 @@ under `planning/changes/` when the lane calls for one, and run
1717
does **now** — one file per capability, plus `glossary.md`. **When a change
1818
alters a capability's behavior, update the matching
1919
`architecture/<capability>.md` in the same PR**, alongside the code; the *why*
20-
stays in the change bundle under `planning/changes/`.
20+
stays in the change file under `planning/changes/`.
2121

2222
- `container-lifecycle.md` — `setup_di`, the `on_startup`/`on_cleanup` signal
2323
wiring, and the per-connection child container built by `_di_middleware`.

‎architecture/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language) — living prose, no frontmatter, dated by git.
66

77
**Promotion rule:** when a change alters a capability's behavior, the
88
implementing PR hand-edits the matching `architecture/<capability>.md` in the
9-
same diff, alongside the code. The *why* lives in the change bundle under
9+
same diff, alongside the code. The *why* lives in the change file under
1010
[`planning/changes/`](../planning/changes/).
1111

1212
## Capabilities

‎planning/.convention-version‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
2.0.0

‎planning/README.md‎

Lines changed: 43 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,22 @@ update it, run that repo's `APPLY.md` flow.
2020
**1. Choose a lane — first matching rule wins:**
2121

2222
1. Any of: needs design judgment · new file/module · public-API change ·
23-
cross-cutting or multi-file · non-trivial test design → **Full**
24-
(`design.md` + `plan.md`)
23+
cross-cutting or multi-file · non-trivial test design → **Full** (design template)
2524
2. Purely mechanical: typo · dep bump · linter/formatter/CI tweak ·
26-
mechanical rename · single-line config → **Tiny** (no bundle, conventional
25+
mechanical rename · single-line config → **Tiny** (no change file, conventional
2726
commit)
2827
3. Small-but-real, none of the above: ≲30 LOC net · ≤2 files · no new file ·
29-
no public-API change · one straightforward test → **Lightweight**
30-
(`change.md`)
28+
no public-API change · one straightforward test → **Lightweight** (change template)
3129

32-
Ambiguous between two? Take the heavier. A `change.md` that outgrows its lane
33-
splits into `design.md` + `plan.md`.
30+
Ambiguous between two? Take the heavier. A lightweight change file that outgrows its lane is rewritten from the design template.
3431

35-
**2. Create the bundle** (Full / Lightweight only):
36-
`planning/changes/YYYY-MM-DD.NN-<slug>/`, where `.NN` is a zero-padded
37-
intra-day counter. Copy the matching template from
32+
**2. Create the change file** (Full / Lightweight only):
33+
`planning/changes/YYYY-MM-DD.NN-<slug>.md`, where `.NN` is a zero-padded
34+
intra-day counter — copied from the matching template (design or change) in
3835
[`_templates/`](_templates/).
3936

4037
**3. Ship in the implementing PR:** hand-edit the affected
41-
`architecture/<capability>.md`, finalize the bundle's `summary:` to the
38+
`architecture/<capability>.md`, finalize the change file's `summary:` to the
4239
realized result, and run `just check-planning` before pushing.
4340

4441
## Conventions
@@ -54,14 +51,14 @@ realized result, and run `just check-planning` before pushing.
5451
- **`architecture/` (repo root) — the present.** One file per capability, plus
5552
a single `glossary.md` (the ubiquitous language); living prose, updated in the
5653
same PR that ships the change. The truth home.
57-
- **`planning/changes/` — the past-and-pending.** One folder per change,
54+
- **`planning/changes/` — the past-and-pending.** One file per change,
5855
kept in place after ship.
5956

6057
A change **promotes** its conclusions into the affected
6158
`architecture/<capability>.md` by hand **in the implementing PR, alongside the
6259
code** — the edit rides in the same diff and is reviewed with it, never applied
6360
as a separate post-merge step. That hand-edit is what keeps `architecture/`
64-
true; the bundle stays in `changes/` as the *why*.
61+
true; the change file stays in `changes/` as the *why*.
6562

6663
### Glossary
6764

@@ -83,9 +80,9 @@ Keep it a glossary, not a spec — no implementation detail. A change that
8380
introduces or sharpens a term updates `glossary.md` in the same PR, the same way
8481
a behavior change promotes into a capability file.
8582

86-
### Change bundles
83+
### Change files
8784

88-
A change is a folder `changes/YYYY-MM-DD.NN-<slug>/`:
85+
A change is a file `changes/YYYY-MM-DD.NN-<slug>.md`:
8986

9087
- `YYYY-MM-DD` — proposal date; `.NN` — zero-padded intra-day counter
9188
(`.01`, `.02`, …) that breaks same-date ties so the timeline sorts stably.
@@ -94,25 +91,44 @@ A change is a folder `changes/YYYY-MM-DD.NN-<slug>/`:
9491
`summary` is written when the change is created (the intent one-liner) and
9592
**finalized at ship** to state the realized result — set in the implementing
9693
PR, alongside the code and the `architecture/` promotion. No post-merge
97-
bookkeeping, no folder move. `date` and `slug` are never written — they are
98-
read from the bundle's directory name.
94+
bookkeeping, no file move. `date` and `slug` are never written — they are
95+
read from the file name.
9996

10097
### Three lanes
10198

10299
| Lane | Artifacts | Use when |
103100
|------|-----------|----------|
104-
| **Full** | `design.md` + `plan.md` | design judgment; new file/module; public-API change; cross-cutting/multi-file; non-trivial test design |
105-
| **Lightweight** | `change.md` | small-but-real: ≲30 LOC net, ≤2 files, no new file, no public-API change, single straightforward test |
101+
| **Full** | one change file from the design template | design judgment; new file/module; public-API change; cross-cutting/multi-file; non-trivial test design |
102+
| **Lightweight** | one change file from the change template | small-but-real: ≲30 LOC net, ≤2 files, no new file, no public-API change, single straightforward test |
106103
| **Tiny** | none — conventional commit | typo, dep bump, linter/formatter/CI tweak, mechanical rename, single-line config |
107104

108-
Heavier lane wins on ambiguity. A `change.md` that outgrows its lane splits
109-
into `design.md` + `plan.md`.
105+
Heavier lane wins on ambiguity. A lightweight change file that outgrows its lane is rewritten from the design template.
106+
107+
### Plans are ephemeral
108+
109+
The executable plan — task checklists, embedded code, commit sequences,
110+
whatever the executor needs — is a working artifact, not history. Keep it out
111+
of `changes/` and out of version control (git-ignored scratch, e.g.
112+
`.superpowers/`). Once the change ships, the diff and the PR are the record
113+
of execution; a committed plan duplicates them. `check-planning` rejects
114+
anything in `changes/` that is not a flat change file.
115+
116+
### Lean specs
117+
118+
The change file is the single home of a change's rationale:
119+
120+
- The PR body summarizes and links to the change file — it never restates it.
121+
- Rejected alternatives live in `decisions/` and are referenced, not retold.
122+
- Show a sketch when the design needs code; never the full diff-to-be.
123+
- Delete template sections that don't apply — an empty section is ceremony.
124+
- Most designs fit well under ~700 words; length must buy information.
110125

111126
### Artifacts at a glance
112127

113-
- **`design.md`** — the spec: the *thinking* (why, design, trade-offs, scope).
114-
- **`plan.md`** — the plan: the *sequencing* (the executor's task checklist).
115-
- **`change.md`** — both, condensed, for the lightweight lane.
128+
- **design template** — the spec: the *thinking* (why, design, trade-offs,
129+
scope); the change file it produces is the single home of rationale (see
130+
[Lean specs](#lean-specs)).
131+
- **change template** — the condensed spec for the lightweight lane.
116132
- **`releases/<semver>.md`** — per-release user-facing notes.
117133
- **`audits/<date>-<slug>.md`** — findings from a code/docs/bug-hunt sweep;
118134
spawns fix changes.
@@ -126,11 +142,10 @@ Templates live in [`_templates/`](_templates/).
126142

127143
### Frontmatter
128144

129-
`date` and `slug` are **derived from the directory / file name** — never
145+
`date` and `slug` are **derived from the file name** — never
130146
repeated in frontmatter. So:
131147

132-
- `design.md` / `change.md`: `summary` (single line) only.
133-
- `plan.md`: **no frontmatter** — its identity is the bundle directory.
148+
- `changes/*.md`: `summary` (single line) only.
134149
- `decisions/*.md`: `status` (accepted|superseded), `summary`, and optional
135150
`supersedes` / `superseded_by`.
136151
- Files in `architecture/` carry **no** frontmatter — living prose, dated by git.
@@ -142,7 +157,7 @@ only field the index renders.
142157
## Index
143158

144159
Run `just index` to print the generated change-and-decision index
145-
(newest-first) to stdout. It is a query over the bundle / decision files, never
160+
(newest-first) to stdout. It is a query over the change / decision files, never
146161
a committed artifact.
147162

148163
## Other

‎planning/_templates/change.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ summary: One line — shown in the generated index. Written at creation; finaliz
55
# Change: One-line capitalized title
66

77
**Lane:** lightweight — ≲30 LOC net, ≤2 files, no new file, no public-API
8-
change, a single straightforward test. If it outgrows this, split into
9-
`design.md` + `plan.md`.
8+
change, a single straightforward test. If it outgrows this, rewrite it from
9+
the design template.
1010

1111
## Goal
1212

‎planning/_templates/design.md‎

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ summary: One line — shown in the generated index. Written at creation; finaliz
44

55
# Design: One-line capitalized title
66

7+
<!-- The single home of this change's rationale: the PR body summarizes and
8+
links here, never restates. Delete any section that doesn't apply — an empty
9+
section is ceremony. Most designs fit well under ~700 words. -->
10+
711
## Summary
812

913
One paragraph. What changes, at the level a reader needs to decide if this
@@ -12,37 +16,23 @@ spec is worth reading in full.
1216
## Motivation
1317

1418
Why now. What is broken or missing. Concrete observations / numbers, not
15-
abstract complaints. Link to memory entries or earlier specs when relevant.
16-
17-
## Non-goals
18-
19-
What is deliberately out of scope and (when nontrivial) why. Each item is
20-
a sentence; one line each.
19+
abstract complaints.
2120

2221
## Design
2322

24-
### 1. <First piece>
25-
2623
What changes, in enough detail that a reader who has not seen the codebase
27-
can follow. Code samples / diagrams welcome.
24+
can follow. Sketches and interface fragments welcome; never the full
25+
diff-to-be. Reference rejected alternatives in `decisions/` instead of
26+
retelling them.
2827

29-
### 2. <Second piece>
30-
31-
...
32-
33-
## Operations
34-
35-
Out-of-repo steps (DNS, infra, external account changes). Omit if none.
36-
37-
## Out of scope
28+
## Non-goals
3829

39-
Already covered above under Non-goals if appropriate. Repeat-list of
40-
explicitly-excluded follow-ups belongs here when the list is long.
30+
What is deliberately out of scope and (when nontrivial) why. One line each.
4131

4232
## Testing
4333

44-
How we know it landed correctly. New pytest? Smoke check on live URL?
45-
Lint pass? Be specific.
34+
How we know it landed correctly. Be specific: the command and the expected
35+
signal.
4636

4737
## Risk
4838

‎planning/_templates/plan.md‎

Lines changed: 0 additions & 46 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)