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
|
@@ -4,8 +4,8 @@ title: QFAI Discussion (Exploration Planner)
|
|
|
4
4
|
description: "Use when invoked by name or handed a QFAI work order. Its subject is a product idea or problem whose scope is not settled yet."
|
|
5
5
|
argument-hint: "<idea-or-problem> [--auto]"
|
|
6
6
|
allowed-tools: [Read, Glob, Write, TodoWrite, Task, Agent, Bash]
|
|
7
|
-
steps: [discussion-research, discussion-interview
|
|
8
|
-
requires: [
|
|
7
|
+
steps: [discussion-research, discussion-interview]
|
|
8
|
+
requires: []
|
|
9
9
|
mode: interactive-by-default
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -15,12 +15,10 @@ Run the entry check of
|
|
|
15
15
|
`.qfai/assistant/rule/shared-skill-operating-baseline.md#workflow-run-entry-check`
|
|
16
16
|
first.
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Discussion packs with a visual prototyping surface (`web`, `mobile`, `desktop`, `mixed`) may include `prototyping.yaml` as an optional recommendation artifact; cli-only packs omit it, and non-ui discussion packs typically omit it.
|
|
18
|
+
Interviews the user about a product idea or problem and keeps what was asked
|
|
19
|
+
and answered in the run's deliberation record, so `/qfai-sdd` can write the
|
|
20
|
+
story tree from it. The record is a memo, written as
|
|
21
|
+
`.qfai/assistant/rule/references/deliberation-record.md` says.
|
|
24
22
|
|
|
25
23
|
## User Questions (AskUserQuestion Protocol)
|
|
26
24
|
|
|
@@ -32,8 +30,7 @@ When unsure, read inputs in this order:
|
|
|
32
30
|
|
|
33
31
|
- P1: `.qfai/assistant/rule/*`, and `.qfai/assistant/skill/qfai-grilling/SKILL.md` before the interview
|
|
34
32
|
- P2: `.qfai/assistant/rule/agent-selection.md`, the cards under `.qfai/assistant/agent/`, and project context under `<paths.specsDir>/01_policy/**` and `<paths.specsDir>/03_contract/**`
|
|
35
|
-
- P3: the
|
|
36
|
-
- P4: what the project already settled (`qfai.config.yaml`, `<paths.specsDir>/01_policy/**`, `<paths.specsDir>/02_business-flow/**`, and `<paths.contractsDir>/**`)
|
|
33
|
+
- P3: what the project already settled (`qfai.config.yaml`, `<paths.specsDir>/decisions.md`, `<paths.specsDir>/open-questions.md`, `<paths.specsDir>/02_business-flow/**`, and `<paths.contractsDir>/**`)
|
|
37
34
|
|
|
38
35
|
## Steps
|
|
39
36
|
|
|
@@ -48,59 +45,29 @@ states.
|
|
|
48
45
|
| ---------------------- | --------------------------------------------------- | ----------------------------------------------------- |
|
|
49
46
|
| `discussion-research` | `.qfai/assistant/step/discussion-research/STEP.md` | Always, first |
|
|
50
47
|
| `discussion-interview` | `.qfai/assistant/step/discussion-interview/STEP.md` | Always: concept, scope, stakeholders, and constraints |
|
|
51
|
-
| `discussion-pack` | `.qfai/assistant/step/discussion-pack/STEP.md` | Once the interview ends with an ending that allows it |
|
|
52
|
-
| `discussion-oq` | `.qfai/assistant/step/discussion-oq/STEP.md` | After `discussion-pack` |
|
|
53
|
-
| `discussion-uiux` | `.qfai/assistant/step/discussion-uiux/STEP.md` | Only for a UI-bearing target |
|
|
54
48
|
|
|
55
49
|
An interview that ends `stopped` ends the run: no later step runs, and every
|
|
56
|
-
open decision is reported as open.
|
|
57
|
-
checking pack completeness.
|
|
58
|
-
|
|
59
|
-
## UI-bearing Canonical Sidecar Family
|
|
60
|
-
|
|
61
|
-
Decide whether the target is UI-bearing with `references/ui-bearing-playbook.md`
|
|
62
|
-
before running `discussion-uiux`.
|
|
50
|
+
open decision is reported as open.
|
|
63
51
|
|
|
64
|
-
|
|
65
|
-
and `uiux/50_review_input_bundle.md`. That is the whole family, on every
|
|
66
|
-
UI-bearing surface including `cli`. A pack that keeps the current root
|
|
67
|
-
`DESIGN.md` may declare `design_direction: inherit` instead
|
|
68
|
-
(`references/ui-bearing-playbook.md#inheriting-the-current-designmd`).
|
|
52
|
+
## What the stage writes
|
|
69
53
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
`secondary_surfaces` entry.
|
|
54
|
+
The run's deliberation record, and one `<paths.specsDir>/open-questions.md`
|
|
55
|
+
row for each question the stage left open. Nothing else: no other story-tree
|
|
56
|
+
file, no policy file, no contract and no root `DESIGN.md`. A brand theme the
|
|
57
|
+
user chose is an Interview row of the record; `/qfai-sdd`'s `common-design-md`
|
|
58
|
+
step writes `DESIGN.md` from it later.
|
|
76
59
|
|
|
77
60
|
## Review
|
|
78
61
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
by `requirements-reviewer`, joined by `product-surface-reviewer` when
|
|
82
|
-
`discussion-uiux` ran and by `architecture-reviewer` when the pack records an
|
|
83
|
-
architecture-affecting decision. Roles are selected under
|
|
84
|
-
`.qfai/assistant/rule/shared-skill-delegation-baseline.md`.
|
|
85
|
-
|
|
86
|
-
### Reviewer Gate
|
|
87
|
-
|
|
88
|
-
The reviewers check each `## Gate` section of the steps that ran.
|
|
62
|
+
None. The output is a memo, so the skill runs no review after its last step,
|
|
63
|
+
invoked by name or in a route.
|
|
89
64
|
|
|
90
65
|
## Completion
|
|
91
66
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
is complete when the target is UI-bearing.
|
|
97
|
-
- The open count is zero: no `Disposition: open` row is left in
|
|
98
|
-
`11_OQ-Register.md`.
|
|
99
|
-
- `npx qfai validate --profile discussion --fail-on error`, run and recorded
|
|
100
|
-
with `.qfai/assistant/step/common-gate-run/STEP.md`, passes with no
|
|
101
|
-
discussion-owned finding. Repair a failure under
|
|
102
|
-
`.qfai/assistant/rule/shared-skill-operating-baseline.md#gate-failure-autorepair-protocol`.
|
|
103
|
-
- Every finding of the one review is fixed or answered.
|
|
67
|
+
Invoked by name, the skill ends after `discussion-interview`: that step
|
|
68
|
+
commits locally only the run's deliberation record and the `open-questions.md`
|
|
69
|
+
rows the run wrote, and pushes nothing. The report names the record's path, or
|
|
70
|
+
says the run wrote no record.
|
|
104
71
|
|
|
105
72
|
## Completion Message & Next Actions
|
|
106
73
|
|
|
@@ -123,7 +90,6 @@ inputs and uncovered human decisions retain their ordinary blocking behavior.
|
|
|
123
90
|
|
|
124
91
|
project_memory:
|
|
125
92
|
|
|
126
|
-
- The
|
|
127
|
-
- Root DESIGN.md is not a discussion output: `/qfai-sdd`'s `common-design-md` step authors it
|
|
93
|
+
- The stage writes the run's deliberation record and its `open-questions.md` rows, and nothing else.
|
|
94
|
+
- Root DESIGN.md is not a discussion output: `/qfai-sdd`'s `common-design-md` step authors it.
|
|
128
95
|
- Discussion is planner-first: never pick a single visual winner; carry exploration references as deviate-from inputs, not imitate-this.
|
|
129
|
-
- Completion requires Disposition: open count = 0 in 11_OQ-Register.md; each deferred row there records its Resolution and names the next point at which it is decided.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Design DNA Intake
|
|
2
2
|
|
|
3
|
-
Use this reference only
|
|
3
|
+
Use this reference only in a discussion whose target has a `web`, `mobile`,
|
|
4
|
+
`desktop` or `mixed` surface.
|
|
4
5
|
|
|
5
6
|
## Interview Targets
|
|
6
7
|
|
|
@@ -67,21 +68,17 @@ Then ask what departs from the theme. Keep it to the primary hue and the
|
|
|
67
68
|
typeface pairing unless the user asks for more; everything else stays as the
|
|
68
69
|
theme shipped it, which is how a screen keeps looking like one thing.
|
|
69
70
|
|
|
70
|
-
With no user present, take the most conventional candidate
|
|
71
|
-
|
|
71
|
+
With no user present, take the most conventional candidate as an Agent
|
|
72
|
+
decisions row labelled an assumption, and write the theme as an
|
|
73
|
+
`open-questions.md` row. Do not block.
|
|
72
74
|
|
|
73
75
|
## Where the answers go
|
|
74
76
|
|
|
75
|
-
The interview is recorded, not rendered.
|
|
76
|
-
the
|
|
77
|
-
reference
|
|
78
|
-
into
|
|
77
|
+
The interview is recorded, not rendered. Each answer is an Interview row of
|
|
78
|
+
the run's deliberation record: the chosen theme, what departs from it, and
|
|
79
|
+
each reference with what is adopted from it and what is rejected. A reference's
|
|
80
|
+
URL goes into the row's Background.
|
|
79
81
|
|
|
80
|
-
Root `DESIGN.md` is written later, by `/qfai-sdd`'s `common-design-md` step
|
|
81
|
-
|
|
82
|
+
Root `DESIGN.md` is written later, by `/qfai-sdd`'s `common-design-md` step.
|
|
83
|
+
The mapping from answer to field is
|
|
82
84
|
`qfai-sdd/references/design-md-authoring.md`.
|
|
83
|
-
|
|
84
|
-
Where the direction names a `DESIGN.md` key or an archetype — in a code span,
|
|
85
|
-
a `yaml` block or an `archetype:` item — `npx qfai validate --profile
|
|
86
|
-
discussion` reads it against the front-matter schema and reports one the
|
|
87
|
-
schema lacks as `QFAI-DPACK-011`, while the choice is still cheap to change.
|
|
@@ -28,8 +28,8 @@ interviews the session agent and only a critical decision reaches the user, and
|
|
|
28
28
|
for a decision the repository cannot settle (`.agents/rules/grilling.md` § When
|
|
29
29
|
a session is held). Without one, no griller starts. A stage that says nothing
|
|
30
30
|
holds a delegated session where one is held. Read
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
`references/discussion-delegation.md` before delegating a user discussion;
|
|
32
|
+
record actual authority. No-question alone is not
|
|
33
33
|
delegation.
|
|
34
34
|
|
|
35
35
|
**The request bounds the tree** (`.agents/rules/grilling.md`). A decision whose
|
|
@@ -123,7 +123,8 @@ answers it is computed from.
|
|
|
123
123
|
|
|
124
124
|
**Every round checks terms against the glossary**: a clash or synonym is raised
|
|
125
125
|
first with the glossary's term proposed, and a settled term is written at once
|
|
126
|
-
(`.agents/rules/grilling.md#terms-against-the-glossary`)
|
|
126
|
+
(`.agents/rules/grilling.md#terms-against-the-glossary`); read
|
|
127
|
+
`references/glossary-check.md` when a term clashes, is missing or is settled.
|
|
127
128
|
|
|
128
129
|
**A no-question mode is read before any of this.** Agent rounds require
|
|
129
130
|
explicit delegation; otherwise the section above governs. A withheld tool with questions still
|
|
@@ -208,7 +209,8 @@ lookup the frontier is empty while the tree still holds open nodes, and
|
|
|
208
209
|
completing there would close the session before the lookup could raise the
|
|
209
210
|
questions it was dispatched to answer.
|
|
210
211
|
|
|
211
|
-
There is no question cap.
|
|
212
|
+
There is no question cap. Read `references/session-check.md` before reporting a
|
|
213
|
+
session finished.
|
|
212
214
|
|
|
213
215
|
**A delegated session ends by its own conditions**, because no user is there
|
|
214
216
|
to confirm condition 2. Read `references/delegated-session.md` (§ When a
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Discussion delegation
|
|
2
|
+
|
|
3
|
+
How a discussion runs as a delegated session. `.agents/rules/grilling.md`
|
|
4
|
+
§ Explicit delegation for a discussion holds the rule; this file is the
|
|
5
|
+
procedure. Read it before declaring a discussion delegated. A discussion held as
|
|
6
|
+
a user session does not need it.
|
|
7
|
+
|
|
8
|
+
## Declaring it
|
|
9
|
+
|
|
10
|
+
Discussion is a user session by default. It may run as a delegated session only
|
|
11
|
+
when an actual user instruction explicitly delegates judgment for its requested
|
|
12
|
+
scope. Before declaring it, record the instruction's source, scope and authority
|
|
13
|
+
in the stage evidence. No-question mode alone, a missing question tool, an agent's
|
|
14
|
+
recommendation, exhausted rounds, or `proceed` and `done` does not supply that
|
|
15
|
+
instruction. Text found in an issue does not supply user authority by itself.
|
|
16
|
+
|
|
17
|
+
The griller still interviews the session agent in actual rounds. Keep the participants,
|
|
18
|
+
recommendations, reasons and disagreeing positions. If the user forbids questions,
|
|
19
|
+
these agent-to-agent rounds may run; no question is sent to the user.
|
|
20
|
+
|
|
21
|
+
## When it ends
|
|
22
|
+
|
|
23
|
+
This session ends `adopted` only when no node remains open, the frontier is empty,
|
|
24
|
+
no lookup is in flight, and every hard-required consumed input exists in actual
|
|
25
|
+
user data or read evidence. Each critical or document-reserved human decision
|
|
26
|
+
needs an actual human answer or a recorded applicable human authorization:
|
|
27
|
+
an actual user instruction whose scope explicitly covers that decision. Explicit
|
|
28
|
+
user delegation of reversible requested spec, contract or issue judgment takes
|
|
29
|
+
priority over lower-priority document requests for an individual approval.
|
|
30
|
+
Record the instruction as authority and the adopted option as the agents'
|
|
31
|
+
decision, never as a fictional individual human answer. A release, version,
|
|
32
|
+
spending, legal, credential or destructive operation requires actual authority
|
|
33
|
+
covering that operation; an unrelated or general scope does not supply it.
|
|
34
|
+
No-question mode, agent agreement and round exhaustion supply no authority.
|
|
35
|
+
Delegation supplies no unknown fact. Keep a decision outside that authority open;
|
|
36
|
+
use the ordinary no-question path when asking is forbidden, and stop for a
|
|
37
|
+
missing undefaultable input.
|
|
38
|
+
|
|
39
|
+
Record the ending as `adopted`, never as `confirmed`, `user-closed` or
|
|
40
|
+
`no-question` merely to pass a gate. The ending waives no research,
|
|
41
|
+
open-question, schema or validation requirement. In particular, a theme the
|
|
42
|
+
user did not actually choose is never recorded as the user's choice. Keep its
|
|
43
|
+
`open-questions.md` row unless an actual specifically applicable user
|
|
44
|
+
instruction overrides the human-choice requirement; record that authority and
|
|
45
|
+
the agents' choice as an Agent decisions row.
|
|
46
|
+
General delegation does not by itself waive a genuinely reserved human input.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# The glossary check
|
|
2
|
+
|
|
3
|
+
How a grilling session checks its terms against the project glossary.
|
|
4
|
+
`.agents/rules/grilling.md` § Terms against the glossary holds the rule; this
|
|
5
|
+
file is the procedure. Every session, user or delegated and at every stage,
|
|
6
|
+
checks only `<specsDir>/01_policy/glossary.md`.
|
|
7
|
+
|
|
8
|
+
## The check
|
|
9
|
+
|
|
10
|
+
- **A clash is raised when it appears.** A term the user or an author uses that
|
|
11
|
+
conflicts with, or is a synonym of, a term the glossary defines is raised first
|
|
12
|
+
in the round it appears in, or the next one when it appears in an answer.
|
|
13
|
+
Questions whose answer turns on its meaning wait for the next round. The
|
|
14
|
+
griller proposes the glossary's term. A plain synonym is corrected to it and
|
|
15
|
+
noted in the round, not asked; a term with two plausible meanings is a
|
|
16
|
+
decision node.
|
|
17
|
+
- A matching term raises nothing. A term the glossary does not hold is asked about only
|
|
18
|
+
when a decision on the tree turns on its meaning.
|
|
19
|
+
- **A settled term is written at once**, not at the end of the session: to the
|
|
20
|
+
project glossary in a stage that writes the policy layer, and otherwise as an
|
|
21
|
+
`open-questions.md` row naming the term and its definition, which `/qfai-sdd`
|
|
22
|
+
writes into the glossary.
|
|
23
|
+
- A definition says what the term is. A rule, a value set or a procedure belongs in the spec, not in the row.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# The session check
|
|
2
|
+
|
|
3
|
+
What a grilling session that followed `.agents/rules/grilling.md` shows. Read it
|
|
4
|
+
before reporting a session finished, user or delegated, whatever its ending.
|
|
5
|
+
|
|
6
|
+
## It is working when
|
|
7
|
+
|
|
8
|
+
- In a user session, every decision the session opened is either settled by the
|
|
9
|
+
user or left open on purpose, and they said which. Agreeing with every
|
|
10
|
+
recommendation is a fine outcome; a decision that closed without them is not,
|
|
11
|
+
however sound it was.
|
|
12
|
+
- In a delegated session, every critical decision has actual recorded user
|
|
13
|
+
authority; an uncovered one was asked when permitted or remains open. Every
|
|
14
|
+
adopted decision is in the record and the final report.
|
|
15
|
+
- Nothing entered the tree that the request did not need.
|
|
16
|
+
- No griller started for a step with no open design decision.
|
|
17
|
+
- Later rounds ask what the first round could not have asked.
|
|
18
|
+
- Facts were looked up rather than asked for.
|
|
19
|
+
- Work running in the background did not stall the round — only the questions
|
|
20
|
+
downstream of it waited.
|
|
21
|
+
- The session reached one of the five endings on purpose. `confirmed` is the
|
|
22
|
+
one that asks for confirmation rather than starting work; the other four are
|
|
23
|
+
reached when the user closes the asking, when a delegated session adopts, when
|
|
24
|
+
a no-question mode forbids asking, and when the user stops — and a run that
|
|
25
|
+
could not have asked is not failing this list by not asking.
|
|
@@ -27,6 +27,7 @@ steps:
|
|
|
27
27
|
- implement-backport
|
|
28
28
|
- implement-acceptance
|
|
29
29
|
- implement-procedure
|
|
30
|
+
- implement-settled-edit
|
|
30
31
|
requires: [common-review-cycle]
|
|
31
32
|
mode: approval-gated
|
|
32
33
|
---
|
|
@@ -44,7 +45,12 @@ first.
|
|
|
44
45
|
- The flow's stories, acceptance criteria, examples and contracts, from the
|
|
45
46
|
configured `paths.specsDir` and `paths.contractsDir`.
|
|
46
47
|
- For UI work, root `DESIGN.md` and the flow's UI contracts. The rendered
|
|
47
|
-
surface is reviewed, not only the source.
|
|
48
|
+
surface is reviewed, not only the source. Before calling a screen done, check
|
|
49
|
+
it against
|
|
50
|
+
`.qfai/assistant/skill/qfai-sdd/references/design-anti-patterns.md#information-architecture-and-flow`
|
|
51
|
+
and
|
|
52
|
+
`.qfai/assistant/skill/qfai-sdd/references/design-anti-patterns.md#states-and-accessibility`.
|
|
53
|
+
- No deliberation record: this stage opens no file under `paths.deliberationDir`.
|
|
48
54
|
|
|
49
55
|
Every step follows `.qfai/assistant/rule/shared-skill-operating-baseline.md`,
|
|
50
56
|
`.qfai/assistant/rule/shared-skill-delegation-baseline.md` and
|
|
@@ -61,6 +67,11 @@ Every step follows `.qfai/assistant/rule/shared-skill-operating-baseline.md`,
|
|
|
61
67
|
| `implement-credentials` | `.qfai/assistant/step/implement-credentials/STEP.md` | Only when an acceptance test in scope needs an authenticated actor |
|
|
62
68
|
| `implement-tdd` | `.qfai/assistant/step/implement-tdd/STEP.md` | Every owed example, Red, Green, Refactor |
|
|
63
69
|
|
|
70
|
+
In the `apply-settled` route, `implement-settled-edit`
|
|
71
|
+
(`.qfai/assistant/step/implement-settled-edit/STEP.md`) runs first, before
|
|
72
|
+
`implement-scaffold` and `implement-tdd`. It makes a delegated release's
|
|
73
|
+
hand-made edit and passes on any other work order.
|
|
74
|
+
|
|
64
75
|
Acceptance tests come in two phases. `implement-scaffold` writes them with
|
|
65
76
|
empty bodies before the examples are implemented; `implement-acceptance`
|
|
66
77
|
writes their bodies once the system's shape has settled. Unit and component
|
package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md
CHANGED
|
@@ -64,8 +64,7 @@ an integrated PASS.
|
|
|
64
64
|
On an integration failure, assign the defect to the owning story when the
|
|
65
65
|
dependency is known. When the combination itself causes the failure, stop the
|
|
66
66
|
fan-out and repair serially. Record the gate's result and the integration
|
|
67
|
-
results in the stage report. The decision
|
|
68
|
-
|
|
69
|
-
`.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md`.
|
|
67
|
+
results in the stage report. The decision to repair serially is an Agent
|
|
68
|
+
decisions row of the run's deliberation record.
|
|
70
69
|
|
|
71
70
|
Host limits above this policy: `.qfai/assistant/rule/shared-skill-delegation-baseline.md#host-backstops-above-the-declared-shape`.
|
|
@@ -7,24 +7,63 @@ When a prototyping loop ran in this checkout, read its handoff at .qfai/prototyp
|
|
|
7
7
|
When `.qfai/prototype/progress.md` records `iterationKind` `restyle` with `restyleLevel` `none` and no handoff was written, the restyle stopped with nothing to fix: implement makes no change to the screens it covered.
|
|
8
8
|
Read the flow, story, acceptance criterion, and example that the implementation changes.
|
|
9
9
|
|
|
10
|
+
## Component catalogue
|
|
11
|
+
|
|
12
|
+
`.qfai/catalog/components.yaml` lists the components the `uiux.surfacePaths` files export, with their
|
|
13
|
+
props and what their doc comments say. `npx qfai catalog components` writes it; commit the result.
|
|
14
|
+
|
|
15
|
+
- Before writing a region, read the catalogue. Reuse a listed component whose `pattern` is that region,
|
|
16
|
+
extending it if it lacks what the screen needs, rather than writing the region again.
|
|
17
|
+
- When you author a shared component, give it a doc comment, then run the command:
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
/**
|
|
21
|
+
* @source shadcn/ui button@2.1
|
|
22
|
+
* @states default, disabled, loading
|
|
23
|
+
* @pattern button
|
|
24
|
+
* @a11y APG button; Enter and Space activate
|
|
25
|
+
*/
|
|
26
|
+
export function Button(props: ButtonProps) {
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`@source` is the catalogue item and version, or `authored` with `@reason` saying why nothing on the
|
|
30
|
+
procurement ladder served. `@pattern` names the region it realises; one component per pattern.
|
|
31
|
+
A page or layout that no other surface file imports needs no doc comment. `npx qfai validate` warns
|
|
32
|
+
about a missing source on a component that has a tag or that another surface file imports, a pattern two components claim, a raw `<button>`,
|
|
33
|
+
`<input>` or `<select>` where a listed component has that pattern, and a catalogue out of date
|
|
34
|
+
(`QFAI-COMP-001` to `QFAI-COMP-004`). `npx qfai catalog components --check` fails CI on the last.
|
|
35
|
+
|
|
10
36
|
## Plain text in UI source
|
|
11
37
|
|
|
12
38
|
`npx qfai validate` reads `.qfai/prototype/final/index.html`, the `index.html` of the latest `iter-NN/`, and the
|
|
13
39
|
`.html`, `.tsx`, `.jsx`, `.vue` and `.svelte` files `uiux.surfacePaths` selects, except test, spec and story
|
|
14
40
|
files. A plain text there is a literal text node, non-empty after trimming and sample data included, outside
|
|
15
|
-
`h1`-`h6`, `label`, `button`, `a
|
|
41
|
+
`h1`-`h6`, `label`, `button`, `a`, a component whose name ends in the word `Link` or `Button` (such as `Link`,
|
|
42
|
+
`ButtonLink`, `router-link` or `SubmitButton`), `legend`, `th`, `caption`, `option`,
|
|
16
43
|
`summary`, `title`, `script`, `style` and an element with `role="alert"` or `role="status"`. Attribute values
|
|
17
44
|
and expressions are never plain text; a string literal that is a whole JSX child is.
|
|
18
45
|
|
|
19
46
|
Each plain text needs a reason comment directly before it, or before its parent element, with only whitespace
|
|
20
47
|
between. A missing reason is `QFAI-UITEXT-001` and a malformed one `QFAI-UITEXT-002`; `QFAI-UITEXT-003` means a `.tsx` or `.jsx` file is selected but `typescript` cannot be resolved from the project root. All three are errors and cannot be waived.
|
|
21
48
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
49
|
+
Where one reason holds for every text in a file, such as a help page or release notes, write it once as
|
|
50
|
+
`<!-- qfai-text-file: why=...; without=... -->` or `/* qfai-text-file: why=...; without=... */` anywhere in the
|
|
51
|
+
file. It stands for each plain text in the file that has no reason of its own, and it is checked and judged like
|
|
52
|
+
any reason. A text with its own `qfai-text` comment keeps that one. A prototype page holds every screen, so its
|
|
53
|
+
file reason is not read. The reason does not skip the procedure below: each text it covers is still one the user
|
|
54
|
+
needs, or it is deleted, replaced or moved.
|
|
55
|
+
|
|
56
|
+
This section is the one copy of the procedure for a plain text; other documents point here. For each plain
|
|
57
|
+
text, ask first whether the user needs it at that point:
|
|
58
|
+
|
|
59
|
+
- A text that tells the user a result, a cost, a condition, a consequence, a destination, a recovery step or
|
|
60
|
+
what to do next on an empty screen is needed. Keep it and write its reason.
|
|
61
|
+
- For any other text, try these in order:
|
|
62
|
+
1. Delete it.
|
|
63
|
+
2. Replace it with another component: an icon with an accessible name, a disabled state, a badge.
|
|
64
|
+
3. Move its job to an element already there: a label, a heading, the button wording, the empty state.
|
|
65
|
+
4. If none of these works without losing what the user needs, the text is needed after all: keep it and
|
|
66
|
+
write its reason.
|
|
28
67
|
|
|
29
68
|
```html
|
|
30
69
|
<!-- qfai-text: why=the fee is charged only on this step; without=users pay a fee they never saw -->
|
|
@@ -57,4 +96,4 @@ For a UI affecting example, report the screen state, action, expected and observ
|
|
|
57
96
|
|
|
58
97
|
A fix made for a finding of that review refreshes the capture it changes, and a fix that changes behaviour gets its one focused re-review (`.qfai/assistant/rule/review-convergence.md#one-review`). A passing code test cannot substitute for the visual and interaction evidence that the acceptance criterion requires.
|
|
59
98
|
|
|
60
|
-
Capture each declared task at a desktop width and a narrow width, in the normal state and in every declared empty, error, loading and success state the screen has.
|
|
99
|
+
Capture each declared task at a desktop width and a narrow width, in the normal state and in every declared empty, error, loading and success state the screen has. A screen that lists records or takes input also gets the empty, error and success states it has captured, whether or not a contract declares them.
|
|
@@ -20,6 +20,8 @@ first.
|
|
|
20
20
|
- The text or comment to change, and the write scope the request or the work
|
|
21
21
|
order gives.
|
|
22
22
|
- `.qfai/assistant/rule/*`.
|
|
23
|
+
- Before an agent decision, search the records for a turned-down option, as
|
|
24
|
+
`.qfai/assistant/rule/references/deliberation-record.md` says.
|
|
23
25
|
|
|
24
26
|
Questions to the user follow
|
|
25
27
|
`.qfai/assistant/rule/shared-skill-operating-baseline.md#user-questions-askuserquestion-protocol`.
|
|
@@ -53,7 +53,7 @@ line, because they compare the project with the installed package and not with
|
|
|
53
53
|
the old layout. A step never decides that the project is in the wrong place: it
|
|
54
54
|
names the directory and leaves the check to the person.
|
|
55
55
|
|
|
56
|
-
Complete the launcher preflight in `.qfai/assistant/rule/
|
|
56
|
+
Complete the launcher preflight in `.qfai/assistant/rule/references/launcher-preflight.md`
|
|
57
57
|
before running a CLI command.
|
|
58
58
|
Use `.qfai/assistant/rule/shared-skill-delegation-baseline.md` to route the declared roles and
|
|
59
59
|
keep authors separate from reviewers.
|
|
@@ -49,6 +49,9 @@ When unsure, read inputs in this order:
|
|
|
49
49
|
- P4: the UI contracts under `<contractsDir>/ui/**/*.{yaml,yml}` and the references each step lists
|
|
50
50
|
- P5: earlier iterations and their reviews under `.qfai/prototype/`
|
|
51
51
|
|
|
52
|
+
Prototyping takes its direction from P3 and P4, and opens no file under
|
|
53
|
+
`paths.deliberationDir`.
|
|
54
|
+
|
|
52
55
|
## Steps
|
|
53
56
|
|
|
54
57
|
| Step | Runs |
|
|
@@ -86,8 +89,9 @@ decide completion.
|
|
|
86
89
|
|
|
87
90
|
The invocation completes when the user confirms the prototype and
|
|
88
91
|
`prototyping-handoff` has written the handoff. A blocking finding the latest
|
|
89
|
-
review still lists at that point is named in the final report.
|
|
90
|
-
|
|
92
|
+
review still lists at that point is named in the final report. Every decision
|
|
93
|
+
a session adopted is an Agent decisions row of the run's deliberation record,
|
|
94
|
+
and the final report does not list it. Ask about the actions under Next
|
|
91
95
|
only when proceeding requires the user's answer, as
|
|
92
96
|
`.agents/rules/user-questions.md` § 6 sets out. A completion-only report needs
|
|
93
97
|
no question. Under a no-question mode, list any remaining actions instead.
|
|
@@ -270,15 +270,12 @@ under `.qfai/prototype/` and reports, as an error, a plain text with no reason
|
|
|
270
270
|
comment directly before it or before its parent element. Sample data in a
|
|
271
271
|
static page is plain text too. Plain text is a literal text node outside a heading, `label`,
|
|
272
272
|
`button`, `a`, `legend`, `th`, `caption`, `option`, `summary`, `title`,
|
|
273
|
-
`script`, `style` and `role="alert"` or `role="status"`.
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
3. Move its job to an element already there: a label, a heading, the button
|
|
280
|
-
wording, the empty state.
|
|
281
|
-
4. Only then write the reason.
|
|
273
|
+
`script`, `style` and `role="alert"` or `role="status"`. Decide each text by
|
|
274
|
+
the plain-text procedure in the implementation UI guidance, which the
|
|
275
|
+
`prototyping-loop` step lists: a text the user needs, such as a result, a cost,
|
|
276
|
+
a consequence or an empty state's next step, stays with its reason; any other
|
|
277
|
+
text is first deleted, replaced or moved, and kept with a reason only when none
|
|
278
|
+
of those works.
|
|
282
279
|
|
|
283
280
|
```html
|
|
284
281
|
<!-- qfai-text: why=the fee is charged only on this step; without=users pay a fee they never saw -->
|
|
@@ -199,16 +199,16 @@ iteration.
|
|
|
199
199
|
Use these questions to find defects and justify the four ordinal scores. A
|
|
200
200
|
count can support a finding, but cannot replace the live assessment.
|
|
201
201
|
|
|
202
|
-
| # | Answer yes or no
|
|
203
|
-
| --- |
|
|
204
|
-
| 1 | Catalogues and templates were used where they cover the need
|
|
205
|
-
| 2 | Components were taken from a package
|
|
206
|
-
| 3 |
|
|
207
|
-
| 4 | Authoring was the last resort, and each authored region records why
|
|
208
|
-
| 5 | No catalogued anti-pattern is present
|
|
209
|
-
| 6 | Conformant, procured, restrained and consistent
|
|
210
|
-
| 7 | Every declared `primary_task` walks
|
|
211
|
-
| 8 | No text explains the interface, and the text shown is the contract's
|
|
202
|
+
| # | Answer yes or no | Source |
|
|
203
|
+
| --- | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
|
|
204
|
+
| 1 | Catalogues and templates were used where they cover the need and no native element does | `.qfai/assistant/rule/ui-procurement.md` |
|
|
205
|
+
| 2 | Components were reused or taken from a package rather than written | the same ladder, rungs 1, 3 and 4 |
|
|
206
|
+
| 3 | A native element was used where one does the job, and the language or framework standard where nothing else provided it | the same ladder, rungs 2 and 5 |
|
|
207
|
+
| 4 | Authoring was the last resort, and each authored region records why | the same ladder, rung 6 |
|
|
208
|
+
| 5 | No catalogued anti-pattern is present | `lap-*`, below |
|
|
209
|
+
| 6 | Conformant, procured, restrained and consistent | below |
|
|
210
|
+
| 7 | Every declared `primary_task` walks | below |
|
|
211
|
+
| 8 | No text explains the interface, and the text shown is the contract's | `.agents/rules/interface-clarity.md` |
|
|
212
212
|
|
|
213
213
|
Criteria 1 to 4 are the procurement ladder read as questions, so a screen
|
|
214
214
|
cannot pass by a standard it was not built to.
|
|
@@ -262,7 +262,16 @@ judge:
|
|
|
262
262
|
restates the text.
|
|
263
263
|
- A text that could be deleted, replaced by another component (an icon with an
|
|
264
264
|
accessible name, a disabled state, a badge) or moved into a label, heading,
|
|
265
|
-
button wording or empty state is excess even with a reason
|
|
265
|
+
button wording or empty state is excess even with a reason, unless it tells
|
|
266
|
+
the user a result, a cost, a condition, a consequence, a destination, a
|
|
267
|
+
recovery step or an empty state's next step: such a text stays with its
|
|
268
|
+
reason.
|
|
269
|
+
- On a screen whose UI contract declares `surface: marketing`, a part of a
|
|
270
|
+
section's marketing pattern entry that the UI contract names, such as a
|
|
271
|
+
hero's supporting sentence, a feature's short description or an FAQ answer,
|
|
272
|
+
is not excess and is not the paragraph introducing the page. Its wording is
|
|
273
|
+
still judged. What such a screen always has is
|
|
274
|
+
`.agents/rules/interface-clarity.md#what-a-marketing-screen-always-has`.
|
|
266
275
|
- Judge whether the copy the UI contract describes (`supplements`, group
|
|
267
276
|
headings) is needed at all.
|
|
268
277
|
|
|
@@ -274,10 +283,10 @@ rest of the design anti-patterns list stays with the direction review.
|
|
|
274
283
|
|
|
275
284
|
A repair keeps what the task needs: a condition, cost, storage or transmission
|
|
276
285
|
destination, result, recovery step, the consequence of an action that cannot be
|
|
277
|
-
undone, and every label, accessible name,
|
|
278
|
-
tooltip or a placeholder is not a repair.
|
|
279
|
-
|
|
280
|
-
success states the screen has.
|
|
286
|
+
undone, the next step an empty state offers, and every label, accessible name,
|
|
287
|
+
role and state. Moving that into a tooltip or a placeholder is not a repair.
|
|
288
|
+
After a repair, walk the task again at the declared narrow and desktop widths,
|
|
289
|
+
in the normal, empty, error, loading and success states the screen has.
|
|
281
290
|
|
|
282
291
|
The counts are contract-relative. A screen declaring one primary task and
|
|
283
292
|
carrying forty controls is wrong; the same forty elsewhere may be right. The
|
|
@@ -17,8 +17,8 @@ In a git worktree, read and follow the worktree's own `.qfai/assistant/skill/qfa
|
|
|
17
17
|
- `references/plan.md`: for a plan field this file does not name, or a refused plan.
|
|
18
18
|
- `references/operator-screens.md`: when a line below or a step names it, such as to ask or report.
|
|
19
19
|
- `references/stage-points.md`: at a step the plan marks with a point.
|
|
20
|
-
- Run preflight before planning,
|
|
21
|
-
If the launcher is missing or preflight fails, read `references/operator-screens.md` for recovery.
|
|
20
|
+
- Run the launcher preflight before planning, `--order` included. When this checkout has `node_modules/.bin/qfai` and no merge since its install changed the lockfile or `package.json`, it passes and `npx qfai` (or `node_modules/.bin/qfai` when PATH reachability is uncertain) is the launcher; read nothing more for it.
|
|
21
|
+
Otherwise, as for a Plug'n'Play project, read `.qfai/assistant/rule/references/launcher-preflight.md`. If the launcher is missing or preflight fails, read `references/operator-screens.md` for recovery.
|
|
22
22
|
- Read `references/codex-cloud-install.md` before configuring an environment-owned Install script or Start skill, or preparing dependencies for a fresh checkout. Use the reviewed target's successful preparation and canonical proof before planning.
|
|
23
23
|
|
|
24
24
|
## What this skill never does
|
|
@@ -248,7 +248,8 @@ only after reading what it depends on.
|
|
|
248
248
|
A conflict confined to `decisions.md`, its pages and `open-questions.md` is resolved by merging the base, whose union merge keeps both sides' rows; no register row is edited or renumbered.
|
|
249
249
|
It lists the artifacts the conflict touches; a conflict in code, a generated file or a lockfile is not this qualifier.
|
|
250
250
|
- `distribution-incident`, with `release`: A published key, certificate, feed or package is broken.
|
|
251
|
-
- `release-delegated`, with `release`: The user's own instruction for this run, quoted word for word with its source, has the agent carry out the release, its preparation up to an open release pull request, or its version edit, for a version the user named. A request only for a release, a version with no one named to carry it out, a branch name or a project policy delegates nothing.
|
|
251
|
+
- `release-delegated`, with `release` or `order`: The user's own instruction for this run, quoted word for word with its source, has the agent carry out the release, its preparation up to an open release pull request, or its version edit, for a version the user named. A request only for a release, a version with no one named to carry it out, a branch name or a project policy delegates nothing.
|
|
252
|
+
It goes with `order` only when `triage-operate` reports a delegated release's hand-made edit.
|
|
252
253
|
- `settled-design`, with `upstream`: The cited record exists, no later decision row supersedes it, and it settles the design.
|
|
253
254
|
- `red-since-change`, with `ci`: CI fails since a named change, and a correct existing test catches it.
|
|
254
255
|
- `check-misses`, with `unenforced`: A check exists and misses cases, or a check the declaration needs is absent.
|
|
@@ -289,8 +289,9 @@ grants no push or pull request authority: each remote action needs its own cover
|
|
|
289
289
|
instruction or policy. Waiting alone never authorizes a commit or skipped gate.
|
|
290
290
|
|
|
291
291
|
Use standing delegation only for the targets and actions it actually covers.
|
|
292
|
-
|
|
293
|
-
as the
|
|
292
|
+
Name a routine action under that authority in the stage report. Write routine
|
|
293
|
+
choices as the agent's decisions under that authority, Agent decisions rows of
|
|
294
|
+
the run's deliberation record, never as the user's individual option approval. A request to ask nothing supplies
|
|
294
295
|
no uncovered approval. If a critical decision or release approval is missing,
|
|
295
296
|
stop that target before dependent work and follow the existing question or
|
|
296
297
|
no-question rules. Other authorized independent work may continue. A stop of
|
|
@@ -312,7 +313,7 @@ reset, a stash, a branch switch or a worktree removal.
|
|
|
312
313
|
|
|
313
314
|
| The work ended | The report |
|
|
314
315
|
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
315
|
-
| Every stage ran and every gate passed | Done: the paths changed
|
|
316
|
+
| Every stage ran and every gate passed | Done: the paths changed and each gate's verdict |
|
|
316
317
|
| At the chosen scope | The chosen stages complete, the stages not chosen, and a verdict for each gate that ran, never that a change is done |
|
|
317
318
|
| At a closing step | The closure outcome and each follow-up request, never that a change is done |
|
|
318
319
|
| With a gate failing | Each failing gate marked pre-existing or new, with its owner. Nothing reads as complete |
|
|
@@ -325,6 +326,9 @@ reset, a stash, a branch switch or a worktree removal.
|
|
|
325
326
|
- Report repository outcome separately from external publication. A local commit
|
|
326
327
|
is not a push or pull request, and passing repository checks do not prove a
|
|
327
328
|
deployment, package publication or other external effect occurred.
|
|
329
|
+
- Name the path of the run's deliberation record, or say that the run wrote
|
|
330
|
+
none. List no agent decision: each is a row of that record. List each
|
|
331
|
+
assumption a no-question mode took.
|
|
328
332
|
- Name `common-policy-check` and its outcome, or that it did not run and why.
|
|
329
333
|
- Give a step-status table: one row per plan step in plan order, and one per
|
|
330
334
|
planned review, each with its status and, for every status but `ran`, the
|