qfai 2.1.2 → 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 (162) hide show
  1. package/README.md +46 -6
  2. package/assets/defaults/agent-routing/qfai-implement.yml +9 -0
  3. package/assets/defaults/agent-routing/qfai-triage.yml +9 -0
  4. package/assets/defaults/workflows/answer-in-session.yml +8 -0
  5. package/assets/defaults/workflows/bump-dependency.yml +4 -1
  6. package/assets/defaults/workflows/decide-design.yml +5 -1
  7. package/assets/defaults/workflows/quarantine-flaky.yml +3 -0
  8. package/assets/defaults/workflows/rename-concept.yml +30 -0
  9. package/assets/defaults/workflows/repair-consistency.yml +1 -0
  10. package/assets/defaults/workflows/resolve-conflicts.yml +14 -0
  11. package/assets/defaults/workflows/retire-feature.yml +26 -0
  12. package/assets/defaults/workflows/run-operation.yml +11 -0
  13. package/assets/defaults/workflows/run-release.yml +12 -0
  14. package/assets/defaults/workflows/write-procedure.yml +18 -0
  15. package/assets/graph/codegraph-native.mjs +174 -0
  16. package/assets/graph/graphify-native.py +72 -0
  17. package/assets/init/.claude/settings.json +11 -29
  18. package/assets/init/.codex/hooks.json +9 -21
  19. package/assets/init/.qfai/assistant/agent/backend-engineer.md +1 -1
  20. package/assets/init/.qfai/assistant/agent/frontend-engineer.md +1 -1
  21. package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +5 -0
  22. package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +8 -3
  23. package/assets/init/.qfai/assistant/rule/constitution.md +36 -18
  24. package/assets/init/.qfai/assistant/rule/drift-protocol.md +80 -1
  25. package/assets/init/.qfai/assistant/rule/references/codex-delegation.md +27 -0
  26. package/assets/init/.qfai/assistant/rule/references/gate-failure-autorepair.md +1 -1
  27. package/assets/init/.qfai/assistant/rule/references/griller-recommendations.md +21 -9
  28. package/assets/init/.qfai/assistant/rule/review-convergence.md +34 -15
  29. package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +12 -2
  30. package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +14 -7
  31. package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +2 -1
  32. package/assets/init/.qfai/assistant/rule/workflow.md +2 -1
  33. package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +11 -2
  34. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-completion-matrix.md +32 -10
  35. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md +17 -0
  36. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md +3 -1
  37. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/01_Context.md +4 -1
  38. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/04_Sources.md +5 -1
  39. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/00_index.md +4 -1
  40. package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +30 -20
  41. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/delegated-session.md +4 -3
  42. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-record.md +8 -2
  43. package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +9 -2
  44. package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +10 -0
  45. package/assets/init/.qfai/assistant/skill/qfai-implement/references/red-admissibility.md +35 -0
  46. package/assets/init/.qfai/assistant/skill/qfai-implement/references/test-runner-recipes.md +445 -0
  47. package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +3 -3
  48. package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +10 -9
  49. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +33 -2
  50. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/handoff.md +77 -2
  51. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/iteration-loop.md +12 -3
  52. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +3 -1
  53. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +31 -5
  54. package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +48 -46
  55. package/assets/init/.qfai/assistant/skill/qfai-run/references/codex-cloud-install.md +80 -0
  56. package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +202 -126
  57. package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +38 -15
  58. package/assets/init/.qfai/assistant/skill/qfai-run/references/plan.md +48 -22
  59. package/assets/init/.qfai/assistant/skill/qfai-run/references/reached-step-observations.md +134 -0
  60. package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +7 -4
  61. package/assets/init/.qfai/assistant/skill/qfai-run/scripts/codex-cloud-install.mjs +117 -0
  62. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/concrete-abstract-cycle.md +2 -1
  63. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +1 -1
  64. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-authoring.md +20 -7
  65. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +2 -2
  66. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +2 -2
  67. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +5 -1
  68. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +2 -2
  69. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +111 -7
  70. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +1 -1
  71. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +58 -8
  72. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/change-request.md +1 -1
  73. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions/page-NNNN.md +6 -0
  74. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +18 -0
  75. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/open-questions.md +13 -0
  76. package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +10 -7
  77. package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +22 -16
  78. package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +1 -1
  79. package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +33 -16
  80. package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +37 -8
  81. package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +25 -4
  82. package/assets/init/.qfai/assistant/step/common-policy-check/STEP.md +1 -0
  83. package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +68 -15
  84. package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +25 -10
  85. package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +17 -1
  86. package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +23 -3
  87. package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +9 -1
  88. package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +3 -0
  89. package/assets/init/.qfai/assistant/step/implement-credentials/STEP.md +4 -0
  90. package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +33 -3
  91. package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +12 -3
  92. package/assets/init/.qfai/assistant/step/implement-procedure/STEP.md +98 -0
  93. package/assets/init/.qfai/assistant/step/implement-quarantine/STEP.md +21 -4
  94. package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +25 -5
  95. package/assets/init/.qfai/assistant/step/implement-regression-fix/STEP.md +3 -3
  96. package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +26 -0
  97. package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +28 -5
  98. package/assets/init/.qfai/assistant/step/implement-stress-harness/STEP.md +33 -2
  99. package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +20 -5
  100. package/assets/init/.qfai/assistant/step/maintain-edit/STEP.md +70 -6
  101. package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +39 -6
  102. package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +12 -3
  103. package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +56 -6
  104. package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +13 -0
  105. package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +8 -0
  106. package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +9 -4
  107. package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +22 -1
  108. package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +52 -14
  109. package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +2 -2
  110. package/assets/init/.qfai/assistant/step/triage-close/STEP.md +7 -2
  111. package/assets/init/.qfai/assistant/step/triage-handoff/STEP.md +6 -0
  112. package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +123 -0
  113. package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +35 -10
  114. package/assets/init/.qfai/assistant/step/verify-qfai-gate/STEP.md +8 -1
  115. package/assets/init/.qfai/assistant/step/verify-repeat-run/STEP.md +40 -0
  116. package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +77 -7
  117. package/assets/init/root/.agents/rules/api-budget.md +8 -3
  118. package/assets/init/root/.agents/rules/document-schema.md +17 -0
  119. package/assets/init/root/.agents/rules/documentation-clarity.md +1 -1
  120. package/assets/init/root/.agents/rules/graph-exploration.md +164 -0
  121. package/assets/init/root/.agents/rules/grilling.md +100 -43
  122. package/assets/init/root/.agents/rules/reminders.json +20 -32
  123. package/assets/init/root/.agents/rules/session-feedback.md +6 -11
  124. package/assets/init/root/.agents/rules/untrusted-content.md +2 -2
  125. package/assets/init/root/.agents/rules/user-questions.md +24 -14
  126. package/assets/init/root/.gitattributes +2 -0
  127. package/assets/init/root/.github/workflows/qfai-docs.yml +2 -2
  128. package/assets/init/root/.github/workflows/qfai-tests.yml +88 -35
  129. package/assets/init/root/.github/workflows/qfai-validate.yml +2 -2
  130. package/assets/init/root/AGENTS.md +1 -0
  131. package/assets/mdschema/manifest.yml +3 -0
  132. package/assets/mdschema/story/03_contract/tech.mdschema.yml +1 -1
  133. package/assets/mdschema/story/decisions/page-NNNN.mdschema.yml +32 -0
  134. package/assets/mdschema/story/decisions.mdschema.yml +12 -0
  135. package/assets/schemas/workflow/extraction.schema.json +98 -2
  136. package/assets/schemas/workflow/plan.schema.json +34 -1
  137. package/assets/scripts/check-mdschema.mjs +497 -39
  138. package/dist/cli/index.cjs +7667 -3515
  139. package/dist/cli/index.cjs.map +1 -1
  140. package/dist/cli/index.mjs +8872 -4702
  141. package/dist/cli/index.mjs.map +1 -1
  142. package/dist/graph/cli.cjs +1568 -0
  143. package/dist/graph/cli.cjs.map +1 -0
  144. package/dist/graph/cli.d.cts +9 -0
  145. package/dist/graph/cli.d.ts +9 -0
  146. package/dist/graph/cli.mjs +1541 -0
  147. package/dist/graph/cli.mjs.map +1 -0
  148. package/dist/graph/hook.cjs +817 -0
  149. package/dist/graph/hook.cjs.map +1 -0
  150. package/dist/graph/hook.d.cts +9 -0
  151. package/dist/graph/hook.d.ts +9 -0
  152. package/dist/graph/hook.mjs +792 -0
  153. package/dist/graph/hook.mjs.map +1 -0
  154. package/dist/index.cjs +6436 -3012
  155. package/dist/index.cjs.map +1 -1
  156. package/dist/index.d.cts +185 -1
  157. package/dist/index.d.ts +185 -1
  158. package/dist/index.mjs +6620 -3197
  159. package/dist/index.mjs.map +1 -1
  160. package/dist/process-C21nTvkT.d.cts +12 -0
  161. package/dist/process-C21nTvkT.d.ts +12 -0
  162. package/package.json +1 -1
@@ -6,15 +6,27 @@ Read when a griller's recommendation is used.
6
6
 
7
7
  A grilling session puts a recommended answer beside each question (`.agents/rules/grilling.md`). Who settled the decision decides what happens next.
8
8
 
9
- | The decision was settled | What follows |
10
- | ----------------------------------------------------- | --------------------------------------------------------------------------------- |
11
- | By the user, from the recommendation among the inputs | The decision is theirs. The griller may review the artifact |
12
- | Agent to agent, not critical | The decision stands. The griller that recommended it does not review the artifact |
13
- | Agent to agent, critical, with no user adjudication | The artifact is wrong, and no reviewer can clear it |
14
-
15
- **The second row is how a delegated session is meant to end** (`.agents/rules/grilling.md`), not a finding. The reviewer checks that the decision is in the final report and is not critical. A reviewer that doubts its merit raises that as an ordinary finding against the artifact, under its own remit, as it would for any other content.
16
-
17
- **The third row is not a routing problem.** A critical decision is the user's in every session, and a run that could not ask records it as an open question rather than adopting it. An agent-adopted critical decision is therefore an artifact carrying something nobody with the standing decided, and handing it to a different reviewer would launder it.
9
+ | The decision was settled | What follows |
10
+ | ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
11
+ | By the user, from the recommendation among the inputs | The decision is theirs. The griller may review the artifact |
12
+ | Agent to agent, non-critical or with recorded applicable human authority | The decision stands. The griller that recommended it does not review the artifact |
13
+ | Agent to agent, critical, without an actual user answer or recorded applicable authority | The artifact is wrong, and no reviewer can clear it |
14
+
15
+ **The second row is how a delegated session is meant to end**
16
+ (`.agents/rules/grilling.md`), not a finding. The reviewer checks the final
17
+ report and, for a critical decision, the actual
18
+ applicable user authority defined in
19
+ `.agents/rules/grilling.md#explicit-delegation-for-a-discussion`.
20
+ An explicit delegation covering reversible requested judgment is authority,
21
+ not an individual human option answer. The recommending griller remains
22
+ disqualified from reviewing an agent adoption. A reviewer that doubts its merit
23
+ raises an ordinary finding against the artifact under its own remit.
24
+
25
+ **The third row is not a routing problem.** Without an actual answer or
26
+ recorded applicable user authority, a critical decision stays open. A run that
27
+ cannot ask records it as an open question rather than adopting it. Agent
28
+ agreement cannot supply authority, and a different reviewer cannot repair its
29
+ absence. No-question mode alone authorizes no decision.
18
30
  The reviewer must return `REVISE` and name the decision: it is reopened and put to the user, or recorded open where no question can be asked.
19
31
 
20
32
  The first row needs a reason, because the intuitive one is wrong. A sub-agent starting with a reset context cannot defer to something it does not remember, so deference is not the risk. **Correlation** is: a fresh instance of the same agent, on the same model, over the same evidence, re-derives the preference that produced the recommendation and finds it good on the merits. Resetting the
@@ -9,11 +9,18 @@ which owns the delegation rules these sit beside.
9
9
  - The review runs once, after the stage's last step.
10
10
  - The author fixes or answers every finding: a fix in the finding's owning
11
11
  source, or a reasoned answer recorded beside the finding.
12
- - There is no re-review and no `REVISE` loop. Once every finding is fixed or
13
- answered, the work proceeds.
12
+ - There is no `REVISE` loop. A fix that changes behaviour (code, a test's
13
+ assertions or a contract statement, not wording alone) gets one focused
14
+ re-review: each reviewer whose findings had a behaviour fix reads only the
15
+ combined diff of those fixes, once. Each finding of that re-review is fixed or answered with no further
16
+ re-review, and a fix that changes wording only gets none. Once every finding
17
+ is fixed or answered, the work proceeds.
14
18
  - A finding the author cannot fix is reported in the stage's final report, with
15
19
  the finding and why it stays open.
16
- - A critical decision still goes to the user: one that contradicts a spec, a
20
+ - A critical decision requires actual user authority under
21
+ `.agents/rules/grilling.md#explicit-delegation-for-a-discussion`.
22
+ Without an actual answer or recorded applicable authorization, it goes to
23
+ the user when questions are permitted: one that contradicts a spec, a
17
24
  contract or a recorded decision, one whose effect cannot be taken back, or one
18
25
  that rests on product intent nothing written states. So does a finding that
19
26
  names a concrete security defect, data loss or corruption, or a correctness
@@ -24,7 +31,9 @@ which owns the delegation rules these sit beside.
24
31
  Within a stage there is one review, so no demand comes back in it. The rules
25
32
  below are for a later, separate stage whose own one review reads an artifact an
26
33
  earlier stage's review already answered on; they never start a second review in
27
- the same stage.
34
+ the same stage. The focused re-review of a behaviour fix,
35
+ under One review above, is not a second review: it may not re-raise a demand the first
36
+ review answered unless the fix changed what that answer rests on.
28
37
 
29
38
  Record each finding's fix or answer, and its evidence, in the Response and
30
39
  Evidence cells. When a later stage reviews the same artifact, its
@@ -37,7 +46,8 @@ Close a repeat by citing its recorded answer. This bounds what a reviewer may
37
46
  require, not what a reviewer may report.
38
47
 
39
48
  A report of a new defect or evidence that an answer no longer applies must
40
- state what changed. A critical decision in it still goes to the user.
49
+ state what changed. A critical decision in it still requires actual applicable
50
+ user authority; uncovered authority is never supplied by the review.
41
51
 
42
52
  ## Discussion review precision
43
53
 
@@ -94,7 +104,10 @@ status is not permission to pass those.
94
104
 
95
105
  A grilling session between agents is a **delegated session**
96
106
  (`.agents/rules/grilling.md`): a griller interviews the authors, and the user is
97
- asked only a critical decision. These rules bound its rounds and say what
107
+ asked only an uncovered critical decision when questions are permitted.
108
+ Actual scoped user delegation may authorize reversible requested judgment
109
+ without an individual option answer; record the agents' adoption and authority
110
+ separately. These rules bound its rounds and say what
98
111
  settles each decision when they run out.
99
112
 
100
113
  **Two rounds.** After the second round **every
@@ -108,8 +121,9 @@ position is recorded beside it with whose it is. The stage reports every adopted
108
121
  decision at its end without waiting for an answer. A user who disagrees
109
122
  overturns one through a change request or a rerun.
110
123
 
111
- **A critical decision goes to the user at once**, without spending a round.
112
- Rounds between agents produce agreement, and agreement is not what these lack.
124
+ **A critical decision without an actual answer or recorded applicable user
125
+ authority goes to the user at once when asking is permitted**, without spending
126
+ a round. Agent agreement and round exhaustion supply no authority.
113
127
 
114
128
  | Critical decision | Why it goes to the user |
115
129
  | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
@@ -121,15 +135,20 @@ A discussion pack answers product intent for this test. It is non-normative for
121
135
  the Drift Protocol, but it is where the user already answered these questions in
122
136
  a user session, and asking them again spends that session twice.
123
137
 
124
- Each critical decision goes to the user with every position and a
125
- recommendation. Escalating is not failure: the work stays where it is and the
138
+ Each uncovered critical decision goes to the user with every position and a
139
+ recommendation when asking is permitted. The work stays where it is while the
126
140
  user accepts, decides, or drops the item.
127
141
 
128
142
  **The budget does not end the session while a critical decision is open.** The
129
- session ends `adopted` once the user has answered every critical decision.
143
+ session ends `adopted` only with no open node or running lookup, all required
144
+ consumed inputs present, and every critical decision supported by an actual
145
+ user answer or recorded applicable authorization under the master's conditions.
130
146
 
131
- Under a no-question mode the escalation has nobody to reach. A critical decision
132
- is opened as a question in the register the stage reads, so the stage cannot
133
- complete over it (`.qfai/assistant/rule/constitution.md` Article X,
147
+ Under a no-question mode no escalation is sent to the user. A critical decision
148
+ without that authority is opened in the register the stage reads, so the stage
149
+ cannot complete over it (`.qfai/assistant/rule/constitution.md` Article X,
134
150
  rule 6), and that write ends the session `no-question`. Non-critical decisions
135
- are adopted as they are in any delegated session.
151
+ are adopted as they are in any delegated session. A qualifying explicitly
152
+ delegated session with every node settled ends `adopted`; no-question mode
153
+ alone does not qualify it. Unknown facts and missing undefaultable consumed
154
+ inputs retain the ordinary open/stop behavior.
@@ -34,6 +34,14 @@ classified by the taxonomy below before any response.
34
34
  `.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md`.
35
35
  Where the stage's ledger or a seam makes an ordering mandatory, carrying on
36
36
  does not override it.
37
+ - On Codex, read `.qfai/assistant/rule/references/codex-delegation.md` before delegating.
38
+ - The orchestrator runs every step that starts a finder, griller or reviewer,
39
+ and starts those agents itself: `sdd-cycle`, `common-review-cycle`,
40
+ `prototyping-grill`, `prototyping-loop` and any step that holds a
41
+ delegated grilling session, such as a pre-draft grilling checkpoint. A worker it delegates to gets only steps that start
42
+ none, and starts no finder, griller or reviewer. A finder is a review
43
+ someone other than the author has to do; where it cannot be delegated, the
44
+ failure handling below applies.
37
45
  - A review is done by an agent that did not author what it reviews. The
38
46
  orchestrator never reviews its own work and never approves it for
39
47
  convenience.
@@ -44,6 +52,8 @@ classified by the taxonomy below before any response.
44
52
  return. Only read-only fixed-SHA `git show` reviews permit clean switches.
45
53
  Writers, local gates and reviews using live files or checkout-dependent
46
54
  execution must finish first.
55
+ - A reviewer runs no suite or gate the verify stage runs; it reads their
56
+ results.
47
57
 
48
58
  ### Worker edit boundary
49
59
 
@@ -176,7 +186,7 @@ cannot accept its own output.
176
186
  - Test volume ratios, floors and planning estimates are signals, not gates,
177
187
  unless the skill explicitly says so.
178
188
  - Do not declare DONE until every finding of its one review is fixed or answered, as `.qfai/assistant/rule/review-convergence.md` sets out.
179
- - An in-scope blocking finding from a routed reviewer prevents DONE until it is fixed or answered; no reviewer is rerun.
189
+ - An in-scope blocking finding from a routed reviewer prevents DONE until it is fixed or answered; only a behaviour fix is re-reviewed, once.
180
190
  - Every reviewer returning `REVISE` must include a concrete fix proposal.
181
191
 
182
192
  #### A griller's recommendations, and what they disqualify
@@ -185,7 +195,7 @@ Read `.qfai/assistant/rule/references/griller-recommendations.md` when a griller
185
195
 
186
196
  ### Review convergence
187
197
 
188
- A stage is reviewed once, and the author fixes or answers every finding with no re-review: `.qfai/assistant/rule/review-convergence.md`.
198
+ A stage is reviewed once, and the author fixes or answers every finding: `.qfai/assistant/rule/review-convergence.md`.
189
199
 
190
200
  ### Reviewer remit (in scope per stage)
191
201
 
@@ -43,7 +43,7 @@ asks nothing and records explicit assumptions in its stage report.
43
43
  asked for nor a blocker. Neither exhaustion nor a user's `proceed` / `done` answer is `--auto`, so these questions survive both. Under an explicit `--auto` the question is not asked at all — that run stops and names the missing input instead of inventing one. See `.qfai/assistant/rule/constitution.md` Article VI.
44
44
  - **Grilling questions are exempt too, and unbounded.** A question asked inside the interview `.agents/rules/grilling.md` defines spends no budget, and a session runs to its own end condition — for a user session an empty frontier and the user's confirmation, which is itself in the exempt class, and for a delegated one no open node and an answer to every critical decision — rather than to a count.
45
45
  An exhausted budget does not close one, because its questions never opened it. A
46
- session is entered deliberately: an invocation declares one and nothing else starts one, so a question asked outside a declared session is an ordinary clarification and spends a unit, whatever its subject.
46
+ session is entered deliberately, only as that rule's § Scope says, so a question asked outside a declared session is an ordinary clarification and spends a unit, whatever its subject.
47
47
  Under an explicit `--auto` the session asks nothing, a delegated one still adopts every decision that is not critical, and each node it could not settle is opened as a question in the register the stage reads. Each node, not each decision: a fact only
48
48
  the user holds cannot be settled from evidence either, and a fact declared undefaultable stops the run rather than taking a value nobody has. Where a document requires the field to hold something, write the defaulted value and label it an assumption beside that open question; what is forbidden is the assumption with no open question against it (Article X, rule 6).
49
49
 
@@ -118,16 +118,18 @@ including its `--auto` rule. What each bucket needs inside a workflow run is
118
118
 
119
119
  ## Canonical qfai Launcher (Mandatory)
120
120
 
121
- - **Launcher preflight — run once, before the first gate.** Confirm the project resolves qfai from its own dependencies. Either proof is sufficient:
121
+ - **Launcher preflight — run once, before the first `npx qfai` call**, a gate or a run's `workflow plan` alike. Confirm the project resolves qfai from its own dependencies. Either proof is sufficient:
122
122
  - **A local binary at `node_modules/.bin/qfai`.** The normal case for npm, pnpm and Yarn configured with `nodeLinker: node-modules`.
123
123
  - **A Plug'n'Play install.** Yarn Berry's default `nodeLinker: pnp` writes no `node_modules/.bin`, so the file check alone would report a correctly installed project as UNRUN forever. Accept it when the project has a `.pnp.cjs` / `.pnp.loader.mjs` at its root and lists `qfai` in `package.json` `dependencies` / `devDependencies`; `yarn exec qfai --help` exiting 0 is the direct
124
124
  confirmation.
125
125
 
126
- If neither proof holds, every gate below is UNRUN: report it as a blocker and stop. `package.json` says which fix applies:
126
+ If neither proof holds, every `npx qfai` call, gates included, is UNRUN: report it as a blocker and stop. `package.json` says which fix applies:
127
127
  - **`qfai` is listed in `dependencies` or `devDependencies`, but this checkout has no install.** A fresh clone or a new worktree has no `node_modules`, and `npx qfai` then resolves the copy of a parent directory, which may be an older version of another checkout. Run the project's install command in this checkout, then run the preflight again.
128
+ - **`node_modules` without `.bin/qfai`.** An interrupted install: run it again, then the preflight.
128
129
  - **`qfai` is not listed.** Install the dependency: `npm i -D qfai`, or the pnpm / yarn equivalent. `qfai` does not add itself to `package.json` on init, so a project bootstrapped with `npx qfai init` alone has no local dependency yet.
129
130
 
130
- - Once the preflight passes, invoke every gate through the launcher that proof established:
131
+ - In a checkout whose preflight passed, install again only when its `node_modules` is gone or a merge changed the lockfile or `package.json`.
132
+ - Once the preflight passes, invoke every `npx qfai` call, gates included, through the launcher that proof established:
131
133
  - local binary -> `npx qfai …`, which resolves to it. `node_modules/.bin/qfai …` is the same thing spelled out; prefer it when PATH reachability is uncertain.
132
134
  - Plug'n'Play -> `yarn exec qfai …` (equivalently `yarn qfai …`), which sets up the PnP environment for the child process. Do **not** fall back to `npx qfai` there: outside the PnP runtime it cannot see the workspace dependency and would fetch a remote copy instead.
133
135
 
@@ -135,7 +137,7 @@ including its `--auto` rule. What each bucket needs inside a workflow run is
135
137
 
136
138
  - Never launch a gate as a bare `qfai` command: qfai is a project dependency, not a global one, so that is `command not found` on a normal local install — and a gate that cannot run is a gate that silently passes.
137
139
  - The preflight is the guard, not a flag. `npx` runs "a command from a local **or remote** npm package": with nothing resolvable locally it downloads and runs one (non-interactive shells do this without prompting), and `npx --no-install` still executes a copy already sitting in the npx cache. Neither spelling can tell you the qfai that ran was this project's; only the preflight can.
138
- - If the launcher cannot be resolved at any point, the gate is UNRUN, not PASS. Report it as a blocker instead of completing the stage.
140
+ - If the launcher cannot be resolved at any point, that call, a gate included, is UNRUN, not PASS. Report it as a blocker instead of completing the stage.
139
141
  - The project's gate commands belong in the Standard commands section of `<paths.contractsDir>/tech.md` ([Standard Commands](#standard-commands-mandatory) below). The CI workflow generated by `npx qfai init` is the one deliberate exception: it runs before any project install can be assumed and must still be able to bootstrap.
140
142
 
141
143
  ## Standard Commands (Mandatory)
@@ -168,8 +170,8 @@ The `common-gate-run` step runs a gate from this section and records it.
168
170
 
169
171
  ## Policy check (mandatory)
170
172
 
171
- A run starts with the policy check, once, and does not continue affected work
172
- on stale policy. The contract is
173
+ A run, an exempt route aside, starts with the policy check once and does not
174
+ continue affected work on stale policy. The contract is
173
175
  `.qfai/assistant/rule/workflow.md#policy-check-mandatory`.
174
176
  The procedure — which files, what counts as incomplete, how a fact is filled
175
177
  and where an unverifiable one goes — is the `common-policy-check` step. A
@@ -255,6 +257,11 @@ stage, and no other.
255
257
  4. A finding another owner must repair is reported with that owner, not an
256
258
  edit made here.
257
259
 
260
+ At each existing stage boundary, read
261
+ `.qfai/assistant/skill/qfai-run/references/reached-step-observations.md`
262
+ for the reached-step comparison in the existing stage report. Preserve the
263
+ plan's scope, termination, pass-through and planned review.
264
+
258
265
  ### A pass-through step
259
266
 
260
267
  A step the plan marks `passThrough` always runs. It first reads what its
@@ -36,7 +36,8 @@ A downstream skill reads the UI definition in this order.
36
36
 
37
37
  4. **Prototype handoff** (`.qfai/prototype/final/handoff.json`, when a
38
38
  prototyping loop ran): the final prototype, procurement and implementation
39
- notes
39
+ notes, or, for a `restyle` handoff, its `liveRoutes` (compare in the running
40
+ app) and `entryPoints`
40
41
 
41
42
  The supplements and structure are required input: implementation adds no text the
42
43
  contract does not declare, and surface review compares the rendered text with them.
@@ -132,7 +132,8 @@ from the skills and baselines that cite it.
132
132
  ### Policy check (mandatory)
133
133
 
134
134
  Once per run, at the start, before the first stage. A stage invoked by name on
135
- its own is a run of its own.
135
+ its own is a run of its own. The ultra-light routes `answer-in-session` and
136
+ `run-operation`, each one step that changes no tracked file, run without it.
136
137
 
137
138
  1. Check the current story-tree policy files under `<paths.specsDir>`:
138
139
  - `01_policy/objective.md` and `01_policy/initiative.md`
@@ -77,7 +77,9 @@ before running `discussion-uiux`.
77
77
 
78
78
  Every UI-bearing pack carries `uiux/00_index.md`, `uiux/40_screen_contracts.md`
79
79
  and `uiux/50_review_input_bundle.md`. That is the whole family, on every
80
- UI-bearing surface including `cli`.
80
+ UI-bearing surface including `cli`. A pack that keeps the current root
81
+ `DESIGN.md` may declare `design_direction: inherit` instead
82
+ (`references/ui-bearing-playbook.md#inheriting-the-current-designmd`).
81
83
 
82
84
  A **cli-only** pack (`primary_surface: cli`, no visual `secondary_surfaces`
83
85
  entry) keeps all three sidecars, but the brand questions do not apply to it:
@@ -120,6 +122,12 @@ End the turn with a question listing the next actions, `/qfai-sdd` recommended,
120
122
 
121
123
  ## Default Autopilot Policy
122
124
 
125
+ The entries below govern the default user interview. Only an actual user
126
+ delegation recorded under
127
+ `.agents/rules/grilling.md#explicit-delegation-for-a-discussion` enables the
128
+ delegated `adopted` path. No-question mode alone does not enable it; missing
129
+ inputs and uncovered human decisions retain their ordinary blocking behavior.
130
+
123
131
  - ask-user:
124
132
  - every decision the interview puts on the frontier, over every topic in `references/discussion-coverage-checklist.md`. Running the interview is what this skill performs, so these are its own operations
125
133
  - the confirmation that closes the session
@@ -129,6 +137,7 @@ End the turn with a question listing the next actions, `/qfai-sdd` recommended,
129
137
 
130
138
  project_memory:
131
139
 
132
- - The nine-file mandatory output set is fixed; the UI-bearing sidecar family (00_index.md + 40_screen_contracts.md + 50_review_input_bundle.md) is required whenever the target is UI-bearing, cli included. Root DESIGN.md is not a discussion output: `/qfai-sdd`'s `common-design-md` step authors it from this pack.
140
+ - The nine-file mandatory output set is fixed; the UI-bearing sidecar family (00_index.md + 40_screen_contracts.md + 50_review_input_bundle.md) is required whenever the target is UI-bearing, cli included, except that a pack declaring `design_direction: inherit` may omit 40/50 and the registries under the conditions of `references/ui-bearing-playbook.md#inheriting-the-current-designmd`.
141
+ - Root DESIGN.md is not a discussion output: `/qfai-sdd`'s `common-design-md` step authors it from this pack.
133
142
  - Discussion is planner-first: never pick a single visual winner; carry exploration references as deviate-from inputs, not imitate-this.
134
143
  - Completion requires Disposition: open count = 0 in 11_OQ-Register.md; each deferred row there records its Resolution and names the next point at which it is decided.
@@ -7,6 +7,7 @@ Use this file for the full completion logic behind `/qfai-discussion`.
7
7
  - All Packs
8
8
  - UI-bearing Packs
9
9
  - CLI Packs
10
+ - Inheriting Packs
10
11
  - Non-UI Packs
11
12
  - Notes
12
13
 
@@ -21,14 +22,15 @@ Blocking for every pack, UI-bearing or not:
21
22
  `sources` / `best_practices` / `anti_patterns` / `reflection` are non-empty, every `source_id`
22
23
  resolves to a `sources[].id`, and at least one `reflection[]` entry records an apply decision.
23
24
  `npx qfai validate --profile discussion --fail-on error` reports `QFAI-RESEARCH-*` until it is.
24
- 2. The stage report's `## Grilling Session` row shows the session ended before authoring began,
25
- with `Ended` reading one of the three endings that authorize it:
25
+ 2. Every row of the stage report's `## Grilling Session` table has its `Ended at` before its own
26
+ `Authoring began` (for a reopened row, when authoring resumed), with `Ended` reading an authoring ending and its conditions met:
26
27
 
27
- | Ended | Also required |
28
- | ------------- | -------------------------------------------------------------------------------------------------------------- |
29
- | `confirmed` | No node open — the frontier empty **and** no fact lookup still running |
30
- | `user-closed` | Lookups finished, and every decision still open recorded as a labelled assumption |
31
- | `no-question` | Every node still open registered — a decision, and a fact only the user holds — so item 3 below is what blocks |
28
+ | Ended | Also required |
29
+ | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
30
+ | `confirmed` | No node open — the frontier empty **and** no fact lookup still running |
31
+ | `user-closed` | Lookups finished, and every decision still open recorded as a labelled assumption |
32
+ | `adopted` | Recorded explicit delegation, actual author rounds, no open node or lookup, all required inputs and applicable human authority; see `.agents/rules/grilling.md#explicit-delegation-for-a-discussion` |
33
+ | `no-question` | Every node still open registered — a decision, and a fact only the user holds — so item 3 below is what blocks |
32
34
 
33
35
  `stopped` never completes: the user ended the run, and a pack authored after that is the run
34
36
  doing what they told it not to.
@@ -44,6 +46,10 @@ Blocking for every pack, UI-bearing or not:
44
46
  covered, every open question registered. What is missing is that someone agreed to what is in
45
47
  them, and nothing downstream can tell.
46
48
 
49
+ Delegation is not a human confirmation or a completion receipt. The
50
+ ordinary research, pack, OQ, UI, schema, validation and independent-review
51
+ gates remain blocking. No reserved decision or missing fact is forced closed.
52
+
47
53
  The no-question row is the one to read carefully: `--auto` can reach nobody, so waiting for a
48
54
  confirmation would stop the run before it could write the open questions that are what block it.
49
55
  Item 3 below does that work instead — an open count above zero closes nothing.
@@ -53,7 +59,7 @@ Blocking for every pack, UI-bearing or not:
53
59
  Here rather than under one pack shape. It is what a no-question run is blocked by, and a run is
54
60
  `--auto` or not independently of whether it has a surface — listed only under `## UI-bearing
55
61
  Packs`, it let a non-UI `--auto` pack complete with its decisions still open.
56
- Item 7 below does that work instead — an open count above zero closes nothing.
62
+ All Packs item 3 does that work — an open count above zero closes nothing.
57
63
 
58
64
  ## UI-bearing Packs
59
65
 
@@ -73,7 +79,11 @@ Completion is blocked until all are true:
73
79
  5. `01_Context.md#Design Direction` names an adopted theme, what departs from it, and what stays
74
80
  ordinary. This is the one visual decision made here, because no later stage asks the user for
75
81
  it: `/qfai-sdd`'s `common-design-md` step authors tokens from whatever is recorded. A direction taken without the
76
- user carries `chosen_by: assumption` and an open entry in `11_OQ-Register.md`.
82
+ user carries `chosen_by: assumption`, never `user`. Its OQ stays open unless
83
+ an actual specifically applicable user instruction overrides the human-choice
84
+ requirement under the master's conditions; record that authority and the agents'
85
+ choice without falsifying the schema. General delegation alone does not waive
86
+ a genuinely reserved human input.
77
87
 
78
88
  Evaluation axes are global constants (4-step ordinal: weak / acceptable / strong /
79
89
  exceptional) and are NOT authored as discussion sidecars.
@@ -90,13 +100,25 @@ so conditions 1 and 5 above do not apply to it:
90
100
  `validators/designContractReadiness.ts` skips `QFAI-DCON-030`/`-033`/`-034` for it.
91
101
  - No design direction either: nothing downstream reads a theme for a surface that renders
92
102
  no tokens.
93
- - Conditions 2, 3, 4 and 7 apply unchanged: all three canonical `uiux/` sidecars, the
103
+ - UI-bearing items 2, 3 and 4 and All Packs item 3 apply unchanged: all three canonical `uiux/` sidecars, the
94
104
  full screen-contract schema, unranked exploration directions, and zero open OQs.
95
105
  - `route:` on a `cli` screen contract names the command invocation, not a web path, as the `cli` section of the UI-bearing playbook sets out.
96
106
  - No `prototyping.yaml`: `cli` is not a valid prototyping execution surface.
97
107
  - `primary_surface: cli` with a visual `secondary_surfaces` entry is NOT a cli-only pack —
98
108
  conditions 1 and 2 stay blocking for it.
99
109
 
110
+ ## Inheriting Packs
111
+
112
+ A pack whose classification declares `design_direction: inherit` keeps the current root
113
+ `DESIGN.md`, under the conditions the inheriting section of the UI-bearing playbook sets out:
114
+ it changes existing screens only and records no direction of its own.
115
+
116
+ - UI-bearing items 1 and 5 do not apply: no Trend Scan, no minimum count of competitive or
117
+ catalogue references, and no Design Direction. A reference it does fill in is still complete.
118
+ - From item 2, `uiux/00_index.md` stays required; `40_screen_contracts.md` and
119
+ `50_review_input_bundle.md` may be left out. A screen contract it does write keeps item 3.
120
+ - Items 4 and All Packs item 3 apply unchanged.
121
+
100
122
  ## Non-UI Packs
101
123
 
102
124
  - No uiux sidecars required
@@ -70,6 +70,23 @@ shadows:
70
70
  handoff to read for a cli-only target, leaving
71
71
  `<paths.contractsDir>/ui/*.yaml` as its UI contract input.
72
72
 
73
+ ### Inheriting the current DESIGN.md
74
+
75
+ A pack that changes existing screens and keeps the current root `DESIGN.md`
76
+ may declare `design_direction: inherit` in the classification block of
77
+ `01_Context.md`. It then records no Design Direction and owes no Trend Scan,
78
+ no minimum count of competitive or catalogue references, and no
79
+ `uiux/40_screen_contracts.md` or `uiux/50_review_input_bundle.md`. A reference
80
+ or screen contract it does write is still checked. An existing screen is one
81
+ whose `screen_id` equals the `screens[].id` of a UI contract under
82
+ `<paths.contractsDir>/ui/`. The declaration waives nothing in the Research
83
+ Summary of `04_Sources.md`: the research-first protocol runs for every pack.
84
+
85
+ The declaration is not allowed when the pack adds a screen or changes the
86
+ design direction. `npx qfai validate` reports `QFAI-CLASSIFICATION-011` when the
87
+ screen contracts name a `screen_id` no UI contract's `screens[].id` declares, or when
88
+ Design Direction records an `adopted_theme` or `brand_accent`.
89
+
73
90
  ### Trend Scan SSOT
74
91
 
75
92
  Trend Scan is **not** a sidecar file. Trend Scan lives at
@@ -60,7 +60,9 @@ Reject a trend when:
60
60
  ## Competitive Reference Registry Expectations
61
61
 
62
62
  Register at least `uiux.competitive_refs_min` references (default: 3) by
63
- repeating the `### Reference:` block in `04_Sources.md`. For each meaningful
63
+ repeating the `### Reference:` block in `04_Sources.md`. A pack whose
64
+ classification declares `design_direction: inherit` owes no count and no Trend
65
+ Scan, under the conditions of the inheriting section of the UI-bearing playbook. For each meaningful
64
66
  competitor or reference pattern, capture:
65
67
 
66
68
  - what was adopted
@@ -11,6 +11,7 @@ Classification determines whether UI/UX sidecar artifacts are required.
11
11
  - secondary_surfaces:
12
12
  - [optional]
13
13
  - classification_rationale: [Why this classification was chosen]
14
+ - design_direction: [new|inherit]
14
15
 
15
16
  Notes:
16
17
 
@@ -19,10 +20,12 @@ Notes:
19
20
  - `cli` is a UI-bearing surface. When classified as `cli`, set `ui_bearing: true`. `cli` is not a visual-prototyping surface, so a **cli-only** pack — `primary_surface: cli` with no `web`/`mobile`/`desktop`/`mixed` entry in `secondary_surfaces` — gets no root `DESIGN.md` (see `references/ui-bearing-playbook.md#visual-prototyping-surfaces-vs-cli`). A visual `secondary_surfaces` entry still requires one.
20
21
  - Prototyping **execution** surfaces (used in `prototyping.yaml`) are a strict subset: `web|mobile|desktop|mixed`.
21
22
  - `cli` and `non-ui` are classification-only values and never appear in `prototyping.yaml`. `/qfai-prototyping` rejects them, so a cli-only pack emits none.
23
+ - `design_direction: inherit` declares that the pack keeps the current root `DESIGN.md`: it changes existing screens only and sets no direction of its own. Such a pack owes no Trend Scan, no minimum count of competitive or catalogue references, and no `uiux/40_screen_contracts.md` or `uiux/50_review_input_bundle.md`.
24
+ - `npx qfai validate` refuses `inherit` when `uiux/40_screen_contracts.md` names a `screen_id` that matches no `screens[].id` of the project's UI contracts, or when Design Direction below records an `adopted_theme` or `brand_accent`. Use `new` for anything else.
22
25
 
23
26
  ## Design Direction
24
27
 
25
- Required when a classified surface is `web`, `mobile`, `desktop` or `mixed`. Omit for cli-only and non-ui.
28
+ Required when a classified surface is `web`, `mobile`, `desktop` or `mixed`. Omit for cli-only and non-ui, and when the classification declares `design_direction: inherit`.
26
29
 
27
30
  The user chooses this; `references/design-dna-intake.md` says how to put the choice to them. `/qfai-sdd`'s `common-design-md` step authors root `DESIGN.md` from it, and asks nothing further.
28
31
 
@@ -94,6 +94,8 @@ classification or an explicit user decision.
94
94
 
95
95
  ## Trend Scan
96
96
 
97
+ A pack whose `01_Context.md` declares `design_direction: inherit` owes no Trend Scan.
98
+
97
99
  ### user expectation / market norm
98
100
 
99
101
  #### Entry 1
@@ -235,7 +237,9 @@ registered is held to all three fields either way.
235
237
  UI-bearing packs must register at least `uiux.competitive_refs_min` complete
236
238
  references (default: 3). Three blocks are pre-seeded below; copy another
237
239
  `### Reference:` block for each reference beyond that, and delete any block you
238
- do not use only if the remaining count still meets the minimum.
240
+ do not use only if the remaining count still meets the minimum. A pack that
241
+ declares `design_direction: inherit` owes no count; a reference it registers is
242
+ still complete.
239
243
 
240
244
  Each `reference` is a resolvable URL, repository path, or `SRC-ID`. Use a
241
245
  competitor to identify what this product should differ from. State adopted and
@@ -22,7 +22,10 @@ brand-level intent layer at all.
22
22
  ## Completeness Rule
23
23
 
24
24
  All three required files above must be present for every UI-bearing pack.
25
- Partial generation is not permitted.
25
+ Partial generation is not permitted. The one exception: a pack whose
26
+ classification declares `design_direction: inherit` may leave out
27
+ `40_screen_contracts.md` and `50_review_input_bundle.md`, under the conditions of
28
+ `.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md#inheriting-the-current-designmd`.
26
29
 
27
30
  Root `DESIGN.md` is not one of them. `/qfai-sdd`'s `common-design-md` step authors it, and only
28
31
  on a visual-prototyping surface (`web`, `mobile`, `desktop`, `mixed`). A
@@ -24,11 +24,15 @@ shared, closes the asking, or stops the session, a delegated session adopts the
24
24
  griller's recommendations, or a run that may not ask writes every node left
25
25
  where its stage's gate reads it.
26
26
 
27
- **Which kind of session runs is the invoking stage's to say.** A stage whose
28
- work is the interview holds a user session; every other stage holds a delegated
29
- one, where a griller interviews the authors and the user is asked only a
30
- critical decision (`.agents/rules/grilling.md` § Two kinds of session). A stage
31
- that says nothing holds a delegated session.
27
+ **The invoking stage picks the session.** A stage whose work is the
28
+ interview holds a user session; any other holds a delegated one, where a griller
29
+ interviews the authors and only a critical decision reaches the user, and only
30
+ for a decision the repository cannot settle (`.agents/rules/grilling.md` § When
31
+ a session is held). Without one, no griller starts. A stage that says nothing
32
+ holds a delegated session where one is held. Read
33
+ `.agents/rules/grilling.md#explicit-delegation-for-a-discussion` before
34
+ delegating a user discussion; record actual authority. No-question alone is not
35
+ delegation.
32
36
 
33
37
  **The request bounds the tree** (`.agents/rules/grilling.md`). A decision whose
34
38
  only outcome is whether to add something the request did not ask for is left
@@ -53,7 +57,8 @@ least beyond the request.
53
57
  | A no-question mode is active | Run without asking; open every node left over as a question |
54
58
  | An ambiguity met while implementing | Not a session — stop under Article IX of the constitution |
55
59
 
56
- **A no-question mode silences the questions, not the session.** An invocation
60
+ **A no-question mode silences user questions, not the session.** The master's
61
+ explicit-delegation conditions permit author rounds. Otherwise, an invocation
57
62
  told not to ask — `--auto`, or whatever the host spells it as — settles what the
58
63
  evidence settles, dispatches the lookups, and opens every node left over as
59
64
  a question in the register the stage reads, so the stage cannot complete over
@@ -115,19 +120,17 @@ re-opens it.
115
120
  1. Recompute the frontier from what is now settled.
116
121
  2. Dispatch the fact lookups the remaining decisions wait on. Do not block the
117
122
  round on them.
118
- 3. Put the whole frontier at once, so the user sees what is being decided
119
- together.
123
+ 3. Put the whole frontier at once to the session's answerer: the user by
124
+ default, or authors in a qualifying delegated session.
120
125
  4. Read the answers, then return to step 1.
121
126
 
122
127
  Two questions never share a round when one depends on the other; the dependent
123
128
  one belongs to a later round. The next round is never written ahead of the
124
129
  answers it is computed from.
125
130
 
126
- **A no-question mode is read before any of this.** Where the invocation is told
127
- not to ask — `--auto`, or whatever the host spells it as — no round is put at
128
- all, so nothing below applies and the no-question section above governs. A mode
129
- that withholds the tool while still permitting questions is a different thing,
130
- and is the fallback's case.
131
+ **A no-question mode is read before any of this.** Agent rounds require
132
+ explicit delegation; otherwise the section above governs. A withheld tool with questions still
133
+ permitted uses the fallback.
131
134
 
132
135
  **Three things send a round to plain text**: the host has no structured question
133
136
  tool, the current mode withholds it while still permitting questions, or the
@@ -214,18 +217,22 @@ simple.
214
217
  **A delegated session has no condition 2**, because no user is there to
215
218
  confirm. A budget bounds its rounds: two, then every decision that is not
216
219
  critical takes the griller's recommendation — the ones the agents agreed on and
217
- the ones still open alike — and every critical decision goes to the user at
218
- once, without spending a round
220
+ the ones still open alike. An uncovered critical decision goes to the user
221
+ when asking is permitted, without spending a round
219
222
  (`.qfai/assistant/rule/review-convergence.md`). It ends `adopted` once
220
- no node is open and the user has answered every critical decision.
223
+ the master's conditions hold: no open node or lookup, required inputs present,
224
+ and actual authority for critical decisions. Record agent choices as agents'.
221
225
 
222
- **The budget ends the rounds, not the session.** While a critical decision is
223
- unanswered the session is still open: the user answers it, or ends the session
226
+ **The budget ends the rounds, not the session.** While a critical decision
227
+ lacks an actual answer or applicable recorded authorization, it stays open: the user answers it, or ends the session
224
228
  another way — or, under a no-question mode, the register write ends it
225
229
  `no-question`. How many went is a count a record carries, never an ending.
226
230
 
227
- **A session under a no-question mode cannot reach condition 2 either**, because
228
- there is a user and the mode forbids asking them. It ends when nothing on the
231
+ **Only a no-question session meeting the master's explicit-delegation
232
+ conditions ends `adopted`.**
233
+
234
+ **Any other session under a no-question mode cannot reach condition 2
235
+ either**, because the mode forbids asking the user. It ends when nothing on the
229
236
  frontier is still waiting: every decision the evidence settled is settled, and
230
237
  every one it did not is opened as a question where the stage's own gate reads it
231
238
  (`.qfai/assistant/rule/constitution.md` Article X, rule 6). The register
@@ -350,6 +357,9 @@ Every decision this skill meets falls in one of three named buckets.
350
357
  - grilling subject (the design to interrogate; a session has no default for
351
358
  what it is about)
352
359
 
360
+ Explicit delegation is not `auto-decide` or a fact or human answer.
361
+ These user-session entries remain the default.
362
+
353
363
  The asking is what this skill performs, so its `ask-user` entries are its own operations
354
364
  rather than an entry added to the prototype.
355
365
 
@@ -53,6 +53,7 @@ decisions belonging to different drafting roles.
53
53
  report lists it; nothing waits for the user to read it.
54
54
 
55
55
  A critical decision is the exception: agreement closes its node for the
56
- round, and only the user's answer settles it. Recording an agreed critical
57
- decision as settled is how a choice nobody with the standing made reaches a
58
- draft.
56
+ round, but only an actual user answer or an explicit applicable authorization
57
+ under `.agents/rules/grilling.md#explicit-delegation-for-a-discussion` settles
58
+ it. Record that authority separately from the agents' positions. Agreement
59
+ alone does not settle it, and an unknown user-held fact still stays open.