Repository navigation
Commit fe0eebc
feat(aidd-pm): keep a typed product backlog coherent whoever writes to it (#582)
* feat(aidd-pm): orchestrate a typed product backlog
The plugin only produced isolated documents, so nothing connected an Epic to
its Stories, Tasks, Spikes, and Defects, and nothing could tell whether a
backlog stayed coherent after a change.
Add a `00-backlog` orchestrator that resolves scope and authority, triages
intake, routes every proposed change to its owning capability, and verifies the
result. It never writes: it collects proposals as a change set, keeps product
and lifecycle decisions with the user, and delegates each mutation to the
artifact that owns the field.
Add the missing artifact capabilities that orchestrator routes to: `07-epic`,
`09-defect`, `10-task`, plus `08-three-amigos` for product, delivery, and
quality refinement, exposed as three read-only advocate agents so the lenses
can run in parallel without seeing each other. Rewrite `02-user-stories` around
the same shape.
Add `hooks/check-backlog.js` so structure is enforced by code rather than by
prose: it parses artifact frontmatter, builds the graph, and reports field
ownership violations, invalid statuses and paths, mirrored or cyclic relations,
duplicate order, and missing completion evidence. It serves the read model the
orchestrator inspects, and runs as a PostToolUse hook that stays silent unless a
write touches the backlog.
Co-Authored-By: Claude Opus 5 <[email protected]>
* feat(aidd-context): record how a project organizes its backlog
Backlog skills need durable conventions to know which support owns an artifact
or a field, but project memory had no place to keep them, so every session
re-inferred the mapping.
Add a `backlog` concern with its own memory template covering supports and their
authority, structure, native representation, workflow states, planning
conventions, and relations. The template records conventions only, never work
items or live values, so it stays valid as the backlog changes.
Co-Authored-By: Claude Opus 5 <[email protected]>
* docs(framework): document the product backlog system
The docs still described aidd-pm as a set of document generators, listed only
two hook-shipping plugins, and pinned skill and action file shapes that the
newer skills no longer follow.
Update the catalog, glossary, architecture hook table, plugin descriptions, and
contributor guides to describe backlog orchestration, its artifacts, its
refinement lenses, and the backlog checker hook. Align the documented skill and
action structure with what the skills actually contain.
Co-Authored-By: Claude Opus 5 <[email protected]>
* refactor(aidd-pm): give every rule one home and let a skill redirect
Reading a skill meant reading its neighbours. The same routing table was
restated in five files, field ownership in three, and four actions stopped dead
on a request that belonged to a sibling instead of naming who owned it.
Give each artifact skill its own `relations.md` stating the fields it owns, and
split the `*-quality.md` files whose two halves served two different callers.
Nothing is shared between skills: the build ships the same tree flat or as a
marketplace, so a relative path across skills survives neither, and a rule
repeated per skill is the price of that isolation.
Add a `handoffs.md` per artifact skill, modelled on the Spike's existing
capability table: what was observed, the capability that owns it named by role,
and whether the flow returns. Qualification shrinks to each skill's own
threshold and stops defining its neighbours.
Drop the three advocate agents. They forwarded a role to Three Amigos and added
nothing, while occupying three near-identical entries in every session's agent
registry; the read-only contract already lives in the skill they called.
Address the backlog through four intents rather than inferring one from prose,
and stop naming the bundled checker: each capability proves what it owns, so
the orchestrator needs no script of its own.
Co-Authored-By: Claude Opus 5 <[email protected]>
* fix(aidd-pm): report only problems the backlog checker can prove
Three findings were noise. A half-applied change set reported a duplicate order
and a missing target, though a single write is never a transaction and the
orchestrator declares that state legal. Citing a source or describing ordering
inside a section was read as frontmatter copied into the body. And an Epic could
carry neither order nor estimate, while agile practice sizes Epics relative to
each other and orders them by business value.
Carry a scope on every diagnostic so the write-time hook reports what one file
can prove and leaves the graph to verification. Scan for copied frontmatter only
where a copy can live: the preamble, a section heading, a metadata table. Give
Epics an order space of their own, since like Defects they have no parent.
The documented statuses, field ownership and storage folders are now tested
against the checker itself, so a doc and the rule it describes cannot drift
apart, and no skill can link outside itself.
Co-Authored-By: Claude Opus 5 <[email protected]>
* docs(framework): state how a capability is addressed
Three rules governed addressing and they disagreed. One forbade naming a plugin,
another allowed a `plugin:folder` address for a sibling, a third forbade plugins
referencing each other at all. None distinguished naming the concept a capability
owns from naming the skill that owns it, which is the distinction that decides
whether a capability can change plugin.
Replace them with one rule: address a capability only where the dispatch is
declared, a router's actions table or an agent's allow-list, and name the concept
everywhere else. An address never crosses a plugin boundary. A `grep` can now
enforce what was unenforceable.
Halve the file while keeping every distinct rule. Two diagrams restated the prose
around them, the action anatomy described a shape the actions no longer had, and
the validation notes ran three paragraphs for one sentence. Record what the code
already required: a skill never links outside itself, and a plugin never carries
its own tests.
Co-Authored-By: Claude Opus 5 <[email protected]>
* docs(aidd-pm): record the backlog hardening plan
Keep the trail of what was changed and why: the seven phases, the decisions each
one settled, and the three rulings that needed a maintainer rather than a fix.
Co-Authored-By: Claude Opus 5 <[email protected]>
* fix(aidd-pm): judge a write while both its states still exist
A stored file carries no history, so nothing could tell a legal status move from
an illegal one, and an artifact written straight to `done` was accepted as
readily as one that earned it.
Judge the write before it happens, where the file on disk is the before and the
payload is the after. Two rules only, both derived from the lifecycle the skills
already document: a status may move only where its table allows, and no artifact
is born in a terminal status. Everything else stays silent, because a hook that
refuses a legal write costs more than one that misses an illegal one.
Split the checker along the seam this opens. Reading Markdown, judging one
artifact, judging the graph, and building the read model were one three-hundred
line function; they are now four modules behind an entry point, and the file and
graph scopes that decide what the write-time hook may report are directories
rather than a set of strings.
Pin the contract against the skills: statuses, transitions, owned fields, storage
folders, required sections and the templates that ship them all fail the suite
when a document and the code disagree.
Co-Authored-By: Claude Opus 5 <[email protected]>
* refactor(aidd-pm): make every rule reachable from the skill that owns it
Three end-to-end runs of the skills found the same shape of defect over and over:
a rule stated in one file and needed in another, a term used but never defined, a
flow with no entry for the thing a user actually asks for.
Open a direct route to finalize, so changing a status on a persisted artifact no
longer means redrafting it. Give each artifact its own field table, its own
handoff table, and one home for what its state change means for its parent. Say
what an accepted assumption is, what a Definition of Done points at, what a slug
is, and where a cancellation records its reason, in the file that owns each.
Cut what turned out to belong elsewhere: the routing map keeps events and drops
consequences, the qualification tables keep their own threshold and stop defining
their neighbours, and the checker is named by whoever runs it rather than linked
by a path no build layout preserves.
Follow practice where it has an answer: a Defect needs its reproduction steps, an
Epic is ordered and estimated like any other work, a Story's acceptance is its own
proof, and a blocked Story becomes a Spike rather than a section.
Co-Authored-By: Claude Opus 5 <[email protected]>
* docs(aidd-pm): record what three end-to-end runs proved and what they did not
Keep the trail: the smoke-test brief, the two findings lists, and the fixes each
one produced. The runs establish persistence, the lifecycle and both hooks; they
establish nothing about the drafting question loop, the orchestrated change set,
ordering, estimation or autonomous mode, because no scenario ever reached them
with a real answer on the other side.
Co-Authored-By: Claude Opus 5 <[email protected]>
* refactor(aidd-orchestrator): own the backlog flow outside product management
Sequencing several artifact owners through one event is orchestration, not
product management, so `00-backlog` becomes `aidd-orchestrator:02-backlog`.
The artifact contracts, hooks and validators stay in `aidd-pm`, so a direct
call to a PM skill meets exactly the same checks as an orchestrated one.
Co-Authored-By: Claude Opus 5 <[email protected]>
* feat(aidd-pm): judge a backlog change before the write and again after the turn
A file never carries its own history, so one hook reads the artifact on disk and
the content about to replace it, and refuses a status move no lifecycle allows,
an artifact born finished, a missing section, a field its type may not carry.
What one write cannot prove waits for the end of the turn, where a second hook
compares the graph the turn opened on with the graph it left: a dangling target,
a duplicate order, a live child under a closed parent, a cycle, a deletion.
The turn is judged as a walk, not as a shortcut. The journal records the status
each artifact held before every observed write, so moving a Story through
`ready` to `in-progress`, or creating a Task and carrying it to `done`, passes,
while a jump no lifecycle allows is still refused even from an opaque tool.
An owner may instead declare its change, for a support the hooks cannot read.
That declaration meets the same contract, and nothing requires it today: no
shipped skill writes anywhere but Markdown, which each `persistence.md` now says.
Co-Authored-By: Claude Opus 5 <[email protected]>
* docs(framework): record what the live backlog runs proved and what they did not
Every earlier round judged the skills by reading them. This one ran them: a
sandbox wires both hooks into `.claude/settings.json`, copies the skills in the
flat layout the CLI ships, and a nested session plays the user.
The record keeps what the runs cost, the six defects a mandatory declaration
caused before it became optional, and the three escapes still open, each with
the decision it needs rather than a fix nobody asked for.
Co-Authored-By: Claude Opus 5 <[email protected]>
* chore(framework): keep a node_modules symlink out of the tree
A worktree that borrows its dependencies through a symlink was tracked, because
the ignore rule names a directory and this is a file.
Co-Authored-By: Claude Opus 5 <[email protected]>
* refactor(aidd-pm): leave backlog coherence to the skills that define it
The bundled hooks judged aidd_docs/backlog/**/*.md before a write and again at the
end of a turn. They worked, and three live runs proved they caught rules the skills
already state that an agent had not followed.
They also only ever served a backlog held as files on disk. A project on Jira, Linear
or GitHub Issues got nothing from them, for 1371 lines and 81 tests to carry. The
skills keep every rule they always stated; what goes is the enforcement, not the
contract.
#581 replaces this with one design that covers any support, and records what the
removed code proved so none of it has to be rediscovered.
Co-Authored-By: Claude Opus 5 <[email protected]>
---------
Co-authored-by: Claude Opus 5 <[email protected]>1 parent ed81604 commit fe0eebc
134 files changed
Lines changed: 2797 additions & 554 deletions
File tree
- .claude-plugin
- aidd_docs
- memory
- tasks/2026_07/2026_07_30_backlog-hardening
- cli
- src/domain
- formats
- tools/ai
- tests
- application/use-cases/framework
- domain
- formats
- tools/ai
- docs
- plugins
- aidd-context/skills/02-project-memory
- assets/templates/memory/backlog
- references
- aidd-orchestrator
- .claude-plugin
- skills/02-backlog
- actions
- references
- aidd-pm
- .claude-plugin
- skills
- 02-user-stories
- actions
- assets
- references
- 03-prd/actions
- 04-spec/actions
- 05-spike
- actions
- assets
- references
- 06-product-brief
- actions
- assets
- references
- 07-epic
- actions
- assets
- references
- 08-three-amigos
- actions
- references
- 09-defect
- actions
- assets
- references
- 10-task
- actions
- assets
- references
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
51 | | - | |
| 56 | + | |
52 | 57 | | |
53 | | - | |
54 | | - | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | | - | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
118 | | - | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
139 | | - | |
140 | | - | |
| 142 | + | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments