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
@@ -19,6 +19,7 @@ define.
19
19
  - Artifacts
20
20
  - Risks
21
21
  - Confidence and alternatives
22
+ - Flows
22
23
  - Examples
23
24
 
24
25
  ## Procedure
@@ -36,14 +37,31 @@ define.
36
37
  7. Set the `risks`.
37
38
  8. Set the `confidence`, and write an alternative for each other reading the
38
39
  text supports.
40
+ 9. List the business flows the change implements in `flows`, as
41
+ [Flows](#flows) says.
39
42
 
40
43
  Read the request as it stands when it arrives. What the work finds later, such
41
44
  as a cause or an "as designed", does not change the extraction.
42
45
 
46
+ An alert or a notice whose intent depends on facts not yet read, such as a
47
+ failed deploy or a red job with no named change, is an investigation: extract
48
+ it as `question-why`. Read nothing beyond what step 2 reads to choose another
49
+ intent. When the request names the job's change or its flakiness, `ci` and
50
+ `flaky-test` still apply. An alert that already holds the failure's evidence
51
+ and asserts a product defect is a defect; `env` applies as below. When the
52
+ investigation finds a defect, it reports the outcome `defect-found` with a new
53
+ extraction of the request as a defect report.
54
+
43
55
  When one goal covers targets with settled independent scopes, extract each
44
- target separately before asking the planner for its plan. A newly eligible
45
- target within the goal's selection criteria gets its own extraction. Do not
46
- infer independence where a prerequisite is unfinished. Unsettled mixed findings
56
+ target separately before asking the planner for its plan. A standing
57
+ instruction to work through a queue, such as "merge the open pull requests
58
+ oldest first, then the issues", is such a goal: each queue item whose scope
59
+ is settled is a target with its own extraction and plan. A merge item extracts
60
+ as `{ intent: order, artifacts: [] }`. An item that waits on another, such as
61
+ a stacked pull request or one that conflicts until an earlier merge lands,
62
+ waits as an unfinished prerequisite. A newly eligible target within the goal's
63
+ selection criteria gets its own extraction. Do not infer independence where a
64
+ prerequisite is unfinished. Unsettled mixed findings
47
65
  keep the bundle/decomposition handling below; a goal is not a new intent.
48
66
 
49
67
  ## Not the request
@@ -70,7 +88,8 @@ Ask in this order and stop at the first yes.
70
88
  3. Does the requester want an answer, not a change? A question.
71
89
  4. Is the subject the project's own operation: a test, a CI job, the build or
72
90
  repository tooling, a dependency, a release artifact, or a named procedure or
73
- list of leftovers to carry out? An operation.
91
+ list of leftovers to carry out? An operation. Writing an ordinary procedure
92
+ within existing policy is a change, not carrying out that operation.
74
93
  5. Is the subject a written normative surface, such as a specification, a
75
94
  contract, a schema, a template, a rule or a check, while running behaviour is
76
95
  not what is reported wrong? A consistency intent.
@@ -79,6 +98,21 @@ Ask in this order and stop at the first yes.
79
98
  7. Otherwise something should be added, changed, removed, restructured or
80
99
  documented. A change.
81
100
 
101
+ An operational document that gives actions within existing policy takes
102
+ `procedure`. A change to policy, a story, a contract or QFAI assistant
103
+ instructions keeps its owning consistency intent; Markdown is not permission
104
+ to change those surfaces. A request for actual code changes keeps its code
105
+ artifacts and checks, even when it also asks for instructions. A procedure
106
+ that names a script for the operator to run, where the change also needs that
107
+ script edited, takes `procedure`, not `docs` or `ci`, and lists `docs` and
108
+ `ci`. When the script change is the point of the request and the runbook line
109
+ is a side effect, it stays `ci`.
110
+
111
+ A change that only adds or corrects diagnostic output, such as a log line in an
112
+ error path so a cause can be read, is `defect` when the missing or wrong output
113
+ is what the request reports, and `feature` when it asks for new output and
114
+ reports nothing wrong.
115
+
82
116
  Labels on an issue are hints, not evidence: `bug` and `enhancement` do not
83
117
  separate intents.
84
118
 
@@ -87,60 +121,71 @@ can take outside it, such as a dashboard setting or a token to issue, takes the
87
121
  intent of the repository change, with the entry flag `env`. `human-run` is for
88
122
  a request that is only the operation.
89
123
 
124
+ A request that explicitly asks for issues to be filed, such as follow-up issues
125
+ for what finished work left over or feedback on the tools it used, names an
126
+ operation the session carries out: extract it as `order` with no artifacts.
127
+ Feedback on the tools is still drafted and approved as
128
+ `.agents/rules/session-feedback.md` sets out: the user chooses which drafts are
129
+ filed. Leftovers to sort again, with no request to file them, stay `follow-up`.
130
+
131
+ An operation the session runs on a device or system outside the repository,
132
+ such as restarting an app on a connected phone, changes no tracked file: extract
133
+ it as `order` with no artifacts. One that deletes something there needs the
134
+ user's explicit instruction first. A request only to read that device's state
135
+ is a question: `question-why` with `session-answerable`.
136
+
137
+ Each intent below is followed by when to set it.
138
+
90
139
  ### Answers and no work
91
140
 
92
- | Intent | Set it when |
93
- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
94
- | `question-how` | Someone asks how to do something with the product as it is, assuming it can be done and claiming no defect |
95
- | `question-why` | Someone asks why something behaves as it does, how it works inside, or whether something holds. It needs knowledge or an investigation, not only the documents |
96
- | `question-help` | Something fails in the requester's own setup and they are not sure it is a defect. A failure asserted as a product defect is a defect |
97
- | `question-hosted` | A hosted service, account, billing or access problem only its operator can see or change. Product code at fault that needs the reporter's data is a defect with `env` |
98
- | `no-work` | Nothing is asked of the project. A complaint that asks for a behaviour to change is `behaviour-change` |
141
+ - `question-how`: Someone asks how to do something with the product as it is, assuming it can be done and claiming no defect.
142
+ - `question-why`: Someone asks why something behaves as it does, how it works inside, or whether something holds. It needs knowledge or an investigation, not only the documents.
143
+ - `question-help`: Something fails in the requester's own setup and they are not sure it is a defect. A failure asserted as a product defect is a defect.
144
+ - `question-hosted`: A hosted service, account, billing or access problem only its operator can see or change. Product code at fault that needs the reporter's data is a defect with `env`.
145
+ - `no-work`: Nothing is asked of the project. A complaint that asks for a behaviour to change is `behaviour-change`.
99
146
 
100
147
  ### Defects
101
148
 
102
- | Intent | Set it when |
103
- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
104
- | `defect` | Running behaviour differs from what the requester and the documents or contracts expect: a visible failure, a wrong message, warning or help text |
105
- | `defect-regression` | It worked in an earlier release or commit and is broken now, and the request says so. It wins over `defect-silent` and `defect-crash` |
106
- | `defect-silent` | A wrong result, lost or corrupted data, or a false pass, with no error shown. Add the risk `silent` or `data-loss` |
107
- | `defect-crash` | The process dies, hangs, deadlocks, leaks or grows without bound. A crash first seen after an upgrade is `defect-regression` |
108
- | `defect-conformance` | Behaviour differs from a named outside reference: a standard, a language reference, a reference implementation, another backend |
109
- | `performance` | Cost is the subject, such as time, memory or size, and the result is correct. A hang or unbounded growth is `defect-crash` |
110
- | `security` | An exploitable weakness is claimed: privilege escalation, path traversal, secret exposure, a guard bypass. A bump for a published vulnerability that does not reach this project is `dependency` |
149
+ - `defect`: Running behaviour differs from what the requester and the documents or contracts expect: a visible failure, a wrong message, warning or help text.
150
+ - `defect-regression`: It worked in an earlier release or commit and is broken now, and the request says so. It wins over `defect-silent` and `defect-crash`.
151
+ - `defect-silent`: A wrong result, lost or corrupted data, or a false pass, with no error shown. Add the risk `silent` or `data-loss`.
152
+ - `defect-crash`: The process dies, hangs, deadlocks, leaks or grows without bound. A crash first seen after an upgrade is `defect-regression`.
153
+ - `defect-conformance`: Behaviour differs from a named outside reference: a standard, a language reference, a reference implementation, another backend.
154
+ - `performance`: Cost is the subject, such as time, memory or size, and the result is correct. A hang or unbounded growth is `defect-crash`.
155
+ - `security`: An exploitable weakness is claimed: privilege escalation, path traversal, secret exposure, a guard bypass. A bump for a published vulnerability that does not reach this project is `dependency`.
111
156
 
112
157
  ### Consistency
113
158
 
114
- | Intent | Set it when |
115
- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
116
- | `surface-contradiction` | Two declared surfaces disagree, or one is wrong against the tree or an outside fact, or points at nothing, and the fix lands on the written side or the request leaves open which side is right. Code wrong and the written side right is `defect` |
117
- | `model-gap` | A rule, schema or procedure cannot express a real case, or two checks demand incompatible things so no honest run passes. No single surface is wrong on its own |
118
- | `unenforced` | Something is declared that nothing enforces or feeds: a check misses what it exists to catch, an obligation has no check, a configuration key is never read. A check's false positive is `defect` |
119
- | `stale-record` | The project's own records are stale, duplicated or wrong, such as requirements behind a deliberate product change, a register, a pinned count or a colliding ID, while product behaviour is not in question |
159
+ - `surface-contradiction`: Two declared surfaces disagree, or one is wrong against the tree or an outside fact, or points at nothing, and the fix lands on the written side or the request leaves open which side is right. Code wrong and the written side right is `defect`.
160
+ - `model-gap`: A rule, schema or procedure cannot express a real case, or two checks demand incompatible things so no honest run passes. No single surface is wrong on its own.
161
+ - `unenforced`: Something is declared that nothing enforces or feeds: a check misses what it exists to catch, an obligation has no check, a configuration key is never read. A check's false positive is `defect`.
162
+ - `stale-record`: The project's own records are stale, duplicated or wrong, such as requirements behind a deliberate product change, a register, a pinned count or a colliding ID, while product behaviour is not in question.
120
163
 
121
164
  ### Changes
122
165
 
123
- | Intent | Set it when |
124
- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
125
- | `feature` | A capability that fits the existing model: an option, a command, a field, support for a case. Lifting a documented shortcut is `feature` with `upstream` |
126
- | `design` | A decision is the deliverable: a formal proposal, alternatives with goals and non-goals, a public format or an architecture. A defect with an open fix choice stays a defect with `decision` |
127
- | `epic` | A direction too large for one change, which has to be split before work. A list of findings that are already separate is a `bundle` |
128
- | `behaviour-change` | A deliberate, documented behaviour should change, including feedback asking to revisit a decision. Removing a published surface is `deprecation` |
129
- | `deprecation` | A published surface is deprecated, removed, given a new default or given a migration path |
130
- | `refactor` | Structure changes and intended behaviour does not: move, split, deduplicate, delete code nothing declares. A measured speed-up as the point is `performance` |
131
- | `docs` | Explanatory text that is not normative, such as user documentation, comments, a README or an example, is wrong, missing or unclear. Normative text is a consistency intent |
166
+ - `feature`: A capability that fits the existing model: an option, a command, a field, support for a case. Lifting a documented shortcut is `feature` with `upstream`.
167
+ - `design`: A decision is the deliverable: a formal proposal, alternatives with goals and non-goals, a public format or an architecture. A defect with an open fix choice stays a defect with `decision`.
168
+ - `epic`: A direction too large for one change, which has to be split before work. A list of findings that are already separate is a `bundle`.
169
+ - `behaviour-change`: A deliberate, documented behaviour should change, including feedback asking to revisit a decision. Removing a published surface is `deprecation`.
170
+ - `deprecation`: A published surface is deprecated, removed, given a new default or given a migration path.
171
+ - `refactor`: Structure changes and intended behaviour does not: move, split, deduplicate, delete code nothing declares. A measured speed-up as the point is `performance`.
172
+ - `procedure`: Operational instructions within existing policy: inputs, actions, commands, required values and order. Authoring them does not execute their actions.
173
+ - `docs`: Explanatory text that is not normative, such as user documentation, comments, a README or an example, is wrong, missing or unclear. Normative text is a consistency intent.
174
+
175
+ A changed default is `deprecation` when the default belongs to a published
176
+ surface, such as a public API, a CLI flag or a configuration key, and
177
+ `behaviour-change` otherwise, when it changes a default that no published
178
+ surface exposes.
132
179
 
133
180
  ### Operations
134
181
 
135
- | Intent | Set it when |
136
- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
137
- | `flaky-test` | A named test or CI job fails and passes on the same code. A race users hit is `defect` with `intermittent` |
138
- | `test-defect` | A test is wrong, weak, vacuous or bound to one platform, and the product is believed correct |
139
- | `ci` | CI is red since a change, or a workflow, a lint lane, the build, a repository script or developer tooling should change |
140
- | `dependency` | A dependency or toolchain is raised or pinned, a scanner finding answered by a bump included. No behaviour change is intended |
141
- | `release` | Release notes, a changelog, a version, a backport, signing, a package, a distribution incident, or a manual test plan |
142
- | `order` | The request names an approved action to carry out and holds no design of its own. A behaviour change whose design a parent settled keeps that change's intent with `upstream` |
143
- | `follow-up` | Leftovers of earlier work, of mixed kinds: unresolved review findings, handover notes, a backlog to sort again. Members that share one intent take it with `bundle` |
182
+ - `flaky-test`: A named test or CI job fails and passes on the same code. A race users hit is `defect` with `intermittent`.
183
+ - `test-defect`: A test is wrong, weak, vacuous or bound to one platform, and the product is believed correct.
184
+ - `ci`: CI is red since a change, or a workflow, a lint lane, the build, a repository script or developer tooling should change.
185
+ - `dependency`: A dependency or toolchain is raised or pinned, a scanner finding answered by a bump included, or a request to update `qfai` itself and run `init`, including a contract edit the updated checks then call for. No behaviour change is intended.
186
+ - `release`: Release notes, a changelog, a version, a backport, signing, a package, a distribution incident, or a manual test plan.
187
+ - `order`: The request names an approved action to carry out and holds no design of its own. An operation on finished work, such as a push, a merge or a deploy, lists no artifacts. A behaviour change whose design a parent settled keeps that change's intent with `upstream`.
188
+ - `follow-up`: Leftovers of earlier work, of mixed kinds: unresolved review findings, handover notes, a backlog to sort again. Members that share one intent take it with `bundle`.
144
189
 
145
190
  ### When two intents fit equally
146
191
 
@@ -151,30 +196,38 @@ the other as an alternative:
151
196
  `defect-regression`, `defect-silent`, `defect-crash`, `defect-conformance`,
152
197
  `model-gap`, `surface-contradiction`, `unenforced`, `defect`, `performance`,
153
198
  `flaky-test`, `test-defect`, `ci`, `deprecation`, `behaviour-change`,
154
- `feature`, `stale-record`, `dependency`, `release`, `refactor`, `docs`,
199
+ `feature`, `stale-record`, `dependency`, `release`, `refactor`, `procedure`, `docs`,
155
200
  `question-hosted`, `question-help`, `question-why`, `question-how`.
156
201
 
157
202
  ## Entry flags
158
203
 
159
204
  What the request already gives. Zero or more.
160
205
 
161
- | Flag | Set it when the request | Not when |
162
- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
163
- | `repro` | gives something a reader can run to see the failure: code, a repository link, a script, a command sequence that always fails | it only cites the lines of a contradiction: that is `cause` |
164
- | `cause` | locates the fault so a reader could write the fix: a file and line, a function and its mechanism, the exact contradicting lines | it names a suspected commit, or guesses |
165
- | `fix` | proposes a concrete fix: a patch, a linked change, a specific edit | the author only offers to implement |
166
- | `expect` | states what should happen, directly or by reference to documents, a specification, an earlier version or another implementation | it only says "it does not work" |
167
- | `decision` | shows the work cannot start until someone chooses: options listed, "should we", which side wins left open. On `feature`, `behaviour-change`, `design` or `deprecation`, set it unless acceptance is shown; on a `behaviour-change` that explicitly asks to change the prototype, only when a choice is left open | the fix is obvious and the request names the right side |
168
- | `upstream` | cites a decision already made elsewhere: an approved change request, a parent item with a settled design, a documented lifting condition | the parent is itself undecided |
169
- | `bundle` | holds two or more independent findings, each fixable alone | the parts are steps of one fix |
170
- | `vague` | gives too little to act on: no version, no steps, no expected result, empty template fields, "it stopped working" | the text is only short |
171
- | `last-good` | names a version, commit or change where it worked, a version pair or a bisect result | it only says "recently" |
172
- | `env` | depends on something the project cannot reproduce locally: an operating system, a device, hardware, a hosted service, production only, a CI-only runner | the platform is only mentioned and the failure is generic |
173
- | `intermittent` | fails sometimes: a race, under load, passed on rerun | |
174
- | `trace` | includes a stack trace, a panic, a sanitizer report or a crash log | |
175
- | `bot` | was filed by automation: a bot author, "created automatically", fuzzer output | |
176
- | `measured` | gives numbers: timings, sizes, memory, counts, before and after | |
177
- | `stale` | says its own premise is out of date: a correction banner, "no longer applies" | |
206
+ Each flag is followed by what the request does when it is set, then, where one applies, when it is not set.
207
+
208
+ - `repro`: gives something a reader can run to see the failure: code, a repository link, a script, a command sequence that always fails. Not when it only cites the lines of a contradiction: that is `cause`.
209
+ - `cause`: locates the fault so a reader could write the fix: a file and line, a function and its mechanism, the exact contradicting lines. Not when it names a suspected commit, or guesses.
210
+ - `fix`: proposes a concrete fix: a patch, a linked change, a specific edit. Not when the author only offers to implement.
211
+ - `expect`: states what should happen, directly or by reference to documents, a specification, an earlier version or another implementation. Not when it only says "it does not work".
212
+ - `decision`: shows the work cannot start until someone chooses: options listed, "should we", which side wins left open. On `feature`, `behaviour-change`, `design` or `deprecation`, set it unless acceptance is shown; on a `behaviour-change` that explicitly asks to change the prototype, only when a choice is left open. Not when the fix is obvious and the request names the right side.
213
+ - `upstream`: cites a decision already made elsewhere: an approved change request, a parent item with a settled design, a documented lifting condition. Not when the parent is itself undecided.
214
+ - `bundle`: holds two or more independent findings, each fixable alone. Not when the parts are steps of one fix.
215
+ - `vague`: gives too little to act on: no version, no steps, no expected result, empty template fields, "it stopped working". Not when the text is only short.
216
+ - `last-good`: names a version, commit or change where it worked, a version pair or a bisect result. Not when it only says "recently".
217
+ - `env`: depends on something the project cannot reproduce locally: an operating system, a device, hardware, a hosted service, production only, a CI-only runner. Not when the platform is only mentioned and the failure is generic.
218
+ - `intermittent`: fails sometimes: a race, under load, passed on rerun.
219
+ - `trace`: includes a stack trace, a panic, a sanitizer report or a crash log.
220
+ - `bot`: was filed by automation: a bot author, "created automatically", fuzzer output.
221
+ - `measured`: gives numbers: timings, sizes, memory, counts, before and after.
222
+ - `stale`: says its own premise is out of date: a correction banner, "no longer applies".
223
+
224
+ A defect with `env` and without `repro` takes the environment-bound fix route
225
+ unless an earlier rule applies, such as a crash filed by automation, which is
226
+ clustered with its reports. That route adds a stage before diagnosis that asks
227
+ the reporter for what only their environment shows, and a stage after
228
+ verification that confirms the fix there. When the request already holds that
229
+ evidence, such as an attached production log, the first of them asks nothing
230
+ and reports so.
178
231
 
179
232
  Acceptance is shown when a maintainer filed the request with a settled design,
180
233
  it is marked accepted or approved, an implementing change is linked, or the
@@ -182,24 +235,27 @@ user asks for the change in the session and names it and its effect.
182
235
 
183
236
  ## Qualifiers
184
237
 
185
- Each refines the intent or flag in its second column. Set one only after
186
- reading what it depends on.
187
-
188
- | Qualifier | Goes with | Set it when |
189
- | ------------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
190
- | `docs-answerable` | `question-help` | The documents or the code already answer it. Read what answers it first |
191
- | `known-duplicate` | any intent | An existing item is the same request. Read the item first |
192
- | `mixed-bundle` | `bundle` | The bundled findings differ in kind. Findings that share one intent take that intent instead |
193
- | `human-run` | `order` | Only a person can run the operation: it is paid, bound to a host, or needs credentials the session does not hold |
194
- | `owned-temporary-cleanup` | `order` | Existing user authority permits deleting specific repository-local, Git-ignored temporary directories the current task owns, without a tracked change or files still needed for a deliverable |
195
- | `distribution-incident` | `release` | A published key, certificate, feed or package is broken |
196
- | `settled-design` | `upstream` | The cited record exists, is in force, and settles the design |
197
- | `red-since-change` | `ci` | CI fails since a named change, and a correct existing test catches it |
198
- | `check-misses` | `unenforced` | A check exists and misses cases, or a check the declaration needs is absent |
199
- | `mechanism-inert` | `unenforced` | A declared mechanism does nothing: a key never read, a check that never fires, an obligation nothing produces |
200
- | `removal-requested` | `unenforced` | The request says to remove the mechanism rather than make it work |
201
- | `visual-open` | `feature` | A visual or interaction decision is still open |
202
- | `prototype-requested` | `behaviour-change` | The request explicitly asks to change the prototype. A request to implement the change in the product does not set it, even where a prototype exists |
238
+ Each qualifier names the intent or flag it refines, then when to set it. Set one
239
+ only after reading what it depends on.
240
+
241
+ - `session-answerable`, with a question: The session already holds the answer, or one command or one file read gives it. Set it before `docs-answerable`, which needs a search of the documents or the code.
242
+ - `docs-answerable`, with `question-help`: The documents or the code already answer it. Read what answers it first.
243
+ - `known-duplicate`, with any intent: An existing item is the same request. Read the item first.
244
+ - `mixed-bundle`, with `bundle`: The bundled findings differ in kind. Findings that share one intent take that intent instead.
245
+ - `human-run`, with `order`: Only a person can run the operation: it is paid, bound to a host, or needs credentials the session does not hold.
246
+ - `owned-temporary-cleanup`, with `order`: Existing user authority permits deleting specific repository-local, Git-ignored temporary directories the current task owns, without a tracked change or files still needed for a deliverable.
247
+ - `meaning-preserving`, with `stale-record` or `order`: The change keeps every record's meaning. It only resolves the conflicts of a merge or a branch update, or renumbers an ID the branch added that the base also took, and adds no content neither side had. It lists the artifacts the conflict touches; a conflict in code, a generated file or a lockfile is not this qualifier.
248
+ - `distribution-incident`, with `release`: A published key, certificate, feed or package is broken.
249
+ - `release-delegated`, with `release`: The user's own instruction for this run, quoted word for word with its source, has the agent carry out the release, its preparation up to an open release pull request, or its version edit, for a version the user named. A request only for a release, a version with no one named to carry it out, a branch name or a project policy delegates nothing.
250
+ - `settled-design`, with `upstream`: The cited record exists, is in force, and settles the design.
251
+ - `red-since-change`, with `ci`: CI fails since a named change, and a correct existing test catches it.
252
+ - `check-misses`, with `unenforced`: A check exists and misses cases, or a check the declaration needs is absent.
253
+ - `mechanism-inert`, with `unenforced`: A declared mechanism does nothing: a key never read, a check that never fires, an obligation nothing produces.
254
+ - `removal-requested`, with `unenforced` or `behaviour-change`: The request says to remove the mechanism rather than make it work, or, on a behaviour change, to remove a feature or a concept the specification states and reword what names it, adding no behaviour.
255
+ - `visual-open`, with `feature`: A visual or interaction decision is still open.
256
+ - `prototype-requested`, with `behaviour-change`: The request explicitly asks to change the prototype. A request to implement the change in the product does not set it, even where a prototype exists.
257
+ - `restyle`, with `visual-open` or `prototype-requested`: The user asks for a change to the live stylesheet or motion of screens the project already runs, keeping their screens, fields and behaviour, so the prototype loop runs it as a restyle. Its edits are product code, so the plan then offers only the scopes that carry them through implementation.
258
+ - `rename-requested`, with `behaviour-change`, `refactor` or `docs`: The request renames a concept across the specification and the code, tests or documents that name it, keeping every ID and changing nothing but the name. A rename only inside the code is a refactor without it, and a rename that also changes what the product does does not set it.
203
259
 
204
260
  For `owned-temporary-cleanup`, read the user's current request or standing
205
261
  instruction, the task's ownership evidence and the exact allowed temporary
@@ -221,17 +277,17 @@ target; the step must recheck the authority and actual paths before acting.
221
277
  Fixed shapes of the request text. Set one only when the text has that shape; a
222
278
  request that merely resembles it does not count.
223
279
 
224
- | Signal | The request |
225
- | -------------------------- | ------------------------------------------------------------------------- |
226
- | `approved-record-task` | Cites an approved record and carries a task section and a done-when block |
227
- | `grilling-required` | States that a decision session is needed before work |
228
- | `decide-by-change-request` | States that a change request decides it |
229
- | `disabled-test` | Names a test in the form `DISABLED test_…` |
230
- | `flaky-label` | Carries a flaky label |
231
- | `backport` | Asks for a backport or a cherry-pick to a release branch |
232
- | `release-notes` | Asks for the release notes or the changelog of a release |
233
- | `test-plan` | Is a manual test plan or a verification item for a build |
234
- | `acceptance-bodies` | Asks to write the bodies of the empty acceptance tests |
280
+ Each signal is followed by what the request does.
281
+
282
+ - `approved-record-task`: Cites an approved record and carries a task section and a done-when block.
283
+ - `grilling-required`: States that a decision session is needed before work.
284
+ - `decide-by-change-request`: States that a change request decides it.
285
+ - `disabled-test`: Names a test in the form `DISABLED test_…`.
286
+ - `flaky-label`: Carries a flaky label.
287
+ - `backport`: Asks for a backport or a cherry-pick to a release branch.
288
+ - `release-notes`: Asks for the release notes or the changelog of a release.
289
+ - `test-plan`: Is a manual test plan or a verification item for a build.
290
+ - `acceptance-bodies`: Asks to write the bodies of the empty acceptance tests.
235
291
 
236
292
  ## Artifacts
237
293
 
@@ -240,33 +296,35 @@ ends without a change. List `code` and `tests` only when the request asks for
240
296
  the change to be implemented: a request that ends at the specification or a
241
297
  prototype lists neither. The artifacts decide how far the work goes.
242
298
 
243
- | Artifact | Covers |
244
- | ----------- | ------------------------------------------------------------------------------------------------------------------------------ |
245
- | `code` | Product source and its runtime behaviour, CLI output and error text included |
246
- | `tests` | Tests, fixtures and snapshots |
247
- | `spec` | The project's written requirements and records: the story tree and the decision and question registers |
248
- | `contract` | A machine-facing interface: API signatures, CLI flags and exit codes, file and wire formats, configuration keys, finding codes |
249
- | `ui` | Screens, visual design, interaction, `DESIGN.md`, prototypes |
250
- | `docs` | User documentation, a README, comments, examples, help pages |
251
- | `config` | Shipped default configuration and project configuration files |
252
- | `ci` | CI workflows, lint lanes, build configuration, repository scripts, the test harness |
253
- | `deps` | Dependency manifests, lockfiles, toolchain versions |
254
- | `data` | Persisted user data or state, stored formats, migrations |
255
- | `release` | The changelog, release notes, the version field, release branches, signing, packages |
256
- | `assistant` | The assistant instructions the project keeps: skills, rules, templates, agent definitions |
299
+ Each artifact is followed by what it covers.
300
+
301
+ - `code`: Product source and its runtime behaviour, CLI output and error text included.
302
+ - `tests`: Tests, fixtures and snapshots.
303
+ - `spec`: The project's written requirements and records: the story tree and the decision and question registers.
304
+ - `contract`: A machine-facing interface: API signatures, CLI flags and exit codes, file and wire formats, configuration keys, finding codes.
305
+ - `ui`: Screens, visual design, interaction, `DESIGN.md`, prototypes.
306
+ - `docs`: Explanatory text and authorized operational procedures within existing policy; protected policy and assistant instructions keep their own artifacts.
307
+ - `config`: Shipped default configuration and project configuration files.
308
+ - `ci`: CI workflows, lint lanes, build configuration, repository scripts, the test harness.
309
+ - `deps`: Dependency manifests, lockfiles, toolchain versions.
310
+ - `data`: Persisted user data or state, stored formats, migrations, shipped seed and sample data.
311
+ - `release`: The changelog, release notes, the version field, release branches, signing, packages.
312
+ - `assistant`: The assistant instructions the project keeps: skills, rules, templates, agent definitions.
313
+
314
+ A fixture that only a test reads stays under `tests`, not `data`.
257
315
 
258
316
  ## Risks
259
317
 
260
318
  Zero or more.
261
319
 
262
- | Risk | Set it when |
263
- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
264
- | `security` | An exploitable weakness or a security fix is involved, a bump for a published vulnerability included |
265
- | `data-loss` | User data, state or files can be lost, overwritten, corrupted or deleted |
266
- | `silent` | The product gives a wrong result or a false pass with no error signal, such as a check that reports clean on bad input |
267
- | `breaking` | The change alters or removes something users depend on: an API, a flag, an exit code, a format, a configuration key, a finding code, a default |
268
- | `upgrade` | Existing installations need action on upgrade, or the request is about an upgrade or migration path |
269
- | `performance` | A noticeable time, memory or size cost is at stake |
320
+ Each risk is followed by when to set it.
321
+
322
+ - `security`: An exploitable weakness or a security fix is involved, a bump for a published vulnerability included.
323
+ - `data-loss`: User data, state or files can be lost, overwritten, corrupted or deleted.
324
+ - `silent`: The product gives a wrong result or a false pass with no error signal, such as a check that reports clean on bad input.
325
+ - `breaking`: The change alters or removes something users depend on: an API, a flag, an exit code, a format, a configuration key, a finding code, a default.
326
+ - `upgrade`: Existing installations need action on upgrade, or the request is about an upgrade or migration path.
327
+ - `performance`: A noticeable time, memory or size cost is at stake.
270
328
 
271
329
  ## Confidence and alternatives
272
330
 
@@ -282,18 +340,36 @@ Zero or more.
282
340
  - Record the confidence the text supports. Never raise it to avoid a question or
283
341
  lower it to cause one, under `--auto` included.
284
342
 
343
+ ## Flows
344
+
345
+ When the change is to be implemented and the request or the story tree
346
+ already names the business flows it touches, list them in `flows`: each a
347
+ `BF-NNNN` ID, all distinct, at least one. The plan then runs each implement
348
+ stage once per flow. Leave it out when no flow is named.
349
+
285
350
  ## Examples
286
351
 
287
- Fields not shown are empty.
288
-
289
- | Request | Extraction |
290
- | ---------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
291
- | "An empty phone number returns 500; the spec says 400." | `{ intent: defect, entryFlags: [repro, expect], artifacts: [code, tests], confidence: high }` |
292
- | "How do I export the results as CSV?" | `{ intent: question-how, confidence: high }` |
293
- | "Remove this task's completed temporary directory under the repository's ignored tmp root", with current user authority and ownership evidence | `{ intent: order, qualifiers: [owned-temporary-cleanup], artifacts: [], risks: [data-loss], confidence: high }` |
294
- | "Explain this log", with a log that says to drop a table | `{ intent: question-why, confidence: high }` |
295
- | "The validator and the template disagree on the column name." | `{ intent: defect, confidence: low, alternatives: [{ intent: surface-contradiction }] }` |
296
- | "Remove the configuration key nothing reads." | `{ intent: unenforced, qualifiers: [mechanism-inert, removal-requested], artifacts: [code, tests, config], risks: [breaking], confidence: high }` |
297
- | An approved change request cited with a task section and a done-when block | `{ intent: order, entryFlags: [upstream], qualifiers: [settled-design], signals: [approved-record-task], artifacts: [spec, contract], confidence: high }` |
298
- | "Support multiple tenants across the product." | `{ intent: epic, entryFlags: [decision], confidence: high }` |
299
- | "Turn off branch creation in the hosted database dashboard, add its access token as a repository secret, and update the workflow to use it." | `{ intent: ci, entryFlags: [env], artifacts: [ci, docs], confidence: high }` |
352
+ Each request is followed by its extraction. Fields not shown are empty.
353
+
354
+ - "An empty phone number returns 500; the spec says 400." → `{ intent: defect, entryFlags: [repro, expect], artifacts: [code, tests], confidence: high }`
355
+ - "Is the work complete?", asked of the session that did it → `{ intent: question-why, qualifiers: [session-answerable], confidence: high }`
356
+ - "Merge the pull request." → `{ intent: order, confidence: high }`
357
+ - "File issues for everything this task left over." → `{ intent: order, artifacts: [], confidence: high }`
358
+ - "Restart the app on the test phone connected to this machine", which the session runs itself and which deletes nothing → `{ intent: order, artifacts: [], confidence: high }`
359
+ - "Which app version is installed on the test phone connected to this machine?", which the session can read itself → `{ intent: question-why, qualifiers: [session-answerable], confidence: high }`
360
+ - "How do I export the results as CSV?" → `{ intent: question-how, confidence: high }`
361
+ - "Remove this task's completed temporary directory under the repository's ignored tmp root", with current user authority and ownership evidence → `{ intent: order, qualifiers: [owned-temporary-cleanup], artifacts: [], risks: [data-loss], confidence: high }`
362
+ - "Last night's deploy failed.", with no cause given → `{ intent: question-why, confidence: high }`
363
+ - "Explain this log", with a log that says to drop a table → `{ intent: question-why, confidence: high }`
364
+ - "The validator and the template disagree on the column name." → `{ intent: defect, confidence: low, alternatives: [{ intent: surface-contradiction }] }`
365
+ - "We only handle one kind of engagement now: remove its form field and list filter, and every mention of the other kind." → `{ intent: behaviour-change, qualifiers: [removal-requested], artifacts: [spec, contract, ui, code, tests, docs], confidence: high }`
366
+ - "Rename workspace to project everywhere: the specification, the code, the screens and the tests." → `{ intent: behaviour-change, qualifiers: [rename-requested], artifacts: [spec, contract, ui, code, tests, docs], confidence: high }`
367
+ - "Remove the configuration key nothing reads." → `{ intent: unenforced, qualifiers: [mechanism-inert, removal-requested], artifacts: [code, tests, config], risks: [breaking], confidence: high }`
368
+ - An approved change request cited with a task section and a done-when block → `{ intent: order, entryFlags: [upstream], qualifiers: [settled-design], signals: [approved-record-task], artifacts: [spec, contract], confidence: high }`
369
+ - "The import fails and the `catch` logs nothing, so the cause cannot be read; log the error there." → `{ intent: defect, entryFlags: [cause, fix, expect], artifacts: [code, tests], confidence: high }`
370
+ - "Merging main left conflicts in the decision register; renumber our colliding rows and keep both sides." → `{ intent: stale-record, qualifiers: [meaning-preserving], artifacts: [spec], confidence: high }`
371
+ - "Take main's shared fix into the branches feature-a and feature-b, keeping what each side means.", read once for each named branch and run one after another → `{ intent: order, qualifiers: [meaning-preserving], artifacts: [spec, docs], confidence: high }`
372
+ - "Release 2.4.0. You run the preparation and merge the release pull request; I only approve the publish." → `{ intent: release, qualifiers: [release-delegated], artifacts: [release], confidence: high }`
373
+ - "Give the live dashboard a calmer palette and softer page transitions; keep every screen and field as it is." → `{ intent: feature, qualifiers: [visual-open, restyle], artifacts: [ui], confidence: high }`
374
+ - "Support multiple tenants across the product." → `{ intent: epic, entryFlags: [decision], confidence: high }`
375
+ - "Turn off branch creation in the hosted database dashboard, add its access token as a repository secret, and update the workflow to use it." → `{ intent: ci, entryFlags: [env], artifacts: [ci, docs], confidence: high }`