@rasensio/aidlc-content 2.5.2 → 2.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.
@@ -209,7 +209,8 @@ takes it away again.
209
209
  agent follows `.aidlc/resources/rules/unattended.md` instead: each place a skill would ask, wait or
210
210
  confirm has one written outcome — take the named default and log it to the instance's
211
211
  `unattended-stops.md`, or hard-stop (constitution, deleting data the session did not create,
212
- credentials and permissions, scope beyond the roadmap item), which parks the item and ends the session.
212
+ credentials and permissions, scope beyond the roadmap item, building other than what was agreed,
213
+ naming which instance caused a bug), which parks the item and ends the session.
213
214
  A situation no stop covers is decided and logged when the choice lies inside the item's "What success
214
215
  looks like", as an `interpretation`, a `deviation` or an `open-question`; an open question keeps
215
216
  autopilot from merging the pull request until a person has answered, and `aidlc autopilot review`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc-content",
3
- "version": "2.5.2",
3
+ "version": "2.6.0",
4
4
  "bugs": "https://github.com/rasensio/aidlc-feedback/issues",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,25 @@
1
+ # The departure rule
2
+
3
+ What was agreed is what gets built. Changing it is the owner's call, never the agent's.
4
+
5
+ ## What a departure is
6
+
7
+ A change that narrows, widens or replaces what one of three sources says:
8
+
9
+ - an acceptance criterion or a scope boundary in `requirements.md`;
10
+ - the roadmap item the instance came from (`roadmap-item.md`);
11
+ - a person's recorded answer in a question file — an `[Answer]:` not marked `(unattended default)`.
12
+
13
+ A choice those sources leave open is not a departure: internal names, file layout, the order of work, how something is tested. Decide it and record it as usual; do not ask.
14
+
15
+ Example: the user picked the Cockpit layout, and building the one-column Stream instead, because Cockpit is harder, is a departure. Calling the module `cockpit.ts` or `dashboard.ts` is not.
16
+
17
+ ## What to do
18
+
19
+ Stop before the change is written — in design, before it reaches `design.md`; in implementation, before the code. Ask through the **Question Protocol** (`.aidlc/resources/rules/question-protocol.md`) in that phase's question file. Quote the source and what it says, and make keeping what was agreed one of the options.
20
+
21
+ A change the person accepts that alters a completed `requirements.md` goes through an amendment (**Amending a Completed Phase**, in the requirements skill), never a silent edit.
22
+
23
+ ## Unattended
24
+
25
+ With `AIDLC_UNATTENDED=1`, build what was agreed, even when another option looks better. A run that cannot is the `departs-from-agreed` hard stop in `.aidlc/resources/rules/unattended.md`, never a logged `deviation`.
@@ -1,6 +1,6 @@
1
1
  # Question Protocol
2
2
 
3
- Ask the user something when **different answers would change an artifact, a design decision, or scope** — the trigger is consequence, not volume. A question whose answers change nothing is not asked. A question that an answer already given in this instance resolves is not re-asked: name that answer and ask the narrow follow-up instead.
3
+ Ask the user something when **different answers would change an artifact, a design decision, or scope** — the trigger is consequence, not volume. A question whose answers change nothing is not asked. A question that an answer already given in this instance resolves is not re-asked: name that answer and ask the narrow follow-up instead. Building something other than what was agreed is always asked: `.aidlc/resources/rules/departures.md`.
4
4
 
5
5
  ## The spec
6
6
 
@@ -14,7 +14,7 @@ A situation no stop below covers is decided and logged when its choice lies insi
14
14
 
15
15
  ## The log
16
16
 
17
- Append one entry per default, decision or hard stop to `.aidlc/state/<instance>/unattended-stops.md`: a `## <n>. <title> — <slug>` heading, then **Source:** (skill and section, or rule), **Instruction:** (the exact text), **Decided:** (the default, the choice, or "hard stop"), **Type:** (`default` for a listed stop or a hard stop; for a decision, `interpretation` — how an unclear requirement was read, `deviation` — where the design was not followed, or `open-question` — needs a person), **Why:** (why it is safe, or which hard-stop class). A Question Protocol answer also carries `(unattended default)` in its `[Answer]:` — how a reviewer finds every choice nobody made. An `open-question` builds the option easiest to undo, says how to switch, and still reaches a pull request, which autopilot does not merge until a person has answered.
17
+ Append one entry per default, decision or hard stop to `.aidlc/state/<instance>/unattended-stops.md`: a `## <n>. <title> — <slug>` heading, then **Source:** (skill and section, or rule), **Instruction:** (the exact text), **Decided:** (the default, the choice, or "hard stop"), **Type:** (`default` for a listed stop or a hard stop; for a decision, `interpretation` — how an unclear requirement was read, `deviation` — a design detail not followed that changes no scope and no chosen option, never a departure, or `open-question` — needs a person), **Why:** (why it is safe, or which hard-stop class). A Question Protocol answer also carries `(unattended default)` in its `[Answer]:` — how a reviewer finds every choice nobody made. An `open-question` builds the option easiest to undo, says how to switch, and still reaches a pull request, which autopilot does not merge until a person has answered.
18
18
 
19
19
  ## Waiting for a command
20
20
 
@@ -78,3 +78,5 @@ Each bullet begins with its one outcome; a condition after it is part of the rul
78
78
  - `testing-security` — **hard stop**: production-like environments, real credentials, destructive operations.
79
79
  - `platform-unknown` — **default and log**: carry on; the runner sets `AIDLC_AGENT`.
80
80
  - `release-boundary` — **release boundary**: completing testing.
81
+ - `departs-from-agreed` — **hard stop**: design or implementation cannot keep to what was agreed (`.aidlc/resources/rules/departures.md`); keeping to it is no stop.
82
+ - `caused-by` — **hard stop**: the bugfix `caused_by` question; only a person names which instance caused a bug.
@@ -92,7 +92,7 @@ On each lifecycle event — `on-instance-start`, `on-phase-enter`, `on-phase-exi
92
92
 
93
93
  ## Question Protocol
94
94
 
95
- 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`. With nobody there: `.aidlc/resources/rules/unattended.md`.
95
+ When and how to ask the user: `.aidlc/resources/rules/question-protocol.md`. With nobody there: `.aidlc/resources/rules/unattended.md`. Before departing from what was agreed: `.aidlc/resources/rules/departures.md`.
96
96
 
97
97
  ## Ending a Phase or a Review
98
98
 
@@ -75,7 +75,7 @@ When the instance uses the `bugfix` template, this phase produces `reproduction.
75
75
  - `git blame` the defective lines and match commits to instance branches (`fix|feat|chore/<YYYYMMDD>-<name>`)
76
76
  - Query the knowledge graph for the module's history
77
77
  - Check instance state dirs and the registry for names
78
- Present the candidates *as guesses* with the evidence. The user confirms, edits, or declines — `caused_by` is **never written without explicit user confirmation**, and declining leaves the field absent (absent = unknown, never an error).
78
+ Present the candidates *as guesses* with the evidence. The user confirms, edits, or declines — `caused_by` is **never written without explicit user confirmation**, and declining leaves the field absent (absent = unknown, never an error). Unattended (`AIDLC_UNATTENDED=1`): a hard stop, per `.aidlc/resources/rules/unattended.md`.
79
79
  5. **Write the confirmed linkage** to `instance.yaml` as a list: `caused_by: [<instance>, ...]` (single cause = one-element list). Validate every name against existing state dirs or registry entries — an unknown name needs re-confirmation; reject the bugfix's own name (no self-reference).
80
80
 
81
81
  ## Exit Criteria
@@ -50,7 +50,7 @@ transcript. See **The context rule** (`.aidlc/resources/rules/context.md`).
50
50
  4. **Define architecture.** Describe the high-level structure: components, their responsibilities, and how they communicate. Say for each one whether it extends a seam found in step 3 or is new.
51
51
  5. **Specify interfaces.** For each component boundary, define the contract (function signatures, API shapes, data types).
52
52
  6. **Data flow.** Document how data moves through the system — inputs, transformations, storage, outputs.
53
- 7. **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>"`.
53
+ 7. **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>"`. A decision that would build other than what was agreed — in `requirements.md`, the roadmap item or a person's answer — is asked before it is recorded, as **The departure rule** (`.aidlc/resources/rules/departures.md`) says.
54
54
  8. **Address non-functional concerns.** Map performance, security, and accessibility requirements to design choices.
55
55
  9. **Identify risks.** Note technical risks and mitigation strategies.
56
56
  10. **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:
@@ -49,7 +49,7 @@ Then the source files that task touches. See **The context rule** (`.aidlc/resou
49
49
  4. **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.
50
50
 
51
51
  **One agent per task.** Where the platform's entry for this skill says sub-agents are available and the instance has a task-bearing `tasks.md`, offer it before the first task — or follow the answer already recorded in `implementation-questions.md` — exactly as **The task-agents rule** (`.aidlc/resources/rules/task-agents.md`) says. Chosen, it replaces the task-by-task work above: each task goes to a fresh agent, a second agent reviews it, and the box is ticked only after that review passes. Not offered, or not chosen, run every task in this session as before.
52
- 5. **Write code.** Follow the design interfaces. Match existing code style (naming, formatting, error handling patterns).
52
+ 5. **Write code.** Follow the design interfaces. Match existing code style (naming, formatting, error handling patterns). Code that would build other than what was agreed is asked before it is written, as **The departure rule** (`.aidlc/resources/rules/departures.md`) says.
53
53
  6. **Handle sensitive operations.** Before executing any of the following, describe the action and wait for explicit user confirmation (unattended, `AIDLC_UNATTENDED=1`: each is a hard stop except reverting this session's own changes, per `.aidlc/resources/rules/unattended.md`):
54
54
  - File deletions or destructive operations
55
55
  - Infrastructure changes (provisioning, configuration)