ai-runtime-kit 0.5.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +387 -0
- package/README.md +104 -0
- package/package.json +2 -1
- package/runtime/INDEX.md +139 -11
- package/runtime/agents/executor.md +7 -0
- package/runtime/agents/feature-writer.md +57 -0
- package/runtime/agents/planner.md +60 -0
- package/runtime/agents/prd-writer.md +59 -0
- package/runtime/agents/reviewer.md +60 -0
- package/runtime/agents/spec-writer.md +60 -0
- package/runtime/agents/tdd-writer.md +57 -0
- package/runtime/agents/verifier.md +8 -1
- package/runtime/features/_template.md +75 -0
- package/runtime/plans/_template.md +5 -2
- package/runtime/reviews/_template.md +8 -0
- package/runtime/specs/_template/spec.md +9 -0
- package/runtime/specs/_template-bug-fix/spec.md +9 -0
- package/runtime/tasks/_template.md +25 -2
- package/runtime/workflows/feature-development.md +86 -6
- package/src/init.js +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
While the project is on `v0.x`, breaking changes can land at any
|
|
8
|
+
minor release; pin to a specific minor in CI if you depend on the
|
|
9
|
+
kit.
|
|
10
|
+
|
|
11
|
+
## [Unreleased]
|
|
12
|
+
|
|
13
|
+
## [0.9.0] - 2026-05-14
|
|
14
|
+
|
|
15
|
+
**Closes the v0.6.0 nine-phase-workflow PRD's 4-feature
|
|
16
|
+
delivery.** F4 is the last slice; shipping it completes the
|
|
17
|
+
first fully-delivered multi-feature PRD on this kit and
|
|
18
|
+
validates framework A end-to-end.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **`## Parent <Type>` convention** across all artifact
|
|
22
|
+
templates. Every artifact now carries a structural
|
|
23
|
+
upward-citation link to its direct parent, assembling the
|
|
24
|
+
chain `commit → task → plan → spec → feature → PRD`.
|
|
25
|
+
- Spec templates (regular + bug-fix variant): new
|
|
26
|
+
`## Parent Feature` section after `## Status`.
|
|
27
|
+
- Plan template: `## Related Spec` renamed to
|
|
28
|
+
`## Parent Spec` (single path required).
|
|
29
|
+
- Task template: `## Related Spec` → `## Parent Spec`; new
|
|
30
|
+
`## Parent Plan` section added (both required).
|
|
31
|
+
- Review template: new `## Parent Spec` section after
|
|
32
|
+
`## Summary`.
|
|
33
|
+
- **`(none — <reason>)` rendering** for workflow paths that
|
|
34
|
+
skip an upstream artifact:
|
|
35
|
+
- Engineering-only specs → `(none — engineering-only)`.
|
|
36
|
+
- Bug-fix specs → `(none — bug-fix workflow)`.
|
|
37
|
+
- Hot-fix tasks → `(none — direct task)`.
|
|
38
|
+
- **`runtime/INDEX.md` § Traceability** — new top-level
|
|
39
|
+
section between `## Agents` and `## Skills`. Documents the
|
|
40
|
+
chain, the per-artifact `## Parent <Type>` requirements,
|
|
41
|
+
the `(none — <reason>)` rendering rules, and the rationale
|
|
42
|
+
(powering M3 from the parent PRD).
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
- `runtime/plans/_template.md` — `## Related Spec` is now
|
|
46
|
+
`## Parent Spec` (rename; semantics unchanged but field is
|
|
47
|
+
now required and single-path instead of bullet list).
|
|
48
|
+
- `runtime/tasks/_template.md` — `## Related Spec` is now
|
|
49
|
+
`## Parent Spec`; format tightened to single path.
|
|
50
|
+
|
|
51
|
+
### Process
|
|
52
|
+
- **Seventh fire of `pre-executor/runtime-scoped-preflight`
|
|
53
|
+
hook**, seventh clean pass. Six runtime paths enumerated;
|
|
54
|
+
no GATE failures.
|
|
55
|
+
- **First spec to structurally cite its parent feature.**
|
|
56
|
+
F4's own spec uses the new `## Parent Feature` section
|
|
57
|
+
(self-reference noted with HTML comment in the spec body).
|
|
58
|
+
The convention demonstrates itself before the templates
|
|
59
|
+
that codify it ship — same bootstrap pattern as F1's
|
|
60
|
+
feature doc in v0.6.0.
|
|
61
|
+
- **Framework A end-to-end validated.** The v0.6.0
|
|
62
|
+
nine-phase-workflow PRD sliced into 4 features (F1–F4),
|
|
63
|
+
each shipped independently as v0.6.0 / v0.7.0 / v0.8.0 /
|
|
64
|
+
v0.9.0. M2 (PRD slicing without context duplication) has
|
|
65
|
+
its first complete data point — the parent PRD's Problem
|
|
66
|
+
/ Target Users / Success Metrics live only in the PRD;
|
|
67
|
+
each feature doc references them by path or by reference
|
|
68
|
+
rather than re-stating.
|
|
69
|
+
|
|
70
|
+
## [0.8.1] - 2026-05-14
|
|
71
|
+
|
|
72
|
+
Bundled cleanup of three carryover follow-ups from v0.7.0 and
|
|
73
|
+
v0.8.0 reviews. Engineering-only, no PRD/feature parent.
|
|
74
|
+
|
|
75
|
+
### Changed
|
|
76
|
+
- `runtime/INDEX.md` — two stale `Architect` references (5-phase
|
|
77
|
+
pipeline) updated to the current 8-phase chain. The `## Hooks`
|
|
78
|
+
section's prose and the standalone `## Recommended Agent Flow`
|
|
79
|
+
ASCII block now both match the `## Agents` section.
|
|
80
|
+
- `runtime/agents/spec-writer.md` — adds one `## Must Not`
|
|
81
|
+
bullet promoting the v0.5.1 + v0.7.0 size-ceiling drift
|
|
82
|
+
lesson from review-observation to agent-self-rule.
|
|
83
|
+
- `README.md` — adds **Walkthrough 3 (full feature lifecycle,
|
|
84
|
+
v0.8.0+)** showing the 8-phase PRD → review pipeline with
|
|
85
|
+
concrete agent invocations and file paths. Existing
|
|
86
|
+
Walkthroughs 1 + 2 unchanged.
|
|
87
|
+
|
|
88
|
+
### Process
|
|
89
|
+
- Sixth real-world fire of `pre-executor/runtime-scoped-preflight`
|
|
90
|
+
hook; clean pass on first attempt (2 runtime paths).
|
|
91
|
+
- First **engineering-only spec** on this kit (no PRD or feature
|
|
92
|
+
parent). Step 0 and Step 0.5 skipped per workflow rules.
|
|
93
|
+
Successfully ran spec → impl → ship in the streamlined
|
|
94
|
+
no-PRD path.
|
|
95
|
+
|
|
96
|
+
## [0.8.0] - 2026-05-14
|
|
97
|
+
|
|
98
|
+
Third feature shipped under the v0.6.0 PRD → Feature → Spec
|
|
99
|
+
pipeline. F3 of the nine-phase-workflow PRD; F4 (traceability
|
|
100
|
+
conventions) is the last remaining slice.
|
|
101
|
+
|
|
102
|
+
### Added
|
|
103
|
+
- **Workflow Step 1.5: TDD Phase (per task, when applicable)**
|
|
104
|
+
in `runtime/workflows/feature-development.md`. Wires up
|
|
105
|
+
`tdd-writer.md` (shipped in v0.7.0) into the workflow. For
|
|
106
|
+
any task with `TDD-Applies: true`, a failing-test commit
|
|
107
|
+
must land before the implementation commit. Per-task
|
|
108
|
+
semantics: N TDD-applicable tasks fire Step 1.5 N times,
|
|
109
|
+
interleaved with implementation.
|
|
110
|
+
- **`## TDD-Applies` section** in `runtime/tasks/_template.md`'s
|
|
111
|
+
trailing metadata cluster. Default `false`; allowed values
|
|
112
|
+
`true | false`. Inline guidance documents the
|
|
113
|
+
behavior-changing boundary rule (behavior-changing → true;
|
|
114
|
+
doc / refactor-no-behavior / config-only → false; matches
|
|
115
|
+
parent PRD OOS4).
|
|
116
|
+
|
|
117
|
+
### Changed
|
|
118
|
+
- Step 2 (Execute with Claude Code) body amended with a note
|
|
119
|
+
acknowledging Step 1.5 as a per-task prerequisite. Step 2's
|
|
120
|
+
scope unchanged otherwise.
|
|
121
|
+
|
|
122
|
+
### Process
|
|
123
|
+
- Fifth real-world fire of `pre-executor/runtime-scoped-preflight`
|
|
124
|
+
hook; clean pass on first attempt (2 runtime paths in spec §2).
|
|
125
|
+
- **First feature whose own implementation was traced through
|
|
126
|
+
its own rule before impl began.** F3 defines TDD-Applies for
|
|
127
|
+
tasks; F3's own impl is doc-only (workflow text + template
|
|
128
|
+
field) per PRD OOS4, so the rule applied to F3 returns
|
|
129
|
+
`TDD-Applies: false`. Recursion handled cleanly; trace
|
|
130
|
+
recorded in F3 spec §Open Questions Q3.
|
|
131
|
+
- F3 ships with **no new tests** — spec confirmed existing init
|
|
132
|
+
test's template-presence assertion already covers
|
|
133
|
+
`runtime/tasks/_template.md`. Modest tarball-size delta
|
|
134
|
+
(~400 bytes).
|
|
135
|
+
- M4 (test-first commit ordering ≥90%, 60d) becomes
|
|
136
|
+
measurable post-v0.8.0. Before F3, the workflow had no step
|
|
137
|
+
to comply with; from now on, future tasks with
|
|
138
|
+
`TDD-Applies: true` can be audited against the rule.
|
|
139
|
+
|
|
140
|
+
## [0.7.0] - 2026-05-14
|
|
141
|
+
|
|
142
|
+
Second feature shipped under the v0.6.0 PRD → Feature → Spec
|
|
143
|
+
pipeline. F2 of the nine-phase-workflow PRD; F1 was v0.6.0
|
|
144
|
+
(feature artifact layer). F3 (TDD step) and F4 (traceability)
|
|
145
|
+
follow.
|
|
146
|
+
|
|
147
|
+
### Added
|
|
148
|
+
- **`runtime/agents/feature-writer.md`** — role for Step 0.5
|
|
149
|
+
(slicing PRD into features).
|
|
150
|
+
- **`runtime/agents/spec-writer.md`** — role for Step 1
|
|
151
|
+
(drafting spec from APPROVED feature).
|
|
152
|
+
- **`runtime/agents/planner.md`** — role for plan + task
|
|
153
|
+
authoring (the "task" phase consumes tasks downstream;
|
|
154
|
+
no separate task-creator file ships).
|
|
155
|
+
- **`runtime/agents/tdd-writer.md`** — role for the
|
|
156
|
+
failing-test phase. Workflow wire-up arrives with F3.
|
|
157
|
+
- **`runtime/agents/reviewer.md`** — role for post-impl
|
|
158
|
+
review authoring.
|
|
159
|
+
|
|
160
|
+
### Changed
|
|
161
|
+
- `runtime/INDEX.md` § Agents restructured: 8 role files
|
|
162
|
+
enumerated (3 existing + 5 new); "Recommended Agent Flow"
|
|
163
|
+
rewritten as 8-phase chain PRD-Writer → Feature-Writer →
|
|
164
|
+
Spec-Writer → Planner → TDD-Writer → Executor → Verifier →
|
|
165
|
+
Reviewer; "transition-only concepts" prose retired —
|
|
166
|
+
replaced with explicit notes on task (no file) and architect
|
|
167
|
+
(renamed to spec-writer).
|
|
168
|
+
- `runtime/agents/executor.md` — gains `## Reference` section
|
|
169
|
+
with prev/next pointers (tdd-writer → executor → verifier).
|
|
170
|
+
- `runtime/agents/verifier.md` — gains `## Reference` section
|
|
171
|
+
(executor → verifier → reviewer).
|
|
172
|
+
- `runtime/agents/prd-writer.md` — `## Reference` now includes
|
|
173
|
+
a downstream pointer to feature-writer.
|
|
174
|
+
|
|
175
|
+
### Process
|
|
176
|
+
- Spec amended mid-implementation: agent-file size ceiling
|
|
177
|
+
revised 1500 → 1700 bytes (5 files landed 1509–1681). Same
|
|
178
|
+
drift pattern as v0.5.1's prd-writer.md (1200 → 1500). Spec
|
|
179
|
+
budgets remain hard to estimate pre-content.
|
|
180
|
+
- Fourth real-world fire of `pre-executor/runtime-scoped-preflight`
|
|
181
|
+
hook; clean pass on first attempt (9 runtime paths enumerated).
|
|
182
|
+
- F2's spec author (claude) resolved all 4 feature-level open
|
|
183
|
+
questions during spec drafting — first time on this kit
|
|
184
|
+
that the spec phase converged feature-level decisions
|
|
185
|
+
without escalating to user.
|
|
186
|
+
|
|
187
|
+
## [0.6.0] - 2026-05-14
|
|
188
|
+
|
|
189
|
+
First feature shipped under the new **PRD → Feature → Spec**
|
|
190
|
+
pipeline (the parent PRD itself slices into F1–F4; this release
|
|
191
|
+
delivers F1, the keystone).
|
|
192
|
+
|
|
193
|
+
### Added
|
|
194
|
+
- **`runtime/features/_template.md`** — canonical feature
|
|
195
|
+
template, new top-level runtime artifact between PRDs and
|
|
196
|
+
specs. Sections: Status / Parent PRD / Goal / PRD Metrics
|
|
197
|
+
Contributed / Scope / Acceptance / Open Questions /
|
|
198
|
+
Downstream Spec. Lifecycle: DRAFT → APPROVED → REJECTED →
|
|
199
|
+
SUPERSEDED, mirroring PRDs and specs.
|
|
200
|
+
- **Workflow Step 0.5** in
|
|
201
|
+
`runtime/workflows/feature-development.md` — "Slice into
|
|
202
|
+
Features." Mandatory whenever Step 0 (PRD) ran; same skip
|
|
203
|
+
criteria as Step 0. One PRD → ≥1 feature docs. Single-feature
|
|
204
|
+
PRDs still produce one feature doc with full template
|
|
205
|
+
structure (no stub allowance).
|
|
206
|
+
- `init` scaffolds `.ai/project/features/` as part of the
|
|
207
|
+
standard project skeleton.
|
|
208
|
+
- `runtime/INDEX.md` gains a `## Features` section positioned
|
|
209
|
+
between `## PRDs` and `## Specs`.
|
|
210
|
+
|
|
211
|
+
### Changed
|
|
212
|
+
- **Spec citation rule.** Specs whose work derives from a PRD
|
|
213
|
+
now cite their parent **feature** in §1 Goal (which in turn
|
|
214
|
+
cites the PRD), instead of citing the PRD directly. The chain
|
|
215
|
+
assembles upward: spec → feature → PRD. Existing v0.5.x specs
|
|
216
|
+
are not retrofitted (per PRD OOS1).
|
|
217
|
+
|
|
218
|
+
### Process
|
|
219
|
+
- First multi-feature PRD authored on this kit
|
|
220
|
+
(`2026-05-14-nine-phase-workflow`). This release delivers
|
|
221
|
+
feature **F1 (feature artifact layer)**; F2 (agent files),
|
|
222
|
+
F3 (TDD phase), and F4 (traceability conventions) follow as
|
|
223
|
+
parallel features.
|
|
224
|
+
- Third real-world fire of `pre-executor/runtime-scoped-preflight`
|
|
225
|
+
hook — all preconditions PASS on first attempt.
|
|
226
|
+
- First time the kit's own dogfood feature doc was migrated to
|
|
227
|
+
match a template it created in the same release (canonical
|
|
228
|
+
bootstrap, BOOTSTRAP NOTE comment retained as the visible
|
|
229
|
+
scar).
|
|
230
|
+
|
|
231
|
+
## [0.5.1] - 2026-05-14
|
|
232
|
+
|
|
233
|
+
### Added
|
|
234
|
+
- **`runtime/agents/prd-writer.md`** — new kit-shipped agent role
|
|
235
|
+
for PRD authoring at workflow Step 0. Parallel to `executor.md`
|
|
236
|
+
and `verifier.md`; closes the agent-vocabulary gap where v0.5.0's
|
|
237
|
+
Step 0 demanded an upstream document producer with no canonical
|
|
238
|
+
role file. Sections: Role / Responsibilities / Inputs / Outputs
|
|
239
|
+
/ Must Not / Reference. Concept lattice: agent = WHO,
|
|
240
|
+
skill = HOW (the procedural 11-step depth stays in this repo's
|
|
241
|
+
project-side `write-a-prd` skill, referenced from the agent file).
|
|
242
|
+
|
|
243
|
+
### Changed
|
|
244
|
+
- `runtime/INDEX.md` — adds `prd-writer` to the role-files list
|
|
245
|
+
and clarifies it as a **pre-pipeline role** (Step 0), not part
|
|
246
|
+
of the Architect → Planner → Executor → Verifier → Reviewer
|
|
247
|
+
transition phases.
|
|
248
|
+
- `runtime/workflows/feature-development.md` Step 0 — now points
|
|
249
|
+
agents at `runtime/agents/prd-writer.md` alongside the existing
|
|
250
|
+
template pointer.
|
|
251
|
+
- Package tarball now includes `CHANGELOG.md` (added to the
|
|
252
|
+
`files` allowlist in v0.5.0's [Unreleased]; first release where
|
|
253
|
+
this takes effect is v0.5.1).
|
|
254
|
+
|
|
255
|
+
### Process
|
|
256
|
+
- First PRD-then-spec end-to-end run on this kit. PRD authored
|
|
257
|
+
conversationally via the project-side `write-a-prd` skill,
|
|
258
|
+
10 user turns from "start" to file written (M2 budget exact).
|
|
259
|
+
- Second real-world fire of the
|
|
260
|
+
`pre-executor/runtime-scoped-preflight` hook — all three
|
|
261
|
+
preconditions passed on first attempt (branch created
|
|
262
|
+
proactively, scope enumerated, spec home in place).
|
|
263
|
+
|
|
264
|
+
## [0.5.0] - 2026-05-14
|
|
265
|
+
|
|
266
|
+
First npm release. `npm view ai-runtime-kit` returned 404 prior
|
|
267
|
+
to this version; earlier `v0.x` versions existed only as
|
|
268
|
+
`package.json` bumps and git history.
|
|
269
|
+
|
|
270
|
+
### Added
|
|
271
|
+
- **PRDs as a first-class workflow artifact.** New
|
|
272
|
+
`runtime/prds/_template.md` template covering Problem, Target
|
|
273
|
+
Users, Success Metrics, User Stories, Out of Scope, Open
|
|
274
|
+
Questions, Stakeholders, and Downstream Spec. PRDs follow the
|
|
275
|
+
same `DRAFT → APPROVED → REJECTED → SUPERSEDED` lifecycle as
|
|
276
|
+
specs.
|
|
277
|
+
- New optional **Step 0** in
|
|
278
|
+
`runtime/workflows/feature-development.md` — when to draft a
|
|
279
|
+
PRD (product-driven features) and when to skip (bug fixes,
|
|
280
|
+
engineering-only changes). Downstream specs must cite their
|
|
281
|
+
PRD path in §1 Goal when one exists.
|
|
282
|
+
- `init` scaffolds `.ai/project/prds/` as part of the standard
|
|
283
|
+
project skeleton.
|
|
284
|
+
- `runtime/INDEX.md` reorganized — new `## PRDs` section
|
|
285
|
+
precedes `## Specs` to reflect workflow chronology (PRD →
|
|
286
|
+
Spec → Plan → Tasks → Review).
|
|
287
|
+
|
|
288
|
+
### Dogfood
|
|
289
|
+
- Project-side `write-a-prd` skill at
|
|
290
|
+
`.ai/project/skills/product/write-a-prd/SKILL.md` (this repo
|
|
291
|
+
only; kit still ships zero concrete skills per the `v0.x`
|
|
292
|
+
promise). Consumers who want the same trigger can copy the
|
|
293
|
+
file into their own `.ai/project/skills/` tree.
|
|
294
|
+
|
|
295
|
+
### Process
|
|
296
|
+
- First runtime-scoped change shipped under the kit's own
|
|
297
|
+
governance rules. The `pre-executor/runtime-scoped-preflight`
|
|
298
|
+
hook fired on a real GATE event (initial attempt was on
|
|
299
|
+
`main`), and the remediation flow (create
|
|
300
|
+
`chore/runtime-prd-template`, re-attempt) worked end-to-end.
|
|
301
|
+
|
|
302
|
+
## [0.4.1] - 2026-05-14
|
|
303
|
+
|
|
304
|
+
### Added
|
|
305
|
+
- `init` now hints when `.ai/runtime/` is gitignored: clones
|
|
306
|
+
won't silently miss the runtime tree if the path is ignored
|
|
307
|
+
by the consumer's repo.
|
|
308
|
+
- New helper `isPathGitignored` in `src/git.js` (wraps `git
|
|
309
|
+
check-ignore`).
|
|
310
|
+
|
|
311
|
+
### Notes
|
|
312
|
+
- Hint is silent when `.ai/runtime/` is tracked (normal kit-
|
|
313
|
+
consumer case) and in non-git directories. Only fires when
|
|
314
|
+
the path is definitively ignored.
|
|
315
|
+
|
|
316
|
+
## [0.4.0] - 2026-05-14
|
|
317
|
+
|
|
318
|
+
### Added
|
|
319
|
+
- **`init` now scaffolds a project-root `CLAUDE.md`** — agent
|
|
320
|
+
entry point for Claude Code pointing at
|
|
321
|
+
`.ai/runtime/BOOTSTRAP.md`. Without this file the runtime
|
|
322
|
+
tree existed on disk but no agent knew to read it.
|
|
323
|
+
- `CLAUDE.md` is project-owned: `upgrade` never touches it.
|
|
324
|
+
- New flag `--no-agent-entry` to skip the file's generation
|
|
325
|
+
entirely.
|
|
326
|
+
- `init --migrate` tolerates a pre-existing `CLAUDE.md`
|
|
327
|
+
(skip-write).
|
|
328
|
+
- `init` refuses to overwrite an existing `CLAUDE.md` (same
|
|
329
|
+
posture as the existing `.ai/runtime/` / `.ai/project/`
|
|
330
|
+
guards).
|
|
331
|
+
|
|
332
|
+
### Process
|
|
333
|
+
- First feature surfaced and fixed via dogfood of this repo
|
|
334
|
+
against the kit itself.
|
|
335
|
+
|
|
336
|
+
## [0.3.0] - 2026-05-14
|
|
337
|
+
|
|
338
|
+
### Fixed
|
|
339
|
+
- `init --migrate` tolerates an empty-only `.ai/runtime/` left
|
|
340
|
+
by `git rm` — detects "exists but contains zero regular
|
|
341
|
+
files" and treats as absent. Real content under
|
|
342
|
+
`.ai/runtime/` still triggers the refuse-to-overwrite guard.
|
|
343
|
+
- `upgrade --pager <cmd>` pipes the per-file `diff -u` through
|
|
344
|
+
a pager when stdout is a TTY. Also configurable via the
|
|
345
|
+
`AI_RUNTIME_KIT_PAGER` environment variable. CI / scripted
|
|
346
|
+
use keeps the direct-write behavior.
|
|
347
|
+
|
|
348
|
+
### Process
|
|
349
|
+
- Both quirks surfaced during S3 dogfood by ai-workflow-demo
|
|
350
|
+
(first external consumer).
|
|
351
|
+
|
|
352
|
+
## [0.2.1] - 2026-05-14
|
|
353
|
+
|
|
354
|
+
### Changed
|
|
355
|
+
- Comprehensive README — install, `init`, `upgrade`, versioning,
|
|
356
|
+
walkthroughs for new projects and adding project-side rules.
|
|
357
|
+
|
|
358
|
+
## [0.2.0] - 2026-05-14
|
|
359
|
+
|
|
360
|
+
### Added
|
|
361
|
+
- **Dual-tree loading.** Agents now load rules / skills / hooks
|
|
362
|
+
from **both** `.ai/runtime/` (kit, framework-shipped) and
|
|
363
|
+
`.ai/project/` (project-shipped). Project-side files take
|
|
364
|
+
precedence on path collision. The kit ships zero concrete
|
|
365
|
+
rules/skills/hooks (apart from the safety-intrinsic
|
|
366
|
+
`pre-executor/runtime-scoped-preflight` hook), so collisions
|
|
367
|
+
are impossible in v0.x.
|
|
368
|
+
|
|
369
|
+
### Process
|
|
370
|
+
- ai-workflow-demo migrated to consume this kit at v0.2.0 (the
|
|
371
|
+
first dogfood consumer).
|
|
372
|
+
|
|
373
|
+
---
|
|
374
|
+
|
|
375
|
+
## Conventions
|
|
376
|
+
|
|
377
|
+
- **Versioning**: `MAJOR.MINOR.PATCH`. Kit MAJOR is locked to
|
|
378
|
+
`runtime/RUNTIME_VERSION.md`; a future runtime v2 would require
|
|
379
|
+
a kit MAJOR bump.
|
|
380
|
+
- **Pre-stable**: `v0.x` allows breaking changes at any minor.
|
|
381
|
+
Pin if you depend on it.
|
|
382
|
+
- **Downgrade**: `upgrade` refuses by default;
|
|
383
|
+
`--allow-downgrade` is explicit-only for intentional rollback.
|
|
384
|
+
- **Tags**: only `v0.3.0` is currently tagged in git. Earlier
|
|
385
|
+
and later versions are reachable via the commit history but
|
|
386
|
+
not labeled. Tagging older versions retroactively is a
|
|
387
|
+
follow-up.
|
package/README.md
CHANGED
|
@@ -10,6 +10,49 @@ npx ai-runtime-kit upgrade # existing kit consumer
|
|
|
10
10
|
|
|
11
11
|
## Status
|
|
12
12
|
|
|
13
|
+
**v0.9.0** — Formalizes the **`## Parent <Type>` traceability
|
|
14
|
+
convention** across all artifact templates. Every kit artifact
|
|
15
|
+
(spec / plan / task / review) now carries a structural
|
|
16
|
+
upward-citation link to its direct parent, assembling the chain
|
|
17
|
+
`commit → task → plan → spec → feature → PRD`. New
|
|
18
|
+
`## Traceability` section in `runtime/INDEX.md` documents the
|
|
19
|
+
convention. F4 of the nine-phase-workflow PRD — **the last
|
|
20
|
+
slice**; shipping v0.9.0 completes the kit's first fully-
|
|
21
|
+
delivered multi-feature PRD and validates framework A end-to-end.
|
|
22
|
+
|
|
23
|
+
**v0.8.0** — Wires TDD into the workflow as **Step 1.5**: for
|
|
24
|
+
each task with `TDD-Applies: true`, a failing-test commit must
|
|
25
|
+
precede the implementation commit. Adds `## TDD-Applies` to
|
|
26
|
+
the task template. F3 of the nine-phase-workflow PRD; F4
|
|
27
|
+
(traceability) is the last remaining slice. Makes M4 (≥90%
|
|
28
|
+
test-first ordering) measurable for the first time.
|
|
29
|
+
|
|
30
|
+
**v0.7.0** — Completes the 8-phase agent roster. Adds 5 new
|
|
31
|
+
role files (`feature-writer`, `spec-writer`, `planner`,
|
|
32
|
+
`tdd-writer`, `reviewer`) under `runtime/agents/`. INDEX.md's
|
|
33
|
+
"Recommended Agent Flow" rewritten as the full chain:
|
|
34
|
+
PRD-Writer → Feature-Writer → Spec-Writer → Planner →
|
|
35
|
+
TDD-Writer → Executor → Verifier → Reviewer. F2 of the
|
|
36
|
+
nine-phase-workflow PRD; F3 (TDD step in workflow) + F4
|
|
37
|
+
(traceability conventions) follow.
|
|
38
|
+
|
|
39
|
+
**v0.6.0** — Adds the **feature artifact** between PRD and spec
|
|
40
|
+
— first slice (F1) of the nine-phase-workflow PRD. New
|
|
41
|
+
`runtime/features/_template.md`, new workflow Step 0.5
|
|
42
|
+
("Slice into Features," mandatory after Step 0), `init`
|
|
43
|
+
scaffolds `.ai/project/features/`. Specs now cite their parent
|
|
44
|
+
**feature** in §1 Goal (which cites the PRD); the chain
|
|
45
|
+
assembles upward. F2 (agent files), F3 (TDD), F4 (traceability)
|
|
46
|
+
follow as parallel features.
|
|
47
|
+
|
|
48
|
+
**v0.5.1** — Adds the `prd-writer` agent at
|
|
49
|
+
`runtime/agents/prd-writer.md`, closing the v0.5.0 gap where
|
|
50
|
+
Step 0 (define PRD) had no canonical role file. Parallel to
|
|
51
|
+
`executor.md` and `verifier.md`; concept lattice is
|
|
52
|
+
**agent = WHO, skill = HOW** (the elicit-then-write procedure
|
|
53
|
+
remains in a project-side skill). First end-to-end PRD-then-spec
|
|
54
|
+
run on this kit shipped this release.
|
|
55
|
+
|
|
13
56
|
**v0.5.0** — PRDs become a first-class workflow artifact upstream
|
|
14
57
|
of specs. New `runtime/prds/_template.md` (Problem / Target Users
|
|
15
58
|
/ Success Metrics / User Stories / Out of Scope / Open Questions
|
|
@@ -250,6 +293,67 @@ kit's `skills/README.md` and `hooks/README.md` for the formats.
|
|
|
250
293
|
|
|
251
294
|
---
|
|
252
295
|
|
|
296
|
+
## Walkthrough 3 — full feature lifecycle (v0.8.0+)
|
|
297
|
+
|
|
298
|
+
For product-driven features, the kit runs an 8-phase pipeline.
|
|
299
|
+
Each phase produces a kit-shipped artifact; each artifact cites
|
|
300
|
+
its upstream parent. The chain assembles upward:
|
|
301
|
+
|
|
302
|
+
```txt
|
|
303
|
+
commit → task → plan → spec → feature → PRD
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
Quick lifecycle, with the agent roles invoked at each step:
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
# Step 0 — author a PRD (prd-writer)
|
|
310
|
+
# .ai/project/prds/YYYY-MM-DD-<slug>/prd.md
|
|
311
|
+
# Problem / Target Users / Success Metrics / User Stories /
|
|
312
|
+
# Out of Scope / Open Questions / Stakeholders
|
|
313
|
+
|
|
314
|
+
# Step 0.5 — slice the PRD into ≥1 features (feature-writer)
|
|
315
|
+
# .ai/project/features/YYYY-MM-DD-<feature-slug>/feature.md
|
|
316
|
+
# Each cites the parent PRD; maps to PRD success metrics.
|
|
317
|
+
# Mandatory whenever Step 0 ran.
|
|
318
|
+
|
|
319
|
+
# Step 1 — draft an engineering spec per feature (spec-writer)
|
|
320
|
+
# .ai/project/specs/YYYY-MM-DD-<feature-slug>/spec.md
|
|
321
|
+
# §1 Goal cites the parent feature path.
|
|
322
|
+
# §2 Scope enumerates every touched runtime/** path (preflight).
|
|
323
|
+
|
|
324
|
+
# Step 1.5 — TDD phase (tdd-writer, per applicable task)
|
|
325
|
+
# For tasks with TDD-Applies: true, commit a failing test
|
|
326
|
+
# before the implementation commit.
|
|
327
|
+
|
|
328
|
+
# Step 2 — plan, tasks, implementation (planner + executor)
|
|
329
|
+
# .ai/project/plans/...
|
|
330
|
+
# .ai/project/tasks/... (each task carries TDD-Applies)
|
|
331
|
+
# Implementation lands on a chore/runtime-<slug> branch if
|
|
332
|
+
# the spec touches runtime/**; otherwise a feature branch.
|
|
333
|
+
|
|
334
|
+
# Step 3 — verify (verifier)
|
|
335
|
+
# Run npm test + manual verification commands from the spec.
|
|
336
|
+
|
|
337
|
+
# Step 4 — review (reviewer)
|
|
338
|
+
# .ai/project/reviews/YYYY-MM-DD-<slug>.md
|
|
339
|
+
# Maps PRD success metrics to delivered artifacts.
|
|
340
|
+
|
|
341
|
+
# Then: merge, push, tag, optionally npm publish.
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
For each step, the corresponding kit-shipped agent role file
|
|
345
|
+
lives under `.ai/runtime/agents/<role>.md` (PRD-writer,
|
|
346
|
+
feature-writer, spec-writer, planner, tdd-writer, executor,
|
|
347
|
+
verifier, reviewer). The canonical lifecycle source is
|
|
348
|
+
`.ai/runtime/workflows/feature-development.md`.
|
|
349
|
+
|
|
350
|
+
Engineering-only changes (bug fixes, refactors, doc tidy)
|
|
351
|
+
skip Steps 0 and 0.5 and start directly at the spec — see
|
|
352
|
+
`.ai/runtime/workflows/bug-fix.md` for the corrective-work
|
|
353
|
+
variant.
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
253
357
|
## Local development
|
|
254
358
|
|
|
255
359
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-runtime-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Reusable AI engineering runtime: BOOTSTRAP, workflows, safety, hooks, and templates for software projects driven by AI agents.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ai-runtime-kit": "./bin/cli.js"
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"src",
|
|
14
14
|
"runtime",
|
|
15
15
|
"README.md",
|
|
16
|
+
"CHANGELOG.md",
|
|
16
17
|
"LICENSE"
|
|
17
18
|
],
|
|
18
19
|
"engines": {
|