ai-runtime-kit 0.10.0 → 0.10.2

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 CHANGED
@@ -10,6 +10,58 @@ kit.
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.10.2] - 2026-05-14
14
+
15
+ Doc-only addition for agent orientation.
16
+
17
+ ### Added
18
+ - `runtime/INDEX.md` § Workflow Overview — new section between
19
+ § Purpose and § Agents. Synthesizes the 9-step pipeline +
20
+ 8 agents + 6 artifact types + traceability chain +
21
+ governance boundary into a single big-picture orientation.
22
+ 92 lines; cross-references the existing § Agents,
23
+ § Traceability, § Workflows, § Recommended Agent Flow,
24
+ and § Hooks sections for detail.
25
+
26
+ ### Process
27
+ - Ninth fire of `pre-executor/runtime-scoped-preflight` hook,
28
+ ninth clean pass.
29
+ - Smallest scope of any runtime-scoped ship this session
30
+ (1 runtime path).
31
+
32
+ ## [0.10.1] - 2026-05-14
33
+
34
+ Bundled cleanup of four doc-only follow-ups from v0.9.0 and
35
+ v0.10.0 reviews. Engineering-only spec; no PRD/feature parent.
36
+
37
+ ### Changed
38
+ - `runtime/workflows/feature-development.md` — cross-references
39
+ `.ai/runtime/INDEX.md § Traceability` for the canonical
40
+ `## Parent <Type>` rules and `(none — <reason>)` rendering
41
+ convention. Also references `ai-runtime-kit validate` as the
42
+ audit tool.
43
+ - `runtime/tasks/_template.md` — `## Parent Plan` comment now
44
+ shows the explicit `(none — direct task)` literal rendering
45
+ for hot-fix tasks.
46
+ - `runtime/agents/spec-writer.md` — appends one `## Must Not`
47
+ bullet: "Approve specs whose acceptance asserts metrics on
48
+ state not yet in place (drift hit v0.5.1, v0.7.0, v0.10.0)."
49
+ File 1680 → 1794 bytes (under the spec's revised 1900
50
+ ceiling — 4th size-ceiling drift recorded; future fix
51
+ should make budgets ranges, not hard caps).
52
+ - `README.md` — Walkthrough 3 per-step bullets gain annotations
53
+ showing which `## Parent <Type>` field anchors each step's
54
+ upward link. Closing line mentions `ai-runtime-kit validate`
55
+ as the audit step before merge.
56
+
57
+ ### Process
58
+ - Eighth fire of `pre-executor/runtime-scoped-preflight` hook;
59
+ eighth clean pass.
60
+ - Second engineering-only spec on this kit (after v0.8.1).
61
+ The streamlined no-PRD/no-feature path is now well-trodden.
62
+ - `node bin/cli.js validate` self-test post-edit:
63
+ 10 specs / 9 reviews on the kit's tree, all PASS.
64
+
13
65
  ## [0.10.0] - 2026-05-14
14
66
 
15
67
  **First M4 data point.** Kit's first `src/**` feature shipped
package/README.md CHANGED
@@ -10,6 +10,12 @@ npx ai-runtime-kit upgrade # existing kit consumer
10
10
 
11
11
  ## Status
12
12
 
13
+ **v0.10.1** — Bundled cleanup of 4 doc-only follow-ups from
14
+ v0.9.0/v0.10.0 reviews: workflow cross-ref to `INDEX § Traceability`,
15
+ hot-fix example in task template, new `spec-writer.md` Must Not
16
+ bullet on metric reachability, Walkthrough 3 per-step
17
+ `## Parent <Type>` annotations.
18
+
13
19
  **v0.10.0** — Adds the **`validate` command** — checks
14
20
  `.ai/project/` tree structural integrity (every artifact carries
15
21
  its required `## Parent <Type>` section; every cited parent path
@@ -316,19 +322,19 @@ commit → task → plan → spec → feature → PRD
316
322
  Quick lifecycle, with the agent roles invoked at each step:
317
323
 
318
324
  ```bash
319
- # Step 0 — author a PRD (prd-writer)
325
+ # Step 0 — author a PRD (prd-writer) [chain root]
320
326
  # .ai/project/prds/YYYY-MM-DD-<slug>/prd.md
321
327
  # Problem / Target Users / Success Metrics / User Stories /
322
328
  # Out of Scope / Open Questions / Stakeholders
323
329
 
324
330
  # Step 0.5 — slice the PRD into ≥1 features (feature-writer)
325
331
  # .ai/project/features/YYYY-MM-DD-<feature-slug>/feature.md
326
- # Each cites the parent PRD; maps to PRD success metrics.
332
+ # Each feature has ## Parent PRD citing the PRD by path.
327
333
  # Mandatory whenever Step 0 ran.
328
334
 
329
335
  # Step 1 — draft an engineering spec per feature (spec-writer)
330
336
  # .ai/project/specs/YYYY-MM-DD-<feature-slug>/spec.md
331
- # §1 Goal cites the parent feature path.
337
+ # Spec has ## Parent Feature citing the feature.
332
338
  # §2 Scope enumerates every touched runtime/** path (preflight).
333
339
 
334
340
  # Step 1.5 — TDD phase (tdd-writer, per applicable task)
@@ -336,8 +342,10 @@ Quick lifecycle, with the agent roles invoked at each step:
336
342
  # before the implementation commit.
337
343
 
338
344
  # Step 2 — plan, tasks, implementation (planner + executor)
339
- # .ai/project/plans/...
340
- # .ai/project/tasks/... (each task carries TDD-Applies)
345
+ # .ai/project/plans/... plan has ## Parent Spec.
346
+ # .ai/project/tasks/... each task has
347
+ # ## Parent Spec + ## Parent Plan +
348
+ # ## TDD-Applies.
341
349
  # Implementation lands on a chore/runtime-<slug> branch if
342
350
  # the spec touches runtime/**; otherwise a feature branch.
343
351
 
@@ -346,9 +354,11 @@ Quick lifecycle, with the agent roles invoked at each step:
346
354
 
347
355
  # Step 4 — review (reviewer)
348
356
  # .ai/project/reviews/YYYY-MM-DD-<slug>.md
357
+ # Review has ## Parent Spec.
349
358
  # Maps PRD success metrics to delivered artifacts.
350
359
 
351
- # Then: merge, push, tag, optionally npm publish.
360
+ # Then: ai-runtime-kit validate (audit the chain),
361
+ # merge, push, tag, optionally npm publish.
352
362
  ```
353
363
 
354
364
  For each step, the corresponding kit-shipped agent role file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-runtime-kit",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
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"
package/runtime/INDEX.md CHANGED
@@ -13,6 +13,97 @@ AI agents should use this file to understand:
13
13
 
14
14
  ---
15
15
 
16
+ ## Workflow Overview
17
+
18
+ The kit ships a 9-step pipeline for product-driven features
19
+ (engineering-only changes skip Steps 0 and 0.5). Each step
20
+ has a kit-shipped role-definition file under
21
+ `.ai/runtime/agents/` and produces a structurally-linked
22
+ artifact in `.ai/project/`.
23
+
24
+ ### Pipeline
25
+
26
+ ```txt
27
+ Step 0 PRD (optional · product-driven only)
28
+
29
+ Step 0.5 Feature (mandatory if Step 0 ran; N features per PRD)
30
+
31
+ Step 1 Spec (1 per feature; engineering details)
32
+
33
+ Step 1.5 TDD (per task with TDD-Applies: true)
34
+
35
+ Step 2 Execute (plan + task + implementation umbrella)
36
+
37
+ Step 3 Verify
38
+
39
+ Step 4 Review
40
+
41
+ Steps 5+6 Fix + Commit
42
+ ```
43
+
44
+ ### Agents and artifacts per phase
45
+
46
+ | Step | Agent (role file) | Artifact (project path) |
47
+ |---|---|---|
48
+ | 0 | `prd-writer` | `.ai/project/prds/<slug>/prd.md` |
49
+ | 0.5 | `feature-writer` | `.ai/project/features/<slug>/feature.md` |
50
+ | 1 | `spec-writer` | `.ai/project/specs/<slug>/spec.md` |
51
+ | 2-plan| `planner` | `.ai/project/plans/<slug>/plan.md` |
52
+ | 2-task| `planner` | `.ai/project/tasks/<slug>/...` |
53
+ | 1.5 | `tdd-writer` | failing-test git commit |
54
+ | 2-impl| `executor` | implementation git commit |
55
+ | 3 | `verifier` | (verification report, usually inline) |
56
+ | 4 | `reviewer` | `.ai/project/reviews/<slug>.md` |
57
+
58
+ Notes: `task` is a transition concept consumed by the next
59
+ role, not a separate authoring role; `architect` is replaced
60
+ by `spec-writer` (see § Agents below).
61
+
62
+ ### Traceability chain
63
+
64
+ Every artifact carries a structural upward-citation link in a
65
+ `## Parent <Type>` section:
66
+
67
+ ```txt
68
+ commit → task → plan → spec → feature → PRD
69
+ ```
70
+
71
+ For per-artifact required sections and the
72
+ `(none — <reason>)` rendering convention for skipped paths,
73
+ see § Traceability.
74
+
75
+ ### Governance boundary
76
+
77
+ Which changes require what depends on which paths they touch:
78
+
79
+ | Touched paths | Branch convention | Preflight hook | Spec required |
80
+ |---|---|---|---|
81
+ | `runtime/**` | `chore/runtime-<topic>` | **GATE** fires (3 preconditions) | yes, §2 Scope enumerates each path |
82
+ | `src/`, `test/`, `bin/` (kit code) | `feat/<topic>` / `fix/<topic>` | does not fire | yes (or simple feature workflow) |
83
+ | `.ai/project/**` (project tree) | any | does not fire | depends on complexity |
84
+ | `README` / `CHANGELOG` / `package.json` | any | does not fire | typically bundled with ship metadata |
85
+
86
+ Per `branching.md § Governance Rule Branches`, runtime/
87
+ governance changes MUST NOT be combined with feature code in
88
+ the same commit — split into separate commits even on the
89
+ same branch.
90
+
91
+ ### Where to read more
92
+
93
+ - § Agents — the 8 role files and what each does.
94
+ - § Traceability — the `## Parent <Type>` rules per artifact.
95
+ - § Workflows — the canonical
96
+ `.ai/runtime/workflows/feature-development.md` step-by-step
97
+ (this Overview is a synthesis; the workflow doc is the
98
+ source of truth for the steps).
99
+ - § Recommended Agent Flow — the same 8 roles listed as a
100
+ pipeline (separate from this Overview for readers arriving
101
+ at INDEX.md from a different entry point).
102
+ - § Hooks — the `pre-executor/runtime-scoped-preflight` GATE
103
+ and other agent-transition hooks.
104
+
105
+ ---
106
+
16
107
  ## Agents
17
108
 
18
109
  Location:
@@ -51,6 +51,8 @@ One file at `.ai/project/specs/YYYY-MM-DD-<slug>/spec.md`.
51
51
  - Lock hard byte-budgets on new template/role files without
52
52
  prototyping — use ranges or revisit during impl
53
53
  (drift hit v0.5.1 + v0.7.0).
54
+ - Approve specs whose acceptance asserts metrics on state
55
+ not yet in place (drift hit v0.5.1, v0.7.0, v0.10.0).
54
56
 
55
57
  ---
56
58
 
@@ -16,10 +16,12 @@ Describe the specific engineering goal.
16
16
  ## Parent Plan
17
17
 
18
18
  `.ai/project/plans/YYYY-MM-DD-<slug>/plan.md`
19
- <!-- Required. Single path. For hot-fix tasks created outside
20
- the normal plan-first workflow, render
21
- `(none direct task)`. See .ai/runtime/INDEX.md
22
- § Traceability for the full chain. -->
19
+ <!-- Required. Single path.
20
+ For hot-fix tasks created outside the normal plan-first
21
+ workflow, render literally:
22
+ (none direct task)
23
+ See .ai/runtime/INDEX.md § Traceability for the full
24
+ chain and the (none — <reason>) rendering convention. -->
23
25
 
24
26
  ---
25
27
 
@@ -119,6 +119,12 @@ check that the spec covers the feature's requirements without
119
119
  quietly expanding scope and that the feature covers its share of
120
120
  the PRD's metrics.
121
121
 
122
+ The canonical rules for `## Parent <Type>` sections per artifact
123
+ type — including the `(none — <reason>)` rendering convention
124
+ for engineering-only specs, bug-fix specs, and hot-fix tasks —
125
+ live at `.ai/runtime/INDEX.md` § Traceability. Use
126
+ `ai-runtime-kit validate` to verify a project's tree conforms.
127
+
122
128
  Spec must include:
123
129
 
124
130
  - Goal