qfai 2.2.0 → 2.2.1

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.
Files changed (117) hide show
  1. package/README.md +46 -6
  2. package/assets/defaults/workflows/bump-dependency.yml +4 -1
  3. package/assets/defaults/workflows/decide-design.yml +5 -1
  4. package/assets/defaults/workflows/rename-concept.yml +30 -0
  5. package/assets/defaults/workflows/resolve-conflicts.yml +14 -0
  6. package/assets/defaults/workflows/retire-feature.yml +26 -0
  7. package/assets/defaults/workflows/run-release.yml +12 -0
  8. package/assets/init/.claude/settings.json +11 -11
  9. package/assets/init/.codex/hooks.json +9 -9
  10. package/assets/init/.qfai/assistant/agent/backend-engineer.md +1 -1
  11. package/assets/init/.qfai/assistant/agent/frontend-engineer.md +1 -1
  12. package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +5 -0
  13. package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +8 -3
  14. package/assets/init/.qfai/assistant/rule/constitution.md +5 -3
  15. package/assets/init/.qfai/assistant/rule/drift-protocol.md +18 -0
  16. package/assets/init/.qfai/assistant/rule/references/gate-failure-autorepair.md +1 -1
  17. package/assets/init/.qfai/assistant/rule/review-convergence.md +9 -3
  18. package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +11 -2
  19. package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +6 -4
  20. package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +2 -1
  21. package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +5 -2
  22. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-completion-matrix.md +15 -2
  23. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md +17 -0
  24. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md +3 -1
  25. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/01_Context.md +4 -1
  26. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/04_Sources.md +5 -1
  27. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/00_index.md +4 -1
  28. package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +2 -2
  29. package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +10 -0
  30. package/assets/init/.qfai/assistant/skill/qfai-implement/references/red-admissibility.md +35 -0
  31. package/assets/init/.qfai/assistant/skill/qfai-implement/references/test-runner-recipes.md +445 -0
  32. package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +2 -2
  33. package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +10 -9
  34. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +33 -2
  35. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/handoff.md +77 -2
  36. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/iteration-loop.md +12 -3
  37. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +3 -1
  38. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +31 -5
  39. package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +17 -17
  40. package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +194 -129
  41. package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +29 -14
  42. package/assets/init/.qfai/assistant/skill/qfai-run/references/plan.md +46 -22
  43. package/assets/init/.qfai/assistant/skill/qfai-run/references/reached-step-observations.md +2 -0
  44. package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +7 -4
  45. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/concrete-abstract-cycle.md +2 -1
  46. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +1 -1
  47. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +2 -2
  48. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +1 -1
  49. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +1 -0
  50. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +1 -1
  51. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +83 -6
  52. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +1 -1
  53. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +23 -5
  54. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/change-request.md +1 -1
  55. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions/page-NNNN.md +6 -0
  56. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +9 -0
  57. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/open-questions.md +13 -0
  58. package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +15 -9
  59. package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +1 -1
  60. package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +11 -8
  61. package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +15 -2
  62. package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +48 -11
  63. package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +11 -3
  64. package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +12 -0
  65. package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +18 -2
  66. package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +4 -0
  67. package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +3 -0
  68. package/assets/init/.qfai/assistant/step/implement-credentials/STEP.md +4 -0
  69. package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +31 -7
  70. package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +12 -3
  71. package/assets/init/.qfai/assistant/step/implement-procedure/STEP.md +35 -6
  72. package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +25 -5
  73. package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +26 -0
  74. package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +28 -5
  75. package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +20 -5
  76. package/assets/init/.qfai/assistant/step/maintain-edit/STEP.md +70 -6
  77. package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +39 -6
  78. package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +12 -3
  79. package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +56 -6
  80. package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +5 -0
  81. package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +8 -0
  82. package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +9 -4
  83. package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +22 -1
  84. package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +48 -12
  85. package/assets/init/.qfai/assistant/step/triage-close/STEP.md +7 -2
  86. package/assets/init/.qfai/assistant/step/triage-handoff/STEP.md +6 -0
  87. package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +76 -3
  88. package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +35 -10
  89. package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +65 -7
  90. package/assets/init/root/.agents/rules/api-budget.md +8 -3
  91. package/assets/init/root/.agents/rules/graph-exploration.md +18 -4
  92. package/assets/init/root/.agents/rules/reminders.json +20 -28
  93. package/assets/init/root/.agents/rules/user-questions.md +21 -11
  94. package/assets/init/root/.gitattributes +2 -0
  95. package/assets/init/root/AGENTS.md +1 -1
  96. package/assets/mdschema/manifest.yml +3 -0
  97. package/assets/mdschema/story/03_contract/tech.mdschema.yml +1 -1
  98. package/assets/mdschema/story/decisions/page-NNNN.mdschema.yml +32 -0
  99. package/assets/mdschema/story/decisions.mdschema.yml +12 -0
  100. package/assets/schemas/workflow/extraction.schema.json +94 -2
  101. package/assets/schemas/workflow/plan.schema.json +34 -1
  102. package/assets/scripts/check-mdschema.mjs +434 -45
  103. package/dist/cli/index.cjs +4930 -2264
  104. package/dist/cli/index.cjs.map +1 -1
  105. package/dist/cli/index.mjs +4690 -2016
  106. package/dist/cli/index.mjs.map +1 -1
  107. package/dist/graph/cli.cjs.map +1 -1
  108. package/dist/graph/cli.mjs.map +1 -1
  109. package/dist/graph/hook.cjs.map +1 -1
  110. package/dist/graph/hook.mjs.map +1 -1
  111. package/dist/index.cjs +3338 -1830
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.d.cts +59 -3
  114. package/dist/index.d.ts +59 -3
  115. package/dist/index.mjs +3154 -1649
  116. package/dist/index.mjs.map +1 -1
  117. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
  [Build] iteration NN: generate iter-NN/index.html under DESIGN.md tokens
7
7
  [Review] iteration NN: the reviewer operates Playwright and returns the reviews
8
8
  [Ask] iteration NN: the user confirms the prototype, or answers with a change
9
- [Handoff] confirmed: final/index.html + final/handoff.json
9
+ [Handoff] confirmed: final/index.html + final/handoff.json (restyle: handoff.json only)
10
10
  ```
11
11
 
12
12
  ## Per-iteration files
@@ -20,7 +20,8 @@
20
20
  The orchestrator writes the reviewer's payload for each `(UI contract, screen)` pair beside the
21
21
  per-iteration `review.json` summary, from the first iteration on (the payload schema and the aggregation rule are
22
22
  in the reviewer references the loop step names). That holds for a single-contract run as much
23
- as for a multi-contract one.
23
+ as for a multi-contract one. A scoped run writes payloads only for the pairs it
24
+ reviews: its in-scope and render-check screens.
24
25
 
25
26
  The reviewer operates Playwright live. A screenshot or HTML snapshot is an
26
27
  additional input, taken only when someone needs it.
@@ -41,6 +42,13 @@ The latest iteration is always the one put to the user. Temporary regressions
41
42
  are allowed; a leap backwards is a normal path to a breakthrough on the IA and
42
43
  flow axes.
43
44
 
45
+ ## Restyle iterations
46
+
47
+ A loop whose `progress.md` records `iterationKind` `restyle` restyles the
48
+ live app in place. Each `iter-NN/index.html` lists the live routes in scope,
49
+ the reviewer drives those routes in the running app, and the handoff is a
50
+ short form that names the routes and the stylesheet and motion entry points.
51
+
44
52
  ## Surface profile
45
53
 
46
54
  `surface` (web/mobile/desktop/mixed) only affects how the reviewer opens the
@@ -53,7 +61,8 @@ prototype. It is neutral with respect to AI behavior.
53
61
 
54
62
  ## Produced after the loop
55
63
 
56
- - `.qfai/prototype/final/index.html` and `.qfai/prototype/final/handoff.json`.
64
+ - `.qfai/prototype/final/index.html` and `.qfai/prototype/final/handoff.json`
65
+ (restyle: `handoff.json` only).
57
66
  The `prototyping-handoff` step defines its fields.
58
67
 
59
68
  ## Brand identity
@@ -57,6 +57,8 @@ type ReviewerPayload = {
57
57
  menuReachabilityFeel: string;
58
58
  };
59
59
  layoutAntiPatternsDetected: string[]; // ids from the layout anti-pattern registry
60
+ // Only the violations specific to this screen; a screen-independent one is
61
+ // recorded once, in the per-iteration summary.
60
62
  designMdViolations: {
61
63
  // closed too: `kind` + `found` only, no extra key per element
62
64
  kind: "color" | "font" | "radius" | "shadow" | "contrast";
@@ -85,7 +87,7 @@ by overstating rather than by fixing.
85
87
  | `blockingFindings` | array of strings; each entry is shown to the user |
86
88
  | `impressions` | all 6 `*Feel` fields required, each a string of at most 200 words |
87
89
  | `layoutAntiPatternsDetected` | array of strings; each entry is shown to the user |
88
- | `designMdViolations` | array of `{kind, found}` (element closed: no other key); filled by the reviewer; each entry is shown to the user |
90
+ | `designMdViolations` | array of `{kind, found}` (element closed: no other key); filled by the reviewer; only the violations specific to this screen, since a screen-independent one is recorded once in the per-iteration summary and in no payload; each entry is shown to the user |
89
91
  | `wallTimeSec` | non-negative finite number; informational, no upper bound |
90
92
  | `softWarnings` | required, closed, single boolean key `timeBudget` |
91
93
  | `softWarnings.timeBudget` | derived, not free-standing: must equal `wallTimeSec > 300` (per-session cap 300 s = 5 min per `(UI contract, screen)` session, not per UI contract — a multi-screen contract gets one budget per screen because each pair is dispatched as its own session and writes its own payload). A payload where the two disagree is wrong, so an over-budget session is never written with the flag off |
@@ -37,11 +37,26 @@ transition-pass percentages as a substitute for the qualitative review.
37
37
  Open each route in your own Playwright session and exercise its declared
38
38
  primary tasks. Record `sessionStatus` and `retryCount` in the per-screen
39
39
  payload according to the closed per-screen payload schema.
40
+ In a `restyle` iteration, the iteration page lists the live routes in
41
+ scope: open each listed route in the running app and review it there.
42
+ The list page is not a screen, and the screens are the project's own.
43
+ Read the edited stylesheet and motion files as well when filling
44
+ `designMdViolations[]`.
45
+ When `progress.md` records a `runScope`, review its in-scope screens in
46
+ full. On each render-check screen, check only that the in-scope component
47
+ renders there: one that does not render, or that breaks the screen around
48
+ it, is a blocking finding, and the impressions speak of the component alone.
49
+ Return payloads for those pairs only, fold only them into the summary, and
50
+ open no other screen.
51
+ When the scope names components only, the render-check screens are the
52
+ whole review, and the summary's four scores rate the component as those
53
+ screens render it.
40
54
  - A screenshot or HTML snapshot, only when one was taken. Name any mandatory
41
55
  input you did not receive in a finding.
42
56
  - The layout anti-pattern registry the package ships.
43
57
  - Prior reviews: `iter-(NN-1)/review.json`, `iter-(NN-2)/review.json`
44
- (when present)
58
+ (when present), from this run only: the run's first iteration, the first
59
+ after `progress.md` records its `runScope`, has none.
45
60
  - Progress log: `.qfai/prototype/progress.md`
46
61
  - Root `DESIGN.md` (read-only context: `# Brand Philosophy`,
47
62
  `audience.emotion`, `audience.do_not_look_like`).
@@ -75,7 +90,8 @@ below and are relative to the project root.
75
90
  the block below.
76
91
 
77
92
  The two share `blockingFindings`, `layoutAntiPatternsDetected` and
78
- `designMdViolations`. `proseCritique` / `pivotDirective` exist on
93
+ `designMdViolations`, except that a screen-independent `designMdViolations`
94
+ entry is recorded in the summary only. `proseCritique` / `pivotDirective` exist on
79
95
  the summary only — putting them in a
80
96
  `<screen>.review.json` fails the closed schema.
81
97
 
@@ -88,12 +104,21 @@ one screen alone. Fold every `(UI contract, screen)` pair of this iteration:
88
104
  prefixed with the screen it belongs to.
89
105
  - `layoutAntiPatternsDetected` — the **union** of the pairs' arrays,
90
106
  deduplicated by ID.
91
- - `designMdViolations` — the **union**, deduplicated on
107
+ - `designMdViolations` — every screen-independent violation, recorded here
108
+ and in no payload, plus the **union** of the pairs' arrays, deduplicated on
92
109
  `(kind, found)`.
93
110
  - `proseCritique`, four ordinal `scores`, and `pivotDirective` describe the
94
111
  iteration as a whole. The six bounded `impressions.*Feel` fields remain on each
95
112
  per-screen payload; do not add rating keys to that closed schema.
96
113
 
114
+ A violation is screen-independent when its source is shared by every screen of
115
+ the iteration: a shared stylesheet, the Tailwind configuration, the page layout,
116
+ or a component every screen renders. It reads the same on every screen, so
117
+ repeating it in each payload multiplies one fix into one entry per screen. A
118
+ pair's payload lists only the violations whose source is that screen. When the
119
+ iteration reviews one screen, nothing is screen-independent and its payload
120
+ keeps every violation.
121
+
97
122
  This keeps the summary findings aligned with the per-screen payloads. The
98
123
  user reads the summary before confirming the prototype, so a summary built
99
124
  from the best screen would hide another screen's blockers from them.
@@ -127,14 +152,15 @@ type Review = {
127
152
 
128
153
  Fill `designMdViolations` yourself: one entry per distinct value the
129
154
  prototype uses that root `DESIGN.md` does not declare, in the categories
130
- the generator prompt lists.
155
+ the generator prompt lists. The summary is the only place a
156
+ screen-independent violation is recorded.
131
157
 
132
158
  ## The four ordinal UX axes
133
159
 
134
160
  Score `informationArchitecture`, `navigationFlow`, `usability`, and
135
161
  `functionality` on the `weak` → `acceptable` → `strong` → `exceptional` scale.
136
162
  The four scores belong to the per-iteration summary and cover the live review of
137
- all declared screens. They do not replace the six bounded qualitative
163
+ all declared screens or, in a scoped run, of the pairs it reviews. They do not replace the six bounded qualitative
138
164
  `impressions.*Feel` fields or actionable `blockingFindings` on each closed
139
165
  per-screen payload. The user reads the scores and every finding before
140
166
  confirming the prototype, so do not inflate a score: a favorable score that
@@ -14,7 +14,7 @@ mode: execution-focused
14
14
 
15
15
  [DRIFT-PROTOCOL:REQUIRED]
16
16
 
17
- Follow the CLI plan's steps in order. Read no reference up front; each line says when.
17
+ In a git worktree, read and follow the worktree's own `.qfai/assistant/skill/qfai-run/SKILL.md`, whatever copy the host loaded. Follow the CLI plan's steps in order. Read no reference up front; each line says when.
18
18
 
19
19
  - `references/extraction.md`: for an extraction step 1 does not give.
20
20
  - `references/plan.md`: for a plan field this file does not name, or a refused plan.
@@ -48,8 +48,8 @@ values plan nothing.
48
48
 
49
49
  - For independent targets under one goal, read `references/operator-screens.md`
50
50
  before planning or switching during a wait.
51
- - Plan changes, questions, proposals to decide and reports to close.
52
- Questions plan answers without changes; nonrequests get no plan.
51
+ - Plan changes, questions, proposals to decide and reports to close. Questions plan answers without changes; nonrequests get no plan.
52
+ An automated notice (task, wake-up, CI) is no request; one that delivers a requested result resumes the waiting step.
53
53
  - Replies with a requested answer or result, including failure, resume the same step without
54
54
  a new invocation. An independent new request is planned; read `references/operator-screens.md`
55
55
  for replies.
@@ -59,13 +59,13 @@ values plan nothing.
59
59
  ## The work
60
60
 
61
61
  1. **Extract.** A question one read answers is `{ intent: question-why, qualifiers: [session-answerable] }`
62
- (or `question-how`, `question-help`); an operation on finished work that the session runs itself and
63
- that deletes nothing is `{ intent: order, artifacts: [] }`. Every other field is empty, with
64
- `confidence: high`; neither needs a reference. Read any other request as `references/extraction.md`
65
- sets out, and pass the extraction to `npx qfai workflow plan --in <file>`, or `--in -`.
62
+ (or `question-how`, `question-help`); an operation on finished work, or on a device or system the session reaches, that the session runs itself and
63
+ that deletes nothing is `{ intent: order, artifacts: [] }`. Every other field is empty, with `confidence: high`; neither needs a reference.
64
+ Read any other request as `references/extraction.md` sets out. Then run the launcher preflight above; after it passes, hand the extraction to `npx qfai workflow plan --in <file>`, or `--in -`.
65
+ The session-run operation that deletes nothing, read above as `{ intent: order, artifacts: [] }`, goes to `npx qfai workflow plan --order` instead, with no file; an order read through `references/extraction.md` keeps `--in`.
66
66
  2. **Candidates.** When `plan` returns `candidates`, put one single-select
67
67
  question, each option saying in the user's words what that route will do,
68
- then run `npx qfai workflow plan --route <route>` for the chosen one.
68
+ then run `npx qfai workflow plan --route <route>` with the same `--in` for the chosen one, keeping the candidate's `decisionPoints`.
69
69
  3. **Scope.** With two or more scopes, ask which to run as `references/operator-screens.md` says,
70
70
  and run only its stages. With one scope, no scopes, or a branch destination's plan, ask
71
71
  nothing and run every stage.
@@ -75,8 +75,8 @@ values plan nothing.
75
75
  closes, answers or asks, it reads and reports and writes nothing.
76
76
  5. **Run the stages.** Run each stage in plan order, and each of its steps in
77
77
  order, as `.qfai/assistant/rule/shared-skill-operating-baseline.md#running-steps-mandatory` says.
78
- When a step is short or passes without edits, read `references/operator-screens.md`.
79
- Write artifacts yourself or delegate independent parallel work or review.
78
+ Note each step's status for the final report; when a step is short or passes without edits, read `references/operator-screens.md`.
79
+ Write artifacts yourself or delegate independent parallel work or review. A worker starts no finder, griller or reviewer: run each step that starts one yourself, as the delegation baseline's Orchestrator Protocol says.
80
80
  At a step the plan marks with a point, follow `references/stage-points.md`:
81
81
  - **Release point.** Ask the user to approve the release before the step `releasePoint` names.
82
82
  - **Decision point.** Put each critical decision at a step `decisionPoints` names to the user.
@@ -85,14 +85,14 @@ values plan nothing.
85
85
  `implementation-reviewer`. Only a contract or screen change no earlier review read adds
86
86
  `architecture-reviewer` or `product-surface-reviewer`, as `common-review-cycle` lists; no one else
87
87
  joins. A review whose target's only edits resolve the conflicts of a merge or branch update between
88
- reviewed sides gets no reviewer.
88
+ reviewed sides, or a route code review of a small literal-only change, as `common-review-cycle` defines, gets no reviewer. A conflict resolution the plan's own edit stage made in the story tree, a contract or a register still gets one.
89
89
  No agent reviews its own work; no step adds a review. Each returns PASS or REVISE.
90
- Fix or answer each finding once, with no re-review. Stop a step that exceeds the request.
91
- 7. **Approvals.** Each approval of a specification change, a critical decision
92
- or a release is one `decisions.md` row: what was approved, who approved it,
93
- when, and the chosen option's label, in the `qfai-sdd` decisions template's form. A decision you took appends no row.
90
+ Fix or answer each finding once; a behaviour fix gets one re-review, as `common-review-cycle` says. Stop a step that exceeds the request.
91
+ 7. **Approvals.** Each approval of a specification change, a critical decision or a release is one `decisions.md` row: what was approved, who approved it, when, and the chosen option's label, in the `qfai-sdd` decisions template's form. A decision you took appends no row.
92
+ When the release change is produced outside this run (by a release workflow or bot), record its approval in the final report with the same four items and list the row as a pending follow-up;
93
+ the next change that touches `decisions.md` appends the row, and a `qfai-run` that writes `decisions.md` appends any pending approval row first.
94
94
  8. **A finding no stage serves.** Stop, and name the finding, its owner and the stage skill to invoke by name.
95
- 9. **Commit.** `verify-commit` runs last, after any release point; never pushes.
95
+ 9. **Commit.** `verify-commit` runs last, after any release point; never pushes. A push, pull request, merge or branch update the user asks for after the plan ends is planned next as `{ intent: order, artifacts: [] }` with `npx qfai workflow plan --order`, and its `triage-operate` delivers it.
96
96
  10. **Session feedback.** When the final report closes the user's last task and nothing waits on them, follow `.agents/rules/session-feedback.md` once.
97
97
 
98
98
  ## Under a no-question mode
@@ -147,4 +147,4 @@ retained; ordinary completion requires no unsolicited upload.
147
147
  project_memory:
148
148
 
149
149
  - The user names no stage after the first request.
150
- - The plan is fixed by its route; the session runs every step of the chosen scope.
150
+ - The plan is fixed by its route and the extraction's artifacts; the session runs every step of the chosen scope.