qfai 1.8.9 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +57 -26
  2. package/assets/init/.qfai/assistant/agents/acceptance-test-engineer.md +3 -3
  3. package/assets/init/.qfai/assistant/agents/architecture-reviewer.md +4 -4
  4. package/assets/init/.qfai/assistant/agents/backend-engineer.md +3 -3
  5. package/assets/init/.qfai/assistant/agents/completion-reviewer.md +4 -4
  6. package/assets/init/.qfai/assistant/agents/delivery-planner.md +2 -2
  7. package/assets/init/.qfai/assistant/agents/devops-ci-engineer.md +2 -2
  8. package/assets/init/.qfai/assistant/agents/discovery-analyst.md +2 -2
  9. package/assets/init/.qfai/assistant/agents/doc-steward.md +2 -2
  10. package/assets/init/.qfai/assistant/agents/frontend-engineer.md +2 -2
  11. package/assets/init/.qfai/assistant/agents/implementation-reviewer.md +4 -4
  12. package/assets/init/.qfai/assistant/agents/orchestrator.md +3 -3
  13. package/assets/init/.qfai/assistant/agents/product-experience-architect.md +2 -2
  14. package/assets/init/.qfai/assistant/agents/product-surface-reviewer.md +4 -4
  15. package/assets/init/.qfai/assistant/agents/qa-gatekeeper.md +4 -4
  16. package/assets/init/.qfai/assistant/agents/qa-strategist.md +3 -3
  17. package/assets/init/.qfai/assistant/agents/requirements-analyst.md +2 -2
  18. package/assets/init/.qfai/assistant/agents/requirements-reviewer.md +4 -4
  19. package/assets/init/.qfai/assistant/agents/solution-architect.md +2 -2
  20. package/assets/init/.qfai/assistant/agents/test-design-analyst.md +3 -3
  21. package/assets/init/.qfai/assistant/{steering → catalog}/manifest.md +3 -3
  22. package/assets/init/.qfai/assistant/{steering → catalog}/review-gate.rules.yml +4 -4
  23. package/assets/init/.qfai/assistant/{instructions → constitution}/constitution.md +2 -2
  24. package/assets/init/.qfai/assistant/{instructions → constitution}/shared-skill-operating-baseline.md +4 -4
  25. package/assets/init/.qfai/assistant/{instructions → constitution}/workflow.md +6 -6
  26. package/assets/init/.qfai/assistant/manifest/agent-catalog.yml +2161 -0
  27. package/assets/init/.qfai/assistant/{steering → manifest}/agent-routing.yml +5 -3
  28. package/assets/init/.qfai/assistant/skills/qfai-atdd/SKILL.md +18 -12
  29. package/assets/init/.qfai/assistant/skills/qfai-configure/SKILL.md +30 -25
  30. package/assets/init/.qfai/assistant/skills/qfai-discussion/SKILL.md +9 -3
  31. package/assets/init/.qfai/assistant/skills/qfai-discussion/references/discussion-artifact-rules.md +1 -1
  32. package/assets/init/.qfai/assistant/skills/qfai-discussion/references/rcp_footer.md +1 -1
  33. package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/14_Review-Request.md +1 -1
  34. package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/review/review_request.md +1 -1
  35. package/assets/init/.qfai/assistant/skills/qfai-implement/SKILL.md +12 -6
  36. package/assets/init/.qfai/assistant/skills/qfai-prototyping/SKILL.md +91 -19
  37. package/assets/init/.qfai/assistant/skills/qfai-sdd/SKILL.md +21 -12
  38. package/assets/init/.qfai/assistant/skills/qfai-sdd/references/rcp_footer.md +1 -1
  39. package/assets/init/.qfai/assistant/skills/qfai-sdd/references/review-cycle-playbook.md +2 -2
  40. package/assets/init/.qfai/assistant/skills/qfai-verify/SKILL.md +31 -25
  41. package/assets/init/root/.github/workflows/qfai-validate.yml +50 -6
  42. package/dist/cli/index.cjs +2670 -728
  43. package/dist/cli/index.cjs.map +1 -1
  44. package/dist/cli/index.mjs +2713 -771
  45. package/dist/cli/index.mjs.map +1 -1
  46. package/dist/index.cjs +1025 -101
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.mjs +1044 -120
  49. package/dist/index.mjs.map +1 -1
  50. package/package.json +1 -1
  51. package/assets/init/.qfai/assistant/steering/agent-catalog.yml +0 -194
  52. /package/assets/init/.qfai/assistant/{steering → catalog}/cli-ux-guidelines.md +0 -0
  53. /package/assets/init/.qfai/assistant/{steering → catalog}/product.md +0 -0
  54. /package/assets/init/.qfai/assistant/{manifest → catalog}/spec_required_files.json +0 -0
  55. /package/assets/init/.qfai/assistant/{steering → catalog}/structure.md +0 -0
  56. /package/assets/init/.qfai/assistant/{steering → catalog}/tech.md +0 -0
  57. /package/assets/init/.qfai/assistant/{steering → catalog}/test-layers.md +0 -0
  58. /package/assets/init/.qfai/assistant/{steering → catalog}/ui-definition-protocol.md +0 -0
  59. /package/assets/init/.qfai/assistant/{instructions → constitution}/agent-selection.md +0 -0
  60. /package/assets/init/.qfai/assistant/{instructions → constitution}/change-classification.md +0 -0
  61. /package/assets/init/.qfai/assistant/{instructions → constitution}/communication.md +0 -0
  62. /package/assets/init/.qfai/assistant/{instructions → constitution}/drift-protocol.md +0 -0
  63. /package/assets/init/.qfai/assistant/{instructions → constitution}/quality.md +0 -0
  64. /package/assets/init/.qfai/assistant/{instructions → constitution}/requirements-decomposition.md +0 -0
  65. /package/assets/init/.qfai/assistant/{steering → constitution}/research-first-protocol.md +0 -0
  66. /package/assets/init/.qfai/assistant/{instructions → constitution}/shared-skill-delegation-baseline.md +0 -0
  67. /package/assets/init/.qfai/assistant/{instructions → constitution}/thinking.md +0 -0
  68. /package/assets/init/.qfai/assistant/{steering → manifest}/review-profiles.yml +0 -0
  69. /package/assets/init/.qfai/assistant/{instructions → process}/migrations/v1.4.27-atdd-alignment.md +0 -0
package/README.md CHANGED
@@ -18,11 +18,19 @@ The agent reads the repository, produces the required artifacts, and iterates un
18
18
  ## Release status
19
19
 
20
20
  - Release posture: runtime truthfulness is enforced.
21
- - Prototyping is UI-only and runs a single-thread evolution loop driven by
22
- `qfai prototyping iterate --cycle <n>`, with deterministic stop conditions
23
- (exit codes 0 continue / 64 convergence / 65 max-iterations / 2 input error).
21
+ - Prototyping is UI-only and runs a multi-spec evolution loop driven by
22
+ `qfai prototyping iterate --cycle <n>`. The skill resolves every
23
+ UI-bearing spec in one invocation, freezes that set at cycle 0, and
24
+ iterates `cycle 0..9` (max 10 cycles) with deterministic stop conditions
25
+ (exit codes 0 continue / 64 convergence / 65 max-iterations /
26
+ 66 license-verify failure / 2 input or lock drift).
24
27
  - Runtime observation is observed-only (no synthetic 200 / API / DB prototyping coverage).
25
- - Per-iter evidence is `screenshot.png` + `index.html` per declared screen plus a single `review.json` (4-axis ordinal, prose critique, anti-slop detection, pivot directive).
28
+ - Per-iter evidence is a single `<screen>.review.json` per declared spec ×
29
+ screen pair (4-axis ordinal verdicts, 6 `*Feel` short-prose impressions
30
+ bounded to 200 words each, `layoutAntiPatternsDetected[]`,
31
+ `designMdViolations[]`, and `pivotDirective`). Reviewer-emitted
32
+ `<screen>.review.json` is the only per-cycle artifact — no `screenshot.png`,
33
+ `index.html`, or `interaction.json`.
26
34
  - Calibration SSOT is the calibration pack referenced by `calibrationRef.packPath`.
27
35
 
28
36
  ## Quick start
@@ -46,7 +54,7 @@ npx qfai report
46
54
 
47
55
  - `npx qfai init`
48
56
  - Creates the QFAI workspace under `.qfai/` (requirements/specs/contracts/report) and installs the AI assistant kit
49
- (`assistant/` with skills, instructions, agents, and steering templates), plus `qfai.config.yaml`.
57
+ (`assistant/` with the 4-layer tree — `constitution/`, `manifest/`, `catalog/`, `process/` — plus `agents/` and `skills/`), plus `qfai.config.yaml`.
50
58
  - `npx qfai validate`
51
59
  - Validates specs/contracts/scenarios/traceability and review artifacts
52
60
  (`.qfai/review/review-*/summary.json` + minimum schema), writes `.qfai/report/validate.json`,
@@ -66,8 +74,8 @@ npx qfai report
66
74
  Use `npx qfai prototyping preflight --target-url <url>` for a focused
67
75
  prototyping preflight before the skill starts; it surfaces blocking
68
76
  `QFAI-DCON-*` design-contract issues alongside runtime assumptions and resolves a runnable Playwright CLI launcher.
69
- Use `npx qfai prototyping iterate --cycle <n> --target-url <url>` to drive each cycle of the single-thread
70
- evolution loop. Exit codes: 0 (continue), 64 (convergence), 65 (max-iterations), 2 (input error).
77
+ Use `npx qfai prototyping iterate --cycle <n> --target-url <url>` to drive each cycle of the multi-spec
78
+ evolution loop. Exit codes: 0 (continue), 64 (convergence), 65 (max-iterations), 66 (license-verify failure), 2 (input or lock drift).
71
79
  Traceability refs inside prototyping evidence must use repo-root-relative concrete artifact refs
72
80
  (for example `.qfai/specs/spec-0001/01_Spec.md#L3` or `.qfai/evidence/prototyping/iter-03/home.png`).
73
81
  Absolute paths are invalid. The same strict ref grammar is enforced for top-level and leaf evidence-bearing fields, including
@@ -132,10 +140,19 @@ QFAI includes a small set of custom skills (stored under `.qfai/assistant/skills
132
140
  in `.qfai/specs/_policies/03_Capabilities.md` before the row is accepted
133
141
  (`QFAI-TRIAGE-006`). Every `01_Spec.md` declares a lifecycle
134
142
  `Status: active | superseded | deprecated | removed` (`QFAI-STATUS-001..006`).
135
- - **qfai-prototyping**: Single-thread design evolution loop. One prototype iterated through up to
136
- 15 cycles of generate -> capture -> review with a 4-axis ordinal rubric, anti-slop detection,
137
- prose critique, and explicit pivot permission. Stops deterministically when all four axes hit
138
- `exceptional` (exit 64) or the iteration budget is exhausted (exit 65).
143
+ - **qfai-prototyping**: Multi-spec parallel design evolution loop. Resolves
144
+ every UI-bearing spec in one invocation, freezes that set at cycle 0,
145
+ and iterates each `spec × screen` pair through up to 10 cycles
146
+ (`cycle 0..9`) of generate capture review with a 4-axis ordinal
147
+ rubric, 6 `*Feel` short-prose impressions (200-word bounded), explicit
148
+ layout anti-pattern detection (`lap-001..lap-008`), DESIGN.md token
149
+ violation detection, and explicit pivot permission. Stops
150
+ deterministically when every `spec × screen` pair satisfies the AND
151
+ convergence condition (all four ordinal axes `exceptional` AND
152
+ `layoutAntiPatternsDetected` empty AND `designMdViolations` empty)
153
+ (exit 64), when the 10-cycle budget is exhausted (exit 65), or when a
154
+ stock-photo source violates the cycle-0 frozen license catalog
155
+ (exit 66). Lock drift / input errors exit 2.
139
156
  - **qfai-atdd**: Implement acceptance tests driven by specs/scenarios.
140
157
  - **qfai-implement**: Unified TDD micro-cycle (Red/Green/Refactor) one test at a time using `test-list.md` as the execution ledger, including ledger status updates and exception closure.
141
158
  - **qfai-verify**: Run full-scan local quality gates (`validate --fail-on error`, `report`, repo gates) and produce reviewer-approved evidence under `.qfai/evidence/`.
@@ -153,7 +170,7 @@ participant R as Repo (codebase)
153
170
 
154
171
  U->>R: Create a repo (or open an existing one)
155
172
  U->>R: Run npx qfai init
156
- R-->>U: .qfai kit installed (skills, instructions, agents)
173
+ R-->>U: .qfai kit installed (4-layer assistant tree + skills + agents)
157
174
 
158
175
  U->>AG: Run /qfai-configure
159
176
  AG->>Q: Read .qfai/assistant/skills/qfai-configure/SKILL.md
@@ -201,10 +218,10 @@ Operational notes.
201
218
  - Each custom skill must end with a completion message that enumerates all available next actions and clearly states what to do for each option.
202
219
  - Except `qfai-discussion`, each skill must analyze the project context (architecture, tech stack, test framework, repo structure) before generating artifacts or code.
203
220
  - Skills should delegate work to multiple role-based sub-agents (Planner, Architect, Contract Designer, QA, Code Reviewer, etc.) to emulate a real delivery flow.
204
- - Change classification (Primary/Tags) is required in `09_delta.md` and recommended in PRs. See `.qfai/assistant/instructions/change-classification.md`.
221
+ - Change classification (Primary/Tags) is required in `09_delta.md` and recommended in PRs. See `.qfai/assistant/constitution/change-classification.md`.
205
222
  - Verification planning is recorded in `09_delta.md` (`Verification -> Plan`) and validated in CI (`VFY-*` rules).
206
- - Review gate policies (required/optional layers and reviewers) are defined in `.qfai/assistant/steering/review-gate.rules.yml`.
207
- - Agent taxonomy and invocation SSOT are defined in `.qfai/assistant/steering/agent-catalog.yml`, `.qfai/assistant/steering/agent-routing.yml`, and `.qfai/assistant/steering/review-profiles.yml`.
223
+ - Review gate policies (required/optional layers and reviewers) are defined in `.qfai/assistant/catalog/review-gate.rules.yml`.
224
+ - Agent taxonomy and invocation SSOT are defined in `.qfai/assistant/manifest/agent-catalog.yml`, `.qfai/assistant/manifest/agent-routing.yml`, and `.qfai/assistant/manifest/review-profiles.yml`.
208
225
 
209
226
  ## Configuration
210
227
 
@@ -350,7 +367,6 @@ Typical customizations.
350
367
  ├── .qfai
351
368
  │ ├── assistant
352
369
  │ │ ├── agents
353
- │ │ │ ├── README.md
354
370
  │ │ │ ├── acceptance-test-engineer.md
355
371
  │ │ │ ├── architecture-reviewer.md
356
372
  │ │ │ ├── backend-engineer.md
@@ -358,6 +374,7 @@ Typical customizations.
358
374
  │ │ │ ├── delivery-planner.md
359
375
  │ │ │ ├── devops-ci-engineer.md
360
376
  │ │ │ ├── discovery-analyst.md
377
+ │ │ │ ├── doc-steward.md
361
378
  │ │ │ ├── frontend-engineer.md
362
379
  │ │ │ ├── implementation-reviewer.md
363
380
  │ │ │ ├── orchestrator.md
@@ -369,14 +386,26 @@ Typical customizations.
369
386
  │ │ │ ├── requirements-reviewer.md
370
387
  │ │ │ ├── solution-architect.md
371
388
  │ │ │ └── test-design-analyst.md
372
- │ │ ├── instructions
373
- │ │ │ ├── README.md
389
+ │ │ ├── constitution
374
390
  │ │ │ ├── agent-selection.md
391
+ │ │ │ ├── change-classification.md
375
392
  │ │ │ ├── communication.md
376
393
  │ │ │ ├── constitution.md
394
+ │ │ │ ├── drift-protocol.md
377
395
  │ │ │ ├── quality.md
396
+ │ │ │ ├── requirements-decomposition.md
397
+ │ │ │ ├── research-first-protocol.md
398
+ │ │ │ ├── shared-skill-delegation-baseline.md
399
+ │ │ │ ├── shared-skill-operating-baseline.md
378
400
  │ │ │ ├── thinking.md
379
401
  │ │ │ └── workflow.md
402
+ │ │ ├── manifest
403
+ │ │ │ ├── agent-catalog.yml
404
+ │ │ │ ├── agent-routing.yml
405
+ │ │ │ └── review-profiles.yml
406
+ │ │ ├── process
407
+ │ │ │ └── migrations
408
+ │ │ │ └── v<X.Y.Z>-<topic>.md
380
409
  │ │ ├── skills
381
410
  │ │ │ ├── qfai-configure
382
411
  │ │ │ │ └── SKILL.md
@@ -396,14 +425,16 @@ Typical customizations.
396
425
  │ │ │ │ └── SKILL.md
397
426
  │ │ │ └── qfai-verify
398
427
  │ │ │ └── SKILL.md
399
- │ │ ├── steering
400
- │ │├── agent-catalog.yml
401
- │ │├── agent-routing.yml
402
- │ │├── review-gate.rules.yml
403
- │ │├── review-profiles.yml
404
- │ │├── product.md
405
- │ │├── structure.md
406
- │ │ │ └── tech.md
428
+ │ │ └── catalog
429
+ │ │ ├── cli-ux-guidelines.md
430
+ │ │ ├── manifest.md
431
+ │ │ ├── product.md
432
+ │ │ ├── review-gate.rules.yml
433
+ │ │ ├── spec_required_files.json
434
+ │ │ ├── structure.md
435
+ │ │ ├── tech.md
436
+ │ │ ├── test-layers.md
437
+ │ │ └── ui-definition-protocol.md
407
438
  │ └── waivers.yml
408
439
  └── qfai.config.yaml
409
440
  ```
@@ -19,9 +19,9 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
19
19
 
20
20
  ## Inputs you must read
21
21
 
22
- - .qfai/assistant/instructions/\*
23
- - .qfai/assistant/steering/\*
24
- - .qfai/assistant/steering/test-layers.md
22
+ - .qfai/assistant/constitution/\*\*
23
+ - .qfai/assistant/{manifest,catalog}/\*\*
24
+ - .qfai/assistant/catalog/test-layers.md
25
25
  - .qfai/specs/spec-\*/09_delta.md
26
26
  - .qfai/specs/spec-\*/02_User-stories.md
27
27
  - .qfai/specs/spec-\*/06_Test-Cases.md
@@ -21,10 +21,10 @@ tools: [Read, Glob, Grep, Bash]
21
21
 
22
22
  ## Inputs you must read
23
23
 
24
- - .qfai/assistant/instructions/\*
25
- - .qfai/assistant/instructions/drift-protocol.md
26
- - .qfai/assistant/steering/\*
27
- - .qfai/assistant/steering/test-layers.md
24
+ - .qfai/assistant/constitution/\*\*
25
+ - .qfai/assistant/constitution/drift-protocol.md
26
+ - .qfai/assistant/{manifest,catalog}/\*\*
27
+ - .qfai/assistant/catalog/test-layers.md
28
28
  - .qfai/specs/spec-\*/09_delta.md
29
29
  - .github/instructions/code-review.instructions.md
30
30
  - .github/instructions/principles.instructions.md
@@ -21,9 +21,9 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
21
21
 
22
22
  ## Inputs you must read
23
23
 
24
- - .qfai/assistant/instructions/\*
25
- - .qfai/assistant/steering/\*
26
- - .qfai/assistant/steering/test-layers.md
24
+ - .qfai/assistant/constitution/\*\*
25
+ - .qfai/assistant/{manifest,catalog}/\*\*
26
+ - .qfai/assistant/catalog/test-layers.md
27
27
  - .qfai/specs/spec-\*/09_delta.md
28
28
  - .qfai/specs/spec-\*/01_Spec.md
29
29
  - .github/instructions/principles.instructions.md
@@ -18,10 +18,10 @@ tools: [Read, Glob, Grep, Bash]
18
18
 
19
19
  ## Inputs you must read
20
20
 
21
- - .qfai/assistant/instructions/\*
22
- - .qfai/assistant/instructions/drift-protocol.md
23
- - .qfai/assistant/steering/\*
24
- - .qfai/assistant/steering/test-layers.md
21
+ - .qfai/assistant/constitution/\*\*
22
+ - .qfai/assistant/constitution/drift-protocol.md
23
+ - .qfai/assistant/{manifest,catalog}/\*\*
24
+ - .qfai/assistant/catalog/test-layers.md
25
25
  - .qfai/specs/spec-\*/09_delta.md
26
26
  - Validation evidence and gate results
27
27
 
@@ -20,8 +20,8 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
20
20
 
21
21
  ## Inputs you must read
22
22
 
23
- - .qfai/assistant/instructions/\*
24
- - .qfai/assistant/steering/\*
23
+ - .qfai/assistant/constitution/\*\*
24
+ - .qfai/assistant/{manifest,catalog}/\*\*
25
25
  - .qfai/specs/spec-\*/09_delta.md
26
26
  - .qfai/specs/spec-\*/01_Spec.md
27
27
  - .qfai/discussion/discussion-\*/04_Sources.md
@@ -18,8 +18,8 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
18
18
 
19
19
  ## Inputs you must read
20
20
 
21
- - .qfai/assistant/instructions/\*
22
- - .qfai/assistant/steering/\*
21
+ - .qfai/assistant/constitution/\*\*
22
+ - .qfai/assistant/{manifest,catalog}/\*\*
23
23
  - .qfai/specs/spec-\*/09_delta.md
24
24
  - package.json scripts, CI config, and runbooks
25
25
  - Evidence summaries under `.qfai/evidence/`
@@ -19,8 +19,8 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
19
19
 
20
20
  ## Inputs you must read
21
21
 
22
- - .qfai/assistant/instructions/\*
23
- - .qfai/assistant/steering/\*
22
+ - .qfai/assistant/constitution/\*\*
23
+ - .qfai/assistant/{manifest,catalog}/\*\*
24
24
  - .qfai/specs/spec-\*/09_delta.md
25
25
  - Existing discussion records under `.qfai/discussion/`
26
26
  - .qfai/discussion/discussion-\*/04_Sources.md
@@ -18,8 +18,8 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
18
18
 
19
19
  ## Inputs you must read
20
20
 
21
- - .qfai/assistant/instructions/\*
22
- - .qfai/assistant/steering/\*
21
+ - .qfai/assistant/constitution/\*\*
22
+ - .qfai/assistant/{manifest,catalog}/\*\*
23
23
  - CHANGELOG.md
24
24
  - README.md
25
25
  - docs/\*\*
@@ -21,8 +21,8 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
21
21
 
22
22
  ## Inputs you must read
23
23
 
24
- - .qfai/assistant/instructions/\*
25
- - .qfai/assistant/steering/\*
24
+ - .qfai/assistant/constitution/\*\*
25
+ - .qfai/assistant/{manifest,catalog}/\*\*
26
26
  - .qfai/specs/spec-\*/09_delta.md
27
27
  - .qfai/specs/spec-\*/01_Spec.md
28
28
  - .github/instructions/principles.instructions.md
@@ -22,10 +22,10 @@ tools: [Read, Glob, Grep, Bash]
22
22
 
23
23
  ## Inputs you must read
24
24
 
25
- - .qfai/assistant/instructions/\*
26
- - .qfai/assistant/instructions/drift-protocol.md
27
- - .qfai/assistant/steering/\*
28
- - .qfai/assistant/steering/test-layers.md
25
+ - .qfai/assistant/constitution/\*\*
26
+ - .qfai/assistant/constitution/drift-protocol.md
27
+ - .qfai/assistant/{manifest,catalog}/\*\*
28
+ - .qfai/assistant/catalog/test-layers.md
29
29
  - .qfai/specs/spec-\*/09_delta.md
30
30
  - .github/instructions/code-review.instructions.md
31
31
  - .github/instructions/principles.instructions.md
@@ -20,9 +20,9 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
20
20
 
21
21
  ## Inputs you must read
22
22
 
23
- - .qfai/assistant/instructions/\*
24
- - .qfai/assistant/steering/\*
25
- - .qfai/assistant/steering/test-layers.md (SSOT for hard coverage obligations)
23
+ - .qfai/assistant/constitution/\*\*
24
+ - .qfai/assistant/{manifest,catalog}/\*\*
25
+ - .qfai/assistant/catalog/test-layers.md (SSOT for hard coverage obligations)
26
26
  - .qfai/specs/spec-\*/09_delta.md (Decision Records; check rejected)
27
27
  - Prompt-specific artifacts (traceability, validation evidence, optional legacy scenario/ledger artifacts)
28
28
 
@@ -23,8 +23,8 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
23
23
 
24
24
  ## Inputs you must read
25
25
 
26
- - .qfai/assistant/instructions/\*
27
- - .qfai/assistant/steering/\*
26
+ - .qfai/assistant/constitution/\*\*
27
+ - .qfai/assistant/{manifest,catalog}/\*\*
28
28
  - .qfai/specs/spec-\*/09_delta.md
29
29
  - .qfai/specs/spec-\*/01_Spec.md
30
30
  - .github/instructions/principles.instructions.md
@@ -27,10 +27,10 @@ tools: [Read, Glob, Grep, Bash]
27
27
 
28
28
  ## Inputs you must read
29
29
 
30
- - .qfai/assistant/instructions/\*
31
- - .qfai/assistant/instructions/drift-protocol.md
32
- - .qfai/assistant/steering/\*
33
- - .qfai/assistant/steering/test-layers.md
30
+ - .qfai/assistant/constitution/\*\*
31
+ - .qfai/assistant/constitution/drift-protocol.md
32
+ - .qfai/assistant/{manifest,catalog}/\*\*
33
+ - .qfai/assistant/catalog/test-layers.md
34
34
  - .qfai/specs/spec-\*/09_delta.md
35
35
  - .github/instructions/code-review.instructions.md
36
36
  - .github/instructions/principles.instructions.md
@@ -30,10 +30,10 @@ In addition to traceability-based coverage (US/TC/CON-API existence), verify the
30
30
 
31
31
  ## Inputs you must read
32
32
 
33
- - .qfai/assistant/instructions/\*
34
- - .qfai/assistant/instructions/drift-protocol.md
35
- - .qfai/assistant/steering/\*
36
- - .qfai/assistant/steering/test-layers.md
33
+ - .qfai/assistant/constitution/\*\*
34
+ - .qfai/assistant/constitution/drift-protocol.md
35
+ - .qfai/assistant/{manifest,catalog}/\*\*
36
+ - .qfai/assistant/catalog/test-layers.md
37
37
  - .qfai/specs/spec-\*/09_delta.md
38
38
  - `.qfai/report/validate.log`
39
39
  - `.qfai/report/specs-coverage/spec-*.md`
@@ -18,9 +18,9 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
18
18
 
19
19
  ## Inputs you must read
20
20
 
21
- - .qfai/assistant/instructions/\*
22
- - .qfai/assistant/steering/\*
23
- - .qfai/assistant/steering/test-layers.md
21
+ - .qfai/assistant/constitution/\*\*
22
+ - .qfai/assistant/{manifest,catalog}/\*\*
23
+ - .qfai/assistant/catalog/test-layers.md
24
24
  - .qfai/specs/spec-\*/09_delta.md
25
25
  - .qfai/specs/spec-\*/01_Spec.md
26
26
  - QA evidence, coverage tooling outputs, and test plans
@@ -19,8 +19,8 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
19
19
 
20
20
  ## Inputs you must read
21
21
 
22
- - .qfai/assistant/instructions/\*
23
- - .qfai/assistant/steering/\*
22
+ - .qfai/assistant/constitution/\*\*
23
+ - .qfai/assistant/{manifest,catalog}/\*\*
24
24
  - .qfai/specs/spec-\*/09_delta.md
25
25
  - .qfai/discussion/discussion-\*/04_Sources.md
26
26
  - .qfai/discussion/discussion-\*/06_REQ.md
@@ -18,10 +18,10 @@ tools: [Read, Glob, Grep, Bash]
18
18
 
19
19
  ## Inputs you must read
20
20
 
21
- - .qfai/assistant/instructions/\*
22
- - .qfai/assistant/instructions/drift-protocol.md
23
- - .qfai/assistant/steering/\*
24
- - .qfai/assistant/steering/test-layers.md
21
+ - .qfai/assistant/constitution/\*\*
22
+ - .qfai/assistant/constitution/drift-protocol.md
23
+ - .qfai/assistant/{manifest,catalog}/\*\*
24
+ - .qfai/assistant/catalog/test-layers.md
25
25
  - .qfai/specs/spec-\*/09_delta.md
26
26
  - Requirement drafts, option tables, and OQ ledgers
27
27
 
@@ -22,8 +22,8 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
22
22
 
23
23
  ## Inputs you must read
24
24
 
25
- - .qfai/assistant/instructions/\*
26
- - .qfai/assistant/steering/\*
25
+ - .qfai/assistant/constitution/\*\*
26
+ - .qfai/assistant/{manifest,catalog}/\*\*
27
27
  - .qfai/specs/spec-\*/09_delta.md
28
28
  - .qfai/specs/spec-\*/01_Spec.md
29
29
  - .qfai/discussion/discussion-\*/04_Sources.md
@@ -30,9 +30,9 @@ When reviewing or producing test cases, apply the checklist in `.qfai/assistant/
30
30
 
31
31
  ## Inputs you must read
32
32
 
33
- - .qfai/assistant/instructions/\*
34
- - .qfai/assistant/steering/\*
35
- - .qfai/assistant/steering/test-layers.md
33
+ - .qfai/assistant/constitution/\*\*
34
+ - .qfai/assistant/{manifest,catalog}/\*\*
35
+ - .qfai/assistant/catalog/test-layers.md
36
36
  - .qfai/specs/spec-\*/09_delta.md
37
37
  - .qfai/specs/spec-\*/03_Acceptance-Criteria.md
38
38
  - .qfai/specs/spec-\*/04_Business-Rules.md
@@ -31,9 +31,9 @@
31
31
  - Review / approval: <who approves what, gating policy>
32
32
  - Evidence requirements: <what artifacts are required for closure>
33
33
  - Update cadence: <how often this manifest is revisited>
34
- - Evidence: `.qfai/assistant/steering/agent-catalog.yml`,
35
- `.qfai/assistant/steering/agent-routing.yml`,
36
- `.qfai/assistant/steering/review-profiles.yml`
34
+ - Evidence: `.qfai/assistant/manifest/agent-catalog.yml`,
35
+ `.qfai/assistant/manifest/agent-routing.yml`,
36
+ `.qfai/assistant/manifest/review-profiles.yml`
37
37
 
38
38
  ## Evidence
39
39
 
@@ -28,9 +28,9 @@ optional:
28
28
  - Delta
29
29
 
30
30
  agent_routing:
31
- catalog_ssot: .qfai/assistant/steering/agent-catalog.yml
32
- routing_ssot: .qfai/assistant/steering/agent-routing.yml
33
- review_profiles_ssot: .qfai/assistant/steering/review-profiles.yml
31
+ catalog_ssot: .qfai/assistant/manifest/agent-catalog.yml
32
+ routing_ssot: .qfai/assistant/manifest/agent-routing.yml
33
+ review_profiles_ssot: .qfai/assistant/manifest/review-profiles.yml
34
34
 
35
35
  reviewers:
36
36
  minimum: 1
@@ -60,7 +60,7 @@ quality_gates:
60
60
  role: Implementation Reviewer
61
61
 
62
62
  optional_review_modes:
63
- review_profiles_ssot: .qfai/assistant/steering/review-profiles.yml
63
+ review_profiles_ssot: .qfai/assistant/manifest/review-profiles.yml
64
64
  supported:
65
65
  - devils-advocate
66
66
  - pattern-doubler
@@ -44,8 +44,8 @@ Do **not** guess file paths, existing commands, or project policies.
44
44
 
45
45
  Before producing deliverables, read **project memory**:
46
46
 
47
- 1. `.qfai/assistant/instructions/*`
48
- 2. `.qfai/assistant/steering/*`
47
+ 1. `.qfai/assistant/constitution/*`
48
+ 2. `.qfai/assistant/manifest/*` + `.qfai/assistant/catalog/*`
49
49
  3. discussion pack in `.qfai/discussion/` (if present)
50
50
  4. `.qfai/specs/spec-*/` (if relevant)
51
51
  5. repository config (package.json, CI, scripts)
@@ -22,10 +22,10 @@ Skill files should reference this baseline and only restate skill-specific addit
22
22
 
23
23
  Refresh these files before or during the stage when facts are missing or stale:
24
24
 
25
- - `.qfai/assistant/steering/manifest.md`
26
- - `.qfai/assistant/steering/product.md`
27
- - `.qfai/assistant/steering/structure.md`
28
- - `.qfai/assistant/steering/tech.md`
25
+ - `.qfai/assistant/catalog/manifest.md`
26
+ - `.qfai/assistant/catalog/product.md`
27
+ - `.qfai/assistant/catalog/structure.md`
28
+ - `.qfai/assistant/catalog/tech.md`
29
29
 
30
30
  Rules:
31
31
 
@@ -32,13 +32,13 @@ Do not proceed without a declared Change Type.
32
32
 
33
33
  ## Drift Protocol (Mandatory)
34
34
 
35
- - Read and enforce `.qfai/assistant/instructions/drift-protocol.md`.
35
+ - Read and enforce `.qfai/assistant/constitution/drift-protocol.md`.
36
36
  - Downstream phases must not edit upstream SSOT artifacts without explicit user approval.
37
37
  - If drift is required, STOP and raise a Change Request (3 options + recommendation), then wait for approval and rerun the owner skill.
38
38
 
39
39
  ## Test-layer policy (Mandatory)
40
40
 
41
- - Read and enforce `.qfai/assistant/steering/test-layers.md`.
41
+ - Read and enforce `.qfai/assistant/catalog/test-layers.md`.
42
42
  - Treat floors/ratios as signals, not completion gates.
43
43
  - Completion gate is `qfai validate --fail-on error` with evidence.
44
44
 
@@ -83,10 +83,10 @@ Legacy note:
83
83
  At the beginning of each stage (`qfai-discussion`, `qfai-sdd`, `qfai-prototyping`, `qfai-atdd`, `qfai-verify`):
84
84
 
85
85
  1. Check these steering files:
86
- - `.qfai/assistant/steering/manifest.md`
87
- - `.qfai/assistant/steering/product.md`
88
- - `.qfai/assistant/steering/structure.md`
89
- - `.qfai/assistant/steering/tech.md`
86
+ - `.qfai/assistant/catalog/manifest.md`
87
+ - `.qfai/assistant/catalog/product.md`
88
+ - `.qfai/assistant/catalog/structure.md`
89
+ - `.qfai/assistant/catalog/tech.md`
90
90
  2. Detect incomplete content (empty sections, placeholder-only lines, `<...>`, `TBD`, outdated facts).
91
91
  3. If the current stage can fill missing facts from repository evidence, update the steering files immediately.
92
92
  4. If information cannot be verified, record Open Questions and ask the user.