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
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Visual Reference Survey
|
|
2
|
+
|
|
3
|
+
Read when one of these holds:
|
|
4
|
+
|
|
5
|
+
- the request is a whole-site redesign;
|
|
6
|
+
- the request is a new product that carries UI and has no adopted theme yet;
|
|
7
|
+
- the user asks for a survey of reference sites.
|
|
8
|
+
|
|
9
|
+
Any other UI change, a new screen or a restyle of one included, takes its
|
|
10
|
+
references from the design DNA intake alone and runs no survey.
|
|
11
|
+
|
|
12
|
+
The survey extends `.qfai/assistant/rule/research-first-protocol.md`. Every
|
|
13
|
+
site, and every listing that grades a site's acclaim, is one of its `sources`,
|
|
14
|
+
and every rule of that protocol still applies. A site's `published` is the
|
|
15
|
+
date of its acclaim evidence, such as the award or listing date. A site with no
|
|
16
|
+
dated evidence records the date it was observed, and the freshness warning
|
|
17
|
+
names it as undated.
|
|
18
|
+
|
|
19
|
+
## Contents
|
|
20
|
+
|
|
21
|
+
- Sample
|
|
22
|
+
- Acclaim
|
|
23
|
+
- Dedupe before counting
|
|
24
|
+
- What to record per site
|
|
25
|
+
- Findings
|
|
26
|
+
- Where findings land
|
|
27
|
+
- Storage
|
|
28
|
+
|
|
29
|
+
## Sample
|
|
30
|
+
|
|
31
|
+
Size the sample to the request. A whole-site redesign covers every stratum
|
|
32
|
+
below with at least three sites each. A larger sample is taken only when the
|
|
33
|
+
user asks for one.
|
|
34
|
+
|
|
35
|
+
| Stratum | Holds |
|
|
36
|
+
| ----------------- | ------------------------------------------------------------------ |
|
|
37
|
+
| `same-domain` | Products that do the same job for the same users |
|
|
38
|
+
| `adjacent-domain` | Products in a neighbouring domain that solve a similar task |
|
|
39
|
+
| `target-market` | Sites in the target market's language and culture |
|
|
40
|
+
| `aspect-award` | Sites recognised for one aspect, such as navigation, forms or type |
|
|
41
|
+
|
|
42
|
+
An `aspect-award` site is chosen for its named aspect, and only that aspect is
|
|
43
|
+
recorded from it. Overall spectacle is not a stratum.
|
|
44
|
+
|
|
45
|
+
Each site also has the role the design DNA intake gives a reference: a
|
|
46
|
+
`competitor` is consulted to differ from, and a `catalogue` to adopt from. A
|
|
47
|
+
`same-domain` site is a `competitor`.
|
|
48
|
+
|
|
49
|
+
## Acclaim
|
|
50
|
+
|
|
51
|
+
Each site records the strongest evidence of its acclaim. The listing or case
|
|
52
|
+
study is its own source, and the site cites its id.
|
|
53
|
+
|
|
54
|
+
| Level | Evidence |
|
|
55
|
+
| ------------- | ---------------------------------------- |
|
|
56
|
+
| `award` | An award or jury listing |
|
|
57
|
+
| `gallery` | A curated gallery that selected the site |
|
|
58
|
+
| `case-study` | The maker's own case study |
|
|
59
|
+
| `unconfirmed` | None found |
|
|
60
|
+
|
|
61
|
+
A `case-study` or `unconfirmed` site may add to a finding, but no finding rests
|
|
62
|
+
on it alone.
|
|
63
|
+
|
|
64
|
+
## Dedupe before counting
|
|
65
|
+
|
|
66
|
+
Remove duplicates before the sample is counted. Two entries are one site when
|
|
67
|
+
they share a registrable domain, when one redirects to the other, or when they
|
|
68
|
+
are the same product under another name in a second listing. Keep the entry
|
|
69
|
+
with the stronger acclaim evidence. The sample size is the count after this.
|
|
70
|
+
|
|
71
|
+
## What to record per site
|
|
72
|
+
|
|
73
|
+
Record the same fields for every site, so sites can be compared field by
|
|
74
|
+
field. A field the site does not show is recorded as `none`, not left out.
|
|
75
|
+
|
|
76
|
+
```yaml
|
|
77
|
+
visual_survey:
|
|
78
|
+
sites:
|
|
79
|
+
- source_id: string # its research_summary.sources[].id
|
|
80
|
+
stratum: same-domain | adjacent-domain | target-market | aspect-award
|
|
81
|
+
aspect: string # aspect-award only: the aspect it was chosen for
|
|
82
|
+
role: competitor | catalogue
|
|
83
|
+
acclaim: award | gallery | case-study | unconfirmed
|
|
84
|
+
acclaim_source_id: string # the listing's sources[].id; none when unconfirmed
|
|
85
|
+
copy_risk: low | medium | high
|
|
86
|
+
template_policy: none | reference-only | implementation-seed
|
|
87
|
+
home_sections: [string] # the home page's sections, in order
|
|
88
|
+
components: [string] # the components the screens use
|
|
89
|
+
colour: string # the colour system: palette, contrast, accent use
|
|
90
|
+
typography: string # families, scale, line length
|
|
91
|
+
motion: string # what moves, when and how long
|
|
92
|
+
accessibility: [string] # findings, such as focus order or contrast
|
|
93
|
+
avoid: [string] # what this site does that the product must not
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Findings
|
|
97
|
+
|
|
98
|
+
The survey ends in findings, not prose. Each finding states one decision about
|
|
99
|
+
one field, cites the sites it rests on, and says what was checked.
|
|
100
|
+
|
|
101
|
+
```yaml
|
|
102
|
+
visual_survey:
|
|
103
|
+
findings:
|
|
104
|
+
- id: string # VS-XXXX format
|
|
105
|
+
kind: section-pattern | component | colour | typography | motion | accessibility
|
|
106
|
+
statement: string # the decision, in the analyst's own words
|
|
107
|
+
source_ids: [string] # the sites it rests on
|
|
108
|
+
action: adopt | reject | defer
|
|
109
|
+
reason: string # what was checked against the repository
|
|
110
|
+
lands_in: design-md | ui-contract
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
- A finding rests on at least two sites, at least one of them at `award` or
|
|
114
|
+
`gallery` level. A pattern only one site shows stays on that site's row.
|
|
115
|
+
- A `colour` or `typography` finding never rests on `competitor` sites alone:
|
|
116
|
+
the brand departs from competitors, it does not copy them.
|
|
117
|
+
- A finding is applied only after it is checked, as the protocol's rule for an
|
|
118
|
+
external source says. Its `reason` names what was read: the adopted theme,
|
|
119
|
+
the current `DESIGN.md`, the current screens or UI contracts. A finding
|
|
120
|
+
nothing was checked against is `defer`. Something a site does that the
|
|
121
|
+
product must not do is a `reject` of the matching kind.
|
|
122
|
+
|
|
123
|
+
## Where findings land
|
|
124
|
+
|
|
125
|
+
| `kind` | `lands_in` | Lands as |
|
|
126
|
+
| -------------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
127
|
+
| `colour`, `typography`, `motion` | `design-md` | A point of the **Do** (adopt) or **Don't** (reject) subsection of `# Brand Philosophy`, never a `visual.*` value |
|
|
128
|
+
| `section-pattern` | `ui-contract` | A screen's `structure` group, which serves one of its `primary_tasks` |
|
|
129
|
+
| `component`, `accessibility` | `ui-contract` | An element or action of the screen that uses it |
|
|
130
|
+
|
|
131
|
+
Root `DESIGN.md` takes its `visual.*` values from the adopted theme, so a
|
|
132
|
+
survey changes no token. A section pattern that serves no task on the screen
|
|
133
|
+
does not belong on it.
|
|
134
|
+
|
|
135
|
+
The findings are put to the user as one question in the interview: adopt,
|
|
136
|
+
reject or revise each. The answer is one Interview row of the deliberation
|
|
137
|
+
record, with each adopted finding as an adopted point and each rejected one as
|
|
138
|
+
a rejected point, as the design DNA intake records any reference. That row
|
|
139
|
+
carries the findings to the stages that write `DESIGN.md` and the UI
|
|
140
|
+
contracts, so no later stage re-reads the survey.
|
|
141
|
+
|
|
142
|
+
## Storage
|
|
143
|
+
|
|
144
|
+
The `visual_survey` goes into the invoking stage's report beside the
|
|
145
|
+
`research_summary`, as that protocol stores it. What outlives the run is what
|
|
146
|
+
the findings landed in.
|
|
@@ -39,6 +39,8 @@ Checkout: <absolute checkout assigned to this task by the host>
|
|
|
39
39
|
Write paths: <exact owned paths, or none for a read-only task>
|
|
40
40
|
Do not touch: <paths outside the unit that the worker leaves as they are> # unit work orders only
|
|
41
41
|
Edit method: <host-permitted tool; worktree creation does not grant access>
|
|
42
|
+
Local checks: <the commands the worker runs itself, or none> # a unit that implements an example lists at least the selector it turns RED then GREEN; every other check runs in CI after the session agent pushes
|
|
43
|
+
Push: no | <what the worker may push and whether it may open a pull request> # no, or no Push line: it neither pushes nor opens a pull request
|
|
42
44
|
If an edit is refused: stop that target; return tool, cwd, target, refusal text, owned paths and a reviewable diff
|
|
43
45
|
Inputs (refs):
|
|
44
46
|
- <file/section>
|
|
@@ -9,7 +9,9 @@ the session agent reads their answers into the summary.
|
|
|
9
9
|
## Trigger
|
|
10
10
|
|
|
11
11
|
`/qfai-discussion` triggers this protocol. Run it whether or not the work
|
|
12
|
-
includes UI.
|
|
12
|
+
includes UI. For a whole-site redesign, a new product that carries UI and has no adopted
|
|
13
|
+
theme, or a survey the user asks for, also run
|
|
14
|
+
`.qfai/assistant/rule/references/visual-reference-survey.md`.
|
|
13
15
|
|
|
14
16
|
## Output Schema
|
|
15
17
|
|
|
@@ -25,6 +27,9 @@ research_summary:
|
|
|
25
27
|
# when type: primary / secondary
|
|
26
28
|
locator: string # how to reach the source
|
|
27
29
|
observed: string # YYYY-MM-DD, observation date
|
|
30
|
+
# when the source is about a library, catalogue, framework or runtime
|
|
31
|
+
package: string # its package name, as the manifest names it
|
|
32
|
+
version: string # the version the source describes
|
|
28
33
|
best_practices:
|
|
29
34
|
- id: string # BP-XXXX format
|
|
30
35
|
category: string
|
|
@@ -37,6 +42,10 @@ research_summary:
|
|
|
37
42
|
title: string
|
|
38
43
|
description: string
|
|
39
44
|
source_id: string
|
|
45
|
+
version_warnings:
|
|
46
|
+
- source_id: string
|
|
47
|
+
described: string # the version the source describes
|
|
48
|
+
installed: string # each pinned version with its file, or `not installed`
|
|
40
49
|
reflection:
|
|
41
50
|
- source_id: string
|
|
42
51
|
finding: string
|
|
@@ -67,8 +76,10 @@ The `type` decides which field each goes in.
|
|
|
67
76
|
| `external` (default) | `url` | `published` |
|
|
68
77
|
| `primary` / `secondary` | `locator` | `observed` |
|
|
69
78
|
|
|
70
|
-
- Every entry records `id`, `title` and the two fields its `type` points to
|
|
71
|
-
|
|
79
|
+
- Every entry records `id`, `title` and the two fields its `type` points to,
|
|
80
|
+
and a source about a library, catalogue, framework or runtime also records
|
|
81
|
+
`package` and `version`. A missing field in even one entry is a validation
|
|
82
|
+
error.
|
|
72
83
|
- A missing `type`, or one whose value is not in the vocabulary, is treated as
|
|
73
84
|
`external`. A `type` that cannot be read never loosens the obligation.
|
|
74
85
|
- Screenshots of a customer's current system, files supplied by the customer and
|
|
@@ -111,6 +122,34 @@ Record what the search found in the summary's `sources`, the same way as any
|
|
|
111
122
|
other source. A later reader can then tell a verified name from one answered
|
|
112
123
|
from memory.
|
|
113
124
|
|
|
125
|
+
## Version Rule
|
|
126
|
+
|
|
127
|
+
A source about a library, a component catalogue, a framework or a runtime
|
|
128
|
+
describes one version of it, and the project may run another. Record the
|
|
129
|
+
`package` and the `version` the source describes, from the page itself, such
|
|
130
|
+
as its version selector or the release it names. When the page names no
|
|
131
|
+
version, look up the latest release in the package's registry, record that
|
|
132
|
+
lookup as a source, and write the version as the latest release on that date.
|
|
133
|
+
|
|
134
|
+
Then read what the project pins:
|
|
135
|
+
|
|
136
|
+
- every lockfile or manifest that declares the package, such as
|
|
137
|
+
`pnpm-lock.yaml`, `package-lock.json`, `poetry.lock`, `Cargo.lock` or
|
|
138
|
+
`go.mod`, one per workspace in a monorepo;
|
|
139
|
+
- for something the project carries without a package, where it pins it:
|
|
140
|
+
`components.json` and the copied components for a copied-in catalogue,
|
|
141
|
+
`engines` or `.nvmrc` for a runtime, the API version setting for a service.
|
|
142
|
+
|
|
143
|
+
Record each pinned version in `installed`, with the file it came from. Add a
|
|
144
|
+
`version_warnings` entry when any of them differs from the described version
|
|
145
|
+
in its breaking part: the major version, or the minor version below 1.0, or
|
|
146
|
+
the release the package marks as breaking when it uses calendar versions.
|
|
147
|
+
|
|
148
|
+
Add one, with `installed: not installed`, when the project pins the package
|
|
149
|
+
nowhere. That is expected while the package is only being evaluated: the
|
|
150
|
+
entry's `reason` then names the version the project would adopt, and the
|
|
151
|
+
entry is checked against that version.
|
|
152
|
+
|
|
114
153
|
## Conflict Protocol
|
|
115
154
|
|
|
116
155
|
- When a new research result contradicts an existing BP/AP rule:
|
|
@@ -129,15 +168,14 @@ guidance later stages follow (`.agents/rules/untrusted-content.md`).
|
|
|
129
168
|
- Its `reason` states what the applying agent verified against the repository:
|
|
130
169
|
the file it read, the command it ran, or the behaviour it observed.
|
|
131
170
|
- An entry with nothing verified is `defer`, not `apply`.
|
|
171
|
+
- An entry whose source has a version warning is `apply` only when its `reason`
|
|
172
|
+
names what was checked against the installed version or, for a package not
|
|
173
|
+
installed yet, against the version the project would adopt.
|
|
132
174
|
|
|
133
175
|
## Storage
|
|
134
176
|
|
|
135
|
-
- `research_summary` goes to the invoking stage's own report
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
- The report first, because a stage may hold authoring until something
|
|
140
|
-
authorizes it. Writing the summary straight into the artifact creates the
|
|
141
|
-
artifact, and a run cancelled before that authorization leaves it behind as
|
|
142
|
-
the newest of its kind — which is what every later reader then picks up.
|
|
177
|
+
- `research_summary` goes to the invoking stage's own report. For
|
|
178
|
+
`/qfai-discussion` it stays there: the interview reads it, and a source an
|
|
179
|
+
option rests on goes into that option's row of the deliberation record as a
|
|
180
|
+
URL.
|
|
143
181
|
- Not persisted globally. The report belongs to the run that produced it.
|
|
@@ -66,11 +66,11 @@ just placed elsewhere.
|
|
|
66
66
|
**How it is written.** In the shape every finding takes
|
|
67
67
|
(`.qfai/assistant/rule/shared-skill-delegation-baseline.md#verdict-vocabulary`):
|
|
68
68
|
`Severity: advisory`, and `Traces to:` **the obligation whose implementation the
|
|
69
|
-
advice is about** — which the
|
|
69
|
+
advice is about** — which the story tree carries, since the subject is how a later
|
|
70
70
|
stage implements something already agreed. Never `none`: that value means
|
|
71
71
|
reviewer-originated scope, goes to the specification owner and reaches no
|
|
72
72
|
implementer, and advice about an agreed obligation proposes no new one. Where an
|
|
73
|
-
item genuinely names nothing the
|
|
73
|
+
item genuinely names nothing the story tree carries it is reviewer-originated scope,
|
|
74
74
|
and the baseline's `none` path is the right one for it.
|
|
75
75
|
|
|
76
76
|
This section is the one place an obligation-traced finding is `advisory`, and
|
|
@@ -88,16 +88,14 @@ A rerun that dropped it would lose the advice of every reviewer who found
|
|
|
88
88
|
nothing blocking.
|
|
89
89
|
|
|
90
90
|
**Where it goes.** The advice stays in the cycle's findings, which the next
|
|
91
|
-
stage reads at its start as non-normative reference material
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
unmentioned: a decision nobody wrote down cannot be told from an item nobody
|
|
97
|
-
read.
|
|
91
|
+
stage reads at its start as non-normative reference material. That stage gives
|
|
92
|
+
each item a disposition in its own artifacts — a plan step, a spec row, an open
|
|
93
|
+
question, or a line in its report saying it was read and not adopted. What it
|
|
94
|
+
may not do is leave an item unmentioned: a decision nobody wrote down cannot be
|
|
95
|
+
told from an item nobody read.
|
|
98
96
|
|
|
99
97
|
Wrong repository facts, missing decision traceability, scope contradictions and
|
|
100
|
-
defects in the
|
|
98
|
+
defects in the reviewed artifact's own safety obligations remain in remit. Non-normative
|
|
101
99
|
status is not permission to pass those.
|
|
102
100
|
|
|
103
101
|
## Agent-to-agent grilling
|
|
@@ -117,8 +115,9 @@ started: partial agreement is the ordinary outcome, and rounds past two buy
|
|
|
117
115
|
fluency rather than a better answer.
|
|
118
116
|
|
|
119
117
|
Where the authors disagreed, the recommendation is still taken, and each
|
|
120
|
-
position is recorded beside it with whose it is.
|
|
121
|
-
|
|
118
|
+
position is recorded beside it with whose it is. Every adopted decision is an
|
|
119
|
+
Agent decisions row of the run's deliberation record, written without waiting
|
|
120
|
+
for an answer, and no report lists it. A user who disagrees
|
|
122
121
|
overturns one through a specification change or a rerun.
|
|
123
122
|
|
|
124
123
|
**A critical decision without an actual answer or recorded applicable user
|
|
@@ -129,11 +128,11 @@ a round. Agent agreement and round exhaustion supply no authority.
|
|
|
129
128
|
| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
|
130
129
|
| It contradicts a spec, a contract or a recorded decision | Changing settled input is the user's decision, not a design round |
|
|
131
130
|
| Its effect cannot be taken back: security, lost or corrupted data, a broken released contract, spending, a legal commitment, a public release | A wrong recommendation here is not repaired by the next run |
|
|
132
|
-
| It rests on product or business intent that the request, the
|
|
131
|
+
| It rests on product or business intent that the request, the specs and the contracts all leave unstated | Two agents reasoning past the evidence converge on the more fluent argument |
|
|
133
132
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
Product intent the user already settled is read from the story tree and
|
|
134
|
+
`decisions.md`, never from a deliberation record. Asking it again spends that
|
|
135
|
+
session twice.
|
|
137
136
|
|
|
138
137
|
Each uncovered critical decision goes to the user with every position and a
|
|
139
138
|
recommendation when asking is permitted. The work stays where it is while the
|
|
@@ -252,10 +252,13 @@ When preparing a delegation, use the template in
|
|
|
252
252
|
|
|
253
253
|
```text
|
|
254
254
|
Result: PASS | REVISE
|
|
255
|
+
Responsibilities:
|
|
256
|
+
- <each Domain Responsibility on the reviewer's card> | checked | not applicable: <why>
|
|
255
257
|
Findings:
|
|
256
258
|
- <issue> | Severity: blocking|advisory | Traces to: <BF-*/AC-*/EX-*/BR-*/<contract-ID>/rule-name|defect:correctness|defect:security|defect:code-quality|record:<CODE>|none> | Fix: <action, for a blocking finding>
|
|
257
259
|
```
|
|
258
260
|
|
|
261
|
+
- `Responsibilities:` lists every Domain Responsibility on the reviewer's card, whatever the request's focus.
|
|
259
262
|
- A reviewer that authored or edited what it reviews says so instead of returning a verdict, and the review goes to a non-participating reviewer (see `Definition: independent reviewer`).
|
|
260
263
|
- `Result: REVISE` is legal only when at least one finding is `Severity: blocking`. A response whose findings are all advisory returns `Result: PASS` with the proposals attached.
|
|
261
264
|
|
|
@@ -118,27 +118,9 @@ including its `--auto` rule. What each bucket needs inside a workflow run is
|
|
|
118
118
|
|
|
119
119
|
## Canonical qfai Launcher
|
|
120
120
|
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
confirmation.
|
|
125
|
-
|
|
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
|
-
- **`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.
|
|
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.
|
|
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:
|
|
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.
|
|
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.
|
|
135
|
-
|
|
136
|
-
Read every `npx qfai …` example in the shipped docs as "the launcher the preflight established", not as a literal command for a PnP project.
|
|
137
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
141
|
-
- The project's gate commands belong in the Standard commands section of `<paths.contractsDir>/tech.md` ([Standard Commands](#standard-commands) 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.
|
|
121
|
+
Read `.qfai/assistant/rule/references/launcher-preflight.md` before the first `npx qfai` call, a gate or a run's `workflow plan` alike.
|
|
122
|
+
It holds the preflight's proofs, the fix for each way it fails, and the launcher each proof establishes. A call whose launcher cannot be resolved is UNRUN, not PASS.
|
|
123
|
+
Not needed again while that preflight still holds; read it again after a merge changes the lockfile or `package.json`.
|
|
142
124
|
|
|
143
125
|
## Standard Commands
|
|
144
126
|
|
|
@@ -228,10 +210,10 @@ runs only from its parent or from the plan `qfai-run` follows.
|
|
|
228
210
|
gate. Run a `common-*` step it `requires` at the point the step calls it.
|
|
229
211
|
Then move to the next step.
|
|
230
212
|
5. After the last step, run the one review the parent names, through
|
|
231
|
-
`common-review-cycle`: the specification review for `qfai-sdd
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
wrote nothing.
|
|
213
|
+
`common-review-cycle`: the specification review for `qfai-sdd`, the code
|
|
214
|
+
review for a parent that changed code, tests or a change note, and none for
|
|
215
|
+
`qfai-discussion`, whose output is a memo, for `qfai-triage` or for a
|
|
216
|
+
`qfai-verify` run that wrote nothing.
|
|
235
217
|
6. Complete as the parent's completion section says, reporting what each step
|
|
236
218
|
produced.
|
|
237
219
|
|
|
@@ -288,6 +270,12 @@ work order's target names the flow, so the skill does not ask for it. With no
|
|
|
288
270
|
binding, the flow stays `hard-required`: a direct invocation with no flow it
|
|
289
271
|
can resolve stops at preflight.
|
|
290
272
|
|
|
273
|
+
## Deliberation Record
|
|
274
|
+
|
|
275
|
+
Read `.qfai/assistant/rule/references/deliberation-record.md` before the run asks the user a question or takes an agent decision.
|
|
276
|
+
It says where the record goes, what it and the reports hold, and when it is committed or read. An implement, verify or prototyping stage reads no record.
|
|
277
|
+
Start a record from `.qfai/assistant/rule/references/deliberation-record-template.md`.
|
|
278
|
+
|
|
291
279
|
## Rejected Option Guard
|
|
292
280
|
|
|
293
281
|
- Do not reintroduce an option whose row in `<paths.specsDir>/decisions.md` has Content opening `Declined:`, or `Declined change request:` in a row written before change requests were retired.
|
|
@@ -54,6 +54,14 @@ annotation counts here. AC and EX annotations do not belong in E2E tests. A
|
|
|
54
54
|
flow may need more than one journey test to prove its branches; one annotation
|
|
55
55
|
is not a substitute for the required assertions.
|
|
56
56
|
|
|
57
|
+
A flow's journey can open each screen directly by its URL, so passing every
|
|
58
|
+
journey does not show that a user can reach the screens. Where the app has its
|
|
59
|
+
own navigation (a shell, a menu, a home screen), add one navigation journey per
|
|
60
|
+
role: sign in as that role, then reach every screen the UI contracts declare
|
|
61
|
+
for that role through the app's own links and controls only, never by typing a
|
|
62
|
+
URL. It proves
|
|
63
|
+
reachability rather than one flow, so it carries no BF annotation.
|
|
64
|
+
|
|
57
65
|
## Annotation routing
|
|
58
66
|
|
|
59
67
|
| Obligation | Annotation | Required test layer |
|
|
@@ -15,11 +15,16 @@ update_frequency: rare
|
|
|
15
15
|
## What the stage records
|
|
16
16
|
|
|
17
17
|
The stage that owns `<paths.specsDir>/decisions.md`, `qfai-sdd`, records each
|
|
18
|
-
decision as one row there.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
decision as one row there. A `decisions.md` row is a short decision record: what
|
|
19
|
+
was decided and why, in the form stated at the top of
|
|
20
|
+
`.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md`.
|
|
21
|
+
|
|
22
|
+
Every stage writes each agent decision it takes, a choice no specification,
|
|
23
|
+
contract, rule or convention settles, as an Agent decisions row of the run's
|
|
24
|
+
deliberation record, as
|
|
25
|
+
`.qfai/assistant/rule/references/deliberation-record.md` says. Neither its
|
|
26
|
+
stage report nor the final report lists it, except an assumption a no-question
|
|
27
|
+
mode takes, which the final report also lists.
|
|
23
28
|
|
|
24
29
|
## When to stop and ask
|
|
25
30
|
|
|
@@ -4,9 +4,9 @@ How a downstream skill reads a UI definition, and what it may not read.
|
|
|
4
4
|
|
|
5
5
|
## Boundary
|
|
6
6
|
|
|
7
|
-
`/qfai-sdd` alone reads the
|
|
7
|
+
`/qfai-sdd` alone reads the screens, the brand direction and the design inputs from the deliberation record it consumes, and writes them into the specs, the UI contracts and root `DESIGN.md` that downstream execution runs against.
|
|
8
8
|
|
|
9
|
-
`/qfai-prototyping`, `/qfai-implement` and `/qfai-verify` do not read a
|
|
9
|
+
`/qfai-prototyping`, `/qfai-implement` and `/qfai-verify` do not read a deliberation record for the UI definition. They read the UI and UX definition from the story tree, contracts and evidence.
|
|
10
10
|
|
|
11
11
|
## Reading Order
|
|
12
12
|
|
|
@@ -53,10 +53,10 @@ in `qfai.config.yaml`, and nowhere else.
|
|
|
53
53
|
| UI contract | Stop UI-bearing downstream execution |
|
|
54
54
|
| Root `DESIGN.md` | Return to `/qfai-sdd`, whose `common-design-md` writes it |
|
|
55
55
|
| Prototype handoff, when a prototyping loop ran | Return to `/qfai-prototyping` and record the handoff |
|
|
56
|
-
|
|
|
56
|
+
| Deliberation record in downstream | Do not read it; normalize through `/qfai-sdd` |
|
|
57
57
|
|
|
58
58
|
## Forbidden Fallbacks
|
|
59
59
|
|
|
60
|
-
- Do not infer downstream UI behavior from
|
|
60
|
+
- Do not infer downstream UI behavior from a deliberation record.
|
|
61
61
|
- Do not use HTML mock sections as downstream source of truth.
|
|
62
62
|
- Do not treat a competitor reference as a selected design direction.
|
|
@@ -15,16 +15,34 @@ The `CSS framework` and `Component catalogue` rows of
|
|
|
15
15
|
`<paths.contractsDir>/tech.md#stack` name the CSS framework and the primary
|
|
16
16
|
catalogue. Root `DESIGN.md` owns the adopted theme. `qfai.config.yaml` carries
|
|
17
17
|
`uiux.registries`, the name-to-URL map a tool resolves a component name against.
|
|
18
|
+
The constraints a component must meet are rows of `01_policy/constraint.md`.
|
|
18
19
|
|
|
19
20
|
## The ladder
|
|
20
21
|
|
|
22
|
+
The ladder decides where a region comes from, not whether it exists. A region
|
|
23
|
+
the screen contract names is in scope, and so is a region its pattern implies,
|
|
24
|
+
as `.agents/rules/interface-clarity.md#what-a-business-screen-always-has`
|
|
25
|
+
lists them for an application screen and
|
|
26
|
+
`.agents/rules/interface-clarity.md#what-a-marketing-screen-always-has` for a
|
|
27
|
+
marketing screen. Leaving an implied region out needs the reason in the screen's UI
|
|
28
|
+
contract. Dropping a region the contract names is a specification change for
|
|
29
|
+
its owner rather than a choice made here.
|
|
30
|
+
|
|
21
31
|
Per screen region, stop at the first rung that holds.
|
|
22
32
|
|
|
23
|
-
1. **Does
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
1. **Does the project already have a component for it?** Reuse it. The
|
|
34
|
+
component catalogue lists what exists
|
|
35
|
+
(`.qfai/assistant/skill/qfai-implement/references/ui-affecting.md#component-catalogue`). When the
|
|
36
|
+
same region appears on a second screen and no shared component realises it,
|
|
37
|
+
extract one, wrapping whatever rung 2, 3 or 4 supplied, and use it on both,
|
|
38
|
+
rather than authoring the region again.
|
|
39
|
+
2. **Does a native platform element do it?** Examples on the web are
|
|
40
|
+
`details` and `summary`, `dialog`, and form validation attributes. A native
|
|
41
|
+
element brings no script, styling or policy cost of its own.
|
|
42
|
+
3. **Does the project's installed design system already have it?**
|
|
43
|
+
4. **Does a catalogue have it?** Prefer whole over parts: a page, then a block, then a component.
|
|
44
|
+
5. **Can it be composed from primitives already present?**
|
|
45
|
+
6. **Only then author it**, and record why.
|
|
28
46
|
|
|
29
47
|
## What the prototype does not answer
|
|
30
48
|
|
|
@@ -35,15 +53,36 @@ Take the adopted system's default. A design system has already answered each
|
|
|
35
53
|
one, and its answers agree with each other in a way per-screen invention does
|
|
36
54
|
not.
|
|
37
55
|
|
|
56
|
+
## Every state exists
|
|
57
|
+
|
|
58
|
+
The adopted system answers how a state looks, not whether the screen has it.
|
|
59
|
+
Each region that loads data or accepts input lists its states (default,
|
|
60
|
+
empty, loading, error and success) and what realises each one, recorded with
|
|
61
|
+
the region as "Recording what was procured" describes. A state the region cannot reach is
|
|
62
|
+
listed as not applicable, with the reason. One fallback shared by the whole
|
|
63
|
+
app does not realise a region's loading or error state.
|
|
64
|
+
|
|
38
65
|
## Choosing a catalogue
|
|
39
66
|
|
|
40
|
-
|
|
67
|
+
Three things decide it, and none is taste:
|
|
41
68
|
|
|
42
69
|
- **Can an agent procure from it unattended?** A registry that resolves a
|
|
43
70
|
component name from a URL template can be read by a tool. A gallery that
|
|
44
71
|
has to be copied by hand cannot.
|
|
45
72
|
- **Is the licence open?** A paid catalogue is usable only where the project
|
|
46
73
|
holds the licence, and an agent cannot check that.
|
|
74
|
+
- **Does it meet the constraints the project has fixed?** The
|
|
75
|
+
`## Technical Constraints` and `## Quality targets` rows of
|
|
76
|
+
`01_policy/constraint.md` name them, such as a content security policy,
|
|
77
|
+
server rendering, behaviour without script and an accessibility target. A
|
|
78
|
+
catalogue whose components break one is not adopted for the regions they
|
|
79
|
+
would serve. Where those sections name none of these, there is nothing to
|
|
80
|
+
check, and the procurement record says so.
|
|
81
|
+
|
|
82
|
+
The same check applies to each item procured from the catalogue. An item that
|
|
83
|
+
breaks a constraint is not installed, and the ladder moves to its next rung.
|
|
84
|
+
The region's procurement record names the item and the constraint it breaks, so
|
|
85
|
+
the next procurement for that region does not try it again.
|
|
47
86
|
|
|
48
87
|
A registry entry is a name pointing at a URL template carrying `{name}`,
|
|
49
88
|
which is where the component name goes. That shape is not owned by any
|
|
@@ -52,10 +91,11 @@ has, in the same field.
|
|
|
52
91
|
|
|
53
92
|
## Recording what was procured
|
|
54
93
|
|
|
55
|
-
Each screen region names what realises it: a
|
|
56
|
-
project already has, or authored code with the reason.
|
|
57
|
-
|
|
58
|
-
|
|
94
|
+
Each screen region names what realises it: a native element, a catalogue item,
|
|
95
|
+
a component the project already has, or authored code with the reason. A
|
|
96
|
+
catalogue item also names the constraints it was checked against. An
|
|
97
|
+
implementer then installs rather than reconstructs, and a reviewer has
|
|
98
|
+
something to check instead of a resemblance to judge.
|
|
59
99
|
|
|
60
100
|
## Related
|
|
61
101
|
|
|
@@ -41,7 +41,8 @@ writes nothing; the session runs the plan.
|
|
|
41
41
|
before anything that depends on it changes. A decision is critical when it
|
|
42
42
|
contradicts a specification, a contract or a recorded decision, cannot be
|
|
43
43
|
taken back, or rests on product intent nothing written states. Every other
|
|
44
|
-
decision is taken and
|
|
44
|
+
decision is taken without a question, and an agent decision is written as an
|
|
45
|
+
Agent decisions row of the run's deliberation record.
|
|
45
46
|
- At the release point the plan names, the user approves the release before
|
|
46
47
|
anything after it runs. The approval authorizes no push, merge, tag or
|
|
47
48
|
publication.
|
|
@@ -72,7 +73,7 @@ writes nothing; the session runs the plan.
|
|
|
72
73
|
## Stages (canonical)
|
|
73
74
|
|
|
74
75
|
1. Discussion (optional): clarify idea → requirement seed
|
|
75
|
-
2. Requirements:
|
|
76
|
+
2. Requirements: the story tree, `decisions.md` and `open-questions.md`
|
|
76
77
|
3. Specification (SDD): preflight, triage, policy, business flows, stories with AC and EX, and enforcing contracts
|
|
77
78
|
4. Prototyping (optional): contract-aligned implementation skeleton
|
|
78
79
|
5. Implementation: `/qfai-implement` writes the BF E2E test and the AC integration tests with empty bodies, then implements one EX at a time through Red, Green, Refactor; the acceptance test bodies are written once the system's shape has settled
|
|
@@ -82,7 +83,7 @@ Stage 3 (`/qfai-sdd`) target policy:
|
|
|
82
83
|
|
|
83
84
|
- With a BF argument, scope requested work to that flow and its shared dependencies.
|
|
84
85
|
- Without an argument, triage the incoming requirements and update the flows they affect.
|
|
85
|
-
- Record a decision in `decisions.md` only when it is hard to reverse, would surprise a reader without context, and was the result of a real trade-off;
|
|
86
|
+
- Record a decision in `decisions.md` only when it is hard to reverse, would surprise a reader without context, and was the result of a real trade-off; every other agent decision is only an Agent decisions row of the run's deliberation record.
|
|
86
87
|
- Write policy and flows before stories, AC, EX, and enforcing contracts. Validate every affected BF.
|
|
87
88
|
|
|
88
89
|
Prototyping stage policy:
|
|
@@ -40,7 +40,6 @@ both outlive an exhausted budget.
|
|
|
40
40
|
- Follow `.qfai/assistant/rule/shared-skill-operating-baseline.md#format-ssot`.
|
|
41
41
|
|
|
42
42
|
- Before writing or editing any `.qfai/**` artifact, read the relevant skill-local reference or template:
|
|
43
|
-
- `.qfai/assistant/skill/qfai-discussion/references/discussion-artifact-rules.md`
|
|
44
43
|
- `.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md`
|
|
45
44
|
- `.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md`
|
|
46
45
|
|
|
@@ -53,6 +52,9 @@ When unsure, read inputs in this order:
|
|
|
53
52
|
- P3: `.qfai/spec/decisions.md` (Decision Records; if no decision exists, state "not applicable").
|
|
54
53
|
- P4: the business flows, stories, contracts, tests, and evidence relevant to the configuration.
|
|
55
54
|
|
|
55
|
+
- Before an agent decision, search the records for a turned-down option, as
|
|
56
|
+
`.qfai/assistant/rule/references/deliberation-record.md` says.
|
|
57
|
+
|
|
56
58
|
## Sub-agent Delegation
|
|
57
59
|
|
|
58
60
|
Follow `.qfai/assistant/rule/shared-skill-delegation-baseline.md`.
|