qfai 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -6
- 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/backend-engineer.md +1 -1
- package/assets/init/.qfai/assistant/agent/frontend-engineer.md +1 -1
- package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +5 -0
- package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +8 -3
- package/assets/init/.qfai/assistant/rule/constitution.md +5 -3
- package/assets/init/.qfai/assistant/rule/drift-protocol.md +18 -0
- package/assets/init/.qfai/assistant/rule/references/gate-failure-autorepair.md +1 -1
- package/assets/init/.qfai/assistant/rule/review-convergence.md +9 -3
- package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +11 -2
- package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +6 -4
- package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +5 -2
- 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-implement/SKILL.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +10 -0
- 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-prototyping/SKILL.md +10 -9
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +33 -2
- 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 +12 -3
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +3 -1
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +31 -5
- package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +17 -17
- 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 +29 -14
- 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/references/concrete-abstract-cycle.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +1 -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 +1 -0
- 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-verify/references/verify-output-contract.md +15 -9
- package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +1 -1
- package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +11 -8
- package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +15 -2
- package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +48 -11
- package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +11 -3
- package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +12 -0
- package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +18 -2
- package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +4 -0
- package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +3 -0
- package/assets/init/.qfai/assistant/step/implement-credentials/STEP.md +4 -0
- package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +31 -7
- package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +12 -3
- package/assets/init/.qfai/assistant/step/implement-procedure/STEP.md +35 -6
- package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +25 -5
- package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +26 -0
- package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +28 -5
- package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +20 -5
- package/assets/init/.qfai/assistant/step/maintain-edit/STEP.md +70 -6
- package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +39 -6
- package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +12 -3
- package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +56 -6
- package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +5 -0
- package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +8 -0
- package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +9 -4
- package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +22 -1
- package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +48 -12
- package/assets/init/.qfai/assistant/step/triage-close/STEP.md +7 -2
- package/assets/init/.qfai/assistant/step/triage-handoff/STEP.md +6 -0
- package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +76 -3
- package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +35 -10
- package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +65 -7
- 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/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 +4930 -2264
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +4690 -2016
- package/dist/cli/index.mjs.map +1 -1
- package/dist/graph/cli.cjs.map +1 -1
- 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 +3338 -1830
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -3
- package/dist/index.d.ts +59 -3
- package/dist/index.mjs +3154 -1649
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -35,6 +35,13 @@ classified by the taxonomy below before any response.
|
|
|
35
35
|
Where the stage's ledger or a seam makes an ordering mandatory, carrying on
|
|
36
36
|
does not override it.
|
|
37
37
|
- On Codex, read `.qfai/assistant/rule/references/codex-delegation.md` before delegating.
|
|
38
|
+
- The orchestrator runs every step that starts a finder, griller or reviewer,
|
|
39
|
+
and starts those agents itself: `sdd-cycle`, `common-review-cycle`,
|
|
40
|
+
`prototyping-grill`, `prototyping-loop` and any step that holds a
|
|
41
|
+
delegated grilling session, such as a pre-draft grilling checkpoint. A worker it delegates to gets only steps that start
|
|
42
|
+
none, and starts no finder, griller or reviewer. A finder is a review
|
|
43
|
+
someone other than the author has to do; where it cannot be delegated, the
|
|
44
|
+
failure handling below applies.
|
|
38
45
|
- A review is done by an agent that did not author what it reviews. The
|
|
39
46
|
orchestrator never reviews its own work and never approves it for
|
|
40
47
|
convenience.
|
|
@@ -45,6 +52,8 @@ classified by the taxonomy below before any response.
|
|
|
45
52
|
return. Only read-only fixed-SHA `git show` reviews permit clean switches.
|
|
46
53
|
Writers, local gates and reviews using live files or checkout-dependent
|
|
47
54
|
execution must finish first.
|
|
55
|
+
- A reviewer runs no suite or gate the verify stage runs; it reads their
|
|
56
|
+
results.
|
|
48
57
|
|
|
49
58
|
### Worker edit boundary
|
|
50
59
|
|
|
@@ -177,7 +186,7 @@ cannot accept its own output.
|
|
|
177
186
|
- Test volume ratios, floors and planning estimates are signals, not gates,
|
|
178
187
|
unless the skill explicitly says so.
|
|
179
188
|
- Do not declare DONE until every finding of its one review is fixed or answered, as `.qfai/assistant/rule/review-convergence.md` sets out.
|
|
180
|
-
- An in-scope blocking finding from a routed reviewer prevents DONE until it is fixed or answered;
|
|
189
|
+
- An in-scope blocking finding from a routed reviewer prevents DONE until it is fixed or answered; only a behaviour fix is re-reviewed, once.
|
|
181
190
|
- Every reviewer returning `REVISE` must include a concrete fix proposal.
|
|
182
191
|
|
|
183
192
|
#### A griller's recommendations, and what they disqualify
|
|
@@ -186,7 +195,7 @@ Read `.qfai/assistant/rule/references/griller-recommendations.md` when a griller
|
|
|
186
195
|
|
|
187
196
|
### Review convergence
|
|
188
197
|
|
|
189
|
-
A stage is reviewed once, and the author fixes or answers every finding
|
|
198
|
+
A stage is reviewed once, and the author fixes or answers every finding: `.qfai/assistant/rule/review-convergence.md`.
|
|
190
199
|
|
|
191
200
|
### Reviewer remit (in scope per stage)
|
|
192
201
|
|
|
@@ -118,16 +118,18 @@ including its `--auto` rule. What each bucket needs inside a workflow run is
|
|
|
118
118
|
|
|
119
119
|
## Canonical qfai Launcher (Mandatory)
|
|
120
120
|
|
|
121
|
-
- **Launcher preflight — run once, before the first gate
|
|
121
|
+
- **Launcher preflight — run once, before the first `npx qfai` call**, a gate or a run's `workflow plan` alike. Confirm the project resolves qfai from its own dependencies. Either proof is sufficient:
|
|
122
122
|
- **A local binary at `node_modules/.bin/qfai`.** The normal case for npm, pnpm and Yarn configured with `nodeLinker: node-modules`.
|
|
123
123
|
- **A Plug'n'Play install.** Yarn Berry's default `nodeLinker: pnp` writes no `node_modules/.bin`, so the file check alone would report a correctly installed project as UNRUN forever. Accept it when the project has a `.pnp.cjs` / `.pnp.loader.mjs` at its root and lists `qfai` in `package.json` `dependencies` / `devDependencies`; `yarn exec qfai --help` exiting 0 is the direct
|
|
124
124
|
confirmation.
|
|
125
125
|
|
|
126
|
-
If neither proof holds, every
|
|
126
|
+
If neither proof holds, every `npx qfai` call, gates included, is UNRUN: report it as a blocker and stop. `package.json` says which fix applies:
|
|
127
127
|
- **`qfai` is listed in `dependencies` or `devDependencies`, but this checkout has no install.** A fresh clone or a new worktree has no `node_modules`, and `npx qfai` then resolves the copy of a parent directory, which may be an older version of another checkout. Run the project's install command in this checkout, then run the preflight again.
|
|
128
|
+
- **`node_modules` without `.bin/qfai`.** An interrupted install: run it again, then the preflight.
|
|
128
129
|
- **`qfai` is not listed.** Install the dependency: `npm i -D qfai`, or the pnpm / yarn equivalent. `qfai` does not add itself to `package.json` on init, so a project bootstrapped with `npx qfai init` alone has no local dependency yet.
|
|
129
130
|
|
|
130
|
-
-
|
|
131
|
+
- In a checkout whose preflight passed, install again only when its `node_modules` is gone or a merge changed the lockfile or `package.json`.
|
|
132
|
+
- Once the preflight passes, invoke every `npx qfai` call, gates included, through the launcher that proof established:
|
|
131
133
|
- local binary -> `npx qfai …`, which resolves to it. `node_modules/.bin/qfai …` is the same thing spelled out; prefer it when PATH reachability is uncertain.
|
|
132
134
|
- Plug'n'Play -> `yarn exec qfai …` (equivalently `yarn qfai …`), which sets up the PnP environment for the child process. Do **not** fall back to `npx qfai` there: outside the PnP runtime it cannot see the workspace dependency and would fetch a remote copy instead.
|
|
133
135
|
|
|
@@ -135,7 +137,7 @@ including its `--auto` rule. What each bucket needs inside a workflow run is
|
|
|
135
137
|
|
|
136
138
|
- Never launch a gate as a bare `qfai` command: qfai is a project dependency, not a global one, so that is `command not found` on a normal local install — and a gate that cannot run is a gate that silently passes.
|
|
137
139
|
- The preflight is the guard, not a flag. `npx` runs "a command from a local **or remote** npm package": with nothing resolvable locally it downloads and runs one (non-interactive shells do this without prompting), and `npx --no-install` still executes a copy already sitting in the npx cache. Neither spelling can tell you the qfai that ran was this project's; only the preflight can.
|
|
138
|
-
- If the launcher cannot be resolved at any point,
|
|
140
|
+
- If the launcher cannot be resolved at any point, that call, a gate included, is UNRUN, not PASS. Report it as a blocker instead of completing the stage.
|
|
139
141
|
- The project's gate commands belong in the Standard commands section of `<paths.contractsDir>/tech.md` ([Standard Commands](#standard-commands-mandatory) below). The CI workflow generated by `npx qfai init` is the one deliberate exception: it runs before any project install can be assumed and must still be able to bootstrap.
|
|
140
142
|
|
|
141
143
|
## Standard Commands (Mandatory)
|
|
@@ -36,7 +36,8 @@ A downstream skill reads the UI definition in this order.
|
|
|
36
36
|
|
|
37
37
|
4. **Prototype handoff** (`.qfai/prototype/final/handoff.json`, when a
|
|
38
38
|
prototyping loop ran): the final prototype, procurement and implementation
|
|
39
|
-
notes
|
|
39
|
+
notes, or, for a `restyle` handoff, its `liveRoutes` (compare in the running
|
|
40
|
+
app) and `entryPoints`
|
|
40
41
|
|
|
41
42
|
The supplements and structure are required input: implementation adds no text the
|
|
42
43
|
contract does not declare, and surface review compares the rendered text with them.
|
|
@@ -77,7 +77,9 @@ before running `discussion-uiux`.
|
|
|
77
77
|
|
|
78
78
|
Every UI-bearing pack carries `uiux/00_index.md`, `uiux/40_screen_contracts.md`
|
|
79
79
|
and `uiux/50_review_input_bundle.md`. That is the whole family, on every
|
|
80
|
-
UI-bearing surface including `cli`.
|
|
80
|
+
UI-bearing surface including `cli`. A pack that keeps the current root
|
|
81
|
+
`DESIGN.md` may declare `design_direction: inherit` instead
|
|
82
|
+
(`references/ui-bearing-playbook.md#inheriting-the-current-designmd`).
|
|
81
83
|
|
|
82
84
|
A **cli-only** pack (`primary_surface: cli`, no visual `secondary_surfaces`
|
|
83
85
|
entry) keeps all three sidecars, but the brand questions do not apply to it:
|
|
@@ -135,6 +137,7 @@ inputs and uncovered human decisions retain their ordinary blocking behavior.
|
|
|
135
137
|
|
|
136
138
|
project_memory:
|
|
137
139
|
|
|
138
|
-
- The nine-file mandatory output set is fixed; the UI-bearing sidecar family (00_index.md + 40_screen_contracts.md + 50_review_input_bundle.md) is required whenever the target is UI-bearing, cli included
|
|
140
|
+
- The nine-file mandatory output set is fixed; the UI-bearing sidecar family (00_index.md + 40_screen_contracts.md + 50_review_input_bundle.md) is required whenever the target is UI-bearing, cli included, except that a pack declaring `design_direction: inherit` may omit 40/50 and the registries under the conditions of `references/ui-bearing-playbook.md#inheriting-the-current-designmd`.
|
|
141
|
+
- Root DESIGN.md is not a discussion output: `/qfai-sdd`'s `common-design-md` step authors it from this pack.
|
|
139
142
|
- Discussion is planner-first: never pick a single visual winner; carry exploration references as deviate-from inputs, not imitate-this.
|
|
140
143
|
- Completion requires Disposition: open count = 0 in 11_OQ-Register.md; each deferred row there records its Resolution and names the next point at which it is decided.
|
package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-completion-matrix.md
CHANGED
|
@@ -7,6 +7,7 @@ Use this file for the full completion logic behind `/qfai-discussion`.
|
|
|
7
7
|
- All Packs
|
|
8
8
|
- UI-bearing Packs
|
|
9
9
|
- CLI Packs
|
|
10
|
+
- Inheriting Packs
|
|
10
11
|
- Non-UI Packs
|
|
11
12
|
- Notes
|
|
12
13
|
|
|
@@ -21,8 +22,8 @@ Blocking for every pack, UI-bearing or not:
|
|
|
21
22
|
`sources` / `best_practices` / `anti_patterns` / `reflection` are non-empty, every `source_id`
|
|
22
23
|
resolves to a `sources[].id`, and at least one `reflection[]` entry records an apply decision.
|
|
23
24
|
`npx qfai validate --profile discussion --fail-on error` reports `QFAI-RESEARCH-*` until it is.
|
|
24
|
-
2.
|
|
25
|
-
with `Ended` reading an authoring ending and its conditions met:
|
|
25
|
+
2. Every row of the stage report's `## Grilling Session` table has its `Ended at` before its own
|
|
26
|
+
`Authoring began` (for a reopened row, when authoring resumed), with `Ended` reading an authoring ending and its conditions met:
|
|
26
27
|
|
|
27
28
|
| Ended | Also required |
|
|
28
29
|
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -106,6 +107,18 @@ so conditions 1 and 5 above do not apply to it:
|
|
|
106
107
|
- `primary_surface: cli` with a visual `secondary_surfaces` entry is NOT a cli-only pack —
|
|
107
108
|
conditions 1 and 2 stay blocking for it.
|
|
108
109
|
|
|
110
|
+
## Inheriting Packs
|
|
111
|
+
|
|
112
|
+
A pack whose classification declares `design_direction: inherit` keeps the current root
|
|
113
|
+
`DESIGN.md`, under the conditions the inheriting section of the UI-bearing playbook sets out:
|
|
114
|
+
it changes existing screens only and records no direction of its own.
|
|
115
|
+
|
|
116
|
+
- UI-bearing items 1 and 5 do not apply: no Trend Scan, no minimum count of competitive or
|
|
117
|
+
catalogue references, and no Design Direction. A reference it does fill in is still complete.
|
|
118
|
+
- From item 2, `uiux/00_index.md` stays required; `40_screen_contracts.md` and
|
|
119
|
+
`50_review_input_bundle.md` may be left out. A screen contract it does write keeps item 3.
|
|
120
|
+
- Items 4 and All Packs item 3 apply unchanged.
|
|
121
|
+
|
|
109
122
|
## Non-UI Packs
|
|
110
123
|
|
|
111
124
|
- No uiux sidecars required
|
|
@@ -70,6 +70,23 @@ shadows:
|
|
|
70
70
|
handoff to read for a cli-only target, leaving
|
|
71
71
|
`<paths.contractsDir>/ui/*.yaml` as its UI contract input.
|
|
72
72
|
|
|
73
|
+
### Inheriting the current DESIGN.md
|
|
74
|
+
|
|
75
|
+
A pack that changes existing screens and keeps the current root `DESIGN.md`
|
|
76
|
+
may declare `design_direction: inherit` in the classification block of
|
|
77
|
+
`01_Context.md`. It then records no Design Direction and owes no Trend Scan,
|
|
78
|
+
no minimum count of competitive or catalogue references, and no
|
|
79
|
+
`uiux/40_screen_contracts.md` or `uiux/50_review_input_bundle.md`. A reference
|
|
80
|
+
or screen contract it does write is still checked. An existing screen is one
|
|
81
|
+
whose `screen_id` equals the `screens[].id` of a UI contract under
|
|
82
|
+
`<paths.contractsDir>/ui/`. The declaration waives nothing in the Research
|
|
83
|
+
Summary of `04_Sources.md`: the research-first protocol runs for every pack.
|
|
84
|
+
|
|
85
|
+
The declaration is not allowed when the pack adds a screen or changes the
|
|
86
|
+
design direction. `npx qfai validate` reports `QFAI-CLASSIFICATION-011` when the
|
|
87
|
+
screen contracts name a `screen_id` no UI contract's `screens[].id` declares, or when
|
|
88
|
+
Design Direction records an `adopted_theme` or `brand_accent`.
|
|
89
|
+
|
|
73
90
|
### Trend Scan SSOT
|
|
74
91
|
|
|
75
92
|
Trend Scan is **not** a sidecar file. Trend Scan lives at
|
package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md
CHANGED
|
@@ -60,7 +60,9 @@ Reject a trend when:
|
|
|
60
60
|
## Competitive Reference Registry Expectations
|
|
61
61
|
|
|
62
62
|
Register at least `uiux.competitive_refs_min` references (default: 3) by
|
|
63
|
-
repeating the `### Reference:` block in `04_Sources.md`.
|
|
63
|
+
repeating the `### Reference:` block in `04_Sources.md`. A pack whose
|
|
64
|
+
classification declares `design_direction: inherit` owes no count and no Trend
|
|
65
|
+
Scan, under the conditions of the inheriting section of the UI-bearing playbook. For each meaningful
|
|
64
66
|
competitor or reference pattern, capture:
|
|
65
67
|
|
|
66
68
|
- what was adopted
|
|
@@ -11,6 +11,7 @@ Classification determines whether UI/UX sidecar artifacts are required.
|
|
|
11
11
|
- secondary_surfaces:
|
|
12
12
|
- [optional]
|
|
13
13
|
- classification_rationale: [Why this classification was chosen]
|
|
14
|
+
- design_direction: [new|inherit]
|
|
14
15
|
|
|
15
16
|
Notes:
|
|
16
17
|
|
|
@@ -19,10 +20,12 @@ Notes:
|
|
|
19
20
|
- `cli` is a UI-bearing surface. When classified as `cli`, set `ui_bearing: true`. `cli` is not a visual-prototyping surface, so a **cli-only** pack — `primary_surface: cli` with no `web`/`mobile`/`desktop`/`mixed` entry in `secondary_surfaces` — gets no root `DESIGN.md` (see `references/ui-bearing-playbook.md#visual-prototyping-surfaces-vs-cli`). A visual `secondary_surfaces` entry still requires one.
|
|
20
21
|
- Prototyping **execution** surfaces (used in `prototyping.yaml`) are a strict subset: `web|mobile|desktop|mixed`.
|
|
21
22
|
- `cli` and `non-ui` are classification-only values and never appear in `prototyping.yaml`. `/qfai-prototyping` rejects them, so a cli-only pack emits none.
|
|
23
|
+
- `design_direction: inherit` declares that the pack keeps the current root `DESIGN.md`: it changes existing screens only and sets no direction of its own. Such a pack owes no Trend Scan, no minimum count of competitive or catalogue references, and no `uiux/40_screen_contracts.md` or `uiux/50_review_input_bundle.md`.
|
|
24
|
+
- `npx qfai validate` refuses `inherit` when `uiux/40_screen_contracts.md` names a `screen_id` that matches no `screens[].id` of the project's UI contracts, or when Design Direction below records an `adopted_theme` or `brand_accent`. Use `new` for anything else.
|
|
22
25
|
|
|
23
26
|
## Design Direction
|
|
24
27
|
|
|
25
|
-
Required when a classified surface is `web`, `mobile`, `desktop` or `mixed`. Omit for cli-only and non-ui
|
|
28
|
+
Required when a classified surface is `web`, `mobile`, `desktop` or `mixed`. Omit for cli-only and non-ui, and when the classification declares `design_direction: inherit`.
|
|
26
29
|
|
|
27
30
|
The user chooses this; `references/design-dna-intake.md` says how to put the choice to them. `/qfai-sdd`'s `common-design-md` step authors root `DESIGN.md` from it, and asks nothing further.
|
|
28
31
|
|
|
@@ -94,6 +94,8 @@ classification or an explicit user decision.
|
|
|
94
94
|
|
|
95
95
|
## Trend Scan
|
|
96
96
|
|
|
97
|
+
A pack whose `01_Context.md` declares `design_direction: inherit` owes no Trend Scan.
|
|
98
|
+
|
|
97
99
|
### user expectation / market norm
|
|
98
100
|
|
|
99
101
|
#### Entry 1
|
|
@@ -235,7 +237,9 @@ registered is held to all three fields either way.
|
|
|
235
237
|
UI-bearing packs must register at least `uiux.competitive_refs_min` complete
|
|
236
238
|
references (default: 3). Three blocks are pre-seeded below; copy another
|
|
237
239
|
`### Reference:` block for each reference beyond that, and delete any block you
|
|
238
|
-
do not use only if the remaining count still meets the minimum.
|
|
240
|
+
do not use only if the remaining count still meets the minimum. A pack that
|
|
241
|
+
declares `design_direction: inherit` owes no count; a reference it registers is
|
|
242
|
+
still complete.
|
|
239
243
|
|
|
240
244
|
Each `reference` is a resolvable URL, repository path, or `SRC-ID`. Use a
|
|
241
245
|
competitor to identify what this product should differ from. State adopted and
|
|
@@ -22,7 +22,10 @@ brand-level intent layer at all.
|
|
|
22
22
|
## Completeness Rule
|
|
23
23
|
|
|
24
24
|
All three required files above must be present for every UI-bearing pack.
|
|
25
|
-
Partial generation is not permitted.
|
|
25
|
+
Partial generation is not permitted. The one exception: a pack whose
|
|
26
|
+
classification declares `design_direction: inherit` may leave out
|
|
27
|
+
`40_screen_contracts.md` and `50_review_input_bundle.md`, under the conditions of
|
|
28
|
+
`.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md#inheriting-the-current-designmd`.
|
|
26
29
|
|
|
27
30
|
Root `DESIGN.md` is not one of them. `/qfai-sdd`'s `common-design-md` step authors it, and only
|
|
28
31
|
on a visual-prototyping surface (`web`, `mobile`, `desktop`, `mixed`). A
|
|
@@ -120,8 +120,8 @@ Read the `STEP.md` of the current step only, run it, then move to the next.
|
|
|
120
120
|
Each step names the common steps it runs in `requires`; read those when the
|
|
121
121
|
step reaches them.
|
|
122
122
|
|
|
123
|
-
Inside an `npx qfai workflow` run, the
|
|
124
|
-
this file adds nothing
|
|
123
|
+
Inside an `npx qfai workflow` run, the plan's stage lists the steps to run, and
|
|
124
|
+
its work order names the flow; this file adds nothing.
|
|
125
125
|
|
|
126
126
|
### Reviewer Gate
|
|
127
127
|
|
package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md
CHANGED
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
Process one open EX at a time in ascending ID order within the selected BF flow. Parallel item work requires explicit user approval and a delivery-planner PASS on concrete independence. Parallel role review of one item does not require parallel item authorization.
|
|
6
6
|
|
|
7
|
+
## Work orders per flow
|
|
8
|
+
|
|
9
|
+
When the extraction declares several flows, the plan gives each implement stage
|
|
10
|
+
one work order per flow, its `target` naming that flow, in ascending flow ID
|
|
11
|
+
order. Run them one at a time in that order. Each runs every step of the stage
|
|
12
|
+
for its own flow and completes on that flow's gates. The stage's review runs
|
|
13
|
+
once, after its last work order. Two work orders run in
|
|
14
|
+
parallel only with explicit user approval and a delivery-planner PASS on the
|
|
15
|
+
independence gate below, compared across both flows.
|
|
16
|
+
|
|
7
17
|
## Independence gate
|
|
8
18
|
|
|
9
19
|
For each candidate item, name its production files, test files, contracts, fixtures, schema or database objects, and shared resources such as ports. Disjoint filenames alone are insufficient: compare read and write sets, imports, shared fixtures, persistence, generated assets, and external process state. If any dependency is uncertain, use serial execution.
|
|
@@ -52,6 +52,41 @@ The normal verify run establishes full collection coverage; no extra full suite
|
|
|
52
52
|
required for each focused cycle. This receipt adds no ledger, JSON field,
|
|
53
53
|
gate status, runtime parser or runner.
|
|
54
54
|
|
|
55
|
+
## CI-only Test gate
|
|
56
|
+
|
|
57
|
+
Where the Standard commands entry for the Test gate is written
|
|
58
|
+
`CI only: <check name>`, the project runs its tests in CI alone, and no focused
|
|
59
|
+
Red, Green or Refactor invocation runs locally. The same holds when the user's
|
|
60
|
+
instruction for this run delegates that gate to a named CI check: that
|
|
61
|
+
delegation holds for this run only. Record those phases `ci-deferred` instead:
|
|
62
|
+
|
|
63
|
+
- Write the test before any production code, as for an observed Red, and do
|
|
64
|
+
not run it.
|
|
65
|
+
- In the example's `### EX-NNNN-NNNN-NN` section, the stage report says
|
|
66
|
+
`red: ci-deferred`, `green: ci-deferred` and `refactor: ci-deferred`, with
|
|
67
|
+
the test path, its selector and the check name.
|
|
68
|
+
This is a report label, not a gate status: no gate counts it, and it is not
|
|
69
|
+
a pass. The Test gate stays DELEGATED to that check in the verify stage.
|
|
70
|
+
- For a delegation by instruction, the stage report quotes the instruction word
|
|
71
|
+
for word and says where it came from: this request, an answer to a question,
|
|
72
|
+
or the project's agent instructions. A standing instruction in the project's
|
|
73
|
+
agent instructions counts for each run it is in force. A delegation requires
|
|
74
|
+
an actual CI check that runs this test; local environment failure alone
|
|
75
|
+
creates no delegation. Without an instruction that can be quoted, nothing is
|
|
76
|
+
deferred and the focused phases run locally; the agent never defers them on
|
|
77
|
+
its own judgment.
|
|
78
|
+
- The route's code review reads the test against the code before the fix and
|
|
79
|
+
confirms that its assertion fails there on the stated behavior. A test that
|
|
80
|
+
would pass both before and after the fix is a finding.
|
|
81
|
+
|
|
82
|
+
Where the run has authority to push and open a pull request, from the user's
|
|
83
|
+
instruction or the project's policy, it may observe Red in CI instead: push a
|
|
84
|
+
commit that holds only the test, for example on a draft pull request, confirm
|
|
85
|
+
that the named check fails on the new test's assertion, and record the run URL
|
|
86
|
+
as the Red. A run without that authority does not push to observe Red. Under a
|
|
87
|
+
delegation by instruction, that test-only commit is the expected way to observe
|
|
88
|
+
Red whenever the run has that authority.
|
|
89
|
+
|
|
55
90
|
## Assertion control
|
|
56
91
|
|
|
57
92
|
Temporarily neutralize only the example assertion while keeping the test compilable and runnable. The same command must pass. Capture the changed lines and result, then restore the assertion before recording RED. This control shows that the reported failure came from the assertion.
|