@rasensio/aidlc-content 1.5.0 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc-content",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,11 +29,22 @@ Produce a technical design that satisfies the requirements. Define architecture,
29
29
  6. **Design decisions.** Record each significant decision with rationale and alternatives considered. Persist accepted decisions as `decision` entities: `aidlc knowledge add --type decision --id <slug> --name "<title>" --description "<rationale>"`.
30
30
  7. **Address non-functional concerns.** Map performance, security, and accessibility requirements to design choices.
31
31
  8. **Identify risks.** Note technical risks and mitigation strategies.
32
+ 9. **Produce the task breakdown.** For templates that require it (full-feature, quick-feature), write `tasks.md` in the instance state directory as the final design step — the design is not done until it is actionable. Decompose the design into commit-sized tasks: each one reviewable in one sitting and independently verifiable. One task per line, in this exact grammar:
33
+
34
+ ```
35
+ - [ ] T<n>: <title>
36
+ - [ ] T<n>: <title> (AC-1, AC-2)
37
+ - [x] T<n>: <title> (AC-3)
38
+ - [>] T<n>: <title> (AC-4) (deferred YYYY-MM-DD: <reason>)
39
+ ```
40
+
41
+ Number tasks sequentially (`T1`, `T2`, ...) — IDs are never renumbered or reused; a task overtaken by events is deferred with a reason, never deleted. Reference the acceptance criteria each task satisfies where any apply; chore or infrastructure tasks may legitimately have none (the implementation gate surfaces them as warnings, never failures).
32
42
 
33
43
  ## Exit Criteria
34
44
 
35
45
  - `design.md` exists with architecture, interfaces, and at least one design decision with rationale
36
46
  - The design addresses all acceptance criteria from `requirements.md`
47
+ - For templates requiring it: `tasks.md` exists and every active acceptance criterion is claimed by at least one task, or the gap is deliberate
37
48
  - The user has confirmed the design direction
38
49
 
39
50
  ## Guidance
@@ -24,7 +24,7 @@ Produce working code that satisfies the design and requirements. Follow project
24
24
 
25
25
  1. **Load context.** Read `.aidlc/context/style-guide.md` and `.aidlc/context/architecture.md` if they exist. Match the project's established patterns. If the project has a knowledge graph (`.aidlc/knowledge/` exists), also run `aidlc knowledge context --scope phase --phase implementation` and query it (`aidlc knowledge query <term>`) before re-exploring code it already describes.
26
26
  2. **Load guidance.** Read all active Guidance_Layers from `.aidlc/guidance/index.yaml`. Apply their rules during implementation.
27
- 3. **Plan the work.** Break the implementation into discrete steps. For Micro scope, reference the task description and acceptance criteria directly.
27
+ 3. **Execute the task breakdown.** When the instance has a `tasks.md` (produced in Design for full/quick-feature scope), read it and execute tasks in order: complete a task, then mark its checkbox `[x]` as part of the same work unit — never batch checkbox updates for later. A task that should not be done is deferred in place (`- [>] T<n>: <title> (deferred YYYY-MM-DD: <reason>)`) with a dated reason, never skipped silently or deleted; the implementation→testing gate blocks on open tasks. For bugfix scope, create the optional `tasks.md` at implementation start when the fix spans more than one commit-sized unit. For Micro scope, reference the task description and acceptance criteria directly — no task file.
28
28
  4. **Write code.** Follow the design interfaces. Match existing code style (naming, formatting, error handling patterns).
29
29
  5. **Handle sensitive operations.** Before executing any of the following, describe the action and wait for explicit user confirmation:
30
30
  - File deletions or destructive operations
@@ -27,6 +27,7 @@ You MUST perform this review with fresh eyes. If you authored the artifact being
27
27
  ## Instructions
28
28
 
29
29
  1. **Read the target artifact completely.** Do not skim.
30
+ - When reviewing a design artifact and the instance has a `tasks.md`, review it together with the design: breakdown completeness (every design section covered by a task), task sizing (commit-sized units), and AC linkage (tasks reference the criteria they satisfy). Record its findings in the design review's findings file — no separate `tasks.review.md`.
30
31
  2. **Examine for each dimension:**
31
32
  - **Ambiguities** — Vague terms, undefined behavior, unclear scope
32
33
  - **Contradictions** — Requirements that conflict with each other
@@ -23,6 +23,7 @@ Resume an in-progress lifecycle instance efficiently. Determine where work left
23
23
  3. **Claim the instance.** Prefer `aidlc claim <instance>` — it writes the claim and appends the claim event to `sessions.ndjson` (the durable session↔instance record cost attribution depends on). Without the CLI, do both: write the claim file (or `claim:` field in the fallback case), then append the claim event to `.aidlc/state/<instance>/sessions.ndjson` (append-only; see the state protocol in **aidlc-overview**). Renew (`aidlc claim --renew`) at every phase transition. Release the same way when you stop (`aidlc release <instance>`).
24
24
  4. **Determine next step.** Apply this priority:
25
25
  - If current phase has incomplete required artifacts → produce the next artifact
26
+ - If the current phase is implementation and a task-bearing `tasks.md` exists → resume at the lowest-numbered open (`[ ]`) task; do NOT re-derive the plan from design.md
26
27
  - If current phase is complete but not transitioned → evaluate transition (check gates)
27
28
  - If transition is allowed → move to next pending phase
28
29
  - If all phases complete → report instance complete and fire `on-instance-complete`
@@ -10,5 +10,8 @@ override:
10
10
  required_artifacts:
11
11
  - name: reproduction.md
12
12
  - name: requirements.md
13
+ implementation:
14
+ optional_artifacts:
15
+ - name: tasks.md
13
16
  gates:
14
17
  adversarial-review: []
@@ -16,6 +16,7 @@ phases:
16
16
  - name: design
17
17
  required_artifacts:
18
18
  - name: design.md
19
+ - name: tasks.md
19
20
  optional_artifacts:
20
21
  - name: architecture-diagram.md
21
22
  - name: implementation
@@ -9,6 +9,7 @@ phases:
9
9
  - name: design
10
10
  required_artifacts:
11
11
  - name: design.md
12
+ - name: tasks.md
12
13
  - name: implementation
13
14
  required_artifacts:
14
15
  - name: code-complete.md