qfai 2.2.1 → 2.4.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.
Files changed (211) hide show
  1. package/README.md +37 -20
  2. package/assets/init/.claude/settings.json +35 -1
  3. package/assets/init/.codex/hooks.json +24 -0
  4. package/assets/init/.github/instructions/code-review.instructions.md +1 -1
  5. package/assets/init/.qfai/assistant/agent/architecture-reviewer.md +4 -4
  6. package/assets/init/.qfai/assistant/agent/fullstack-engineer.md +129 -0
  7. package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +76 -4
  8. package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +9 -5
  9. package/assets/init/.qfai/assistant/agent/requirements-reviewer.md +13 -3
  10. package/assets/init/.qfai/assistant/rule/agent-selection.md +22 -42
  11. package/assets/init/.qfai/assistant/rule/communication.md +1 -1
  12. package/assets/init/.qfai/assistant/rule/constitution.md +77 -242
  13. package/assets/init/.qfai/assistant/rule/drift-protocol.md +31 -165
  14. package/assets/init/.qfai/assistant/rule/references/asset-authoring.md +4 -3
  15. package/assets/init/.qfai/assistant/rule/references/codex-delegation.md +4 -4
  16. package/assets/init/.qfai/assistant/rule/references/gate-failure-autorepair.md +2 -2
  17. package/assets/init/.qfai/assistant/rule/references/placeholder-scan.md +2 -3
  18. package/assets/init/.qfai/assistant/rule/references/reviewer-findings.md +3 -3
  19. package/assets/init/.qfai/assistant/rule/references/worker-edit-boundary.md +15 -6
  20. package/assets/init/.qfai/assistant/rule/research-first-protocol.md +7 -6
  21. package/assets/init/.qfai/assistant/rule/review-convergence.md +7 -7
  22. package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +82 -66
  23. package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +19 -21
  24. package/assets/init/.qfai/assistant/rule/test-layers.md +1 -1
  25. package/assets/init/.qfai/assistant/rule/thinking.md +2 -2
  26. package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +5 -5
  27. package/assets/init/.qfai/assistant/rule/ui-procurement.md +1 -1
  28. package/assets/init/.qfai/assistant/rule/workflow.md +16 -16
  29. package/assets/init/.qfai/assistant/skill/qfai-configure/SKILL.md +27 -60
  30. package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +3 -17
  31. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/03_Story-Workshop.md +1 -2
  32. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/50_review_input_bundle.md +4 -3
  33. package/assets/init/.qfai/assistant/skill/qfai-grill/SKILL.md +9 -10
  34. package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +45 -58
  35. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/confirmation-sheet.md +71 -0
  36. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/delegated-session.md +35 -18
  37. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-record.md +3 -3
  38. package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +2 -18
  39. package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +53 -21
  40. package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +35 -2
  41. package/assets/init/.qfai/assistant/skill/qfai-maintain/SKILL.md +2 -5
  42. package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/SKILL.md +2 -15
  43. package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-guide.md +10 -14
  44. package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-placement.md +0 -7
  45. package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +6 -15
  46. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +76 -5
  47. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/handoff.md +2 -1
  48. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/iteration-loop.md +60 -5
  49. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +15 -6
  50. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +42 -11
  51. package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +8 -10
  52. package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +12 -7
  53. package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +4 -4
  54. package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +1 -1
  55. package/assets/init/.qfai/assistant/skill/qfai-sdd/SKILL.md +10 -25
  56. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/concrete-abstract-cycle.md +27 -29
  57. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +13 -3
  58. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-anti-patterns.md +36 -3
  59. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-authoring.md +8 -9
  60. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/requirements-decomposition.md +6 -6
  61. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +7 -7
  62. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +5 -5
  63. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +7 -7
  64. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +3 -3
  65. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +115 -199
  66. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +25 -25
  67. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +23 -113
  68. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-design-contract-normalization.md +2 -2
  69. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/ui-contract.sample.yaml +8 -7
  70. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/03_contract/tech.md +1 -0
  71. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions/page-NNNN.md +2 -2
  72. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +59 -31
  73. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/open-questions.md +15 -11
  74. package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +1 -14
  75. package/assets/init/.qfai/assistant/skill/qfai-verify/SKILL.md +2 -13
  76. package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +1 -1
  77. package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +19 -21
  78. package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +9 -11
  79. package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +2 -3
  80. package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +3 -4
  81. package/assets/init/.qfai/assistant/step/common-policy-check/STEP.md +1 -2
  82. package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +8 -7
  83. package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +7 -9
  84. package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +0 -2
  85. package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +43 -2
  86. package/assets/init/.qfai/assistant/step/discussion-research/STEP.md +0 -2
  87. package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +0 -2
  88. package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +1 -5
  89. package/assets/init/.qfai/assistant/step/implement-backport/STEP.md +0 -5
  90. package/assets/init/.qfai/assistant/step/implement-benchmark/STEP.md +0 -4
  91. package/assets/init/.qfai/assistant/step/implement-bisect/STEP.md +0 -5
  92. package/assets/init/.qfai/assistant/step/implement-credentials/STEP.md +0 -4
  93. package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +11 -18
  94. package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +0 -6
  95. package/assets/init/.qfai/assistant/step/implement-minimize/STEP.md +0 -5
  96. package/assets/init/.qfai/assistant/step/implement-oracle-parity/STEP.md +0 -6
  97. package/assets/init/.qfai/assistant/step/implement-procedure/STEP.md +1 -3
  98. package/assets/init/.qfai/assistant/step/implement-quarantine/STEP.md +0 -4
  99. package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +0 -4
  100. package/assets/init/.qfai/assistant/step/implement-regression-fix/STEP.md +2 -6
  101. package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +0 -6
  102. package/assets/init/.qfai/assistant/step/implement-revert/STEP.md +0 -4
  103. package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +5 -7
  104. package/assets/init/.qfai/assistant/step/implement-seam/STEP.md +0 -4
  105. package/assets/init/.qfai/assistant/step/implement-stress-harness/STEP.md +0 -5
  106. package/assets/init/.qfai/assistant/step/implement-sweep/STEP.md +0 -5
  107. package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +10 -18
  108. package/assets/init/.qfai/assistant/step/implement-test-fix/STEP.md +0 -5
  109. package/assets/init/.qfai/assistant/step/implement-tooling/STEP.md +0 -3
  110. package/assets/init/.qfai/assistant/step/maintain-edit/STEP.md +18 -21
  111. package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +4 -6
  112. package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +0 -2
  113. package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +106 -31
  114. package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +0 -2
  115. package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +18 -19
  116. package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +8 -11
  117. package/assets/init/.qfai/assistant/step/sdd-flow/STEP.md +25 -6
  118. package/assets/init/.qfai/assistant/step/sdd-gate/STEP.md +0 -1
  119. package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +6 -8
  120. package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +71 -82
  121. package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +0 -2
  122. package/assets/init/.qfai/assistant/step/triage-close/STEP.md +0 -2
  123. package/assets/init/.qfai/assistant/step/triage-cluster/STEP.md +0 -2
  124. package/assets/init/.qfai/assistant/step/triage-decompose/STEP.md +0 -2
  125. package/assets/init/.qfai/assistant/step/triage-dedupe/STEP.md +0 -2
  126. package/assets/init/.qfai/assistant/step/triage-handoff/STEP.md +0 -2
  127. package/assets/init/.qfai/assistant/step/triage-investigate/STEP.md +0 -2
  128. package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +29 -17
  129. package/assets/init/.qfai/assistant/step/triage-owned-cleanup/STEP.md +0 -2
  130. package/assets/init/.qfai/assistant/step/triage-request-info/STEP.md +0 -2
  131. package/assets/init/.qfai/assistant/step/triage-security-intake/STEP.md +0 -2
  132. package/assets/init/.qfai/assistant/step/verify-advisory/STEP.md +0 -2
  133. package/assets/init/.qfai/assistant/step/verify-change-note/STEP.md +0 -2
  134. package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +2 -6
  135. package/assets/init/.qfai/assistant/step/verify-context/STEP.md +7 -26
  136. package/assets/init/.qfai/assistant/step/verify-external/STEP.md +0 -2
  137. package/assets/init/.qfai/assistant/step/verify-manual/STEP.md +0 -2
  138. package/assets/init/.qfai/assistant/step/verify-qfai-gate/STEP.md +0 -2
  139. package/assets/init/.qfai/assistant/step/verify-release-notes/STEP.md +0 -2
  140. package/assets/init/.qfai/assistant/step/verify-repeat-run/STEP.md +0 -2
  141. package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +0 -2
  142. package/assets/init/root/.agents/rules/ai-readable-markdown.md +8 -1
  143. package/assets/init/root/.agents/rules/delegation-steering.md +69 -0
  144. package/assets/init/root/.agents/rules/grilling.md +81 -52
  145. package/assets/init/root/.agents/rules/minimal-implementation.md +5 -5
  146. package/assets/init/root/.agents/rules/reply-forms.md +191 -0
  147. package/assets/init/root/.agents/rules/session-feedback.md +104 -27
  148. package/assets/init/root/.agents/rules/user-questions.md +6 -1
  149. package/assets/init/root/.gitattributes +5 -6
  150. package/assets/init/root/AGENTS.md +4 -2
  151. package/assets/mdschema/story/03_contract/tech.mdschema.yml +1 -1
  152. package/assets/mdschema/story/decisions/page-NNNN.mdschema.yml +3 -3
  153. package/assets/mdschema/story/decisions.mdschema.yml +4 -4
  154. package/assets/mdschema/story/open-questions.mdschema.yml +3 -3
  155. package/assets/schemas/workflow/extraction.schema.json +0 -2
  156. package/dist/cli/index.cjs +3826 -3929
  157. package/dist/cli/index.cjs.map +1 -1
  158. package/dist/cli/index.mjs +3793 -3904
  159. package/dist/cli/index.mjs.map +1 -1
  160. package/dist/graph/cli.cjs +14 -2
  161. package/dist/graph/cli.cjs.map +1 -1
  162. package/dist/graph/cli.d.cts +1 -1
  163. package/dist/graph/cli.d.ts +1 -1
  164. package/dist/graph/cli.mjs +14 -2
  165. package/dist/graph/cli.mjs.map +1 -1
  166. package/dist/graph/hook.cjs.map +1 -1
  167. package/dist/graph/hook.mjs.map +1 -1
  168. package/dist/hook/turn-end.cjs +1022 -0
  169. package/dist/hook/turn-end.cjs.map +1 -0
  170. package/dist/hook/turn-end.d.cts +2 -0
  171. package/dist/hook/turn-end.d.ts +2 -0
  172. package/dist/hook/turn-end.mjs +998 -0
  173. package/dist/hook/turn-end.mjs.map +1 -0
  174. package/dist/index.cjs +3635 -4578
  175. package/dist/index.cjs.map +1 -1
  176. package/dist/index.d.cts +20 -21
  177. package/dist/index.d.ts +20 -21
  178. package/dist/index.mjs +3696 -4641
  179. package/dist/index.mjs.map +1 -1
  180. package/dist/process-qqX2Owgq.d.cts +18 -0
  181. package/dist/process-qqX2Owgq.d.ts +18 -0
  182. package/package.json +2 -2
  183. package/assets/defaults/agent-routing/_contract.yml +0 -77
  184. package/assets/defaults/agent-routing/common.yml +0 -14
  185. package/assets/defaults/agent-routing/qfai-discussion.yml +0 -57
  186. package/assets/defaults/agent-routing/qfai-implement.yml +0 -236
  187. package/assets/defaults/agent-routing/qfai-maintain.yml +0 -12
  188. package/assets/defaults/agent-routing/qfai-prototyping.yml +0 -48
  189. package/assets/defaults/agent-routing/qfai-sdd.yml +0 -56
  190. package/assets/defaults/agent-routing/qfai-triage.yml +0 -108
  191. package/assets/defaults/agent-routing/qfai-verify.yml +0 -92
  192. package/assets/defaults/agent-routing/skills.yml +0 -59
  193. package/assets/defaults/review-profiles.yml +0 -25
  194. package/assets/init/.qfai/assistant/agent/acceptance-test-engineer.md +0 -81
  195. package/assets/init/.qfai/assistant/agent/backend-engineer.md +0 -90
  196. package/assets/init/.qfai/assistant/agent/completion-reviewer.md +0 -88
  197. package/assets/init/.qfai/assistant/agent/delivery-planner.md +0 -85
  198. package/assets/init/.qfai/assistant/agent/devops-ci-engineer.md +0 -78
  199. package/assets/init/.qfai/assistant/agent/discovery-analyst.md +0 -81
  200. package/assets/init/.qfai/assistant/agent/doc-steward.md +0 -78
  201. package/assets/init/.qfai/assistant/agent/frontend-engineer.md +0 -94
  202. package/assets/init/.qfai/assistant/agent/orchestrator.md +0 -92
  203. package/assets/init/.qfai/assistant/agent/product-experience-architect.md +0 -101
  204. package/assets/init/.qfai/assistant/agent/qa-gatekeeper.md +0 -153
  205. package/assets/init/.qfai/assistant/agent/qa-strategist.md +0 -82
  206. package/assets/init/.qfai/assistant/agent/requirements-analyst.md +0 -96
  207. package/assets/init/.qfai/assistant/agent/solution-architect.md +0 -89
  208. package/assets/init/.qfai/assistant/agent/test-design-analyst.md +0 -132
  209. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/change-request.md +0 -52
  210. package/dist/process-C21nTvkT.d.cts +0 -12
  211. package/dist/process-C21nTvkT.d.ts +0 -12
@@ -1,10 +1,8 @@
1
1
  ---
2
2
  name: sdd-triage
3
3
  owner: qfai-sdd
4
- purpose: "Select the requirement source, classify each requirement against the story tree, and record the decisions, questions and approvals the later writes depend on."
4
+ purpose: "Select the requirement source, classify each requirement against the story tree, and settle the decisions and questions the later writes depend on."
5
5
  requires: []
6
- roles: [delivery-planner, requirements-analyst]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # sdd-triage
@@ -14,9 +12,9 @@ changes, and record that decision before anything depends on it.
14
12
 
15
13
  ## Reads
16
14
 
17
- - The applicable `.qfai/assistant/rule/` files and the routed agent cards.
15
+ - The applicable `.qfai/assistant/rule/` files.
18
16
  - `.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md`: the operation set,
19
- the approval boundary and the decision-row format.
17
+ the critical decisions and the decision-row format.
20
18
  - `.qfai/assistant/skill/qfai-sdd/references/requirements-decomposition.md` and
21
19
  `.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md`.
22
20
  - `.qfai/assistant/rule/change-classification.md`, the classification
@@ -37,7 +35,7 @@ no-argument batch, and its gate runs with `--flow BF-NNNN` for that flow.
37
35
  ## Stage 0: source and preflight
38
36
 
39
37
  1. Use the launcher established by
40
- `.qfai/assistant/rule/shared-skill-operating-baseline.md#canonical-qfai-launcher-mandatory`.
38
+ `.qfai/assistant/rule/shared-skill-operating-baseline.md#canonical-qfai-launcher`.
41
39
  Record its resolved package path and version in the SDD report. Check that
42
40
  the installed Stage 0 instructions support the procedure being used.
43
41
  2. Run `npx qfai sdd preflight` and use its `selectedInputPath`; a selected
@@ -67,56 +65,52 @@ only when the existing tree cannot represent it. Trace impact through BF → US
67
65
  AC → EX and every enforcing contract.
68
66
 
69
67
  Read the complete decision register using the Decision pages rules in the triage
70
- reference before allocating IDs or relying on an in-force decision. Append new
71
- rows only to the root table. Listed pages preserve the same row identity and
72
- Status permissions; an unreadable or incomplete register stops this stage.
73
- No automatic rotation is permitted. A physical relocation requires a separately
74
- adopted execution change request and reviewed raw-byte receipt.
75
-
76
- Record in `<paths.specsDir>/decisions.md` only what the user decided: each
77
- change request the user approved or declined, and each critical decision the
78
- user made. Record unresolved
79
- questions in `<paths.specsDir>/open-questions.md`. Every row has exactly
80
- `ID | Content | Approach | Status`. Append rows only; afterwards change only
81
- Status, except for explicit branch-added decision renumbering or the bounded
82
- published decision prefix recovery in the drift protocol. A change request
83
- Content begins `Change request:` and names the
84
- affected repository-relative paths; its Approach names the operation, the affected BF or US,
85
- its source as `discussion-<id>#REQ-NNNN` when that source exists, and who
86
- approved it, when, and the option chosen. A declined change request is appended at
87
- REJECTED, recording who declined it and when. When a later decision replaces a
88
- row, change that row's Status to `SUPERSEDED (by DEC-NNNN)`, naming the later
89
- row, or to `PARTLY SUPERSEDED (by DEC-NNNN)` when it replaces only part of it.
90
- When a decision answers an open question, change that row's Status to
91
- `DONE (by DEC-NNNN)`; when a decision makes what the row states wrong before the
92
- question is answered, change it to `SUPERSEDED (by DEC-NNNN)` and append a new
93
- row for the question that remains. Either names the decision row.
94
- A decision the agent took
95
- appends no row. Do not write a second decision-record
96
- directory or a retired story file. Listed pages are members of the same register, not a second decision home.
97
-
98
- For a published malformed branch-added decision, follow
99
- `.qfai/assistant/rule/drift-protocol.md#published-decision-prefix-recovery`
100
- before any write. A separate new target-specific approved recovery change
101
- request must bind the original source, base, ancestor, raw cell bytes, digests
102
- and exact prefix. Preserve ID, Content, Status and the entire original suffix.
103
- Inherited rows, unknown provenance and stale data stop recovery. A diagnostic
104
- suggestion does not authorize a rewrite. Record the pre-write checks and the
105
- existing validation result; this step provides no recovery executor.
106
-
107
- Put each approval-required operation to the user before anything depends on
108
- it. A request from the user in the session that names the operation and its
109
- effect is that approval: list the files in the announcement and ask nothing
110
- more. `--auto` asks no questions and never supplies its own approval; stop
111
- before the dependent write and report pending approvals.
68
+ reference before allocating IDs or relying on a decision. Append new rows only
69
+ to the root table, and never move a row between files; an unreadable or
70
+ incomplete register stops this stage.
71
+
72
+ Record in `<paths.specsDir>/decisions.md` only the decisions the user made,
73
+ approvals included, that pass the recording test at the top of the
74
+ `qfai-sdd` decisions template: hard to reverse, surprising to a reader without
75
+ context, and the result of a real trade-off. The stage report states every
76
+ other decision. Record unresolved questions in `<paths.specsDir>/open-questions.md`.
77
+ Every row has exactly `ID | Content | Approach`. A new row's ID is
78
+ `DEC-yyyymmddhhMMss` or `OQ-yyyymmddhhMMss`, the UTC time it is written.
79
+
80
+ - A decisions.md row is appended once, keeps its ID and is never removed or renumbered; only its wording may be restated.
81
+ - An option the user rejects is a row whose Content opens `Declined:`,
82
+ recording who declined it and when. It authorizes nothing.
83
+ - Name each requirement's source as `discussion-<id>#REQ-NNNN` when that
84
+ source exists, in the stage report and in any row the decision writes.
85
+ - A decision that refers to an earlier row is a new row whose Approach opens
86
+ with the earlier ID: `Supersedes DEC-…`, `Narrows DEC-…`, or `Reopens DEC-…`
87
+ for a declined option.
88
+ - When a decision settles an open question, the same change appends the
89
+ decision row, naming the OQ ID, and deletes the question row.
90
+ - To defer a question already written, delete its row and append a new one
91
+ whose Approach names the next decision point and says `Replaces OQ-…`.
92
+
93
+ A decision the agent took appends no row. Do not write a second
94
+ decision-record directory or a retired story file. Listed pages are members of
95
+ the same register, not a second decision home. Write each decision's result
96
+ where it lives as the triage reference's "Where a decision's result lives"
97
+ section says: the current state only, one statement per concept.
98
+
99
+ Put each critical decision to the user before anything depends on it, as the
100
+ triage reference's "Critical decisions and no-question mode" section lists
101
+ them. A request from the user in the session that names the operation and its
102
+ effect is that answer: list the files in the announcement and ask nothing
103
+ more. Make every other story-tree or contract change yourself and list it in
104
+ the stage report. `--auto` asks no questions and never supplies its own
105
+ answer; stop before the dependent write and report pending decisions.
112
106
 
113
107
  ### UI-bearing flows
114
108
 
115
109
  UI-bearing is a property of the affected flow, not of the files this run
116
110
  happened to edit. Resolve it from the source's surface classification and the UI
117
- contracts linked to that flow, and record it for each affected flow. Route
118
- `product-experience-architect` during design whenever either signal identifies
119
- the flow as UI-bearing. `product-surface-reviewer` joins a review in a route
111
+ contracts linked to that flow, and record it for each affected flow; the
112
+ session agent designs the screens of a UI-bearing flow itself.
113
+ `product-surface-reviewer` joins a review in a route
120
114
  only for a screen change, as `common-review-cycle`'s reviewer set says;
121
115
  `qfai-sdd` invoked by name keeps the reviewers its own `## Review` section names.
122
116
 
@@ -127,7 +121,7 @@ validator and the template it checks, a contract and the code, a record and
127
121
  what was built — decide which one owns the truth before any later step writes.
128
122
 
129
123
  1. Take the order the project has recorded, highest first:
130
- - an in-force `decisions.md` row that settles it;
124
+ - a `decisions.md` row that settles it and that no later row supersedes;
131
125
  - the story tree and the contracts, over the code, tests and prose that
132
126
  implement them, as Article IV of `.qfai/assistant/rule/constitution.md`
133
127
  states;
@@ -156,7 +150,10 @@ wired or retired:
156
150
  ## Settled mode
157
151
 
158
152
  A work order step with `mode: settled` applies a decision already recorded and
159
- approved: the one the work order's `settled` field or the request cites.
153
+ approved: the one the work order's `settled` field or the request cites. The
154
+ record is a `decisions.md` row, or the output of the step that branched here,
155
+ such as `branch: { outcome: contract-finding }`, which names the change, who
156
+ approved it and when.
160
157
 
161
158
  - Read that record and the part of the story tree it names. Do not reopen,
162
159
  grill again or widen what it settles.
@@ -165,8 +162,9 @@ approved: the one the work order's `settled` field or the request cites.
165
162
  changed criterion, a behaviour the record never mentions — stops the step.
166
163
  Write nothing, and report `branch: { outcome: outside-record }`, which moves
167
164
  the work to `decide-design`.
168
- - A citation that resolves to no in-force row stops the step: put the missing
169
- record to the operator as a question, and write nothing.
165
+ - A citation that resolves to neither a `decisions.md` row nor that branch output
166
+ stops the step: put the missing record to the operator as a question, and
167
+ write nothing.
170
168
 
171
169
  ## At a decision point
172
170
 
@@ -189,14 +187,16 @@ this step took it or the operator answered it.
189
187
 
190
188
  ## ID allocation
191
189
 
192
- Allocate each new ID from the highest ID of its kind in scope plus one,
193
- including retired IDs named in decisions rows. BF scope is project-wide; US
194
- scope is its BF; AC and EX scope is their US; a contract number's scope is every
195
- contract of every kind; BR scope is its contract, whose number the BR carries
196
- (`BR-0006-0001` belongs to `API-0006`); DEC scope is the complete ordered register; OQ scope is its own table.
197
- Empty scopes begin at `0001`, or `01` for AC and EX tails. Take each new ID from
190
+ Allocate each new BF, US, AC, EX or BR ID from the highest ID of its kind in
191
+ scope plus one, including retired IDs named in decisions rows. BF scope is
192
+ project-wide; US scope is its BF; AC and EX scope is their US; a contract
193
+ number's scope is every contract of every kind; BR scope is its contract, whose
194
+ number the BR carries (`BR-0006-0001` belongs to `API-0006`). Empty scopes begin
195
+ at `0001`, or `01` for AC and EX tails. Take each new ID from
198
196
  `npx qfai sdd next-id <kind> [<parent-ID>] --base <local-ref>` with a fetched
199
197
  base: it prints the number after the highest of the working tree and the base.
198
+ A decisions.md or open-questions.md row takes its timestamp ID instead, and
199
+ reads neither the base nor any pull request.
200
200
 
201
201
  Parallel branches pick the same next ID unless each reads the others first:
202
202
 
@@ -208,37 +208,26 @@ Parallel branches pick the same next ID unless each reads the others first:
208
208
  the IDs it adds from `git diff <base>...<head>`. Take the highest across the
209
209
  base, the working tree and those heads, plus one. Without a forge CLI, read
210
210
  the base alone.
211
- 2. When merging the base into the branch, check each ID the branch adds against
212
- the fetched base. The base's item keeps its ID; the branch renumbers its own
213
- item and every reference to it, then runs the gates again.
214
- - A DEC or OQ row: check before the merge, and renumber a DEC row with
215
- `npx qfai sdd renumber-decision` as the triage reference's ID allocation
216
- section says, or an OQ row and its references by hand. The union merge of `decisions.md` and `open-questions.md`
217
- would duplicate a colliding ID without a conflict.
218
- - Any other ID: check after the merge.
219
- 3. Keep the change-request row last in `decisions.md`, so the rows the branch
220
- added stay in ascending order at the end of the register, where the
221
- merge-time renumbering works from the lowest colliding one upward.
211
+ 2. When merging the base into the branch, check each such ID the branch adds
212
+ against the merged base. The base's item keeps its ID; the branch renumbers
213
+ its own item and every reference to it, then runs the gates again.
214
+ 3. A conflict confined to `decisions.md`, its pages or `open-questions.md` is
215
+ resolved by `git merge origin/<base>` run locally: the union merge keeps
216
+ both sides' rows. Push the merge. Renumber, edit or move no register row.
222
217
 
223
218
  ## Pre-draft grilling
224
219
 
225
220
  Before this step's first mutation, run the checkpoint for `Triage and records`
226
221
  in `.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md`. The
227
- orchestrator starts the griller, never a stage worker. Put each critical
222
+ session agent starts the griller, never a stage worker. Put each critical
228
223
  decision it holds to the user, and list each decision it adopted in the final
229
224
  report. Each later design-writing step runs its own checkpoint the
230
225
  same way.
231
226
 
232
- ## A change to the story tree
233
-
234
- A story-tree or contract file changes only on the user's approval, as
235
- `.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md#a-change-to-the-story-tree`
236
- sets out. Every later step of the stage writes under that rule.
237
-
238
227
  ## Gate
239
228
 
240
- `delivery-planner` accepts the affected-flow scope and approval state before any
241
- drafting step starts. Every requirement has a target, an approved or
242
- approval-free operation and a recorded impact path, as
229
+ The affected-flow scope and the answers to its critical decisions are recorded
230
+ before any drafting step starts. Every requirement has a target, an operation
231
+ the user decided or the agent took, and a recorded impact path, as
243
232
  `.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md#completion-of-triage`
244
233
  states.
@@ -3,8 +3,6 @@ name: triage-answer
3
3
  owner: qfai-triage
4
4
  purpose: "Answer the request's question, citing the documents, code or diagnosis evidence that shows the answer, without changing any tracked file."
5
5
  requires: []
6
- roles: [discovery-analyst]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-answer
@@ -3,8 +3,6 @@ name: triage-close
3
3
  owner: qfai-triage
4
4
  purpose: "Record how a request ended and every follow-up request it found, and close it without changing any tracked file."
5
5
  requires: []
6
- roles: [requirements-analyst]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-close
@@ -3,8 +3,6 @@ name: triage-cluster
3
3
  owner: qfai-triage
4
4
  purpose: "Group automated reports by the signature of their failure, and separate the groups caused by an environment from those caused by the product."
5
5
  requires: []
6
- roles: [devops-ci-engineer, frontend-engineer, backend-engineer]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-cluster
@@ -3,8 +3,6 @@ name: triage-decompose
3
3
  owner: qfai-triage
4
4
  purpose: "Split a request into child requests, each with its goal and the children it depends on, for triage-close to record as follow-ups."
5
5
  requires: []
6
- roles: [requirements-analyst, delivery-planner]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-decompose
@@ -3,8 +3,6 @@ name: triage-dedupe
3
3
  owner: qfai-triage
4
4
  purpose: "Find the item a request repeats or the one that replaced it, check that the request's premise still holds, and link the two."
5
5
  requires: []
6
- roles: [discovery-analyst]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-dedupe
@@ -3,8 +3,6 @@ name: triage-handoff
3
3
  owner: qfai-triage
4
4
  purpose: "Give a person the steps and preconditions of an operation only they can run, and record its result."
5
5
  requires: []
6
- roles: [devops-ci-engineer]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-handoff
@@ -3,8 +3,6 @@ name: triage-investigate
3
3
  owner: qfai-triage
4
4
  purpose: "Investigate a question the documents do not answer by reading internals, history and outside facts, without changing any tracked file."
5
5
  requires: []
6
- roles: [discovery-analyst, frontend-engineer, backend-engineer]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-investigate
@@ -3,8 +3,6 @@ name: triage-operate
3
3
  owner: qfai-triage
4
4
  purpose: "Carry out an operation the user named on work that is already done, observe its result, and change no tracked file."
5
5
  requires: []
6
- roles: [devops-ci-engineer]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-operate
@@ -34,14 +32,23 @@ operation. This step runs it and reports what happened.
34
32
  a new pull request starts when the user asked to see them pass. Poll no
35
33
  faster than the checks change. A failing check that a rerun does not clear
36
34
  stops the operation as a tracked change it needs, as below.
37
- 4. Run the operation, and observe its result: the merge commit, the deploy
35
+ 4. Never enable a host's auto-merge. Before a merge, merge the base branch into
36
+ the pull request's branch locally (`git merge origin/<base>`), push, and
37
+ wait for the checks that push starts; only then merge. A conflict the host
38
+ shows only in `decisions.md`, its pages or `open-questions.md` is resolved
39
+ the same way: the union merge completes it. Edit no register row except to
40
+ delete again a question row the union merge kept although one side deleted
41
+ it, committing that deletion before the push. Renumber no ID, and ask for no
42
+ new review of that merge. A conflict in any other file
43
+ stops the operation as a tracked change it needs.
44
+ 5. Run the operation, and observe its result: the merge commit, the deploy
38
45
  status, the closed item.
39
- 5. After a merge, check the merged result: the target branch holds the merge
46
+ 6. After a merge, check the merged result: the target branch holds the merge
40
47
  commit, and, when the user asked to see them pass or the project's policy
41
48
  requires it, the checks the project runs on that branch pass. A failure
42
49
  there is reported as `needs-change`, naming the merge commit, since the
43
50
  merge itself stands.
44
- 6. Report the result as observed, including a failure.
51
+ 7. Report the result as observed, including a failure.
45
52
 
46
53
  Before creating an issue, search the tracker for a matching open issue with the
47
54
  forge CLI's issue search and key terms from the title. When one request files
@@ -54,8 +61,8 @@ rate limit, report that and leave creating the issue to the user, unless the
54
61
  instruction allows creating it without the search. The report names the issue
55
62
  matched or created.
56
63
 
57
- An operation that needs a tracked file to change, such as a conflict to resolve
58
- or a failing check to fix, stops here: report the outcome `needs-change` with an
64
+ An operation that needs a tracked file to change, such as a conflict outside the
65
+ registers to resolve or a failing check to fix, stops here: report the outcome `needs-change` with an
59
66
  extraction of the request as the change it needs, naming the artifacts that
60
67
  change, so the decision rules route it again. Change nothing to make the
61
68
  operation pass. List each follow-up in the final report, since no close step
@@ -63,9 +70,10 @@ follows.
63
70
 
64
71
  For a request to take one base change into several branches, first check each
65
72
  branch with `git merge-tree --write-tree <branch> <base>`, which writes
66
- nothing. A branch that merges cleanly is a branch update the user asked for:
67
- update it here as an operation, merged and pushed only as the instruction
68
- names. A branch with conflicts is not an operation: report `needs-change` with
73
+ nothing. A branch that merges cleanly, or whose only conflicts lie in
74
+ `decisions.md`, its pages or `open-questions.md`, is a branch update the user
75
+ asked for: update it here as an operation, merged and pushed only as the
76
+ instruction names. A branch with any other conflict is not an operation: report `needs-change` with
69
77
  one extraction for each such branch,
70
78
  `{ intent: order, qualifiers: [meaning-preserving] }` naming the artifacts of
71
79
  its conflicting paths, so the decision rules plan `resolve-conflicts` for
@@ -88,11 +96,14 @@ request, or the version edit alone.
88
96
  2. Follow the project's release documents with the version the user named,
89
97
  never another. Start the preparation they name, such as a workflow that
90
98
  sets the version and opens the release pull request. An instruction that
91
- covers only the version edit stops once that edit is made. A release edit
92
- the documents make by hand is a tracked change: report `needs-change` with
93
- an extraction of it as an `order` naming the `release` artifact, and carry
94
- the quoted instruction and the named version into that extraction's
95
- request, so the next plan makes the edit under the same instruction.
99
+ covers only the version edit stops once that edit is made. A release-notes
100
+ or changelog edit the documents make by hand is a tracked change: report
101
+ `needs-change` with an extraction of it as an `order` naming the `release`
102
+ artifact and the `release-notes` signal, and carry the quoted instruction
103
+ and the named version into that extraction's request, so the next plan
104
+ makes the edit under the same instruction. Any other hand-made release
105
+ edit, such as a version bump the preparation does not make, has no route:
106
+ report it as a blocker that names the edit.
96
107
  3. Review the release pull request as the project's review rules say, and
97
108
  merge it only when they allow, waiting for its checks as above. Where the
98
109
  release documents make the merge the instruction for the tag, such as a
@@ -112,12 +123,13 @@ request, or the version edit alone.
112
123
 
113
124
  ## What it writes
114
125
 
115
- - No file git tracks.
126
+ - No file git tracks, apart from the base changes a merge of the base brings
127
+ in.
116
128
  - The operation, its result and any `needs-change` outcome, in the report.
117
129
 
118
130
  ## Gate
119
131
 
120
132
  The stage worker confirms the operation was one the user named, its result is
121
- recorded as observed, and no tracked file changed. For a release, it also
133
+ recorded as observed, and no tracked file changed beyond a merge of the base. For a release, it also
122
134
  confirms the delegation is quoted with its source, and that no tag, publication
123
135
  or publication approval came from the agent.
@@ -3,8 +3,6 @@ name: triage-owned-cleanup
3
3
  owner: qfai-triage
4
4
  purpose: "Remove explicitly authorized, current-task temporary directories inside this repository, then verify their absence without changing tracked files or the index."
5
5
  requires: []
6
- roles: [devops-ci-engineer]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-owned-cleanup
@@ -3,8 +3,6 @@ name: triage-request-info
3
3
  owner: qfai-triage
4
4
  purpose: "Ask for the facts a request is missing as structured questions, and record the deadline for the answers."
5
5
  requires: []
6
- roles: [discovery-analyst]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-request-info
@@ -3,8 +3,6 @@ name: triage-security-intake
3
3
  owner: qfai-triage
4
4
  purpose: "Take a vulnerability report in privately, set its severity, and hold back anything that would publish it before the fix is ready."
5
5
  requires: []
6
- roles: [solution-architect]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # triage-security-intake
@@ -3,8 +3,6 @@ name: verify-advisory
3
3
  owner: qfai-verify
4
4
  purpose: "Prepare the security advisory, the CVE request and the coordinated disclosure for a fixed vulnerability, without publishing any of them."
5
5
  requires: []
6
- roles: [orchestrator, doc-steward]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # verify-advisory
@@ -3,8 +3,6 @@ name: verify-change-note
3
3
  owner: qfai-verify
4
4
  purpose: "Write the changelog entry, the migration steps and the breaking changes a user needs for this change, or show that none is needed."
5
5
  requires: []
6
- roles: [orchestrator, doc-steward]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # verify-change-note
@@ -3,8 +3,6 @@ name: verify-commit
3
3
  owner: qfai-verify
4
4
  purpose: "Commit the authorized tracked changes after verification is recorded, keeping pending CI visible."
5
5
  requires: []
6
- roles: [orchestrator]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # verify-commit
@@ -23,8 +21,7 @@ The last step of a change route. It records the run's work as a local commit.
23
21
 
24
22
  - One commit on the current branch holding the run's changes.
25
23
  - In the final report: the commit, and the files it holds. In the
26
- `resolve-conflicts` route, also each renumber commit the run made, including
27
- one left after `git reset --merge ORIG_HEAD`.
24
+ `resolve-conflicts` route, also each renumber the merge holds, as old → new.
28
25
 
29
26
  A local commit records work; it does not establish formal verification. Push,
30
27
  pull request creation and merge each need a user instruction or project policy
@@ -90,8 +87,7 @@ When the delegated check reports, `verify-repo-gate`'s `## After CI` updates the
90
87
 
91
88
  - The commit exists and holds exactly the tracked deliverables the run wrote,
92
89
  or, in the `resolve-conflicts` route, the merge the run concluded. The final
93
- report names each renumber commit the run made, including one left after
94
- `git reset --merge ORIG_HEAD`.
90
+ report names each renumber the merge holds.
95
91
  - Pending CI is named in the report with the target, current head, run ID or URL
96
92
  when available, check, observed outcome and counts, blocker and resume condition.
97
93
  If no run exists, say so; invent no run ID or result.
@@ -3,7 +3,6 @@ name: verify-context
3
3
  owner: qfai-verify
4
4
  purpose: "Load what the change is verified against, fix the run's scope, and give every gate in that scope a command."
5
5
  requires: []
6
- roles: [orchestrator, delivery-planner, qa-strategist]
7
6
  ---
8
7
 
9
8
  # verify-context
@@ -15,7 +14,7 @@ sure each gate the scope needs has a command. It runs no gate.
15
14
 
16
15
  In this order when unsure:
17
16
 
18
- 1. The rules this step cites, the routed cards under `.qfai/assistant/agent/`,
17
+ 1. The rules this step cites, the cards under `.qfai/assistant/agent/`,
19
18
  and the project context under `.qfai/spec/01_policy/` and
20
19
  `.qfai/spec/03_contract/`.
21
20
  2. `.qfai/spec/decisions.md`. When no decision applies, say "not applicable".
@@ -38,34 +37,16 @@ contracts and evidence only.
38
37
 
39
38
  ## Procedure
40
39
 
41
- 1. Write the plan, or delegate it (below), and read the inputs.
40
+ 1. Write the plan and read the inputs.
42
41
  2. Analyse the project (below).
43
42
  3. Fix the scope (below) and state it in the stage report.
44
43
  4. Give each gate in scope a command (below).
45
44
 
46
- ## Delegation
45
+ ## The plan
47
46
 
48
- Use `.qfai/assistant/rule/agent-selection.md` as the routing SSOT.
49
-
50
- - Routed phase: `plan` (`delivery-planner`, `qa-strategist`).
51
-
52
- ```text
53
- Role: delivery-planner
54
- Task title: Create an execution plan and DoD
55
- Goal: sequence quality gates and evidence work
56
- Inputs:
57
- - current change context
58
- - required gates
59
- Constraints:
60
- - evidence-first
61
- - no self-approval
62
- Return:
63
- - phases + risks + DoD
64
- ```
65
-
66
- The gate runner and the report writer draft the execution evidence and the
67
- verification summary. The orchestrator consolidates their output and presents
68
- it to the user.
47
+ The session agent writes the execution plan and its definition of done itself:
48
+ the phases, the risks and the gates in order, evidence first. It runs the gates,
49
+ drafts the verification summary and presents it to the user.
69
50
 
70
51
  ## Project analysis
71
52
 
@@ -115,7 +96,7 @@ technical obstacle stops the work under Article IX of
115
96
  Before any gate runs, check that each gate in scope has an entry in
116
97
  `.qfai/spec/03_contract/tech.md#standard-commands-copy-paste`, the section
117
98
  `common-gate-run` reads. Discover and record a missing one as
118
- `.qfai/assistant/rule/shared-skill-operating-baseline.md#standard-commands-mandatory`
99
+ `.qfai/assistant/rule/shared-skill-operating-baseline.md#standard-commands`
119
100
  says. A gate still without an entry is UNRUN, and no PASS is claimed over it.
120
101
 
121
102
  ## For the rest of the run
@@ -3,8 +3,6 @@ name: verify-external
3
3
  owner: qfai-verify
4
4
  purpose: "Ask the reporter, a device or a production-like environment to confirm the fix, and record the answer."
5
5
  requires: []
6
- roles: [orchestrator, qa-strategist]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # verify-external
@@ -3,8 +3,6 @@ name: verify-manual
3
3
  owner: qfai-verify
4
4
  purpose: "Follow a written test plan on each environment it names, record each check's result, and record each defect found as a follow-up request."
5
5
  requires: []
6
- roles: [orchestrator, qa-strategist, devops-ci-engineer]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # verify-manual
@@ -3,8 +3,6 @@ name: verify-qfai-gate
3
3
  owner: qfai-verify
4
4
  purpose: "Run the QFAI validation of the run's scope and record what it finds."
5
5
  requires: [common-gate-run]
6
- roles: [orchestrator, devops-ci-engineer]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # verify-qfai-gate
@@ -3,8 +3,6 @@ name: verify-release-notes
3
3
  owner: qfai-verify
4
4
  purpose: "Draft the release notes for a release from the changes it contains."
5
5
  requires: []
6
- roles: [orchestrator, doc-steward]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # verify-release-notes
@@ -3,8 +3,6 @@ name: verify-repeat-run
3
3
  owner: qfai-verify
4
4
  purpose: "Show that the named tests pass on a recorded number of consecutive runs, which is also what lifts a quarantine."
5
5
  requires: [common-gate-run]
6
- roles: [orchestrator, devops-ci-engineer]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # verify-repeat-run
@@ -3,8 +3,6 @@ name: verify-repo-gate
3
3
  owner: qfai-verify
4
4
  purpose: "Run the repository's quality gates, repair failures until every gate in scope passes, and report the result and write the verdict."
5
5
  requires: [common-gate-run]
6
- roles: [orchestrator, devops-ci-engineer]
7
- routing-profile: default
8
6
  ---
9
7
 
10
8
  # verify-repo-gate
@@ -26,6 +26,12 @@ The body excludes YAML frontmatter; a character is one Unicode code point.
26
26
  A file near a limit is a signal to move a section out, not to pack more onto
27
27
  each line.
28
28
 
29
+ `qfai validate --profile verify` warns on a `SKILL.md` over 500 lines, on a
30
+ skill whose `description` and `when_to_use` exceed 1,536 characters, which a
31
+ host truncates, and on an `AGENTS.md` over 32 KiB, which a host stops reading.
32
+ It also warns on emphasis in capitals, such as `MUST` or `NEVER`, outside code
33
+ and quotations.
34
+
29
35
  ## 2. Budget what a task loads
30
36
 
31
37
  Splitting helps only when the pieces are loaded on demand. A piece that is
@@ -85,7 +91,8 @@ them, and nothing says which.
85
91
  ## Held by
86
92
 
87
93
  Review, and any check a project adds for itself. `npx qfai doctor` reports a
88
- Markdown assistant asset over the line limit in § 1.
94
+ Markdown assistant asset over the line limit in § 1, and a `SKILL.md` body over
95
+ the character limit.
89
96
 
90
97
  ## Related
91
98