qfai 2.4.0 → 2.5.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 +24 -16
- package/assets/defaults/workflows/apply-settled.yml +2 -0
- package/assets/defaults/workflows/decide-design.yml +1 -6
- package/assets/defaults/workflows/decompose-epic.yml +1 -1
- package/assets/init/.claude/settings.json +1 -1
- package/assets/init/.qfai/assistant/agent/architecture-reviewer.md +1 -0
- package/assets/init/.qfai/assistant/agent/fullstack-engineer.md +6 -9
- package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +9 -1
- package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +70 -4
- package/assets/init/.qfai/assistant/agent/requirements-reviewer.md +1 -0
- package/assets/init/.qfai/assistant/rule/constitution.md +3 -2
- package/assets/init/.qfai/assistant/rule/drift-protocol.md +5 -5
- package/assets/init/.qfai/assistant/rule/references/deliberation-record-template.md +23 -0
- package/assets/init/.qfai/assistant/rule/references/deliberation-record.md +36 -0
- package/assets/init/.qfai/assistant/rule/references/griller-recommendations.md +3 -3
- package/assets/init/.qfai/assistant/rule/references/launcher-preflight.md +27 -0
- package/assets/init/.qfai/assistant/rule/references/reviewer-findings.md +9 -0
- package/assets/init/.qfai/assistant/rule/references/reviewer-remit.md +23 -15
- package/assets/init/.qfai/assistant/rule/references/visual-reference-survey.md +146 -0
- package/assets/init/.qfai/assistant/rule/references/worker-edit-boundary.md +2 -0
- package/assets/init/.qfai/assistant/rule/research-first-protocol.md +49 -11
- package/assets/init/.qfai/assistant/rule/review-convergence.md +15 -16
- package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +3 -0
- package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +13 -25
- package/assets/init/.qfai/assistant/rule/test-layers.md +8 -0
- package/assets/init/.qfai/assistant/rule/thinking.md +10 -5
- package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +4 -4
- package/assets/init/.qfai/assistant/rule/ui-procurement.md +50 -10
- package/assets/init/.qfai/assistant/rule/workflow.md +4 -3
- package/assets/init/.qfai/assistant/skill/qfai-configure/SKILL.md +3 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +22 -56
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/design-dna-intake.md +11 -14
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-coverage-checklist.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +6 -4
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/discussion-delegation.md +46 -0
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/glossary-check.md +23 -0
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-check.md +25 -0
- package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +12 -1
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +2 -3
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +47 -8
- package/assets/init/.qfai/assistant/skill/qfai-maintain/SKILL.md +2 -0
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/SKILL.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +6 -2
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +6 -9
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +24 -15
- package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +7 -3
- package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +4 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/business-ui-patterns.md +180 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +14 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-anti-patterns.md +14 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-authoring.md +39 -24
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-brand-catalog.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/marketing-ui-patterns.md +194 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/requirements-decomposition.md +27 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +29 -22
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +3 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +4 -4
- 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 +4 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +6 -6
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +87 -4
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-design-contract-normalization.md +6 -7
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/api-contract.sample.yaml +3 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/db-contract.sample.sql +3 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/ui-contract.sample.yaml +40 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/report/preflight_summary.md +10 -16
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/01_policy/constraint.md +10 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/01_policy/initiative.md +5 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/03_contract/tech.md +1 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +8 -2
- package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +4 -0
- package/assets/init/.qfai/assistant/skill/qfai-verify/SKILL.md +4 -2
- package/assets/init/.qfai/assistant/skill/qfai-verify/references/context-load.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +4 -1
- package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +11 -8
- package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +1 -1
- package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +25 -60
- package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +18 -6
- package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +45 -95
- package/assets/init/.qfai/assistant/step/discussion-research/STEP.md +11 -13
- package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +2 -2
- package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +52 -8
- package/assets/init/.qfai/assistant/step/implement-settled-edit/STEP.md +78 -0
- package/assets/init/.qfai/assistant/step/implement-sweep/STEP.md +3 -3
- package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +20 -2
- package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +4 -0
- package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +3 -2
- package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +6 -1
- package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +58 -11
- package/assets/init/.qfai/assistant/step/sdd-flow/STEP.md +41 -27
- package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +2 -1
- package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +43 -26
- package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +8 -3
- package/assets/init/.qfai/assistant/step/triage-close/STEP.md +12 -6
- package/assets/init/.qfai/assistant/step/triage-decompose/STEP.md +2 -1
- package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +36 -6
- package/assets/init/.qfai/assistant/step/triage-security-intake/STEP.md +2 -0
- package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +3 -1
- package/assets/init/.qfai/assistant/step/verify-context/STEP.md +3 -3
- package/assets/init/.qfai/assistant/step/verify-release-notes/STEP.md +11 -3
- package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +22 -0
- package/assets/init/root/.agents/rules/delegation-steering.md +4 -2
- package/assets/init/root/.agents/rules/distributed-surface.md +1 -1
- package/assets/init/root/.agents/rules/grilling.md +28 -76
- package/assets/init/root/.agents/rules/interface-clarity.md +98 -6
- package/assets/init/root/.gitattributes +7 -5
- package/assets/init/root/.github/workflows/qfai-docs.yml +1 -1
- package/assets/init/root/qfai.config.yaml +1 -1
- package/assets/mdschema/story/01_policy/constraint.mdschema.yml +46 -2
- package/assets/mdschema/story/01_policy/initiative.mdschema.yml +18 -0
- package/assets/mdschema/story/03_contract/tech.mdschema.yml +5 -2
- package/assets/uix-rev/strategy-review.md +1 -1
- package/dist/cli/index.cjs +3787 -7097
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +3647 -6970
- package/dist/cli/index.mjs.map +1 -1
- package/dist/graph/cli.cjs +966 -222
- package/dist/graph/cli.cjs.map +1 -1
- package/dist/graph/cli.mjs +942 -198
- package/dist/graph/cli.mjs.map +1 -1
- package/dist/graph/hook.cjs +999 -88
- package/dist/graph/hook.cjs.map +1 -1
- package/dist/graph/hook.mjs +996 -85
- package/dist/graph/hook.mjs.map +1 -1
- package/dist/hook/turn-end.cjs +15 -45
- package/dist/hook/turn-end.cjs.map +1 -1
- package/dist/hook/turn-end.mjs +15 -45
- package/dist/hook/turn-end.mjs.map +1 -1
- package/dist/index.cjs +15398 -18327
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -41
- package/dist/index.d.ts +32 -41
- package/dist/index.mjs +19276 -22214
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-artifact-rules.md +0 -53
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-completion-matrix.md +0 -133
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/example-mapping-guide.md +0 -18
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/oq-and-deferred-rules.md +0 -84
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md +0 -95
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/platform_baselines.md +0 -118
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/review_audit_playbook.md +0 -115
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md +0 -81
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux_best_practices.md +0 -184
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/01_Context.md +0 -143
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/03_Story-Workshop.md +0 -104
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/04_Sources.md +0 -276
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/05_Scope.md +0 -36
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/06_REQ.md +0 -26
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/07_NFR.md +0 -24
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/08_Glossary.md +0 -23
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/09_Constraints.md +0 -60
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/11_OQ-Register.md +0 -38
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/prototyping.yaml +0 -8
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/00_index.md +0 -35
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/40_screen_contracts.md +0 -62
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/50_review_input_bundle.md +0 -38
- package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +0 -70
- package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +0 -199
- package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +0 -82
- package/assets/uix-rev/contracts-review.md +0 -27
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: discussion-oq
|
|
3
|
-
owner: qfai-discussion
|
|
4
|
-
purpose: "Register every open question the discussion leaves, and drive the open count to zero."
|
|
5
|
-
requires: []
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# discussion-oq
|
|
9
|
-
|
|
10
|
-
Keeps the pack's open-question register. The open count is what blocks a
|
|
11
|
-
discussion from completing, so a decision nobody took cannot close the pack.
|
|
12
|
-
|
|
13
|
-
## Precondition
|
|
14
|
-
|
|
15
|
-
The same as `discussion-pack`: this run's stage report holds the
|
|
16
|
-
`## Grilling Session` row, its `Ended at` is written, and `Ended` is
|
|
17
|
-
`confirmed`, `user-closed`, `no-question`, or `adopted` meeting
|
|
18
|
-
`.agents/rules/grilling.md#explicit-delegation-for-a-discussion`.
|
|
19
|
-
Check the actual delegation and rounds, required inputs, empty tree and
|
|
20
|
-
human authority in the stage evidence; the ending label alone is insufficient.
|
|
21
|
-
Without that row, or with
|
|
22
|
-
`Ended: stopped`, write nothing and stop.
|
|
23
|
-
|
|
24
|
-
## A critical decision found while authoring
|
|
25
|
-
|
|
26
|
-
A decision found while registering that is critical under
|
|
27
|
-
`.agents/rules/grilling.md#critical-decisions` reopens the session for that
|
|
28
|
-
node only. Stop writing, ask the user one round on that node, record the round
|
|
29
|
-
as `.qfai/assistant/step/common-grilling-record/STEP.md#a-reopened-node` says,
|
|
30
|
-
then resume. The rest of the session's record stays as it is.
|
|
31
|
-
Recording the decision as an assumption is allowed only under a no-question
|
|
32
|
-
mode, labelled beside its open question.
|
|
33
|
-
A stop in that round ends the run as `stopped` does: no row is written,
|
|
34
|
-
writing stops, and the report names the pack files already written and the open node.
|
|
35
|
-
|
|
36
|
-
## Reads
|
|
37
|
-
|
|
38
|
-
- `.qfai/assistant/skill/qfai-discussion/references/oq-and-deferred-rules.md`
|
|
39
|
-
for the canonical fields of the register, and for where each session outcome
|
|
40
|
-
goes.
|
|
41
|
-
- `.qfai/assistant/skill/qfai-discussion/references/discussion-coverage-checklist.md`.
|
|
42
|
-
- The `Example Seeds` in `03_Story-Workshop.md`.
|
|
43
|
-
|
|
44
|
-
## Writes
|
|
45
|
-
|
|
46
|
-
In the pack under work:
|
|
47
|
-
|
|
48
|
-
- `11_OQ-Register.md`
|
|
49
|
-
|
|
50
|
-
## Procedure
|
|
51
|
-
|
|
52
|
-
1. Register each decision the session did not settle in `11_OQ-Register.md`
|
|
53
|
-
with `Disposition: open`. Under `--auto`, that includes each labelled
|
|
54
|
-
assumption the session recorded.
|
|
55
|
-
2. Turn every coverage-checklist topic the session did not cover, and every
|
|
56
|
-
unresolved example seed, into an open question with an owner and a decision
|
|
57
|
-
point, or into a deferred item.
|
|
58
|
-
3. Resolve open questions until the `Disposition: open` count is zero. Move
|
|
59
|
-
each row to the disposition the reference names — `resolved`, `deferred` or
|
|
60
|
-
`rejected` — and fill the fields that disposition requires.
|
|
61
|
-
|
|
62
|
-
## Gate
|
|
63
|
-
|
|
64
|
-
The reviewer confirms:
|
|
65
|
-
|
|
66
|
-
- every required topic in the coverage checklist is covered, or captured as an
|
|
67
|
-
open question or a deferred item;
|
|
68
|
-
- every deferred row records its `Resolution`, and names in `Next-Decision-Point`
|
|
69
|
-
the next point at which it is decided;
|
|
70
|
-
- no recommendation is left implicit.
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: discussion-pack
|
|
3
|
-
owner: qfai-discussion
|
|
4
|
-
purpose: "Author the discussion pack from what the interview settled."
|
|
5
|
-
requires: []
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# discussion-pack
|
|
9
|
-
|
|
10
|
-
Writes the pack a downstream stage takes the design from. Artifact files, not
|
|
11
|
-
conversational summaries, are the handoff.
|
|
12
|
-
|
|
13
|
-
## Precondition
|
|
14
|
-
|
|
15
|
-
**Authoring the pack** does not start until the session has ended. This run's
|
|
16
|
-
stage report holds the `## Grilling Session` row, its `Ended at` is written,
|
|
17
|
-
and `Ended` is `confirmed`, `user-closed`, `no-question`, or `adopted` meeting
|
|
18
|
-
`.agents/rules/grilling.md#explicit-delegation-for-a-discussion`.
|
|
19
|
-
Check the actual delegation and rounds, required inputs, empty tree and
|
|
20
|
-
human authority in the stage evidence; the ending label alone is insufficient.
|
|
21
|
-
Without that row,
|
|
22
|
-
or with `Ended: stopped`, write no pack file and stop. A pack drafted
|
|
23
|
-
mid-session records a design that was still being decided, and the draft is
|
|
24
|
-
what the rest of the run then defends.
|
|
25
|
-
|
|
26
|
-
## A critical decision found while authoring
|
|
27
|
-
|
|
28
|
-
A decision found while authoring that is critical under
|
|
29
|
-
`.agents/rules/grilling.md#critical-decisions` reopens the session for that
|
|
30
|
-
node only. Stop writing the pack, ask the user one round on that node, record
|
|
31
|
-
the round as `.qfai/assistant/step/common-grilling-record/STEP.md#a-reopened-node`
|
|
32
|
-
says, then resume. The rest of the session's record stays as it is.
|
|
33
|
-
Recording the decision as an assumption is allowed only under a no-question
|
|
34
|
-
mode, labelled beside its open question.
|
|
35
|
-
A stop in that round ends the run as `stopped` does: no row is written,
|
|
36
|
-
writing stops, and the report names the pack files already written and the open node.
|
|
37
|
-
|
|
38
|
-
## Passes when
|
|
39
|
-
|
|
40
|
-
Read first: the pack under work and the interview's answers. The step passes
|
|
41
|
-
when the pack already records every answer the interview gave, so there is
|
|
42
|
-
nothing to write. The pass names the pack path.
|
|
43
|
-
|
|
44
|
-
## Reads
|
|
45
|
-
|
|
46
|
-
- The research summary and the `## Grilling Session` row from the stage report.
|
|
47
|
-
- `.qfai/assistant/skill/qfai-discussion/references/discussion-artifact-rules.md`
|
|
48
|
-
for the pack's fixed file set and naming.
|
|
49
|
-
- The templates under `.qfai/assistant/skill/qfai-discussion/templates/`.
|
|
50
|
-
- `.agents/rules/documentation-clarity.md`, when writing the prose this step produces.
|
|
51
|
-
|
|
52
|
-
## Writes
|
|
53
|
-
|
|
54
|
-
Under `.qfai/discussion/discussion-<YYYYMMDDhhmmssSSS>/`, opened under the
|
|
55
|
-
run's stamp:
|
|
56
|
-
|
|
57
|
-
- `01_Context.md`, `03_Story-Workshop.md`, `04_Sources.md`, `05_Scope.md`,
|
|
58
|
-
`06_REQ.md`, `07_NFR.md`, `08_Glossary.md` and `09_Constraints.md`;
|
|
59
|
-
- `prototyping.yaml`, only where step 8 below calls for it.
|
|
60
|
-
|
|
61
|
-
Discussion authors no design artifact outside its own pack. The brand SSOT — root `DESIGN.md` — is
|
|
62
|
-
authored by `/qfai-sdd`'s `common-design-md` step from what this pack records: the
|
|
63
|
-
classification in `01_Context.md`, the reference registries in `04_Sources.md`,
|
|
64
|
-
and the `uiux/` sidecars. Root DESIGN.md is not a discussion output.
|
|
65
|
-
|
|
66
|
-
## Procedure
|
|
67
|
-
|
|
68
|
-
1. Open the pack and carry the research summary into the `## Research Summary`
|
|
69
|
-
section of `04_Sources.md`, then register source traceability there.
|
|
70
|
-
2. Run the Inception Deck in `01_Context.md#Inception Deck`, with at least one
|
|
71
|
-
Mermaid diagram.
|
|
72
|
-
3. Run the Story Workshop in `03_Story-Workshop.md`: user stories and user
|
|
73
|
-
flows, with at least one Mermaid diagram. Behavior obligations are primary;
|
|
74
|
-
an HTML+CSS mock is an optional fallback only. Where a mock includes links,
|
|
75
|
-
author them in anchor-form (`<a href="#name">`); external `http(s)://` links
|
|
76
|
-
are also allowed. A same-origin absolute path (`/orders/`) is not: a static
|
|
77
|
-
mock cannot serve it and the validator rejects it (QFAI-MOCK-010).
|
|
78
|
-
4. Capture scope, REQ, NFR, glossary, constraints, and policies in `05_Scope.md`
|
|
79
|
-
to `09_Constraints.md`.
|
|
80
|
-
5. Run Example Mapping per
|
|
81
|
-
`.qfai/assistant/skill/qfai-discussion/references/example-mapping-guide.md`
|
|
82
|
-
and capture `Example Seeds`.
|
|
83
|
-
6. Record each decision the session settled, and each option it turned down, in
|
|
84
|
-
the pack file
|
|
85
|
-
`.qfai/assistant/skill/qfai-discussion/references/oq-and-deferred-rules.md#where-a-grilling-sessions-outcome-goes`
|
|
86
|
-
names for it.
|
|
87
|
-
7. Record the design direction settled in the interview — the chosen theme and
|
|
88
|
-
the design-DNA answers behind it — in `01_Context.md#Design Direction`. The
|
|
89
|
-
choice is made in the session, not here; this step writes it down. Required
|
|
90
|
-
when any classified surface — primary or secondary — is `web`, `mobile`,
|
|
91
|
-
`desktop` or `mixed`; skip for cli-only and non-ui targets. The answers, not
|
|
92
|
-
a rendered brand file, are the handoff. A pack whose classification declares
|
|
93
|
-
`design_direction: inherit` records no direction and skips the registries
|
|
94
|
-
and the 40/50 sidecars, under the conditions of
|
|
95
|
-
`.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md#inheriting-the-current-designmd`.
|
|
96
|
-
8. Generate `prototyping.yaml` only for a visual prototyping surface; a cli-only pack emits none.
|
|
97
|
-
Write it where the pack targets `web`, `mobile`, `desktop` or `mixed` and an
|
|
98
|
-
explicit prototyping recommendation is useful. `/qfai-prototyping` rejects
|
|
99
|
-
`cli`.
|
|
100
|
-
|
|
101
|
-
### UI-bearing packs
|
|
102
|
-
|
|
103
|
-
Decide whether the target is UI-bearing with
|
|
104
|
-
`.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md`.
|
|
105
|
-
|
|
106
|
-
- In `04_Sources.md#Exploration Direction Inputs`, record product intent and
|
|
107
|
-
must-keep interactions. On a visual-prototyping surface, also record brand
|
|
108
|
-
signals and differentiation targets from the interview. Give each recorded
|
|
109
|
-
statement a `SRC-ID` or a precise interview decision reference. Keep a
|
|
110
|
-
missing value blank, mark it `missing`, and add an open question; do not
|
|
111
|
-
treat that row as completed. A cli-only or non-UI inapplicability needs a
|
|
112
|
-
reason and the `01_Context.md` surface classification.
|
|
113
|
-
- In `04_Sources.md#Design Anti-Goals`, record each rejected direction, why it
|
|
114
|
-
was rejected, a concrete cue for its recurrence, and its decision or source.
|
|
115
|
-
If none has been established, keep the row `missing` and ask through the
|
|
116
|
-
session; do not manufacture an anti-goal or its evidence.
|
|
117
|
-
- On a visual-prototyping surface, `04_Sources.md` carries both reference
|
|
118
|
-
registries, each entry naming what was adopted, what was rejected, and how it
|
|
119
|
-
was translated. Competitor references are **deviate-from** inputs, not
|
|
120
|
-
imitate-this; catalogue references are adopt-from. Together they are what
|
|
121
|
-
`/qfai-sdd`'s `common-design-md` step turns into root `DESIGN.md` front matter and
|
|
122
|
-
its `# Brand Philosophy` body, so an entry left blank leaves a brand field
|
|
123
|
-
with nothing behind it. A registry `reference` resolves to a URL, repository
|
|
124
|
-
path, or `SRC-ID`. A pack declaring `design_direction: inherit` owes neither
|
|
125
|
-
registry nor the Trend Scan (see step 7).
|
|
126
|
-
|
|
127
|
-
Discussion is planner-first: carry the screen explorations unranked and do not
|
|
128
|
-
finalize the design system here. The brand direction is the exception — which
|
|
129
|
-
published theme the product is built on is the user's decision, and there is no
|
|
130
|
-
later stage where they are asked.
|
|
131
|
-
|
|
132
|
-
## Parse the diagrams
|
|
133
|
-
|
|
134
|
-
Before the gate, parse every Mermaid diagram the pack holds with Mermaid's own
|
|
135
|
-
grammar. `npx qfai validate` checks only that a diagram is there; a diagram that
|
|
136
|
-
does not parse is otherwise found by CI, after handoff.
|
|
137
|
-
|
|
138
|
-
1. Where the project has no `node_modules/qfai`, install the release that
|
|
139
|
-
`npx qfai --version` prints into a directory of its own, and read
|
|
140
|
-
`tmp/qfai-release/node_modules/qfai/` wherever the steps below name
|
|
141
|
-
`node_modules/qfai/`.
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
npm install --no-save --no-audit --no-fund --ignore-scripts --prefix=tmp/qfai-release qfai@<version>
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
2. Read the `mermaid@` and `jsdom@` versions from the install step of
|
|
148
|
-
`node_modules/qfai/assets/init/root/.github/workflows/qfai-docs.yml`, or of
|
|
149
|
-
`tmp/qfai-release/node_modules/qfai/assets/init/root/.github/workflows/qfai-docs.yml`,
|
|
150
|
-
the shipped copy of the installed release.
|
|
151
|
-
3. Install them into a directory of their own, never into the project's
|
|
152
|
-
dependency tree.
|
|
153
|
-
|
|
154
|
-
```bash
|
|
155
|
-
npm install --no-save --no-audit --no-fund --ignore-scripts --include=optional --prefix=tmp/qfai-mermaid mermaid@<version> jsdom@<version>
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
4. Run the parser over the pack directory.
|
|
159
|
-
|
|
160
|
-
```bash
|
|
161
|
-
node node_modules/qfai/assets/scripts/check-mermaid.mjs --tools tmp/qfai-mermaid <pack directory>
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
Where step 1 installed the release, run its checker instead:
|
|
165
|
-
|
|
166
|
-
```bash
|
|
167
|
-
node tmp/qfai-release/node_modules/qfai/assets/scripts/check-mermaid.mjs --tools tmp/qfai-mermaid <pack directory>
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
5. Fix each diagram it rejects, and run it again until it exits 0.
|
|
171
|
-
|
|
172
|
-
When the install or the run fails for a reason other than a rejected diagram,
|
|
173
|
-
report the syntax check as not run, never as passed, and give the reason.
|
|
174
|
-
|
|
175
|
-
## Gate
|
|
176
|
-
|
|
177
|
-
The reviewer confirms:
|
|
178
|
-
|
|
179
|
-
- each repository fact the pack states names where it was read, precisely
|
|
180
|
-
enough to open: a file and a heading, a file and a line or a symbol where the
|
|
181
|
-
file has no headings, or a command and its observed output. Read that source
|
|
182
|
-
and verify the claim rather than treating a citation as proof;
|
|
183
|
-
- the `## Research Summary` section of `04_Sources.md` is filled from an actual
|
|
184
|
-
protocol run: `sources`, `best_practices`, `anti_patterns`, and `reflection`
|
|
185
|
-
with at least one `action: apply`;
|
|
186
|
-
- `01_Context.md` and `03_Story-Workshop.md` include Mermaid diagrams;
|
|
187
|
-
- a UI-bearing pack has source-backed product intent and must-keep interactions
|
|
188
|
-
in `04_Sources.md`; a visual-prototyping pack also has brand signals,
|
|
189
|
-
differentiation targets, both reference registries complete, and any rejected
|
|
190
|
-
direction with a reason and recurrence cue. No `missing` row passes, and
|
|
191
|
-
every `not applicable` row carries its classification or decision reference;
|
|
192
|
-
- the pack stayed planner-first and did not choose a single visual winner;
|
|
193
|
-
- the context, the Inception Deck and the Story Workshop follow from one
|
|
194
|
-
another;
|
|
195
|
-
- `06_REQ.md` and `07_NFR.md` keep their boundary;
|
|
196
|
-
- the glossary, constraints and policies are enough for the stages that read
|
|
197
|
-
them;
|
|
198
|
-
- the pack keeps the reason behind each adopted and rejected decision, and no
|
|
199
|
-
account of how the session went.
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: discussion-uiux
|
|
3
|
-
owner: qfai-discussion
|
|
4
|
-
purpose: "Write the screen-level sidecars of a UI-bearing discussion pack."
|
|
5
|
-
requires: []
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# discussion-uiux
|
|
9
|
-
|
|
10
|
-
Writes the exploration-first sidecar family `/qfai-sdd` and `/qfai-prototyping`
|
|
11
|
-
read, without forcing an early visual direction.
|
|
12
|
-
|
|
13
|
-
## Precondition
|
|
14
|
-
|
|
15
|
-
The same as `discussion-pack`: this run's stage report holds the
|
|
16
|
-
`## Grilling Session` row, its `Ended at` is written, and `Ended` is
|
|
17
|
-
`confirmed`, `user-closed`, `no-question`, or `adopted` meeting
|
|
18
|
-
`.agents/rules/grilling.md#explicit-delegation-for-a-discussion`.
|
|
19
|
-
Check the actual delegation and rounds, required inputs, empty tree and
|
|
20
|
-
human authority in the stage evidence; the ending label alone is insufficient.
|
|
21
|
-
Without that row, or with
|
|
22
|
-
`Ended: stopped`, write nothing and stop.
|
|
23
|
-
|
|
24
|
-
## Reads
|
|
25
|
-
|
|
26
|
-
- `.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md` for
|
|
27
|
-
the surface mapping and the cli-only carve-out.
|
|
28
|
-
- `.qfai/assistant/skill/qfai-discussion/references/design-dna-intake.md`.
|
|
29
|
-
- `.qfai/assistant/skill/qfai-discussion/references/ui_ux_best_practices.md`
|
|
30
|
-
for the durable decision rules. Open only the `ui_ux/` appendix the current
|
|
31
|
-
task needs:
|
|
32
|
-
- `.qfai/assistant/skill/qfai-discussion/references/ui_ux/platform_baselines.md`
|
|
33
|
-
for touch target sizes, breakpoint heuristics, platform navigation baselines,
|
|
34
|
-
and dark mode and cross-platform adaptation notes;
|
|
35
|
-
- `.qfai/assistant/skill/qfai-discussion/references/ui_ux/review_audit_playbook.md`
|
|
36
|
-
for heuristic review structure, anti-pattern checklists, screen-spec
|
|
37
|
-
documentation rules and audit guidance;
|
|
38
|
-
- `.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md`
|
|
39
|
-
for trend-scan category coverage, freshness and citation rules, and turning
|
|
40
|
-
references into local decisions without letting trends overwhelm
|
|
41
|
-
product-specific needs.
|
|
42
|
-
- The templates under `.qfai/assistant/skill/qfai-discussion/templates/uiux/`.
|
|
43
|
-
|
|
44
|
-
## Writes
|
|
45
|
-
|
|
46
|
-
In the pack under work, the whole sidecar family, on every UI-bearing surface
|
|
47
|
-
including `cli`:
|
|
48
|
-
|
|
49
|
-
- `uiux/00_index.md`
|
|
50
|
-
- `uiux/40_screen_contracts.md`
|
|
51
|
-
- `uiux/50_review_input_bundle.md`
|
|
52
|
-
|
|
53
|
-
A pack whose classification declares `design_direction: inherit` may leave out
|
|
54
|
-
the last two, and writes no Trend Scan or competitor references; the playbook
|
|
55
|
-
above says when the declaration is allowed.
|
|
56
|
-
|
|
57
|
-
## Procedure
|
|
58
|
-
|
|
59
|
-
1. Write `40_screen_contracts.md` with every screen contract in the template's
|
|
60
|
-
schema. On `cli`, a contract's `route:` names the command invocation, not a
|
|
61
|
-
web path.
|
|
62
|
-
2. Write `50_review_input_bundle.md` with the review inputs for downstream
|
|
63
|
-
skills.
|
|
64
|
-
3. Write `00_index.md` last, listing the family.
|
|
65
|
-
|
|
66
|
-
Behavior obligations are primary; an HTML+CSS mock is an optional fallback only.
|
|
67
|
-
Evaluation axes are global constants (4-step ordinal: weak / acceptable /
|
|
68
|
-
strong / exceptional) and are not authored as discussion sidecars.
|
|
69
|
-
|
|
70
|
-
## Passes when
|
|
71
|
-
|
|
72
|
-
Read first: the target's surface classification, judged with the playbook
|
|
73
|
-
above. The step passes when the target is not UI-bearing. The pass names the
|
|
74
|
-
classification it read.
|
|
75
|
-
|
|
76
|
-
## Gate
|
|
77
|
-
|
|
78
|
-
The reviewer confirms:
|
|
79
|
-
|
|
80
|
-
- the three sidecars exist, and every screen contract carries the full template
|
|
81
|
-
schema;
|
|
82
|
-
- exploration directions are carried unranked.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# UIX-REV: Screen Contracts Review (`40_screen_contracts.md`)
|
|
2
|
-
|
|
3
|
-
Review screen contracts for canonical 11-field schema completeness.
|
|
4
|
-
|
|
5
|
-
## Required Fields per Screen (canonical 11-field schema)
|
|
6
|
-
|
|
7
|
-
1. `screen_id` — unique identifier
|
|
8
|
-
2. `route` — URL path or navigation target
|
|
9
|
-
3. `purpose` — what the screen accomplishes
|
|
10
|
-
4. `actor` — who uses this screen
|
|
11
|
-
5. `primary_tasks` — main user tasks on this screen
|
|
12
|
-
6. `secondary_tasks` — additional tasks
|
|
13
|
-
7. `required_states` — must include `default`, `loading`, `empty`, and `error`
|
|
14
|
-
8. `transitions` — navigation to/from this screen
|
|
15
|
-
9. `observable_outcomes` — what success looks like
|
|
16
|
-
10. `notes_for_verify` — verification guidance
|
|
17
|
-
11. `notes_for_reviewer` — reviewer-specific notes
|
|
18
|
-
|
|
19
|
-
## Quality Criteria
|
|
20
|
-
|
|
21
|
-
- Each screen contract must be independently verifiable
|
|
22
|
-
- Routes must be unique across all contracts
|
|
23
|
-
- Required states must include `default`, `loading`, `empty`, and `error`
|
|
24
|
-
- All 11 fields must be present and non-empty for each screen
|
|
25
|
-
- Screen contracts must stay consistent with root `DESIGN.md` (brand SSOT) and the recorded primary spec
|
|
26
|
-
- Screen contracts must stay consistent with Browser QA findings and screen-linked evidence
|
|
27
|
-
- Keep wording aligned with scoring-ready canonical fields
|