@rasensio/aidlc-content 1.37.1 → 1.38.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.37.1",
3
+ "version": "1.38.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,38 @@
1
+ # The next-steps rule
2
+
3
+ This file is the only statement of the rule. The phase skills and the review skill point here instead of restating it.
4
+
5
+ **Never end a phase or a review on a state.** "26 findings", "gate failed" and "phase in progress" tell the user where things are and leave them to work out the path. End instead with what they must decide, what you can fix, and one command.
6
+
7
+ ## When it applies
8
+
9
+ - At the end of a phase, once its exit criteria are met or it cannot go further without the user.
10
+ - At the end of a review, after the findings file is written.
11
+ - After an `aidlc gate` or `aidlc transition` failure you are reporting.
12
+
13
+ ## Sort what is still open
14
+
15
+ Put every open item — finding, gap, failed criterion — into exactly one of two groups:
16
+
17
+ 1. **Needs your decision.** Different answers would change an artifact, the scope, or the product: which principal is refused, whether production behaviour changes, what an edge case should return. Ask these through the **Question Protocol** (`.aidlc/resources/rules/question-protocol.md`) — in place when the options fit one line, in `.aidlc/state/<instance>/<phase>-questions.md` when they need context. Name the item each question came from.
18
+ 2. **I can fix these.** One correct answer exists and you can apply it: a wrong rule id, a stale sentence, an over-broad permission, a missing test, a task out of order. List them, one line each, and offer to apply them all in one step. Do not ask about each one separately.
19
+
20
+ An item you cannot place is a decision. Do not quietly fix something that was the user's to choose.
21
+
22
+ When both groups are empty, say so in one line.
23
+
24
+ ## End with one next command
25
+
26
+ Close the turn with exactly one next step. It names a command the user can run as written — the real instance name, the real phase or artifact — or, when decisions are open, says to answer them first.
27
+
28
+ - Decisions are open → answer them first; no command yet.
29
+ - Fixes are offered and not yet applied → the fixes, then the command below.
30
+ - The phase's exit criteria are met → `aidlc transition <instance>`. That is the step that marks the phase complete; `aidlc gate` only checks, and fails on an open phase until it runs.
31
+ - A review finished with no open critical finding → `aidlc transition <instance>` for the phase the artifact belongs to.
32
+ - The instance's last phase is done → the retrospective (**aidlc-retrospective**).
33
+
34
+ If the CLI printed a `Next steps:` block, use it — it names the fix for each failure it reported.
35
+
36
+ ## What this rule does not do
37
+
38
+ It changes what you report, not what you write. It adds no writer of `phase-<name>.yaml` or `transitions.log`: the Completion section of each skill still says how the phase is closed.
@@ -92,6 +92,10 @@ On each lifecycle event — `on-instance-start`, `on-phase-enter`, `on-phase-exi
92
92
 
93
93
  When to ask the user something, how the question is written, and where it is recorded. The rule is in `.aidlc/resources/rules/question-protocol.md`.
94
94
 
95
+ ## Ending a Phase or a Review
96
+
97
+ How to end a turn: decisions asked, fixes offered together, and one next command. The rule is in `.aidlc/resources/rules/next-steps.md`.
98
+
95
99
  ## Roadmap Capture
96
100
 
97
101
  When the user shares an idea tangential to the current work, offer to record it in `.aidlc/roadmap/inbox/` (see **aidlc-roadmap**) and continue the current phase — do not derail into ideation. Capture touches no instance state, so it is safe at any point in any phase.
@@ -66,3 +66,5 @@ If any ideation option involves sensitive operations (new credentials, infrastru
66
66
  ## Completion
67
67
 
68
68
  When exit criteria are met, update `phase-ideation.yaml` status to `complete` and append a transition record to `transitions.log`.
69
+
70
+ Then end the turn as **The next-steps rule** (`.aidlc/resources/rules/next-steps.md`) says.
@@ -85,6 +85,8 @@ If requirements reference sensitive data handling, authentication flows, or acce
85
85
 
86
86
  When exit criteria are met, update `phase-requirements.yaml` status to `complete` and append a transition record to `transitions.log`.
87
87
 
88
+ Then end the turn as **The next-steps rule** (`.aidlc/resources/rules/next-steps.md`) says.
89
+
88
90
  ## Amending a Completed Phase
89
91
 
90
92
  A completed phase's artifact is changed **only through an amendment**. Editing
@@ -89,6 +89,8 @@ You MUST flag these explicitly in the design document and note that implementati
89
89
 
90
90
  When exit criteria are met, update `phase-design.yaml` status to `complete` and append a transition record to `transitions.log`.
91
91
 
92
+ Then end the turn as **The next-steps rule** (`.aidlc/resources/rules/next-steps.md`) says.
93
+
92
94
  **Changing a completed phase's artifact.** Do it only through an amendment — append an
93
95
  `## Amendment <n> — YYYY-MM-DD` section to `requirements.md` with `Retires:`, `Issues:`,
94
96
  `Reopens:` and `Reason:` bullets, then run `aidlc amend <instance>` (start with `--impact`
@@ -82,6 +82,8 @@ Never store credentials, API keys, tokens, or passwords in source code or state
82
82
 
83
83
  When exit criteria are met, update `phase-implementation.yaml` status to `complete` and append a transition record to `transitions.log`.
84
84
 
85
+ Then end the turn as **The next-steps rule** (`.aidlc/resources/rules/next-steps.md`) says.
86
+
85
87
  **Changing a completed phase's artifact.** Do it only through an amendment — append an
86
88
  `## Amendment <n> — YYYY-MM-DD` section to `requirements.md` with `Retires:`, `Issues:`,
87
89
  `Reopens:` and `Reason:` bullets, then run `aidlc amend <instance>` (start with `--impact`
@@ -100,6 +100,8 @@ You MUST describe the action, confirm it targets a safe environment, and wait fo
100
100
 
101
101
  When exit criteria are met, update `phase-testing.yaml` status to `complete` and append a transition record to `transitions.log`.
102
102
 
103
+ Then end the turn as **The next-steps rule** (`.aidlc/resources/rules/next-steps.md`) says.
104
+
103
105
  **Changing a completed phase's artifact.** Do it only through an amendment — append an
104
106
  `## Amendment <n> — YYYY-MM-DD` section to `requirements.md` with `Retires:`, `Issues:`,
105
107
  `Reopens:` and `Reason:` bullets, then run `aidlc amend <instance>` (start with `--impact`
@@ -100,3 +100,5 @@ Never deploy without explicit user confirmation. If the user cancels, halt and l
100
100
  When exit criteria are met, update `phase-deployment.yaml` status to `complete` and append a transition record to `transitions.log`.
101
101
 
102
102
  Then check for the **completion moment**: derive the instance's applicable phases (template × scope). If deployment is the last applicable phase, or the next phase is maintenance (maintenance-terminal templates complete on maintenance *entry*, since maintenance is open-ended), this transition completes the instance — run the **aidlc-retrospective** skill now, before any completion cleanup (worktree removal, claim release), and fire the `on-instance-complete` event.
103
+
104
+ End the turn as **The next-steps rule** (`.aidlc/resources/rules/next-steps.md`) says.
@@ -78,3 +78,5 @@ You MUST describe the change, confirm the target environment, and wait for expli
78
78
  For maintenance-terminal instances the completion moment already fired on maintenance *entry* (see **aidlc-deployment**) — entering this phase means the instance is complete and its retrospective has run or is pending. Do not fire `on-instance-complete` again when closing the phase.
79
79
 
80
80
  When exit criteria are met, update `phase-maintenance.yaml` status to `complete` and append a transition record to `transitions.log`. If no retrospective exists for the instance (legacy completion paths), offer to run the **aidlc-retrospective** skill.
81
+
82
+ Then end the turn as **The next-steps rule** (`.aidlc/resources/rules/next-steps.md`) says.
@@ -150,4 +150,11 @@ If the review identifies security vulnerabilities:
150
150
 
151
151
  ## Completion
152
152
 
153
- After writing the findings file, report the review summary: total findings count by severity, and whether any critical findings block phase transition.
153
+ After writing the findings file, report the review summary in two lines: total findings count by severity, and whether any critical findings block phase transition.
154
+
155
+ The summary is not the end of the turn. A review's output is mostly decisions, and a count leaves the user to dig them out. Follow **The next-steps rule** (`.aidlc/resources/rules/next-steps.md`):
156
+
157
+ 1. Split the open findings into **needs your decision** and **I can fix these**. A finding whose fix changes what the product does, who it refuses, or what it returns is a decision, whatever its severity.
158
+ 2. Ask the decisions through the **Question Protocol** (`.aidlc/resources/rules/question-protocol.md`), each naming its finding id. When the reviewed artifact belongs to a phase, the question file is that phase's `<phase>-questions.md`.
159
+ 3. List the fixes one line each, by finding id, and offer to apply them together. When the user accepts, apply them and mark each finding `resolved` in the findings file.
160
+ 4. End with one next command — usually `aidlc transition <instance>` once no critical finding is open.