@dtlabs/ai-toolkit 0.16.1 → 0.16.3
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
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
## 0.1.4 (2026-07-21)
|
|
2
|
+
## [0.16.3](https://github.com/dtlab-tech/ai-toolkit/compare/v0.16.2...v0.16.3) (2026-10-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **gaia-generate-work-breakdown:** forbid duplicate tasks and spannin… ([575a9d7](https://github.com/dtlab-tech/ai-toolkit/commit/575a9d702785b31f6d607e90e271fd179c20f58a))
|
|
8
|
+
* **gaia-generate-work-breakdown:** forbid duplicate tasks and spanning test phases ([05a2510](https://github.com/dtlab-tech/ai-toolkit/commit/05a25103fb935e260df7740c6e4436e64f471ea4))
|
|
9
|
+
|
|
10
|
+
## [0.16.2](https://github.com/dtlab-tech/ai-toolkit/compare/v0.16.1...v0.16.2) (2026-10-02)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **gaia-generate-work-breakdown:** forbid citing an AC outside its owning phase ([525e2ce](https://github.com/dtlab-tech/ai-toolkit/commit/525e2cef928dafb8b80470b572d214b85aecb1dc))
|
|
16
|
+
* **gaia-generate-work-breakdown:** forbid citing an AC outside its owning phase ([5376d67](https://github.com/dtlab-tech/ai-toolkit/commit/5376d67a67140d5b46e507f2092e389d362ce723))
|
|
17
|
+
|
|
2
18
|
## [0.16.1](https://github.com/dtlab-tech/ai-toolkit/compare/v0.16.0...v0.16.1) (2026-10-02)
|
|
3
19
|
|
|
4
20
|
|
package/package.json
CHANGED
|
@@ -71,6 +71,8 @@ Every task must be the **smallest independently implementable, verifiable, and c
|
|
|
71
71
|
- Titles or outcomes containing "N types", "all adapters", "complete CRUD", "implement and test" — these indicate hidden multiplicity.
|
|
72
72
|
- Bundling two independently verifiable activities (e.g., "add endpoint and write tests") — split into separate tasks.
|
|
73
73
|
- Scope misalignment: a task in US-02 that implements a behavior belonging to US-03.
|
|
74
|
+
- **Duplicate implementation**: a later phase re-describing, as a new `BE`/`FE`/`DB` task, an outcome or file already fully produced by an earlier task (e.g., a controller task that already built audience-claim validation inline, followed by a later phase's task claiming to "implement" that same validation again). Check every earlier task's `outcome` before writing a new one for the same file or behavior. If the behavior already exists, the later phase's task must be `domain: TEST` (`developer-testing`), verifying it with `dependsOn` pointing at the task(s) that built it — never a second implementation task.
|
|
75
|
+
- **Domain mismatch on verification-only tasks**: a task whose outcome is a confirmation of already-built behavior (title starting with "Verify", "Confirm", or similar) and whose verification commands are read-only (`grep`, `test -f`, build-only, no new file created) must be `domain: TEST` / `agentType: developer-testing` — never `BE`/`FE`/`DB` with an implementation agent type.
|
|
74
76
|
|
|
75
77
|
---
|
|
76
78
|
|
|
@@ -97,6 +99,8 @@ For each US, derive:
|
|
|
97
99
|
- **Phase commit** — a phase-level commit object: `{ "type": "feat", "subject": "implement US-NN title" }` — the subject must not contain `|`, CR, or LF characters; `wb-render.js` prepends the conventional prefix automatically
|
|
98
100
|
- **Acceptance Criteria** — the AC-XX IDs from the Requirements document that apply to this US
|
|
99
101
|
|
|
102
|
+
**Do not create an additional phase for end-to-end, integration, or overall verification.** Every phase traces to exactly one UC (plus the single `INFRA` phase for shared setup) — never a synthesized "Testing and verification", "Integration tests", or similarly feature-spanning phase. An integration/E2E test still belongs to the US phase of the UC it most directly verifies, as a `domain: TEST` task citing only that phase's own AC(s) — not a phase of its own, and not a grab-bag of ACs borrowed from across the feature.
|
|
103
|
+
|
|
100
104
|
### Step 3 — Decompose into Tasks
|
|
101
105
|
|
|
102
106
|
For each User Story (and for shared infrastructure), analyze the Tech-Spec to identify all concrete implementation tasks following the Atomicity Contract above.
|
|
@@ -128,7 +132,7 @@ Decomposition strategy by domain:
|
|
|
128
132
|
| `domain` | string | One of: `BE`, `FE`, `DB`, `DevOps`, `INFRA`, `TEST` |
|
|
129
133
|
| `agentType` | string | One of: `developer-backend`, `developer-frontend`, `developer-testing`, `review-solution` (deprecated: `developer-database` — maps to `developer-backend`) |
|
|
130
134
|
| `dependsOn` | array of strings | Task IDs this task depends on; may be empty `[]`; all IDs must be defined within this same JSON |
|
|
131
|
-
| `acceptanceCriteria` | array of strings | AC IDs from Requirements that this task covers; may be empty `[]
|
|
135
|
+
| `acceptanceCriteria` | array of strings | AC IDs from Requirements scoped to this task's own phase that this task covers; may be empty `[]`. Never an AC owned by a different phase (see Guidelines) |
|
|
132
136
|
| `verification` | object | `{ "commands": ["..."] }` — one or more shell commands that verify the task output; array must be non-empty |
|
|
133
137
|
| `estimate` | object | `{ "agentMinutes": N, "tokens": N }` — target ≤ 15 minutes; positive integers |
|
|
134
138
|
| `outputCount` | integer | Number of distinct outputs; must be ≥ 1 |
|
|
@@ -339,7 +343,7 @@ Do NOT guess or invent task decompositions when the source is unclear. Ask first
|
|
|
339
343
|
- **Cross-phase dependencies are expected** — US tasks may depend on INFRA tasks; cross-US task dependencies are also valid
|
|
340
344
|
- **INFRA phase first** (if present), then US phases in priority order (Must before Should before Could)
|
|
341
345
|
- **Within a phase, order tasks by layer dependency** (DB → BE → FE → TEST); independent tasks within the same layer may be listed in any order
|
|
342
|
-
- **acceptanceCriteria** must list AC IDs
|
|
346
|
+
- **acceptanceCriteria** must list only AC IDs whose Requirements AC-table scope ("Related UC") matches this task's own phase, or that are marked cross-cutting ("All UCs"/multiple UCs including this phase's). **Never cite an AC owned by a different phase on this task, even when this task is prerequisite or contributing work for it** — an INFRA task that lays groundwork for an AC verified in a later US does not "cover" that AC; leave `acceptanceCriteria` empty `[]` on that task instead (e.g., pure infrastructure setup, or groundwork for an AC owned elsewhere). If an AC is genuinely cross-cutting, reflect that in the AC's own "Related UC" column, not by citing it from an unrelated task.
|
|
343
347
|
- **schemaVersion must be exactly 2** — do not omit it, do not use any other value
|
|
344
348
|
- **No pipes, CR, or LF** in `phase.title`, `task.title`, or `commit.subject` — these characters break CSV generation
|
|
345
|
-
- **Traceability**: every UC must map to a US phase; every Must-priority AC must be covered by at least one task's `acceptanceCriteria`
|
|
349
|
+
- **Traceability**: every UC must map to a US phase; every Must-priority AC must be covered by at least one task's `acceptanceCriteria` **within that AC's own owning US phase** (per its "Related UC" scope) — not by a task in an earlier or later phase, even one that contributes toward satisfying it eventually
|