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.
Files changed (163) hide show
  1. package/README.md +24 -16
  2. package/assets/defaults/workflows/apply-settled.yml +2 -0
  3. package/assets/defaults/workflows/decide-design.yml +1 -6
  4. package/assets/defaults/workflows/decompose-epic.yml +1 -1
  5. package/assets/init/.claude/settings.json +1 -1
  6. package/assets/init/.qfai/assistant/agent/architecture-reviewer.md +1 -0
  7. package/assets/init/.qfai/assistant/agent/fullstack-engineer.md +6 -9
  8. package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +9 -1
  9. package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +70 -4
  10. package/assets/init/.qfai/assistant/agent/requirements-reviewer.md +1 -0
  11. package/assets/init/.qfai/assistant/rule/constitution.md +3 -2
  12. package/assets/init/.qfai/assistant/rule/drift-protocol.md +5 -5
  13. package/assets/init/.qfai/assistant/rule/references/deliberation-record-template.md +23 -0
  14. package/assets/init/.qfai/assistant/rule/references/deliberation-record.md +36 -0
  15. package/assets/init/.qfai/assistant/rule/references/griller-recommendations.md +3 -3
  16. package/assets/init/.qfai/assistant/rule/references/launcher-preflight.md +27 -0
  17. package/assets/init/.qfai/assistant/rule/references/reviewer-findings.md +9 -0
  18. package/assets/init/.qfai/assistant/rule/references/reviewer-remit.md +23 -15
  19. package/assets/init/.qfai/assistant/rule/references/visual-reference-survey.md +146 -0
  20. package/assets/init/.qfai/assistant/rule/references/worker-edit-boundary.md +2 -0
  21. package/assets/init/.qfai/assistant/rule/research-first-protocol.md +49 -11
  22. package/assets/init/.qfai/assistant/rule/review-convergence.md +15 -16
  23. package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +3 -0
  24. package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +13 -25
  25. package/assets/init/.qfai/assistant/rule/test-layers.md +8 -0
  26. package/assets/init/.qfai/assistant/rule/thinking.md +10 -5
  27. package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +4 -4
  28. package/assets/init/.qfai/assistant/rule/ui-procurement.md +50 -10
  29. package/assets/init/.qfai/assistant/rule/workflow.md +4 -3
  30. package/assets/init/.qfai/assistant/skill/qfai-configure/SKILL.md +3 -1
  31. package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +22 -56
  32. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/design-dna-intake.md +11 -14
  33. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-coverage-checklist.md +1 -1
  34. package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +6 -4
  35. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/discussion-delegation.md +46 -0
  36. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/glossary-check.md +23 -0
  37. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-check.md +25 -0
  38. package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +12 -1
  39. package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +2 -3
  40. package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +47 -8
  41. package/assets/init/.qfai/assistant/skill/qfai-maintain/SKILL.md +2 -0
  42. package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/SKILL.md +1 -1
  43. package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +6 -2
  44. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +6 -9
  45. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +24 -15
  46. package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +2 -2
  47. package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +2 -1
  48. package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +7 -3
  49. package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +4 -1
  50. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/business-ui-patterns.md +180 -0
  51. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +14 -3
  52. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-anti-patterns.md +14 -3
  53. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-authoring.md +39 -24
  54. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-brand-catalog.md +2 -2
  55. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/marketing-ui-patterns.md +194 -0
  56. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/requirements-decomposition.md +27 -3
  57. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +29 -22
  58. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +3 -3
  59. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +4 -4
  60. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +1 -1
  61. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +4 -2
  62. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +6 -6
  63. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +87 -4
  64. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-design-contract-normalization.md +6 -7
  65. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/api-contract.sample.yaml +3 -0
  66. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/db-contract.sample.sql +3 -0
  67. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/ui-contract.sample.yaml +40 -1
  68. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/report/preflight_summary.md +10 -16
  69. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/01_policy/constraint.md +10 -0
  70. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/01_policy/initiative.md +5 -0
  71. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/03_contract/tech.md +1 -0
  72. package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +8 -2
  73. package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +4 -0
  74. package/assets/init/.qfai/assistant/skill/qfai-verify/SKILL.md +4 -2
  75. package/assets/init/.qfai/assistant/skill/qfai-verify/references/context-load.md +2 -1
  76. package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +4 -1
  77. package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +11 -8
  78. package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +1 -1
  79. package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +25 -60
  80. package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +18 -6
  81. package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +45 -95
  82. package/assets/init/.qfai/assistant/step/discussion-research/STEP.md +11 -13
  83. package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +2 -2
  84. package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +52 -8
  85. package/assets/init/.qfai/assistant/step/implement-settled-edit/STEP.md +78 -0
  86. package/assets/init/.qfai/assistant/step/implement-sweep/STEP.md +3 -3
  87. package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +20 -2
  88. package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +4 -0
  89. package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +3 -2
  90. package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +6 -1
  91. package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +58 -11
  92. package/assets/init/.qfai/assistant/step/sdd-flow/STEP.md +41 -27
  93. package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +2 -1
  94. package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +43 -26
  95. package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +8 -3
  96. package/assets/init/.qfai/assistant/step/triage-close/STEP.md +12 -6
  97. package/assets/init/.qfai/assistant/step/triage-decompose/STEP.md +2 -1
  98. package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +36 -6
  99. package/assets/init/.qfai/assistant/step/triage-security-intake/STEP.md +2 -0
  100. package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +3 -1
  101. package/assets/init/.qfai/assistant/step/verify-context/STEP.md +3 -3
  102. package/assets/init/.qfai/assistant/step/verify-release-notes/STEP.md +11 -3
  103. package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +22 -0
  104. package/assets/init/root/.agents/rules/delegation-steering.md +4 -2
  105. package/assets/init/root/.agents/rules/distributed-surface.md +1 -1
  106. package/assets/init/root/.agents/rules/grilling.md +28 -76
  107. package/assets/init/root/.agents/rules/interface-clarity.md +98 -6
  108. package/assets/init/root/.gitattributes +7 -5
  109. package/assets/init/root/.github/workflows/qfai-docs.yml +1 -1
  110. package/assets/init/root/qfai.config.yaml +1 -1
  111. package/assets/mdschema/story/01_policy/constraint.mdschema.yml +46 -2
  112. package/assets/mdschema/story/01_policy/initiative.mdschema.yml +18 -0
  113. package/assets/mdschema/story/03_contract/tech.mdschema.yml +5 -2
  114. package/assets/uix-rev/strategy-review.md +1 -1
  115. package/dist/cli/index.cjs +3787 -7097
  116. package/dist/cli/index.cjs.map +1 -1
  117. package/dist/cli/index.mjs +3647 -6970
  118. package/dist/cli/index.mjs.map +1 -1
  119. package/dist/graph/cli.cjs +966 -222
  120. package/dist/graph/cli.cjs.map +1 -1
  121. package/dist/graph/cli.mjs +942 -198
  122. package/dist/graph/cli.mjs.map +1 -1
  123. package/dist/graph/hook.cjs +999 -88
  124. package/dist/graph/hook.cjs.map +1 -1
  125. package/dist/graph/hook.mjs +996 -85
  126. package/dist/graph/hook.mjs.map +1 -1
  127. package/dist/hook/turn-end.cjs +15 -45
  128. package/dist/hook/turn-end.cjs.map +1 -1
  129. package/dist/hook/turn-end.mjs +15 -45
  130. package/dist/hook/turn-end.mjs.map +1 -1
  131. package/dist/index.cjs +15398 -18327
  132. package/dist/index.cjs.map +1 -1
  133. package/dist/index.d.cts +32 -41
  134. package/dist/index.d.ts +32 -41
  135. package/dist/index.mjs +19276 -22214
  136. package/dist/index.mjs.map +1 -1
  137. package/package.json +2 -2
  138. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-artifact-rules.md +0 -53
  139. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-completion-matrix.md +0 -133
  140. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/example-mapping-guide.md +0 -18
  141. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/oq-and-deferred-rules.md +0 -84
  142. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md +0 -95
  143. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/platform_baselines.md +0 -118
  144. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/review_audit_playbook.md +0 -115
  145. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md +0 -81
  146. package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux_best_practices.md +0 -184
  147. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/01_Context.md +0 -143
  148. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/03_Story-Workshop.md +0 -104
  149. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/04_Sources.md +0 -276
  150. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/05_Scope.md +0 -36
  151. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/06_REQ.md +0 -26
  152. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/07_NFR.md +0 -24
  153. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/08_Glossary.md +0 -23
  154. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/09_Constraints.md +0 -60
  155. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/11_OQ-Register.md +0 -38
  156. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/prototyping.yaml +0 -8
  157. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/00_index.md +0 -35
  158. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/40_screen_contracts.md +0 -62
  159. package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/50_review_input_bundle.md +0 -38
  160. package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +0 -70
  161. package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +0 -199
  162. package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +0 -82
  163. package/assets/uix-rev/contracts-review.md +0 -27
@@ -1,81 +0,0 @@
1
- # UI/UX Trend Scan Playbook
2
-
3
- Do not hard-code year-specific design trends into the core reference.
4
- Use this playbook to research and translate current signals during each discussion run.
5
-
6
- ## Goal
7
-
8
- Produce trend input that informs design direction without replacing product reasoning.
9
-
10
- ## Required Output Shape
11
-
12
- When UI-bearing, `04_Sources.md` trend entries should capture:
13
-
14
- - reference
15
- - observation
16
- - decision_connection
17
- - evaluation_connection
18
- - local_implication
19
-
20
- ## Required Research Categories
21
-
22
- At minimum, check the categories that materially affect the surface:
23
-
24
- - navigation patterns
25
- - density and layout
26
- - motion and transitions
27
- - color and theming
28
- - form interaction
29
- - accessibility-sensitive interaction changes
30
- - AI-assisted or multimodal interaction, if relevant
31
- - platform release guidance, if the surface depends on native conventions
32
-
33
- ## Freshness Rules
34
-
35
- - Prefer official platform guidance and recent primary sources.
36
- - Treat trend claims as volatile unless supported by current evidence.
37
- - If a claim is older or weakly supported, record it as low-confidence or omit it.
38
-
39
- ## Translation Rules
40
-
41
- Do not stop at "this is trendy."
42
- Always translate a reference into:
43
-
44
- - whether it fits the product's users and task frequency;
45
- - whether it improves or harms clarity;
46
- - whether it changes the brand direction recorded in `04_Sources.md`;
47
- - whether it affects the screen contracts in `uiux/40_screen_contracts.md`;
48
- - whether it should be adopted, adapted, or rejected.
49
-
50
- ## Rejection Rules
51
-
52
- Reject a trend when:
53
-
54
- - it conflicts with usability or accessibility floors;
55
- - it depends on a platform convention the product does not have;
56
- - it adds novelty without improving the core task;
57
- - it increases cognitive load for a routine workflow;
58
- - it is fashionable but weakly evidenced.
59
-
60
- ## Competitive Reference Registry Expectations
61
-
62
- Register at least `uiux.competitive_refs_min` references (default: 3) by
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
66
- competitor or reference pattern, capture:
67
-
68
- - what was adopted
69
- - what was rejected
70
- - how adopted ideas were translated locally
71
-
72
- Avoid placeholders such as `TBD`, `N/A`, `TODO`, or empty values. The template's
73
- own bracketed prose (`[What was adopted ...]`) counts as a placeholder too.
74
-
75
- ## Good Trend Scan Questions
76
-
77
- - What behavior is actually becoming standard?
78
- - Which surfaces are adopting it successfully?
79
- - What problem does it solve?
80
- - What tradeoff does it introduce?
81
- - Should QFAI adopt it directly, adapt it, or explicitly reject it?
@@ -1,184 +0,0 @@
1
- # UI/UX Best Practices Reference (QFAI Discussion Pack)
2
-
3
- This file is the compact, durable core for `qfai-discussion`.
4
-
5
- It is intentionally not an encyclopedia. Keep this file short, decision-oriented, and stable.
6
- Move volatile or bulky detail into the `ui_ux/` sidecar references and research current material at run time.
7
-
8
- ## Contents
9
-
10
- - Why This File Is Compact
11
- - How To Use This Reference
12
- - Core Decision Rules
13
- - QFAI-Specific Authoring Guidance
14
- - Compact Review Checklist
15
- - Anti-Bloat Rules For Future Edits
16
-
17
- ## Why This File Is Compact
18
-
19
- - OpenAI recommends versioned prompts, variables, concise examples, and eval-backed iteration rather than piling all guidance into one prompt.
20
- - Anthropic recommends clear structure, templates and variables, XML-style separation, and simpler prompts when latency or cost matters.
21
- - For this skill, that means:
22
- - keep fixed guidance here;
23
- - keep changing details out of the core;
24
- - use appendices only when the task needs them;
25
- - prefer checklists and schemas over long prose.
26
-
27
- ## How To Use This Reference
28
-
29
- 1. Read this file first for durable decision rules.
30
- 2. Open only the appendix the `discussion-uiux` step names for the current task.
31
- 3. For trends, platform release details, or fast-moving conventions, do web research during the current discussion run and cite sources in `04_Sources.md`.
32
-
33
- ## Core Decision Rules
34
-
35
- ### 1. Optimize for the discussion artifact, not for generic design theory
36
-
37
- - Produce design direction that is specific enough for downstream SDD, prototyping, and review.
38
- - Prefer behavior obligations, states, contracts, and tradeoffs over aesthetic commentary.
39
- - Do not duplicate finalized spec text; capture rationale, decisions, options, and reviewable constraints.
40
-
41
- ### 2. Start from user goals and flow risk
42
-
43
- - Each key screen should have one clear primary action.
44
- - Users must always know:
45
- - where they are;
46
- - what changed;
47
- - what they can do next;
48
- - how to recover.
49
- - Model negative paths, empty states, loading states, error states, and permission/state-transition cases early.
50
-
51
- ### 3. Prefer recognition over recall
52
-
53
- - Keep labels plain and domain-native.
54
- - Surface context, recent state, and next-step cues.
55
- - Do not rely on hidden gestures, ambiguous icons, or memory-heavy workflows.
56
-
57
- ### 4. Prevent errors before explaining them
58
-
59
- - Use safe defaults.
60
- - Constrain inputs.
61
- - Separate destructive actions from common actions.
62
- - Preserve user input on failure.
63
- - Only use confirmations for destructive or hard-to-reverse actions.
64
-
65
- ### 5. Keep interaction hierarchy obvious
66
-
67
- - One primary action per visible context.
68
- - Secondary and destructive actions must be visually and positionally distinct.
69
- - Progressive disclosure is preferred over dumping all options at once.
70
-
71
- ### 6. Make system state legible
72
-
73
- - Direct manipulation should feel immediate.
74
- - Long-running work must show progress or scoped loading feedback.
75
- - Success, warning, and error states should say what happened and what to do next.
76
-
77
- ### 7. Respect platform expectations
78
-
79
- - Preserve the same conceptual model across platforms.
80
- - Adapt interaction patterns to the platform instead of forcing pixel-identical UI.
81
- - If you break a platform convention, record why and what benefit outweighs the cost.
82
-
83
- ### 8. Accessibility is a floor, not a polish pass
84
-
85
- - Keyboard reachability, focus visibility, color contrast, readable copy, reduced-motion support, and non-color cues are baseline requirements.
86
- - Custom interaction patterns need an accessible alternative.
87
- - Any action achievable by drag/gesture should also be achievable by a simpler pointer or keyboard action when applicable.
88
-
89
- ### 9. Performance affects trust
90
-
91
- - Avoid loading patterns that block the whole surface without need.
92
- - Prefer scoped loading, skeletons, reserved layout space, and predictable transitions.
93
- - Reduce layout shift, accidental taps, and dead time after user actions.
94
-
95
- ### 10. Reject manipulative UX
96
-
97
- - Treat dark patterns as critical violations.
98
- - Flag confirmshaming, hidden costs, forced continuity, privacy-hostile defaults, obstruction, and misdirection immediately.
99
-
100
- ## QFAI-Specific Authoring Guidance
101
-
102
- ### Use the recorded design direction plus the canonical sidecar family as the design SSOT for UI-bearing work
103
-
104
- Brand-level direction is not authored as a sidecar. For UI-bearing packs it
105
- resolves through:
106
-
107
- - design direction (product intent, brand signals, anti-goals, deviate-from reference pool):
108
- the two reference registries in `04_Sources.md`, which `/qfai-sdd`'s `common-design-md` step turns into
109
- root `DESIGN.md`
110
- - sidecar manifest: `uiux/00_index.md`
111
- - screen behavior contracts: `uiux/40_screen_contracts.md`
112
- - review handoff: `uiux/50_review_input_bundle.md`
113
-
114
- Those three are the entire canonical sidecar family. Evaluation axes are global constants
115
- (4-step ordinal: weak / acceptable / strong / exceptional) fixed by the review validation the
116
- QFAI CLI applies — not by any file in this tree. The reviewer prompt that
117
- `/qfai-prototyping` ships restates that axis set; editing it does not change the set the CLI accepts. Axes are not
118
- authored as discussion sidecars. Discussion is planner-first: it carries exploration directions
119
- unranked and does not select a single visual winner.
120
-
121
- ### What must be explicit in the discussion pack
122
-
123
- - why this design direction exists
124
- - which options were considered
125
- - why rejected options were rejected
126
- - which screen anchors the direction
127
- - what users can do on each key screen
128
- - how default/loading/empty/error states behave
129
- - where accessibility or platform constraints shape the design
130
- - where uncertainty still exists and how it is tracked in OQ
131
-
132
- ### What belongs in `04_Sources.md`
133
-
134
- - stable source traceability for all important UI/UX decisions
135
- - trend scan findings translated into local design implications
136
- - competitive references with:
137
- - adopted points
138
- - rejected points
139
- - local translation
140
- - freshness-aware research for volatile topics
141
- - rejected visual directions, each as a design anti-goal with the cue that
142
- stops it coming back
143
-
144
- ## Compact Review Checklist
145
-
146
- Use this as the first-pass gate before deeper review.
147
-
148
- ### Flow and clarity
149
-
150
- - Is the primary user goal obvious on each key screen?
151
- - Is there one clear primary action per context?
152
- - Can the user move forward, back, or recover from failure?
153
- - Are navigation and orientation cues explicit?
154
-
155
- ### States and behavior
156
-
157
- - Are default, loading, empty, error, and success behaviors explicit?
158
- - Are destructive actions reversible or strongly guarded?
159
- - Are permissions, role differences, or state transitions captured where relevant?
160
-
161
- ### Platform fit
162
-
163
- - Does the design follow the target platform's navigation and input conventions?
164
- - Are any deliberate deviations documented with rationale?
165
-
166
- ### Accessibility and resilience
167
-
168
- - Can a keyboard or equivalent non-gesture path complete the task?
169
- - Are focus, contrast, labels, and feedback adequate?
170
- - Is reduced motion respected where motion exists?
171
-
172
- ### Quality of the pack itself
173
-
174
- - Are decisions concrete rather than generic?
175
- - Are comparisons and rejections traceable?
176
- - Can prototyping and SDD proceed without guessing the intended UX?
177
-
178
- ## Anti-Bloat Rules For Future Edits
179
-
180
- - Do not add long font-scale tables, full platform encyclopedias, or year-stamped trend lists to this file.
181
- - Do not store fast-changing "current trend" claims here unless they are rewritten as a research procedure.
182
- - Do not repeat the same concept across multiple theoretical frameworks unless the duplication changes an actual QFAI decision.
183
- - Prefer one sharp rule plus a short verification cue over paragraph-heavy explanation.
184
- - If a section is mostly lookup material, move it to an appendix.
@@ -1,143 +0,0 @@
1
- # 01 Context
2
-
3
- <!-- UX-INTENT: If UI-bearing, record brand intent and product context here and in 04_Sources.md -->
4
-
5
- ## UI-bearing Classification
6
-
7
- Classification determines whether UI/UX sidecar artifacts are required.
8
-
9
- - ui_bearing: [true|false]
10
- - primary_surface: [web|mobile|desktop|cli|mixed|non-ui]
11
- - secondary_surfaces:
12
- - [optional]
13
- - classification_rationale: [Why this classification was chosen]
14
- - design_direction: [new|inherit]
15
-
16
- Notes:
17
-
18
- - `primary_surface` is a classification field. Valid values: `web|mobile|desktop|cli|mixed|non-ui`.
19
- - `non-ui` is only valid when `ui_bearing: false`. It is a classification value, not a prototyping surface.
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.
21
- - Prototyping **execution** surfaces (used in `prototyping.yaml`) are a strict subset: `web|mobile|desktop|mixed`.
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.
25
-
26
- ## Design Direction
27
-
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`.
29
-
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.
31
-
32
- - adopted_theme: [the published theme or design system this product is built on]
33
- - brand_accent: [what departs from it — typically the primary hue and the typeface pairing]
34
- - conventions_kept: [what stays ordinary on purpose]
35
- - chosen_by: [user|assumption]
36
-
37
- Notes:
38
-
39
- - `chosen_by: assumption` records a direction taken without the user, which is what `--auto` does. It is a labelled assumption, not a decision, and belongs in `11_OQ-Register.md` until someone confirms it.
40
- - Name a theme, not an adjective. "Calm and modern" is not something `/qfai-sdd` can resolve tokens from.
41
-
42
- ## Metadata
43
-
44
- | Key | Value |
45
- | ------------- | ---------------------------- |
46
- | Discussion ID | discussion-YYYYMMDDhhmmssSSS |
47
- | Date | YYYY-MM-DD |
48
- | Owner | <role/person> |
49
- | Source | <request/context> |
50
-
51
- ## Goal and Completion Criteria
52
-
53
- - Goal:
54
- - Measurable completion criteria:
55
-
56
- ## Stakeholders
57
-
58
- - Primary stakeholders:
59
- - Secondary stakeholders:
60
-
61
- ## Background
62
-
63
- - Business context:
64
- - Technical context:
65
- - Historical context:
66
-
67
- ## Inputs
68
-
69
- - Existing repository facts:
70
- - External references:
71
- - Assumptions:
72
-
73
- ## Key Issues
74
-
75
- - Issue 1:
76
- - Issue 2:
77
-
78
- ## Inception Deck
79
-
80
- ### Why Are We Here?
81
-
82
- - Purpose:
83
-
84
- ### Elevator Pitch
85
-
86
- - For: <target users>
87
- - Who: <need/problem>
88
- - The: <product name>
89
- - Is a: <category>
90
- - That: <key benefit>
91
- - Unlike: <alternatives>
92
- - Our product: <differentiator>
93
-
94
- ### Product Box
95
-
96
- - Headline feature 1:
97
- - Headline feature 2:
98
- - Headline feature 3:
99
-
100
- ### Meet Your Neighbors
101
-
102
- - Upstream dependencies:
103
- - Downstream dependencies:
104
- - External integrations:
105
-
106
- ### Show the Solution
107
-
108
- - High-level architecture:
109
- - Key components:
110
-
111
- ```mermaid
112
- flowchart LR
113
- User["User"] --> App["App / Service"]
114
- App --> Data["Data Store"]
115
- ```
116
-
117
- <!-- UX-INTENT: If UI-bearing, reference 04_Sources.md and uiux/40_screen_contracts.md for design direction alignment -->
118
-
119
- ### What Keeps Us Up at Night
120
-
121
- | Risk | Probability | Impact | Mitigation |
122
- | ---- | ----------- | ------ | ---------- |
123
- | R1 | medium | high | TBD |
124
-
125
- ### Size It Up
126
-
127
- - Estimated effort:
128
- - Target timeline:
129
-
130
- ### What's Going to Give
131
-
132
- | Dimension | Priority | Notes |
133
- | --------- | -------- | ----- |
134
- | Scope | 1 | |
135
- | Quality | 2 | |
136
- | Time | 3 | |
137
- | Budget | 4 | |
138
-
139
- ### What's It Going to Take
140
-
141
- - Required skills:
142
- - Team composition:
143
- - Infrastructure:
@@ -1,104 +0,0 @@
1
- # 03 Story Workshop
2
-
3
- ## User Stories
4
-
5
- > Discussion-layer IDs use the `D` prefix (`DUS-`, `DAC-`) so they cannot be read as
6
- > story-tree IDs (`US-0001-0001`, `AC-0001-0001-01`). They are source references,
7
- > not assigned story IDs. `/qfai-sdd` names the discussion REQ and the BF or US
8
- > it affects in its stage report before authoring the story-tree files.
9
-
10
- ### DUS-001: <Story Title>
11
-
12
- - As a: <role>
13
- - I want: <action>
14
- - So that: <benefit>
15
-
16
- #### Acceptance Criteria
17
-
18
- - DAC-001-01:
19
- - DAC-001-02:
20
-
21
- #### Example Seeds
22
-
23
- | Perspective | Example | Status |
24
- | ------------------- | ---------------- | ------ |
25
- | Happy path | <example> | seed |
26
- | Negative path | <example> | seed |
27
- | Edge / boundary | <example> | seed |
28
- | Permission / role | <example> | seed |
29
- | State transition | <example or N/A> | seed |
30
- | Idempotency / retry | <example or N/A> | seed |
31
-
32
- ## User Flows
33
-
34
- ```mermaid
35
- flowchart TD
36
- A["Start"] --> B["Action 1"]
37
- B --> C{"Decision"}
38
- C -->|Yes| D["Action 2"]
39
- C -->|No| E["Action 3"]
40
- D --> F["End"]
41
- E --> F
42
- ```
43
-
44
- ## Flow Descriptions
45
-
46
- - Flow 1:
47
- - Entry point:
48
- - Steps:
49
- - Exit point:
50
-
51
- ## Behavior Obligations
52
-
53
- <!-- Primary focus for UI-bearing packs. Capture behavioral discovery before screen-level contracts.
54
- Screen-level contract SSOT lives in uiux/40_screen_contracts.md. -->
55
-
56
- ### State Coverage
57
-
58
- | State / Risk | Discovery Notes | Handoff to Contract |
59
- | --------------- | ------------------------------------------------- | ----------------------------------------------------------------------------- |
60
- | [state or risk] | [what might trigger confusion, delay, or failure] | Reflect the final `required_states` contract in `uiux/40_screen_contracts.md` |
61
-
62
- ### Interaction Contracts
63
-
64
- | Primary Task | Key Action | Priority Hint | Expected Result | Error Handling |
65
- | ---------------- | ------------------ | ------------------------ | --------------- | -------------- |
66
- | [main user goal] | [main interaction] | [primary/high/secondary] | [result] | [error case] |
67
-
68
- Screen-level contract details are finalized in `uiux/40_screen_contracts.md`. Primary tasks, required states, transitions, and observable outcomes are finalized there; Story Workshop is for discovery and handoff, not final contract fixation.
69
-
70
- ### Error Handling
71
-
72
- - Input validation: [approach]
73
- - Network failure: [approach]
74
- - Timeout: [approach]
75
-
76
- ---
77
-
78
- ## Appendix: Screen Mock — Optional Fallback (HTML+CSS)
79
-
80
- <!-- Optional fallback only — do not use as the primary UI definition artifact.
81
- Include only when it materially clarifies a behavior obligation that prose cannot.
82
- Behavior Obligations and sidecar artifacts (uiux/) are the primary UI definitions.
83
- The required state SSOT is uiux/40_screen_contracts.md (`default/loading/empty/error`).
84
- Links must be anchor-form (`<a href="#name">`) — never same-origin absolute
85
- paths (`/orders/`), which a static mock cannot serve and which the validator rejects. -->
86
-
87
- ```html
88
- <section class="screen-mock">
89
- <h1>Screen Title</h1>
90
- <p>Primary information shown to the user.</p>
91
- <a href="#orders">View Orders</a>
92
- <button type="button">Primary Action</button>
93
- </section>
94
- ```
95
-
96
- ```css
97
- .screen-mock {
98
- max-width: 560px;
99
- margin: 24px auto;
100
- padding: 20px;
101
- border: 1px solid #d0d7de;
102
- border-radius: 12px;
103
- }
104
- ```