qfai 1.8.10 → 1.9.1

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 (73) hide show
  1. package/README.md +30 -16
  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 +8 -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 +2128 -0
  27. package/assets/init/.qfai/assistant/skills/qfai-atdd/SKILL.md +18 -12
  28. package/assets/init/.qfai/assistant/skills/qfai-configure/SKILL.md +30 -25
  29. package/assets/init/.qfai/assistant/skills/qfai-discussion/SKILL.md +9 -3
  30. package/assets/init/.qfai/assistant/skills/qfai-discussion/references/discussion-artifact-rules.md +1 -1
  31. package/assets/init/.qfai/assistant/skills/qfai-discussion/references/rcp_footer.md +1 -1
  32. package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/14_Review-Request.md +1 -1
  33. package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/review/review_request.md +1 -1
  34. package/assets/init/.qfai/assistant/skills/qfai-implement/SKILL.md +12 -6
  35. package/assets/init/.qfai/assistant/skills/qfai-prototyping/SKILL.md +68 -57
  36. package/assets/init/.qfai/assistant/skills/qfai-prototyping/references/generator-prompt.md +96 -6
  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-sdd/templates/contracts/ui-contract.sample.yaml +4 -0
  41. package/assets/init/.qfai/assistant/skills/qfai-verify/SKILL.md +31 -25
  42. package/assets/init/root/.github/workflows/qfai-validate.yml +50 -6
  43. package/dist/cli/index.cjs +4043 -1046
  44. package/dist/cli/index.cjs.map +1 -1
  45. package/dist/cli/index.mjs +3914 -905
  46. package/dist/cli/index.mjs.map +1 -1
  47. package/dist/index.cjs +1192 -129
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.d.cts +9 -3
  50. package/dist/index.d.ts +9 -3
  51. package/dist/index.mjs +1192 -129
  52. package/dist/index.mjs.map +1 -1
  53. package/package.json +20 -17
  54. package/assets/init/.qfai/assistant/steering/agent-catalog.yml +0 -194
  55. /package/assets/init/.qfai/assistant/{steering → catalog}/cli-ux-guidelines.md +0 -0
  56. /package/assets/init/.qfai/assistant/{steering → catalog}/product.md +0 -0
  57. /package/assets/init/.qfai/assistant/{manifest → catalog}/spec_required_files.json +0 -0
  58. /package/assets/init/.qfai/assistant/{steering → catalog}/structure.md +0 -0
  59. /package/assets/init/.qfai/assistant/{steering → catalog}/tech.md +0 -0
  60. /package/assets/init/.qfai/assistant/{steering → catalog}/test-layers.md +0 -0
  61. /package/assets/init/.qfai/assistant/{steering → catalog}/ui-definition-protocol.md +0 -0
  62. /package/assets/init/.qfai/assistant/{instructions → constitution}/agent-selection.md +0 -0
  63. /package/assets/init/.qfai/assistant/{instructions → constitution}/change-classification.md +0 -0
  64. /package/assets/init/.qfai/assistant/{instructions → constitution}/communication.md +0 -0
  65. /package/assets/init/.qfai/assistant/{instructions → constitution}/drift-protocol.md +0 -0
  66. /package/assets/init/.qfai/assistant/{instructions → constitution}/quality.md +0 -0
  67. /package/assets/init/.qfai/assistant/{instructions → constitution}/requirements-decomposition.md +0 -0
  68. /package/assets/init/.qfai/assistant/{steering → constitution}/research-first-protocol.md +0 -0
  69. /package/assets/init/.qfai/assistant/{instructions → constitution}/shared-skill-delegation-baseline.md +0 -0
  70. /package/assets/init/.qfai/assistant/{instructions → constitution}/thinking.md +0 -0
  71. /package/assets/init/.qfai/assistant/{steering → manifest}/agent-routing.yml +0 -0
  72. /package/assets/init/.qfai/assistant/{steering → manifest}/review-profiles.yml +0 -0
  73. /package/assets/init/.qfai/assistant/{instructions → process}/migrations/v1.4.27-atdd-alignment.md +0 -0
package/README.md CHANGED
@@ -54,7 +54,7 @@ npx qfai report
54
54
 
55
55
  - `npx qfai init`
56
56
  - Creates the QFAI workspace under `.qfai/` (requirements/specs/contracts/report) and installs the AI assistant kit
57
- (`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`.
58
58
  - `npx qfai validate`
59
59
  - Validates specs/contracts/scenarios/traceability and review artifacts
60
60
  (`.qfai/review/review-*/summary.json` + minimum schema), writes `.qfai/report/validate.json`,
@@ -170,7 +170,7 @@ participant R as Repo (codebase)
170
170
 
171
171
  U->>R: Create a repo (or open an existing one)
172
172
  U->>R: Run npx qfai init
173
- R-->>U: .qfai kit installed (skills, instructions, agents)
173
+ R-->>U: .qfai kit installed (4-layer assistant tree + skills + agents)
174
174
 
175
175
  U->>AG: Run /qfai-configure
176
176
  AG->>Q: Read .qfai/assistant/skills/qfai-configure/SKILL.md
@@ -218,10 +218,10 @@ Operational notes.
218
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.
219
219
  - Except `qfai-discussion`, each skill must analyze the project context (architecture, tech stack, test framework, repo structure) before generating artifacts or code.
220
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.
221
- - 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`.
222
222
  - Verification planning is recorded in `09_delta.md` (`Verification -> Plan`) and validated in CI (`VFY-*` rules).
223
- - Review gate policies (required/optional layers and reviewers) are defined in `.qfai/assistant/steering/review-gate.rules.yml`.
224
- - 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`.
225
225
 
226
226
  ## Configuration
227
227
 
@@ -367,7 +367,6 @@ Typical customizations.
367
367
  ├── .qfai
368
368
  │ ├── assistant
369
369
  │ │ ├── agents
370
- │ │ │ ├── README.md
371
370
  │ │ │ ├── acceptance-test-engineer.md
372
371
  │ │ │ ├── architecture-reviewer.md
373
372
  │ │ │ ├── backend-engineer.md
@@ -375,6 +374,7 @@ Typical customizations.
375
374
  │ │ │ ├── delivery-planner.md
376
375
  │ │ │ ├── devops-ci-engineer.md
377
376
  │ │ │ ├── discovery-analyst.md
377
+ │ │ │ ├── doc-steward.md
378
378
  │ │ │ ├── frontend-engineer.md
379
379
  │ │ │ ├── implementation-reviewer.md
380
380
  │ │ │ ├── orchestrator.md
@@ -386,14 +386,26 @@ Typical customizations.
386
386
  │ │ │ ├── requirements-reviewer.md
387
387
  │ │ │ ├── solution-architect.md
388
388
  │ │ │ └── test-design-analyst.md
389
- │ │ ├── instructions
390
- │ │ │ ├── README.md
389
+ │ │ ├── constitution
391
390
  │ │ │ ├── agent-selection.md
391
+ │ │ │ ├── change-classification.md
392
392
  │ │ │ ├── communication.md
393
393
  │ │ │ ├── constitution.md
394
+ │ │ │ ├── drift-protocol.md
394
395
  │ │ │ ├── quality.md
396
+ │ │ │ ├── requirements-decomposition.md
397
+ │ │ │ ├── research-first-protocol.md
398
+ │ │ │ ├── shared-skill-delegation-baseline.md
399
+ │ │ │ ├── shared-skill-operating-baseline.md
395
400
  │ │ │ ├── thinking.md
396
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
397
409
  │ │ ├── skills
398
410
  │ │ │ ├── qfai-configure
399
411
  │ │ │ │ └── SKILL.md
@@ -413,14 +425,16 @@ Typical customizations.
413
425
  │ │ │ │ └── SKILL.md
414
426
  │ │ │ └── qfai-verify
415
427
  │ │ │ └── SKILL.md
416
- │ │ ├── steering
417
- │ │├── agent-catalog.yml
418
- │ │├── agent-routing.yml
419
- │ │├── review-gate.rules.yml
420
- │ │├── review-profiles.yml
421
- │ │├── product.md
422
- │ │├── structure.md
423
- │ │ │ └── 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
424
438
  │ └── waivers.yml
425
439
  └── qfai.config.yaml
426
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
@@ -33,6 +33,12 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
33
33
  - Option set with recommendation and rejected rationale
34
34
  - Open questions with owner, decision point, and safe deferral notes
35
35
  - Mapping from requirements to impacted artifacts
36
+ - For UI-bearing surfaces: every entry in the UI contract `screens[]` must
37
+ carry at least one `primary_task` (≥ 1 primary_task per screen). The
38
+ shipped `ui-contract.sample.yaml` template exposes a `primary_tasks: []`
39
+ placeholder slot; populate it before handing the contract to the
40
+ prototyping phase. Empty `primary_tasks` arrays cause the
41
+ QFAI-AUD-001 aligned validate lane to block `/qfai-prototyping`.
36
42
 
37
43
  ## Stop conditions
38
44
 
@@ -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.