qfai 2.2.0 → 2.3.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.
- package/README.md +60 -23
- package/assets/defaults/workflows/bump-dependency.yml +4 -1
- package/assets/defaults/workflows/decide-design.yml +5 -1
- package/assets/defaults/workflows/rename-concept.yml +30 -0
- package/assets/defaults/workflows/resolve-conflicts.yml +14 -0
- package/assets/defaults/workflows/retire-feature.yml +26 -0
- package/assets/defaults/workflows/run-release.yml +12 -0
- package/assets/init/.claude/settings.json +11 -11
- package/assets/init/.codex/hooks.json +9 -9
- package/assets/init/.qfai/assistant/agent/architecture-reviewer.md +2 -2
- package/assets/init/.qfai/assistant/agent/fullstack-engineer.md +101 -0
- package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +78 -1
- package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +10 -5
- package/assets/init/.qfai/assistant/agent/requirements-reviewer.md +12 -2
- package/assets/init/.qfai/assistant/rule/agent-selection.md +22 -42
- package/assets/init/.qfai/assistant/rule/constitution.md +5 -3
- package/assets/init/.qfai/assistant/rule/drift-protocol.md +19 -1
- package/assets/init/.qfai/assistant/rule/references/asset-authoring.md +1 -1
- package/assets/init/.qfai/assistant/rule/references/codex-delegation.md +4 -4
- package/assets/init/.qfai/assistant/rule/references/gate-failure-autorepair.md +1 -1
- package/assets/init/.qfai/assistant/rule/references/reviewer-findings.md +1 -1
- package/assets/init/.qfai/assistant/rule/references/worker-edit-boundary.md +3 -3
- package/assets/init/.qfai/assistant/rule/research-first-protocol.md +7 -6
- package/assets/init/.qfai/assistant/rule/review-convergence.md +10 -4
- package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +81 -56
- package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +8 -8
- package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +2 -1
- package/assets/init/.qfai/assistant/rule/workflow.md +4 -4
- package/assets/init/.qfai/assistant/skill/qfai-configure/SKILL.md +15 -46
- package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +6 -15
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-completion-matrix.md +15 -2
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md +17 -0
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md +3 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/01_Context.md +4 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/04_Sources.md +5 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/00_index.md +4 -1
- package/assets/init/.qfai/assistant/skill/qfai-grill/SKILL.md +8 -7
- package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +15 -15
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/delegated-session.md +18 -18
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-record.md +3 -3
- package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +2 -16
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +54 -12
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/red-admissibility.md +35 -0
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/test-runner-recipes.md +445 -0
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-maintain/SKILL.md +0 -1
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/SKILL.md +2 -13
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-guide.md +8 -11
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-placement.md +0 -7
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +11 -18
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +34 -3
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/handoff.md +77 -2
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/iteration-loop.md +14 -5
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +7 -5
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +32 -6
- package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +17 -18
- package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +194 -129
- package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +33 -18
- package/assets/init/.qfai/assistant/skill/qfai-run/references/plan.md +46 -22
- package/assets/init/.qfai/assistant/skill/qfai-run/references/reached-step-observations.md +2 -0
- package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +7 -4
- package/assets/init/.qfai/assistant/skill/qfai-sdd/SKILL.md +0 -13
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/concrete-abstract-cycle.md +3 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +13 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +83 -6
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +23 -5
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/change-request.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions/page-NNNN.md +6 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +9 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/open-questions.md +13 -0
- package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +0 -11
- package/assets/init/.qfai/assistant/skill/qfai-verify/SKILL.md +0 -9
- package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +15 -9
- package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +19 -19
- package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +11 -9
- package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +15 -3
- package/assets/init/.qfai/assistant/step/common-policy-check/STEP.md +0 -1
- package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +48 -12
- package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +11 -5
- package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +12 -2
- package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +18 -4
- package/assets/init/.qfai/assistant/step/discussion-research/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +4 -2
- package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +3 -4
- package/assets/init/.qfai/assistant/step/implement-backport/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-benchmark/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-bisect/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-credentials/STEP.md +4 -4
- package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +31 -12
- package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +12 -9
- package/assets/init/.qfai/assistant/step/implement-minimize/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-oracle-parity/STEP.md +0 -6
- package/assets/init/.qfai/assistant/step/implement-procedure/STEP.md +35 -8
- package/assets/init/.qfai/assistant/step/implement-quarantine/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +25 -9
- package/assets/init/.qfai/assistant/step/implement-regression-fix/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +26 -6
- package/assets/init/.qfai/assistant/step/implement-revert/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +28 -7
- package/assets/init/.qfai/assistant/step/implement-seam/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-stress-harness/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-sweep/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +23 -15
- package/assets/init/.qfai/assistant/step/implement-test-fix/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-tooling/STEP.md +0 -3
- package/assets/init/.qfai/assistant/step/maintain-edit/STEP.md +71 -10
- package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +39 -8
- package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +12 -5
- package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +71 -23
- package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +5 -2
- package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +10 -4
- package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +9 -6
- package/assets/init/.qfai/assistant/step/sdd-flow/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/sdd-gate/STEP.md +0 -1
- package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +22 -3
- package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +54 -20
- package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-close/STEP.md +7 -4
- package/assets/init/.qfai/assistant/step/triage-cluster/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-decompose/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-dedupe/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-handoff/STEP.md +6 -2
- package/assets/init/.qfai/assistant/step/triage-investigate/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +76 -5
- package/assets/init/.qfai/assistant/step/triage-owned-cleanup/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-request-info/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-security-intake/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-advisory/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-change-note/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +35 -12
- package/assets/init/.qfai/assistant/step/verify-context/STEP.md +7 -26
- package/assets/init/.qfai/assistant/step/verify-external/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-manual/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-qfai-gate/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-release-notes/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-repeat-run/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +65 -9
- package/assets/init/root/.agents/rules/api-budget.md +8 -3
- package/assets/init/root/.agents/rules/graph-exploration.md +18 -4
- package/assets/init/root/.agents/rules/grilling.md +9 -9
- package/assets/init/root/.agents/rules/reminders.json +20 -28
- package/assets/init/root/.agents/rules/user-questions.md +21 -11
- package/assets/init/root/.gitattributes +2 -0
- package/assets/init/root/AGENTS.md +1 -1
- package/assets/mdschema/manifest.yml +3 -0
- package/assets/mdschema/story/03_contract/tech.mdschema.yml +1 -1
- package/assets/mdschema/story/decisions/page-NNNN.mdschema.yml +32 -0
- package/assets/mdschema/story/decisions.mdschema.yml +12 -0
- package/assets/schemas/workflow/extraction.schema.json +94 -2
- package/assets/schemas/workflow/plan.schema.json +34 -1
- package/assets/scripts/check-mdschema.mjs +434 -45
- package/dist/cli/index.cjs +4991 -3148
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +4780 -2929
- package/dist/cli/index.mjs.map +1 -1
- package/dist/graph/cli.cjs +14 -2
- package/dist/graph/cli.cjs.map +1 -1
- package/dist/graph/cli.d.cts +1 -1
- package/dist/graph/cli.d.ts +1 -1
- package/dist/graph/cli.mjs +14 -2
- package/dist/graph/cli.mjs.map +1 -1
- package/dist/graph/hook.cjs.map +1 -1
- package/dist/graph/hook.mjs.map +1 -1
- package/dist/index.cjs +4359 -3843
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -21
- package/dist/index.d.ts +60 -21
- package/dist/index.mjs +3594 -3080
- package/dist/index.mjs.map +1 -1
- package/dist/process-qqX2Owgq.d.cts +18 -0
- package/dist/process-qqX2Owgq.d.ts +18 -0
- package/package.json +1 -1
- package/assets/defaults/agent-routing/_contract.yml +0 -77
- package/assets/defaults/agent-routing/common.yml +0 -14
- package/assets/defaults/agent-routing/qfai-discussion.yml +0 -57
- package/assets/defaults/agent-routing/qfai-implement.yml +0 -236
- package/assets/defaults/agent-routing/qfai-maintain.yml +0 -12
- package/assets/defaults/agent-routing/qfai-prototyping.yml +0 -48
- package/assets/defaults/agent-routing/qfai-sdd.yml +0 -56
- package/assets/defaults/agent-routing/qfai-triage.yml +0 -108
- package/assets/defaults/agent-routing/qfai-verify.yml +0 -92
- package/assets/defaults/agent-routing/skills.yml +0 -59
- package/assets/defaults/review-profiles.yml +0 -25
- package/assets/init/.qfai/assistant/agent/acceptance-test-engineer.md +0 -81
- package/assets/init/.qfai/assistant/agent/backend-engineer.md +0 -90
- package/assets/init/.qfai/assistant/agent/completion-reviewer.md +0 -88
- package/assets/init/.qfai/assistant/agent/delivery-planner.md +0 -85
- package/assets/init/.qfai/assistant/agent/devops-ci-engineer.md +0 -78
- package/assets/init/.qfai/assistant/agent/discovery-analyst.md +0 -81
- package/assets/init/.qfai/assistant/agent/doc-steward.md +0 -78
- package/assets/init/.qfai/assistant/agent/frontend-engineer.md +0 -94
- package/assets/init/.qfai/assistant/agent/orchestrator.md +0 -92
- package/assets/init/.qfai/assistant/agent/product-experience-architect.md +0 -101
- package/assets/init/.qfai/assistant/agent/qa-gatekeeper.md +0 -153
- package/assets/init/.qfai/assistant/agent/qa-strategist.md +0 -82
- package/assets/init/.qfai/assistant/agent/requirements-analyst.md +0 -96
- package/assets/init/.qfai/assistant/agent/solution-architect.md +0 -89
- package/assets/init/.qfai/assistant/agent/test-design-analyst.md +0 -132
- package/dist/process-C21nTvkT.d.cts +0 -12
- package/dist/process-C21nTvkT.d.ts +0 -12
|
@@ -14,11 +14,13 @@ are exact: an unknown key is refused.
|
|
|
14
14
|
|
|
15
15
|
## Calls
|
|
16
16
|
|
|
17
|
-
| Call
|
|
18
|
-
|
|
|
19
|
-
| `npx qfai workflow plan --in <file>`
|
|
20
|
-
| `npx qfai workflow plan --in -`
|
|
21
|
-
| `npx qfai workflow plan --route <route
|
|
17
|
+
| Call | When |
|
|
18
|
+
| ------------------------------------------------------- | ----------------------------------------------------------------------- |
|
|
19
|
+
| `npx qfai workflow plan --in <file>` | A request, with its extraction in a JSON file |
|
|
20
|
+
| `npx qfai workflow plan --in -` | The same, with the extraction on standard input |
|
|
21
|
+
| `npx qfai workflow plan --route <route> --in <file\|->` | The candidate chosen, with the extraction that gave the candidates |
|
|
22
|
+
| `npx qfai workflow plan --route <route>` | A branch destination |
|
|
23
|
+
| `npx qfai workflow plan --order` | An operation the session runs itself that deletes nothing, with no file |
|
|
22
24
|
|
|
23
25
|
- Each call prints one JSON document and writes no file.
|
|
24
26
|
- Exit 0 is a plan or candidates, 2 a refused input, and 1 an input file that
|
|
@@ -43,7 +45,9 @@ route, stage or step.
|
|
|
43
45
|
```
|
|
44
46
|
|
|
45
47
|
At `low` confidence, `alternatives` holds the one or two other readings, each
|
|
46
|
-
with `intent`, `entryFlags`, `qualifiers` and `signals`.
|
|
48
|
+
with `intent`, `entryFlags`, `qualifiers` and `signals`. The optional
|
|
49
|
+
`flows` lists the business flows the implementation works, as distinct
|
|
50
|
+
`BF-NNNN` IDs.
|
|
47
51
|
|
|
48
52
|
## Plan
|
|
49
53
|
|
|
@@ -94,22 +98,38 @@ The route, its stages in order with each step's file, and its points.
|
|
|
94
98
|
}
|
|
95
99
|
```
|
|
96
100
|
|
|
97
|
-
| Field | Meaning
|
|
98
|
-
| ---------------- |
|
|
99
|
-
| `rule` | The decision rule that chose the route; `null` when none held; absent for `--route`
|
|
100
|
-
| `review` | `spec` or `code`: the review that follows the stage; absent where none does
|
|
101
|
-
| `mode` | `settled` or `read-only` where the plan fixes how the step runs; otherwise `null`
|
|
102
|
-
| `passThrough` | The step runs, and writes nothing when it shows it has nothing to write
|
|
103
|
-
| `decisionPoints` | The steps that put each critical decision to the user before acting on it
|
|
104
|
-
| `releasePoint` | The step the user approves the release before, `end` for after the last stage, or `null`
|
|
105
|
-
| `branchPoints` | Each outcome with its destinations; `decision-table` means plan the step's new extraction
|
|
106
|
-
| `scopes` | How far the work may go, narrowest first; absent for `--route`
|
|
101
|
+
| Field | Meaning |
|
|
102
|
+
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
103
|
+
| `rule` | The decision rule that chose the route; `null` when none held; absent for `--route` |
|
|
104
|
+
| `review` | `spec` or `code`: the review that follows the stage; absent where none does |
|
|
105
|
+
| `mode` | `settled` or `read-only` where the plan fixes how the step runs; otherwise `null` |
|
|
106
|
+
| `passThrough` | The step runs, and writes nothing when it shows it has nothing to write |
|
|
107
|
+
| `decisionPoints` | The steps that put each critical decision to the user before acting on it; with the `decision` flag set, a plan that names none gets its first step that writes |
|
|
108
|
+
| `releasePoint` | The step the user approves the release before, `end` for after the last stage, or `null` |
|
|
109
|
+
| `branchPoints` | Each outcome with its destinations; `decision-table` means plan the step's new extraction |
|
|
110
|
+
| `scopes` | How far the work may go, narrowest first; absent for `--route` |
|
|
111
|
+
| `workOrders` | On an implement stage when the extraction lists `flows`: one `{ target }` per flow, in ascending ID order; absent otherwise |
|
|
112
|
+
|
|
113
|
+
A plan or a candidate from an extraction that names `spec` or `contract`, and
|
|
114
|
+
the plan `--route` returns with that `--in`, can hold a `spec` stage its route's
|
|
115
|
+
catalog row lacks, when no stage of the route is marked for
|
|
116
|
+
the `spec` review; run it like any other stage.
|
|
117
|
+
|
|
118
|
+
A stage with `workOrders` runs every one of its steps once per work order, for
|
|
119
|
+
that work order's `target` flow alone, before the next stage starts. Run the
|
|
120
|
+
work orders in the order listed; the implementation skill's parallelization
|
|
121
|
+
policy says when two may run at once. No work order adds a step, a stage or a
|
|
122
|
+
review. The stage's review runs once, after its last work order. A plan
|
|
123
|
+
`--route` returns has none: for a chosen candidate or a branch destination, give
|
|
124
|
+
each of its implement stages one work order per flow of the extraction's
|
|
125
|
+
`flows`, in ascending ID order.
|
|
107
126
|
|
|
108
127
|
## Candidates
|
|
109
128
|
|
|
110
129
|
A `low` extraction returns the distinct routes its readings reach, one to three,
|
|
111
130
|
in the order the decision rules reach them, the main reading's route
|
|
112
|
-
recommended.
|
|
131
|
+
recommended. Each candidate carries the `decisionPoints` its reading gives;
|
|
132
|
+
the plan `--route` returns for the chosen one takes them in place of its own.
|
|
113
133
|
|
|
114
134
|
```json
|
|
115
135
|
{
|
|
@@ -121,7 +141,8 @@ recommended.
|
|
|
121
141
|
"rule": 13,
|
|
122
142
|
"summary": "Settle the decision before any change. Stages: discussion, close.",
|
|
123
143
|
"recommended": false,
|
|
124
|
-
"scopes": [{ "scope": "broad", "stages": ["discussion", "close"], "recommended": true }]
|
|
144
|
+
"scopes": [{ "scope": "broad", "stages": ["discussion", "close"], "recommended": true }],
|
|
145
|
+
"decisionPoints": ["discussion-interview"]
|
|
125
146
|
},
|
|
126
147
|
{
|
|
127
148
|
"route": "route-d",
|
|
@@ -137,7 +158,8 @@ recommended.
|
|
|
137
158
|
"stages": ["spec", "prototype", "implement", "verify"],
|
|
138
159
|
"recommended": false
|
|
139
160
|
}
|
|
140
|
-
]
|
|
161
|
+
],
|
|
162
|
+
"decisionPoints": ["sdd-triage"]
|
|
141
163
|
}
|
|
142
164
|
]
|
|
143
165
|
}
|
|
@@ -153,13 +175,15 @@ the ids of the stages it runs in plan order, and `true` for the narrowest.
|
|
|
153
175
|
change note and the gates that end the route follow; when they reach the route's last stage
|
|
154
176
|
that writes code, every verify stage that ends the route follows.
|
|
155
177
|
- `medium` adds the change note and the gates to those stages; where `narrow`
|
|
156
|
-
already holds implementation, it equals `narrow`.
|
|
178
|
+
already holds implementation, it equals `narrow`. It is listed unless `broad`
|
|
179
|
+
adds only pass-through stages that write neither code nor tests and have no review.
|
|
157
180
|
- Documentation-only maintenance or procedure writing keeps the change note
|
|
158
181
|
and closing gates. A procedure plan therefore gets `broad` alone.
|
|
159
182
|
- A security intake plan gets `broad` alone.
|
|
160
183
|
- `broad` runs every stage.
|
|
161
184
|
|
|
162
|
-
A scope holding every stage is `broad`, and `medium` is left out when it equals `narrow`.
|
|
185
|
+
A scope holding every stage is `broad`, and `medium` is left out when it equals `narrow`. A scope is also left
|
|
186
|
+
out when the next wider one adds only such pass-through stages. An extraction with
|
|
163
187
|
no artifacts, or whose route writes nothing, gets `broad` alone. A candidate
|
|
164
188
|
keeps its scopes: `--route` returns none.
|
|
165
189
|
|
|
@@ -184,7 +208,7 @@ keeps its scopes: `--route` returns none.
|
|
|
184
208
|
field that is absent, `unknown` for a key the extraction does not take,
|
|
185
209
|
`wrong-type` for a value of another type, `wrong-value` for a value outside the
|
|
186
210
|
field's vocabulary, and `invalid` for the rules tying `alternatives` to
|
|
187
|
-
`confidence` or requiring `owned-temporary-cleanup` to use `intent: order` and
|
|
211
|
+
`confidence`, refusing an empty or repeated `flows`, or requiring `owned-temporary-cleanup` to use `intent: order` and
|
|
188
212
|
empty `artifacts`, including alternative readings. Each cause states what was
|
|
189
213
|
expected and received, or the field name. `unknown-route` for a route the catalog does
|
|
190
214
|
not name, `plan-invalid` for a plan that does not load, naming its `file` and
|
|
@@ -31,6 +31,8 @@ Use the existing stage report, not a new schema. For each reached step retain th
|
|
|
31
31
|
| Gate | Applicable Gate observations from the actual command and result, without borrowing an unrelated green result. |
|
|
32
32
|
| Assessment | Supported completion, an observed incomplete result, or UNVERIFIED with missing proof, owner and resume condition. |
|
|
33
33
|
|
|
34
|
+
List each step of the stage with its status, for the step-status table of the final report.
|
|
35
|
+
|
|
34
36
|
A supported comparison assesses this reached step only. It does not pass unrelated gates, complete later work or establish that an agent understood instructions.
|
|
35
37
|
|
|
36
38
|
## Missing proof and observed omission
|
|
@@ -4,13 +4,16 @@ What `qfai-run` does at a step the plan marks with a release point, a decision p
|
|
|
4
4
|
|
|
5
5
|
## Release point
|
|
6
6
|
|
|
7
|
-
Before a step `releasePoint` names runs, ask the user to approve the release; where it is `end`, ask once the last stage's gates have passed
|
|
8
|
-
`
|
|
7
|
+
Before a step `releasePoint` names runs, ask the user to approve the release; where it is `end`, ask once the last stage's gates have passed.
|
|
8
|
+
Record the approval as step 7 of `SKILL.md` says: a `decisions.md` row the run writes, or, when the release change is produced outside this run, the final report, with the row appended by the next change that touches `decisions.md`.
|
|
9
|
+
Rerun the gates over any row written. `verify-commit` runs after that, so the commit holds any approval row written. Nothing after it
|
|
9
10
|
runs without the approval, which authorizes no push, merge, tag or publication.
|
|
10
11
|
|
|
11
|
-
After approval at a handoff release point, `qfai-run`
|
|
12
|
-
|
|
12
|
+
After approval at a handoff release point, `qfai-run` records the approval as
|
|
13
|
+
step 7 says before `triage-handoff` runs. Every triage step
|
|
13
14
|
still changes no tracked file. No handed-off operation runs on the user's behalf.
|
|
15
|
+
After approval at a release point before `triage-operate`, that step carries
|
|
16
|
+
out only what its `## A delegated release` section allows.
|
|
14
17
|
|
|
15
18
|
## Decision point
|
|
16
19
|
|
|
@@ -6,19 +6,6 @@ argument-hint: "[<BF-ID-or-name>] [--contract <contract-ID-or-path>] [--auto]"
|
|
|
6
6
|
allowed-tools: [Read, Glob, Write, TodoWrite, Task, Agent, Bash]
|
|
7
7
|
steps: [sdd-triage, sdd-flow, sdd-story, sdd-contract, common-design-md, sdd-cycle, sdd-gate]
|
|
8
8
|
requires: [common-review-cycle]
|
|
9
|
-
roles:
|
|
10
|
-
[
|
|
11
|
-
orchestrator,
|
|
12
|
-
delivery-planner,
|
|
13
|
-
requirements-analyst,
|
|
14
|
-
solution-architect,
|
|
15
|
-
product-experience-architect,
|
|
16
|
-
test-design-analyst,
|
|
17
|
-
qa-strategist,
|
|
18
|
-
architecture-reviewer,
|
|
19
|
-
requirements-reviewer,
|
|
20
|
-
product-surface-reviewer,
|
|
21
|
-
]
|
|
22
9
|
mode: approval-gated
|
|
23
10
|
---
|
|
24
11
|
|
|
@@ -29,8 +29,9 @@ No cycle runs when:
|
|
|
29
29
|
|
|
30
30
|
## The finder
|
|
31
31
|
|
|
32
|
-
The finder is a sub-agent
|
|
33
|
-
the BRs it reads. It
|
|
32
|
+
The finder is a sub-agent on `requirements-reviewer`, started from a fresh context, that wrote none of
|
|
33
|
+
the BRs it reads. The session agent starts it; a stage worker starts none. It
|
|
34
|
+
reads:
|
|
34
35
|
|
|
35
36
|
- each BR whose Statement or Examples cell this invocation wrote or changed;
|
|
36
37
|
- the EXs each of those BRs cites;
|
|
@@ -32,6 +32,18 @@ Discussion UI/UX files are **non-normative** discovery / reference artifacts —
|
|
|
32
32
|
## Rules
|
|
33
33
|
|
|
34
34
|
- Keep contract files minimal: only what flows, stories, and tests actually reference.
|
|
35
|
+
- Every entry in a UI contract's `screens[]` carries at least one
|
|
36
|
+
`primary_task`. An empty `primary_tasks` array blocks `/qfai-prototyping` at
|
|
37
|
+
the validate lane, under `QFAI-AUD-001`. The shipped `ui-contract.sample.yaml`
|
|
38
|
+
carries filled entries; replace them with the screen's own rather than
|
|
39
|
+
emptying the list.
|
|
40
|
+
- Every screen also declares `supplements` (`[]` when it shows no text beyond
|
|
41
|
+
its title, group headings and labels), and `structure` when it shows a heading
|
|
42
|
+
beyond its title. Check each proposed text against the screen's tasks and the
|
|
43
|
+
information the user needs there, and write the ones that stay into the
|
|
44
|
+
contract with the reason. A text that only repeats a heading, an action or a
|
|
45
|
+
condition the user already has is left out. Discussion sidecars inform these
|
|
46
|
+
keys; they do not replace them.
|
|
35
47
|
- UI contracts must be mockable for prototypes: define stable `elements` and
|
|
36
48
|
`actions` with enough inspection-target text for Playwright evidence.
|
|
37
49
|
- **The `prototype` mapping is optional, and what it declares is checked.** A
|
|
@@ -53,7 +65,7 @@ Discussion UI/UX files are **non-normative** discovery / reference artifacts —
|
|
|
53
65
|
not only where the attribute is written out — a framework that builds the
|
|
54
66
|
attribute from a variable still writes the marker somewhere.
|
|
55
67
|
- **Every entry under `screens` is a screen, once.** Each UI-bearing contract declares one full `UI-NNNN` ID and a nonempty `screens[]` list. Each screen has an ID and route, unique within its contract. The prototyping cycle covers all declared UI-bearing contract IDs; filenames do not select a legacy spec tier. `QFAI-CONTRACT-042` names malformed screen entries.
|
|
56
|
-
- **Every screen states the text it shows.** A screen declares `supplements` (`[]` when it shows none) and may declare `structure`. `QFAI-CONTRACT-043` names a key that is absent or malformed, `QFAI-CONTRACT-044` an id the screen does not declare, and `QFAI-CONTRACT-045` a text shown twice.
|
|
68
|
+
- **Every screen states the text it shows.** A screen declares `supplements` (`[]` when it shows none) and may declare `structure`. `QFAI-CONTRACT-043` names a key that is absent or malformed, `QFAI-CONTRACT-044` an id the screen does not declare, and `QFAI-CONTRACT-045` a text shown twice; and, with `--rendered`, `QFAI-CONTRACT-046` to `QFAI-CONTRACT-048` compare rendered text with the lists.
|
|
57
69
|
- **A contract's ID comes from its directory.** `api/` holds `API` contracts,
|
|
58
70
|
`db/` `DB` and `ui/` `UI`; the QFAI repository's own `cli/` holds `CLI`
|
|
59
71
|
contracts. The ID is `<KIND>-NNNN`.
|
|
@@ -49,7 +49,7 @@ questions in open-questions.md. In --auto, ask nothing and stop dependent work.
|
|
|
49
49
|
A layer is a group of modules whose dependencies point one way: down. The section draws the layers as one `flowchart TD`, then lists them in the table from the uppermost down, and the two name the same layers and edges.
|
|
50
50
|
Implementation places new code by that table and reviewers judge a change against it, as the `Architecture` section of the spec traceability rules states.
|
|
51
51
|
2. Write 02_business-flow/business-flows.md and the affected business-flow-NNNN/business-flow.md files. Each flow's `## Flow` section is exactly one Mermaid flowchart or sequenceDiagram.
|
|
52
|
-
3. Allocate BF and US IDs from the highest existing ID in their scopes, counting retired IDs named in decisions rows. Add rows to the flow and story indexes.
|
|
52
|
+
3. Allocate BF and US IDs from the highest existing ID in their scopes, counting retired IDs named in decisions rows and the IDs open pull requests add. Add rows to the flow and story indexes.
|
|
53
53
|
|
|
54
54
|
## Stage 3: concrete stories
|
|
55
55
|
|
|
@@ -67,7 +67,7 @@ questions in open-questions.md. In --auto, ask nothing and stop dependent work.
|
|
|
67
67
|
|
|
68
68
|
## Concrete-abstract cycle
|
|
69
69
|
|
|
70
|
-
When Stage 4 wrote or changed a BR Statement or Examples cell, run the concrete-abstract cycle before the gate: a sub-agent that wrote none of the BRs raises findings against the tree, the session agent decides them, the adopted changes are applied, and the affected BRs are rewritten. At most two cycles run.
|
|
70
|
+
When Stage 4 wrote or changed a BR Statement or Examples cell, run the concrete-abstract cycle before the gate: a sub-agent that wrote none of the BRs, started by the session agent and never by a stage worker, raises findings against the tree, the session agent decides them, the adopted changes are applied, and the affected BRs are rewritten. At most two cycles run.
|
|
71
71
|
|
|
72
72
|
## Stage 5: gate, review, and completion
|
|
73
73
|
|
|
@@ -10,7 +10,7 @@ Use these checkpoints with the ordered stages of the SDD steps. A checked item r
|
|
|
10
10
|
- Only an approved change request, a declined change request, a critical decision the user made, and a justified `Test exception:` row are decision rows; a declined change request is a REJECTED `Change request:` row. Open questions are open-questions.md rows. An existing REJECTED row stays as it is.
|
|
11
11
|
- Both tables have exactly ID, Content, Approach, Status. Existing rows are unchanged except Status.
|
|
12
12
|
- Approval-required rows have the user's decision before any dependent write. Under --auto, pending approvals stopped the run without an invented approval.
|
|
13
|
-
- New IDs use highest-in-scope plus one, including retired IDs in decision rows.
|
|
13
|
+
- New IDs use highest-in-scope plus one, including retired IDs in decision rows and the IDs open pull requests add.
|
|
14
14
|
|
|
15
15
|
## Policy and business flow
|
|
16
16
|
|
|
@@ -18,7 +18,8 @@ The checkpoint occurs before this invocation's first design mutation in that sta
|
|
|
18
18
|
|
|
19
19
|
## Roles and disposition
|
|
20
20
|
|
|
21
|
-
-
|
|
21
|
+
- The session agent starts the griller.
|
|
22
|
+
- One frontier holds every decision the stage's drafts need. Keep grilling and the final review apart: the reviewer reviews no decision it recommended.
|
|
22
23
|
- Read existing policy, decisions, open questions, discussion provenance, and current contracts before asking. Do not ask the user for facts already recorded there.
|
|
23
24
|
- The session identifies options and failure cases and gives an evidence-based recommendation. A critical product decision goes to the user; an agent's preference cannot supply approval.
|
|
24
25
|
- Settle a critical question before the affected author writes.
|
|
@@ -40,6 +40,6 @@ Do not use a sibling's in-flight findings to hold or clear the current flow. Rec
|
|
|
40
40
|
|
|
41
41
|
- A pre-draft grilling checkpoint ran before the first write of every design-writing stage entered. It held a grilling session only where it found a decision the repository cannot settle, and each critical decision it held was put to the user.
|
|
42
42
|
- The final report lists each decision a checkpoint adopted, with its reason.
|
|
43
|
-
- Reviewers are independent of authors, and every finding of the one review is fixed or answered under `.qfai/assistant/rule/review-convergence.md
|
|
43
|
+
- Reviewers are independent of authors, and every finding of the one review is fixed or answered under `.qfai/assistant/rule/review-convergence.md`.
|
|
44
44
|
- Evidence records the source, changed IDs and files, contract executability, commands, reviewer verdicts, rejected options excluded, and remaining risks.
|
|
45
45
|
- No approval-required operation is treated as approved from silence, --auto, or a generic instruction to continue.
|
|
@@ -12,6 +12,7 @@ Triage selects the smallest story-tree change that answers each incoming require
|
|
|
12
12
|
- Approval and no-question mode
|
|
13
13
|
- Retiring an EX, AC or BR
|
|
14
14
|
- ID allocation
|
|
15
|
+
- Conflicted story-tree documents
|
|
15
16
|
- Completion of triage
|
|
16
17
|
|
|
17
18
|
## Inputs
|
|
@@ -38,7 +39,7 @@ Inspect the impact cascade: policy → BF → US → AC → EX → enforcing con
|
|
|
38
39
|
Use <paths.specsDir>/decisions.md and <paths.specsDir>/open-questions.md, each with exactly ID, Content, Approach, Status. Append a row; later only Status may change, including to `PARTLY SUPERSEDED (by DEC-NNNN)` when a later row narrows a decision without replacing it.
|
|
39
40
|
Do not edit the first three cells or remove the row, except for explicit branch-added decision renumbering under ID allocation below
|
|
40
41
|
or the bounded published decision prefix recovery below, and remove a row only as a proven surplus copy under the merge-added
|
|
41
|
-
identical decision copy recovery below. Inherited rows retain those cells. Use the next highest ID in the table plus one. A retired item still reserves its BF or US ID.
|
|
42
|
+
identical decision copy recovery below. Inherited rows retain those cells. Use the next highest ID in the table plus one; for DEC, include every listed page and the root tail. A retired item still reserves its BF or US ID.
|
|
42
43
|
|
|
43
44
|
decisions.md records only what the user decided: each change request the user approved or declined,
|
|
44
45
|
and each critical decision the user made. A row is appended once the user has decided what it records.
|
|
@@ -57,7 +58,8 @@ it and when; it authorizes no edit. Retiring a story removes its directory under
|
|
|
57
58
|
change request that names it, with no separate retired-story file.
|
|
58
59
|
|
|
59
60
|
An existing row at REJECTED is a rejected option. Open questions use OQ-NNNN rows; DEFERRED needs a
|
|
60
|
-
specific future decision point.
|
|
61
|
+
specific future decision point. When a decision settles an open question or makes its text wrong, the
|
|
62
|
+
`sdd-triage` step says when its Status becomes `DONE (by DEC-NNNN)` or `SUPERSEDED (by DEC-NNNN)`. An unanswered critical product decision is an open-questions.md row
|
|
61
63
|
whose Content opens Unadjudicated:, at TODO until decided. A justified test exception opens a
|
|
62
64
|
decision Content with Test exception:, names the exact BF, AC, or EX it exempts, and puts the reason
|
|
63
65
|
in Approach. It takes effect only at DONE; it never exempts descendant items.
|
|
@@ -82,6 +84,36 @@ append an `Unadjudicated:` OQ at TODO. Name the affected IDs, expected versus
|
|
|
82
84
|
actual behavior, implementation-change evidence, owner and required permission.
|
|
83
85
|
Stop dependent AC, EX and BR edits; independent authorized work may continue.
|
|
84
86
|
|
|
87
|
+
### Decision pages
|
|
88
|
+
|
|
89
|
+
The root may have one optional `## Decision pages` section before its unique
|
|
90
|
+
`## Decisions` section. Its body holds only unique direct
|
|
91
|
+
`- decisions/page-NNNN.md` entries with four digits; links, annotations, nested
|
|
92
|
+
paths, traversal and unrelated prose are invalid. A page has `# Decisions`,
|
|
93
|
+
one `## Decisions` section and one closed ID, Content, Approach, Status table.
|
|
94
|
+
It has no page index or other section. The root retains its own four-column table.
|
|
95
|
+
|
|
96
|
+
Read pages in list order, followed by the root table. This is one logical
|
|
97
|
+
register: ID allocation, duplicate detection, retirement references and Status
|
|
98
|
+
permissions include every row. Append new rows only to the root table.
|
|
99
|
+
A root without a page list remains a valid legacy register and is read in full.
|
|
100
|
+
Read errors or an incomplete inventory stop permission and allocation decisions.
|
|
101
|
+
|
|
102
|
+
Each physical root and page has at most 500 lines, including comments, blanks,
|
|
103
|
+
the index and table wrappers. Oversized files are reported without truncation.
|
|
104
|
+
Every entry in the decisions directory must be a listed direct page. Register
|
|
105
|
+
paths must be regular directories and files, without symbolic or hard links.
|
|
106
|
+
A formatter exclusion preserves reviewed bytes; it does not waive validation.
|
|
107
|
+
Use consumers that support the complete register before adopting pages; older
|
|
108
|
+
consumers are not assumed to read them.
|
|
109
|
+
|
|
110
|
+
Physical relocation needs a separately adopted execution change request and a
|
|
111
|
+
reviewed raw-byte receipt for the exact source and target. Preserve every raw
|
|
112
|
+
row occurrence, cell, Status, order and line ending; keep the current root tail.
|
|
113
|
+
A historical DONE row is not approval to run a later relocation. Do not rotate
|
|
114
|
+
automatically, repair Status, remove duplicates or normalize inherited cells.
|
|
115
|
+
A read-only proposal or a migration projection grants no permission to write.
|
|
116
|
+
|
|
85
117
|
## Published decision prefix recovery
|
|
86
118
|
|
|
87
119
|
When an approved request names a published malformed decision added by the
|
|
@@ -167,9 +199,17 @@ A retirement touches every place the ID is written. Do all of them in one change
|
|
|
167
199
|
|
|
168
200
|
## ID allocation
|
|
169
201
|
|
|
170
|
-
Read all IDs of the kind in the relevant scope, including IDs named by retirement rows. The next ID is the highest plus one.
|
|
171
|
-
A contract number spans every contract kind, and a BR is numbered inside its contract. DEC
|
|
202
|
+
Read all IDs of the kind in the relevant scope, including IDs named by retirement rows. The next ID is the highest plus one. BF spans the project. US is inside its BF. AC and EX are inside their US.
|
|
203
|
+
A contract number spans every contract kind, and a BR is numbered inside its contract. DEC spans the complete ordered decision register; OQ spans its own table.
|
|
172
204
|
Empty numeric scopes begin at 0001, and AC/EX tails begin at 01. Do not reuse an ID because its file was removed or a row was rejected.
|
|
205
|
+
Take the number from `npx qfai sdd next-id <kind> [<parent-ID>] --base <local-ref>` right before writing it: a US names its BF, an AC or EX its US, and a BR its contract.
|
|
206
|
+
It reads the working tree and the base ref's commit, a fetched ref such as `origin/main`, and prints the number after the highest of both, not after the last row. It writes nothing and does not see open pull requests.
|
|
207
|
+
|
|
208
|
+
Read the IDs open pull requests add before taking one. Fetch the base. Where a forge CLI is available, list the open pull requests once per session through its REST API, for example `gh api repos/{owner}/{repo}/pulls?state=open`, and reuse that listing for every ID the session takes.
|
|
209
|
+
Fetch each one's head ref, such as `refs/pull/<n>/head`, so a pull request from a fork is read too, and read the IDs it adds from `git diff <base>...<head>`. Take the highest across the base, the working tree and those heads, plus one. Without a forge CLI, read the base alone.
|
|
210
|
+
When merging the base into the branch, check each ID the branch adds against the fetched base. The base's item keeps its ID; the branch renumbers its own item and every reference to it, then runs the gates again.
|
|
211
|
+
Check a DEC or OQ row before the merge, and renumber a DEC row with `renumber-decision` as below, or an OQ row and its references by hand: the union merge of `decisions.md` and `open-questions.md` would duplicate a colliding ID without a conflict. Check any other ID after the merge.
|
|
212
|
+
Keep the change-request row last in `decisions.md`, so the rows the branch added stay in ascending order at the end of the register, where the merge-time renumbering works from the lowest colliding one upward.
|
|
173
213
|
|
|
174
214
|
### Capacity before writing
|
|
175
215
|
|
|
@@ -179,7 +219,8 @@ empty), remaining capacity 99-H and the number of requested additions. Count
|
|
|
179
219
|
valid IDs in the tree and decisions, including retired IDs, plus observed
|
|
180
220
|
published parallel heads and known reservations under the project's existing
|
|
181
221
|
method. Name the fixed observation and what it did not cover. A snapshot
|
|
182
|
-
reserves nothing and cannot cover unpublished concurrent work.
|
|
222
|
+
reserves nothing and cannot cover unpublished concurrent work. Read decisions as
|
|
223
|
+
the complete ordered register: every listed page followed by the root tail.
|
|
183
224
|
|
|
184
225
|
If requested additions exceed 99-H, stop before any partial allocation or
|
|
185
226
|
invalid declaration. Never fill gaps, reuse retired IDs or emit tail 100.
|
|
@@ -234,7 +275,7 @@ approval and mapping procedure, not a relocation executor or mapping schema.
|
|
|
234
275
|
|
|
235
276
|
Two branches can take the same next ID. When a merge leaves one ID on two items:
|
|
236
277
|
|
|
237
|
-
1. The
|
|
278
|
+
1. The base's item keeps the ID, whichever way the merge runs. Renumber the incoming item, the one the branch added.
|
|
238
279
|
2. Give it the next ID of its scope.
|
|
239
280
|
A renumbered BF or US takes its child IDs and its directory names with it, as a move to another BF does below.
|
|
240
281
|
3. Change every citation belonging to the incoming item in the same commit.
|
|
@@ -253,6 +294,27 @@ For a unique decision added by the incoming branch, repair its ID before merging
|
|
|
253
294
|
qfai sdd renumber-decision --from <old-DEC-ID> --to <new-DEC-ID> --base <local-ref>
|
|
254
295
|
```
|
|
255
296
|
|
|
297
|
+
Renumber once, at merge time. While the pull request is open, keep the
|
|
298
|
+
branch's decision IDs even when the base moves. The session that merges it
|
|
299
|
+
fetches the base and renumbers only when the fetched base now declares an ID
|
|
300
|
+
the branch added. Then it renumbers every row the branch added, from the lowest
|
|
301
|
+
colliding one upward and lowest first, so the rows stay in ascending order.
|
|
302
|
+
Run on a clean tree against the fetched ref, for example `origin/main`, commit
|
|
303
|
+
after each run, then merge the base.
|
|
304
|
+
|
|
305
|
+
Check the base before merging. The shipped `.gitattributes` merges
|
|
306
|
+
`decisions.md` with `merge=union`, so the ledger never conflicts: a colliding
|
|
307
|
+
ID merges silently into two rows with the same ID, and the command then
|
|
308
|
+
refuses that ledger as a duplicate. If such a merge is committed but not
|
|
309
|
+
pushed, run `git reset --merge ORIG_HEAD`, renumber, and merge again. If it was
|
|
310
|
+
pushed, the two records already share the ID: follow the change request rule
|
|
311
|
+
earlier in this section.
|
|
312
|
+
|
|
313
|
+
The command also refuses a ledger left dirty by a merge that stopped on
|
|
314
|
+
conflicts in other files, and writes nothing. Abort the merge with
|
|
315
|
+
`git merge --abort`, renumber, and merge again. Then redo any other conflict
|
|
316
|
+
resolutions after the second merge.
|
|
317
|
+
|
|
256
318
|
The explicit base and HEAD must resolve locally and have one common ancestor
|
|
257
319
|
that declares no source row. The base may already use that ID; the current
|
|
258
320
|
tree must declare it only once. Choose an unused destination above both story trees'
|
|
@@ -275,6 +337,21 @@ These checks guarantee neither atomic concurrency nor power-loss safety.
|
|
|
275
337
|
|
|
276
338
|
A move to another BF changes the story's US ID and all child AC and EX IDs. It follows the existing approval path, not the same-BF capacity exception. Apply the complete map above to approved active citations and retire old IDs in a new approved record; inherited DEC cells and their historical references stay unchanged.
|
|
277
339
|
|
|
340
|
+
## Conflicted story-tree documents
|
|
341
|
+
|
|
342
|
+
When a merge leaves story-tree documents conflicted, run `npx qfai sdd merge-docs`
|
|
343
|
+
before resolving them by hand. It merges each unmerged document from the index by
|
|
344
|
+
table row, keyed by the first cell, and by sentence, so edits to different sentences
|
|
345
|
+
of one long row no longer conflict as a whole line. What it cannot settle stays
|
|
346
|
+
between conflict markers; it then reports the document-schema findings of the result.
|
|
347
|
+
A document already edited by hand, or by an earlier run, is left as it is.
|
|
348
|
+
Review the result and stage it with `git add`; it stages nothing itself.
|
|
349
|
+
|
|
278
350
|
## Completion of triage
|
|
279
351
|
|
|
280
352
|
Every requirement has a target, an approved or approval-free operation, and a recorded impact path. Every product ambiguity has an OQ. The next stage may write only the approved scope. A rejected option stays excluded until an explicit reopening decision is appended.
|
|
353
|
+
|
|
354
|
+
The one exception: a change to shipped seed or sample data whose values no
|
|
355
|
+
story, BR or contract sets changes no story-tree file. Triage states that in one
|
|
356
|
+
line of its report and passes with no operation and no decision row, and the
|
|
357
|
+
later sdd steps then have nothing to write.
|
|
@@ -87,7 +87,7 @@ The table holds no rule. A behaviour a layer must show is a BR in the contract t
|
|
|
87
87
|
| Decision | DEC-NNNN | decisions.md |
|
|
88
88
|
| Open question | OQ-NNNN | open-questions.md |
|
|
89
89
|
|
|
90
|
-
Use highest existing number plus one in the scope. Count IDs named in retired-item decisions, so deletion never frees an ID. Empty scopes begin at 0001 or, for AC and EX tails, 01. Directory names match their BF and US IDs.
|
|
90
|
+
Use highest existing number plus one in the scope. Count IDs named in retired-item decisions, so deletion never frees an ID. Empty scopes begin at 0001 or, for AC and EX tails, 01. Directory names match their BF and US IDs. Take the number from `npx qfai sdd next-id`, which reads the working tree and a fetched base and reserves no ID.
|
|
91
91
|
|
|
92
92
|
AC/EX tails remain two digits with upper bound 99. Before planned additions,
|
|
93
93
|
compare requested additions with the retired-inclusive remaining 99-H. Stop an
|
|
@@ -167,6 +167,9 @@ that cannot be undone. Each is an entry with exactly these keys, all non-empty:
|
|
|
167
167
|
| `text` | the words as displayed |
|
|
168
168
|
| `why` | what the user could not know or do without it, and why a label or structure is not enough |
|
|
169
169
|
|
|
170
|
+
A text shown in several states is listed once per state it shows in, each entry
|
|
171
|
+
with its own `id`.
|
|
172
|
+
|
|
170
173
|
`supplements: []` says the screen shows none. Most screens need few, and a screen
|
|
171
174
|
need not have any. Two kinds of text are not supplements: the message of a field
|
|
172
175
|
rule is owned by the `validations` of its element, and data the product shows or
|
|
@@ -271,9 +274,23 @@ closing punctuation do not make a text different. Whether a sentence is needed i
|
|
|
271
274
|
judged against the task by the reviewer; validate compares ids and exact wording
|
|
272
275
|
only.
|
|
273
276
|
|
|
277
|
+
`npx qfai validate --rendered <file>` compares what the screens rendered with
|
|
278
|
+
these lists. Your own browser run writes the file, and QFAI renders nothing:
|
|
279
|
+
`{ "screens": [{ "contract": "UI-0001", "screen": "order_create", "when": "default", "texts": ["..."] }] }`,
|
|
280
|
+
one entry per screen and state, holding the texts the screen showed. Leave out
|
|
281
|
+
data the product shows, text the user typed and the message of a field rule.
|
|
282
|
+
`QFAI-CONTRACT-047` names a rendered text that is no title, group heading, label
|
|
283
|
+
or supplement of that state, and `QFAI-CONTRACT-048` a supplement of that state
|
|
284
|
+
the screen did not render; `QFAI-CONTRACT-046` names a file or an entry out of
|
|
285
|
+
shape. A supplement counts only for its own `when`, so a text shown in several
|
|
286
|
+
states needs its entry for each. Only the screens and states the file holds are
|
|
287
|
+
compared, so a render of
|
|
288
|
+
the default state alone checks the default state.
|
|
289
|
+
|
|
274
290
|
A contract written before these keys was valid without them. Add
|
|
275
|
-
`supplements` to each screen
|
|
276
|
-
|
|
291
|
+
`supplements` to each screen, listing each text it shows beyond its title, group
|
|
292
|
+
headings and labels; `supplements: []` is only for a screen that shows no such
|
|
293
|
+
text. Keep `structure` out while the screen
|
|
277
294
|
shows no heading beyond its title; the first such heading needs its group.
|
|
278
295
|
|
|
279
296
|
Two contracts that state the same screen `id` each hold their own `supplements`
|
|
@@ -322,9 +339,10 @@ Render the element with that marker, or remove the marker from the contract.
|
|
|
322
339
|
**A label does not match.** Update the contract label, then the rendered text or
|
|
323
340
|
marker mapping. Updating one side leaves the two out of step.
|
|
324
341
|
|
|
325
|
-
**`QFAI-CONTRACT-043` names a screen with no `supplements`.**
|
|
326
|
-
|
|
327
|
-
|
|
342
|
+
**`QFAI-CONTRACT-043` names a screen with no `supplements`.** List each text the
|
|
343
|
+
screen shows beyond its title, group headings and labels, one entry with `id`,
|
|
344
|
+
`near`, `when`, `text` and `why`; write `supplements: []` only if it shows no
|
|
345
|
+
such text.
|
|
328
346
|
|
|
329
347
|
**`QFAI-CONTRACT-045` warns that a supplement repeats a label.** Delete the supplement,
|
|
330
348
|
or word it so it tells the user something the label does not.
|
|
@@ -6,7 +6,7 @@ Record a change request as one row in `<paths.specsDir>/decisions.md`. The row h
|
|
|
6
6
|
| ---------- | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------ |
|
|
7
7
|
| `DEC-NNNN` | `Change request: <authorized repository-relative paths>; <conflicting fact and source reference>` | `<proposed change, reason, affected downstream work, owner rerun or validation required; approved by <who>, <when>, choosing <option>>` | `WIP` |
|
|
8
8
|
|
|
9
|
-
- Allocate `DEC-NNNN`
|
|
9
|
+
- Allocate `DEC-NNNN` by `.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md#id-allocation`, which also reads the IDs open pull requests add. Never reuse an ID, including a retired one.
|
|
10
10
|
- Begin `Content` with `Change request:` and name every repository-relative path the decision can change; an ID there authorizes nothing. A path mentioned only in a discussion or an alternative does not authorize an edit.
|
|
11
11
|
- Describe the actual contradiction and its source in `Content`. In `Approach`, state the proposed correction, affected work, and the gate that proves it is applied, inside the form stated at the top of `templates/spec/decisions.md`. Keep both cells concise enough to review as a table row.
|
|
12
12
|
- Append the row only once the user approves the change, at `WIP`, and record in `Approach` who approved it, when, and the option chosen. Move it to `DONE` only after the owner rerun, affected artifacts, and validation evidence are complete. Use `SUPERSEDED (by DEC-NNNN)` when a later decision replaces the row, and `PARTLY SUPERSEDED (by DEC-NNNN)` when it replaces only part of it.
|
|
@@ -31,6 +31,15 @@ the user. Its `Evidence:` still lists what supports the change.
|
|
|
31
31
|
|
|
32
32
|
A stage that does not own this file records its decisions in its own final
|
|
33
33
|
report, with the same four items under the same rules.
|
|
34
|
+
A legacy root has only the Decisions section. When reviewed historical pages
|
|
35
|
+
are adopted, insert an optional '## Decision pages' section before '## Decisions',
|
|
36
|
+
with only unique direct '- decisions/page-NNNN.md' entries in read order.
|
|
37
|
+
Each page uses the same closed four-column table and has no page index.
|
|
38
|
+
Read listed pages before this root table; append new rows only to this root.
|
|
39
|
+
Every physical root and page, including comments and blank lines, stays within
|
|
40
|
+
500 lines. Rotation is never automatic; use the separately approved relocation
|
|
41
|
+
procedure in the SDD triage reference.
|
|
42
|
+
|
|
34
43
|
-->
|
|
35
44
|
|
|
36
45
|
# Decisions
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Each row records one open question. After a row is added, only its Status
|
|
3
|
+
changes. Status is TODO, WIP, DONE, DEFERRED, `DONE (by DEC-NNNN)` or
|
|
4
|
+
`SUPERSEDED (by DEC-NNNN)`.
|
|
5
|
+
|
|
6
|
+
When a decision row answers the question, set `DONE (by DEC-NNNN)`, naming that
|
|
7
|
+
row. When a decision makes what the row states wrong before the question is
|
|
8
|
+
answered, set `SUPERSEDED (by DEC-NNNN)` and append a new row for the question
|
|
9
|
+
that remains. A reader of the row then finds the decision that overrides its
|
|
10
|
+
text. Validation reports a named decision that no decisions row declares,
|
|
11
|
+
and warns on a plain DONE, because it names no decision.
|
|
12
|
+
-->
|
|
13
|
+
|
|
1
14
|
# Open Questions
|
|
2
15
|
|
|
3
16
|
## Open Questions
|
|
@@ -4,17 +4,6 @@ title: QFAI Triage (Requests that end without a tracked change)
|
|
|
4
4
|
description: "Use when invoked by name or handed a QFAI work order for a request that ends without a tracked change: a question, a duplicate, missing information, a split, automated reports, a security report, an operation only a person can run, an operation the user named on finished work, or authorized cleanup of current-task temporary directories."
|
|
5
5
|
argument-hint: "<the request, as it was reported>"
|
|
6
6
|
allowed-tools: [Read, Glob, Grep, Write, Bash, TodoWrite, Task, Agent]
|
|
7
|
-
roles:
|
|
8
|
-
[
|
|
9
|
-
orchestrator,
|
|
10
|
-
discovery-analyst,
|
|
11
|
-
requirements-analyst,
|
|
12
|
-
delivery-planner,
|
|
13
|
-
solution-architect,
|
|
14
|
-
frontend-engineer,
|
|
15
|
-
backend-engineer,
|
|
16
|
-
devops-ci-engineer,
|
|
17
|
-
]
|
|
18
7
|
steps:
|
|
19
8
|
- triage-dedupe
|
|
20
9
|
- triage-request-info
|
|
@@ -4,15 +4,6 @@ title: QFAI Verify (Quality Gates + Evidence)
|
|
|
4
4
|
description: "Use when invoked by name or handed a QFAI work order to verify a change before it is handed off."
|
|
5
5
|
argument-hint: "[--auto]"
|
|
6
6
|
allowed-tools: [Read, Glob, Bash, Write, Edit, TodoWrite, Task, Agent]
|
|
7
|
-
roles:
|
|
8
|
-
[
|
|
9
|
-
orchestrator,
|
|
10
|
-
delivery-planner,
|
|
11
|
-
qa-strategist,
|
|
12
|
-
devops-ci-engineer,
|
|
13
|
-
doc-steward,
|
|
14
|
-
implementation-reviewer,
|
|
15
|
-
]
|
|
16
7
|
steps:
|
|
17
8
|
[
|
|
18
9
|
verify-repeat-run,
|