@rasensio/aidlc-content 2.33.1 → 2.35.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/docs/index.yaml CHANGED
@@ -42,7 +42,7 @@ entries:
42
42
  title: The lifecycle
43
43
  file: lifecycle.md
44
44
  source: packages/cli/src/core
45
- commands: [init, start, continue, status, transition, gate, menu, amend, templates, spec, cross-check, revert, verify]
45
+ commands: [init, start, continue, status, transition, gate, menu, amend, templates, spec, cross-check, revert, verify, flow]
46
46
 
47
47
  - id: state-and-concurrency
48
48
  kind: topic
package/docs/lifecycle.md CHANGED
@@ -76,6 +76,16 @@ instance, phase and artifact names filled in. When the `CI` environment variable
76
76
  words that block for a pipeline and names no command that changes lifecycle state. `--json` output
77
77
  carries no such block.
78
78
 
79
+ **Flow** decides who crosses a gate in an attended session. By default (`stepwise`) the agent stops
80
+ at the end of each phase and tells you to run `aidlc transition` in a new chat, because a fresh
81
+ session is the cheap one. With `flow: continuous` in `instance.yaml`, the agent runs the transition
82
+ itself and carries on in the same chat once nothing is open — it still asks every open question and
83
+ waits, and the safety stops still stop. Set it at triage (`aidlc roadmap triage <item> backlog --flow
84
+ continuous`), at start (`aidlc start --continuous`), or on a running instance (`aidlc flow <instance>
85
+ continuous`; `aidlc flow <instance>` prints the current one). It changes no gate, and it changes
86
+ nothing under autopilot. The cost is the context the one chat carries from phase to phase, which
87
+ `aidlc cost context` still reports at each boundary.
88
+
79
89
  Three gates are worth knowing because they block real work (four, in verified mode):
80
90
 
81
91
  - The **traceability gate** requires every active acceptance criterion in `requirements.md` to be
@@ -187,6 +197,11 @@ reading as a normal forward pass. It needs a live claim, prints every change bef
187
197
  `--confirm` from testing onwards, applies amendments in order, and is a stated no-op on a second run.
188
198
  A completed instance is refused outright: its change is new work.
189
199
 
200
+ With `--confirm` and no live claim, `amend` takes the claim itself, writes the amendment and releases
201
+ it again, on a refusal too, and says both. Only a person at a terminal gets that far, so no agent can
202
+ use it to skip claiming. Without `--confirm` the missing claim is still a refusal. The reason is the
203
+ autopilot "switch" answer: its printed commands used to fail on a claim step nobody listed.
204
+
190
205
  A correction confined to the current phase does not have to reopen anything. Write `Reopens: none`, or
191
206
  name the current phase: the amendment is recorded and no phase moves. That is checked, not taken on
192
207
  trust. The walk is the one input a refusal may read: `aidlc amend` refuses any reopen — `none` included —
package/docs/roadmap.md CHANGED
@@ -387,6 +387,17 @@ Each item goes through these steps:
387
387
  pull request without merging and it stops tracking it too. That pull request is yours while it
388
388
  waits: autopilot does not bring it up to date with main or chase its CI.
389
389
 
390
+ **Reopening sends it back.** If you want it changed instead (the "switch" answer), run
391
+ `aidlc amend <instance> --impact` in its worktree, write the amendment with its `Reopens:` field,
392
+ then run `aidlc amend <instance> --confirm`. While the pull request is open and the worktree's
393
+ phase comes before deployment, the next pass drops the old check and launches a fresh agent for
394
+ that phase; the rebuild pushes to the same pull request and goes through CI and the check again.
395
+ The same holds for an item still waiting on CI or on the check (a running checker ends first and
396
+ its verdict is discarded). With no free build slot or under a session limit, the item says what
397
+ the relaunch waits for. `aidlc autopilot approve <instance>` also accepts a reopened item. A
398
+ phase or template that cannot be read leaves the item where it is, because a relaunch nobody
399
+ asked for is the worse mistake. Items already queued to merge are not covered.
400
+
390
401
  Either close-out writes the record's `## Outcome` first, when it is still unwritten: the merge
391
402
  commit, CI as autopilot last read it, whether the release step ran, and — when
392
403
  `autopilot.deploy_workflow` in `.aidlc/config.yaml` names a workflow file such as
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc-content",
3
- "version": "2.33.1",
3
+ "version": "2.35.0",
4
4
  "bugs": "https://github.com/rasensio/aidlc-feedback/issues",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,7 +16,10 @@ comparable work at 76k.
16
16
  Three things follow:
17
17
 
18
18
  1. **Cross a phase boundary in a new session** whenever the platform allows it. The
19
- lifecycle is designed for this: state lives in files, not in the conversation.
19
+ lifecycle is designed for this: state lives in files, not in the conversation. The one
20
+ exception is an instance whose `flow` is `continuous`: it crosses in the same chat, as
21
+ **The next-steps rule** says, and `aidlc cost context` is still reported at each
22
+ boundary, as information only.
20
23
  2. **Re-read only what the phase you are entering names.** Each phase skill lists exactly
21
24
  that under *Entering in a fresh session*. The list is the whole list — an artifact not
22
25
  on it is not needed to start, and reading it "for context" is the charge this rule
@@ -35,6 +35,8 @@ When the next step is one a person does outside the terminal — a sign-in, an u
35
35
 
36
36
  If the CLI printed a `Next steps:` block, use it — it names the fix for each failure it reported.
37
37
 
38
+ **Continuous flow.** In an attended session on an instance whose `instance.yaml` has `flow: continuous`, when the phase's exit criteria are met, do not end the turn: run `aidlc transition <instance>` yourself, read the next phase skill's *Entering in a fresh session* list, and carry on in the same chat. Open decisions still go first through the Question Protocol: ask, and wait for the answer; with none open, cross without stopping. These still end the turn as above: a gate or transition failure that needs the user's decision, an open critical review finding, the implementation phase's sensitive-operation and Security Confirmation stops, and the release boundary. Any other `flow`, or none, is `stepwise`: stop as above. Under `AIDLC_UNATTENDED=1` this paragraph does not apply.
39
+
38
40
  ## What this rule does not do
39
41
 
40
42
  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.
@@ -203,6 +203,8 @@ When the project declares `run` in `roadmap.item_fields`, the same moment also s
203
203
 
204
204
  Never write `run:` without the person's answer, for the reason the rank is never written without one. An item with no `run:` is one autopilot may build, so leaving it unset is a choice, not a neutral default. Projects that do not declare `run` triage exactly as before.
205
205
 
206
+ When the project also declares `flow`, the same question carries it: propose `stepwise` (stop at each gate) unless the item or the person asks for `continuous` (an attended session crosses each gate itself, in one chat) — for example "rank 3, attended, continuous". Write it with `aidlc roadmap triage <item> backlog --flow <value>`, and only from the person's answer.
207
+
206
208
  ## Milestones
207
209
 
208
210
  A milestone is a goal a set of items serves — "Stage 1", "first-customer readiness". A roadmap has them when **`.aidlc/roadmap/milestones.yaml`** exists: an ordered `milestones:` list, each entry with an `id` (lowercase letters, digits and hyphens), a `title` and a one-line `exit` test. Without that file nothing in this section applies, and the roadmap reads and ranks exactly as it would otherwise.
@@ -23,6 +23,7 @@ Resume an in-progress lifecycle instance efficiently. Determine where work left
23
23
  - Current phase
24
24
  - Template name
25
25
  - Scope
26
+ - Flow — `flow`; absent or any other value is `stepwise`. When it is `continuous`, cross each phase boundary as the continuous clause of **The next-steps rule** (`.aidlc/resources/rules/next-steps.md`) says.
26
27
 
27
28
  Also check `<git-common-dir>/aidlc/retro-pending/` for markers. A marker for this instance → run the **aidlc-retrospective** skill first. A marker whose instance has no state dir and no registry entry is stale — remove it and report the cleanup in one line.
28
29
  2. **Check claim.** Claims live in `<git-common-dir>/aidlc/claims/<instance>.yaml` (resolve via `git rev-parse --git-common-dir`); fall back to the `claim:` field in `instance.yaml` outside a git repo or for unmigrated instances. If another session holds the claim: