qfai 2.2.1 → 2.3.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 (158) hide show
  1. package/README.md +14 -17
  2. package/assets/init/.qfai/assistant/agent/architecture-reviewer.md +2 -2
  3. package/assets/init/.qfai/assistant/agent/fullstack-engineer.md +101 -0
  4. package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +73 -1
  5. package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +2 -2
  6. package/assets/init/.qfai/assistant/agent/requirements-reviewer.md +12 -2
  7. package/assets/init/.qfai/assistant/rule/agent-selection.md +22 -42
  8. package/assets/init/.qfai/assistant/rule/drift-protocol.md +1 -1
  9. package/assets/init/.qfai/assistant/rule/references/asset-authoring.md +1 -1
  10. package/assets/init/.qfai/assistant/rule/references/codex-delegation.md +4 -4
  11. package/assets/init/.qfai/assistant/rule/references/reviewer-findings.md +1 -1
  12. package/assets/init/.qfai/assistant/rule/references/worker-edit-boundary.md +3 -3
  13. package/assets/init/.qfai/assistant/rule/research-first-protocol.md +7 -6
  14. package/assets/init/.qfai/assistant/rule/review-convergence.md +1 -1
  15. package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +76 -60
  16. package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +2 -4
  17. package/assets/init/.qfai/assistant/rule/workflow.md +4 -4
  18. package/assets/init/.qfai/assistant/skill/qfai-configure/SKILL.md +15 -46
  19. package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +1 -13
  20. package/assets/init/.qfai/assistant/skill/qfai-grill/SKILL.md +8 -7
  21. package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +15 -15
  22. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/delegated-session.md +18 -18
  23. package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-record.md +3 -3
  24. package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +0 -14
  25. package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +52 -20
  26. package/assets/init/.qfai/assistant/skill/qfai-maintain/SKILL.md +0 -1
  27. package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/SKILL.md +2 -13
  28. package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-guide.md +8 -11
  29. package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-placement.md +0 -7
  30. package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +1 -9
  31. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +1 -1
  32. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/iteration-loop.md +2 -2
  33. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +4 -4
  34. package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +1 -1
  35. package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +1 -2
  36. package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +4 -4
  37. package/assets/init/.qfai/assistant/skill/qfai-sdd/SKILL.md +0 -13
  38. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/concrete-abstract-cycle.md +2 -2
  39. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +12 -0
  40. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +1 -1
  41. package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +2 -2
  42. package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +0 -11
  43. package/assets/init/.qfai/assistant/skill/qfai-verify/SKILL.md +0 -9
  44. package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +18 -18
  45. package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +0 -2
  46. package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +0 -1
  47. package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +0 -1
  48. package/assets/init/.qfai/assistant/step/common-policy-check/STEP.md +0 -1
  49. package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +2 -3
  50. package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +0 -2
  51. package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +0 -2
  52. package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +0 -2
  53. package/assets/init/.qfai/assistant/step/discussion-research/STEP.md +0 -2
  54. package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +0 -2
  55. package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +0 -4
  56. package/assets/init/.qfai/assistant/step/implement-backport/STEP.md +0 -5
  57. package/assets/init/.qfai/assistant/step/implement-benchmark/STEP.md +0 -4
  58. package/assets/init/.qfai/assistant/step/implement-bisect/STEP.md +0 -5
  59. package/assets/init/.qfai/assistant/step/implement-credentials/STEP.md +0 -4
  60. package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +0 -5
  61. package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +0 -6
  62. package/assets/init/.qfai/assistant/step/implement-minimize/STEP.md +0 -5
  63. package/assets/init/.qfai/assistant/step/implement-oracle-parity/STEP.md +0 -6
  64. package/assets/init/.qfai/assistant/step/implement-procedure/STEP.md +0 -2
  65. package/assets/init/.qfai/assistant/step/implement-quarantine/STEP.md +0 -4
  66. package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +0 -4
  67. package/assets/init/.qfai/assistant/step/implement-regression-fix/STEP.md +0 -4
  68. package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +0 -6
  69. package/assets/init/.qfai/assistant/step/implement-revert/STEP.md +0 -4
  70. package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +0 -2
  71. package/assets/init/.qfai/assistant/step/implement-seam/STEP.md +0 -4
  72. package/assets/init/.qfai/assistant/step/implement-stress-harness/STEP.md +0 -5
  73. package/assets/init/.qfai/assistant/step/implement-sweep/STEP.md +0 -5
  74. package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +3 -10
  75. package/assets/init/.qfai/assistant/step/implement-test-fix/STEP.md +0 -5
  76. package/assets/init/.qfai/assistant/step/implement-tooling/STEP.md +0 -3
  77. package/assets/init/.qfai/assistant/step/maintain-edit/STEP.md +1 -4
  78. package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +3 -5
  79. package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +0 -2
  80. package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +17 -19
  81. package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +0 -2
  82. package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +2 -4
  83. package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +1 -3
  84. package/assets/init/.qfai/assistant/step/sdd-flow/STEP.md +0 -2
  85. package/assets/init/.qfai/assistant/step/sdd-gate/STEP.md +0 -1
  86. package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +0 -2
  87. package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +7 -9
  88. package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +0 -2
  89. package/assets/init/.qfai/assistant/step/triage-close/STEP.md +0 -2
  90. package/assets/init/.qfai/assistant/step/triage-cluster/STEP.md +0 -2
  91. package/assets/init/.qfai/assistant/step/triage-decompose/STEP.md +0 -2
  92. package/assets/init/.qfai/assistant/step/triage-dedupe/STEP.md +0 -2
  93. package/assets/init/.qfai/assistant/step/triage-handoff/STEP.md +0 -2
  94. package/assets/init/.qfai/assistant/step/triage-investigate/STEP.md +0 -2
  95. package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +0 -2
  96. package/assets/init/.qfai/assistant/step/triage-owned-cleanup/STEP.md +0 -2
  97. package/assets/init/.qfai/assistant/step/triage-request-info/STEP.md +0 -2
  98. package/assets/init/.qfai/assistant/step/triage-security-intake/STEP.md +0 -2
  99. package/assets/init/.qfai/assistant/step/verify-advisory/STEP.md +0 -2
  100. package/assets/init/.qfai/assistant/step/verify-change-note/STEP.md +0 -2
  101. package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +0 -2
  102. package/assets/init/.qfai/assistant/step/verify-context/STEP.md +7 -26
  103. package/assets/init/.qfai/assistant/step/verify-external/STEP.md +0 -2
  104. package/assets/init/.qfai/assistant/step/verify-manual/STEP.md +0 -2
  105. package/assets/init/.qfai/assistant/step/verify-qfai-gate/STEP.md +0 -2
  106. package/assets/init/.qfai/assistant/step/verify-release-notes/STEP.md +0 -2
  107. package/assets/init/.qfai/assistant/step/verify-repeat-run/STEP.md +0 -2
  108. package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +0 -2
  109. package/assets/init/root/.agents/rules/grilling.md +9 -9
  110. package/dist/cli/index.cjs +324 -1147
  111. package/dist/cli/index.cjs.map +1 -1
  112. package/dist/cli/index.mjs +309 -1132
  113. package/dist/cli/index.mjs.map +1 -1
  114. package/dist/graph/cli.cjs +14 -2
  115. package/dist/graph/cli.cjs.map +1 -1
  116. package/dist/graph/cli.d.cts +1 -1
  117. package/dist/graph/cli.d.ts +1 -1
  118. package/dist/graph/cli.mjs +14 -2
  119. package/dist/graph/cli.mjs.map +1 -1
  120. package/dist/graph/hook.cjs.map +1 -1
  121. package/dist/graph/hook.mjs.map +1 -1
  122. package/dist/index.cjs +983 -1975
  123. package/dist/index.cjs.map +1 -1
  124. package/dist/index.d.cts +2 -19
  125. package/dist/index.d.ts +2 -19
  126. package/dist/index.mjs +878 -1869
  127. package/dist/index.mjs.map +1 -1
  128. package/dist/process-qqX2Owgq.d.cts +18 -0
  129. package/dist/process-qqX2Owgq.d.ts +18 -0
  130. package/package.json +1 -1
  131. package/assets/defaults/agent-routing/_contract.yml +0 -77
  132. package/assets/defaults/agent-routing/common.yml +0 -14
  133. package/assets/defaults/agent-routing/qfai-discussion.yml +0 -57
  134. package/assets/defaults/agent-routing/qfai-implement.yml +0 -236
  135. package/assets/defaults/agent-routing/qfai-maintain.yml +0 -12
  136. package/assets/defaults/agent-routing/qfai-prototyping.yml +0 -48
  137. package/assets/defaults/agent-routing/qfai-sdd.yml +0 -56
  138. package/assets/defaults/agent-routing/qfai-triage.yml +0 -108
  139. package/assets/defaults/agent-routing/qfai-verify.yml +0 -92
  140. package/assets/defaults/agent-routing/skills.yml +0 -59
  141. package/assets/defaults/review-profiles.yml +0 -25
  142. package/assets/init/.qfai/assistant/agent/acceptance-test-engineer.md +0 -81
  143. package/assets/init/.qfai/assistant/agent/backend-engineer.md +0 -90
  144. package/assets/init/.qfai/assistant/agent/completion-reviewer.md +0 -88
  145. package/assets/init/.qfai/assistant/agent/delivery-planner.md +0 -85
  146. package/assets/init/.qfai/assistant/agent/devops-ci-engineer.md +0 -78
  147. package/assets/init/.qfai/assistant/agent/discovery-analyst.md +0 -81
  148. package/assets/init/.qfai/assistant/agent/doc-steward.md +0 -78
  149. package/assets/init/.qfai/assistant/agent/frontend-engineer.md +0 -94
  150. package/assets/init/.qfai/assistant/agent/orchestrator.md +0 -92
  151. package/assets/init/.qfai/assistant/agent/product-experience-architect.md +0 -101
  152. package/assets/init/.qfai/assistant/agent/qa-gatekeeper.md +0 -153
  153. package/assets/init/.qfai/assistant/agent/qa-strategist.md +0 -82
  154. package/assets/init/.qfai/assistant/agent/requirements-analyst.md +0 -96
  155. package/assets/init/.qfai/assistant/agent/solution-architect.md +0 -89
  156. package/assets/init/.qfai/assistant/agent/test-design-analyst.md +0 -132
  157. package/dist/process-C21nTvkT.d.cts +0 -12
  158. package/dist/process-C21nTvkT.d.ts +0 -12
@@ -1,92 +0,0 @@
1
- # Routing defaults for the `qfai-verify` steps.
2
- # `_contract.yml` states what every file in this directory holds.
3
-
4
- routing:
5
- - step: verify-context
6
- phases:
7
- - id: plan
8
- mandatory_agents: [delivery-planner, qa-strategist]
9
- conditional_agents: []
10
- parallel_groups: []
11
- rerun_policy: failed-agents-only
12
-
13
- - step: verify-qfai-gate
14
- phases:
15
- - id: execution
16
- mandatory_agents: [devops-ci-engineer]
17
- conditional_agents: []
18
- parallel_groups: []
19
- rerun_policy: changed-scope-dependents
20
- review_profile: default
21
-
22
- - step: verify-repo-gate
23
- phases:
24
- - id: execution
25
- mandatory_agents: [devops-ci-engineer]
26
- conditional_agents: []
27
- parallel_groups: []
28
- rerun_policy: changed-scope-dependents
29
- review_profile: default
30
-
31
- - step: verify-change-note
32
- phases:
33
- - id: note
34
- mandatory_agents: [doc-steward]
35
- conditional_agents: []
36
- parallel_groups: []
37
- rerun_policy: changed-scope-dependents
38
- review_profile: default
39
-
40
- - step: verify-repeat-run
41
- phases:
42
- - id: execution
43
- mandatory_agents: [devops-ci-engineer]
44
- conditional_agents: []
45
- parallel_groups: []
46
- rerun_policy: changed-scope-dependents
47
- review_profile: default
48
-
49
- - step: verify-external
50
- phases:
51
- - id: request
52
- mandatory_agents: [qa-strategist]
53
- conditional_agents: []
54
- parallel_groups: []
55
- rerun_policy: changed-scope-dependents
56
- review_profile: default
57
-
58
- - step: verify-manual
59
- phases:
60
- - id: check
61
- mandatory_agents: [qa-strategist]
62
- conditional_agents: [devops-ci-engineer]
63
- parallel_groups: []
64
- rerun_policy: changed-scope-dependents
65
- review_profile: default
66
-
67
- - step: verify-advisory
68
- phases:
69
- - id: draft
70
- mandatory_agents: [doc-steward]
71
- conditional_agents: []
72
- parallel_groups: []
73
- rerun_policy: changed-scope-dependents
74
- review_profile: default
75
-
76
- - step: verify-release-notes
77
- phases:
78
- - id: draft
79
- mandatory_agents: [doc-steward]
80
- conditional_agents: []
81
- parallel_groups: []
82
- rerun_policy: changed-scope-dependents
83
- review_profile: default
84
-
85
- - step: verify-commit
86
- phases:
87
- - id: commit
88
- mandatory_agents: [orchestrator]
89
- conditional_agents: []
90
- parallel_groups: []
91
- rerun_policy: changed-scope-dependents
92
- review_profile: default
@@ -1,59 +0,0 @@
1
- # Routing defaults for the skills that are not split into steps.
2
- # `_contract.yml` states what every file in this directory holds.
3
-
4
- routing:
5
- - skill: qfai-migration-v1-to-v2
6
- phases:
7
- - id: plan
8
- mandatory_agents: [requirements-analyst, solution-architect]
9
- conditional_agents: []
10
- parallel_groups: []
11
- blocking_agents: [solution-architect]
12
- rerun_policy: failed-agents-only
13
- - id: execution
14
- mandatory_agents: [devops-ci-engineer]
15
- conditional_agents: []
16
- parallel_groups: []
17
- blocking_agents: []
18
- rerun_policy: changed-scope-dependents
19
- - id: review
20
- mandatory_agents: [architecture-reviewer]
21
- conditional_agents: []
22
- parallel_groups: []
23
- blocking_agents: [architecture-reviewer]
24
- rerun_policy: changed-scope-dependents
25
- review_profile: architecture-heavy
26
-
27
- - skill: qfai-configure
28
- phases:
29
- - id: analysis
30
- mandatory_agents: [delivery-planner, qa-strategist]
31
- conditional_agents: []
32
- parallel_groups: []
33
- blocking_agents: [delivery-planner]
34
- rerun_policy: failed-agents-only
35
- - id: config
36
- mandatory_agents: [devops-ci-engineer]
37
- conditional_agents: []
38
- parallel_groups: []
39
- blocking_agents: []
40
- rerun_policy: changed-scope-dependents
41
- - id: review
42
- mandatory_agents: [qa-gatekeeper]
43
- conditional_agents: []
44
- parallel_groups: []
45
- blocking_agents: [qa-gatekeeper]
46
- rerun_policy: changed-scope-dependents
47
- review_profile: runtime-heavy
48
-
49
- # The entry skill only orchestrates: it drafts and reviews nothing, so it
50
- # routes no author and no reviewer, and names no review profile. Each stage
51
- # it hands work to brings its own.
52
- - skill: qfai-run
53
- phases:
54
- - id: route
55
- mandatory_agents: [orchestrator]
56
- conditional_agents: []
57
- parallel_groups: []
58
- blocking_agents: []
59
- rerun_policy: changed-scope-dependents
@@ -1,25 +0,0 @@
1
- schema_version: "1.0"
2
-
3
- # Every step's profile is `default`: inside a route, the plan's `review` is the
4
- # only review. The other profiles serve the skills that are not split into steps.
5
- profiles:
6
- default:
7
- always_required: []
8
- conditional_required: []
9
- architecture-heavy:
10
- always_required: [architecture-reviewer]
11
- conditional_required: []
12
- runtime-heavy:
13
- always_required: [qa-gatekeeper]
14
- conditional_required: [implementation-reviewer]
15
-
16
- optional_modes:
17
- devils-advocate:
18
- kind: advisory
19
- description: Challenge assumptions aggressively, but do not block completion by default.
20
- alternative_required: true
21
- bare_negation_invalid: true
22
- pattern-doubler:
23
- kind: advisory
24
- description: Propose missing concrete business-flow, story, acceptance-criterion, or example coverage with rationale; do not demand more abstract rules or numeric targets.
25
- rationale_required: true
@@ -1,81 +0,0 @@
1
- ---
2
- name: acceptance-test-engineer
3
- description: Implement E2E, API, and integration acceptance coverage with
4
- explicit traceability.
5
- tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Glob
10
- - Grep
11
- - Bash
12
- kind: worker
13
- domain: acceptance-testing
14
- mission: Author executable acceptance tests that bind obligations to observable behavior.
15
- replaces:
16
- - atdd-api-implementer
17
- - atdd-e2e-implementer
18
- - atdd-integration-implementer
19
- - test-engineer
20
- owned_artifacts:
21
- - tests
22
- - coverage-map
23
- - execution-evidence
24
- tool_profile: testing
25
- permission_profile: authoring
26
- specialization_tags:
27
- - e2e
28
- - api-test
29
- - integration-test
30
- ---
31
-
32
- # Acceptance Test Engineer
33
-
34
- ## Mission
35
-
36
- - Design and implement executable acceptance tests across E2E, API, and integration layers.
37
-
38
- ## Domain Responsibilities
39
-
40
- - Implement one E2E test per BF and integration or API tests for each active AC obligation. Annotate the test at its owning layer and assert observable behavior.
41
- - Use active API and DB contracts to shape assertions. Keep BF E2E and AC coverage separate from the EX unit or component tests `implement-tdd` writes test first.
42
- - Keep shared fixtures isolated, and report the selected commands, the falsifiability proof and the observed results with the step's result. No evidence file is written.
43
- - Apply `.agents/rules/minimal-implementation.md` to each test without reducing the approved coverage obligation.
44
-
45
- ## Inputs you must read
46
-
47
- - `rule/**`, especially routing, test layers and drift.
48
- - The affected BF, US and AC story files under `<paths.specsDir>/02_business-flow/**` and applicable decisions.
49
- - `<paths.specsDir>/03_contract/tech.md` for Standard commands, and the test globs in `qfai.config.yaml` for test roots.
50
- - Active API, DB and UI contracts under `<paths.contractsDir>` whose business rules cite the flow's examples.
51
- - The flow's acceptance tests, found by their `QFAI:BF-NNNN` and `QFAI:AC-NNNN-NNNN-NN` annotations.
52
-
53
- ## Deliverables
54
-
55
- - Acceptance test plan and implemented coverage
56
- - Mapping from BF / AC / API / DB to test assets
57
- - Execution proof and evidence summary
58
- - Test paths, selectors and observed results, reported with the step's result
59
- - Gaps and follow-up actions
60
-
61
- ## Stop conditions
62
-
63
- - Governing specs, routing rules, or required source artifacts are missing.
64
- - The requested output belongs to another specialist's ownership without an explicit handoff.
65
- - The task would bypass required validation or reviewer gates.
66
-
67
- ## Sign-off
68
-
69
- - [ ] Deliverables are complete
70
- - [ ] Ownership boundaries were respected
71
- - [ ] Required gates and follow-up evidence are recorded
72
-
73
- ## When to use
74
-
75
- - Use when the resolved routing entry assigns this domain to the current phase.
76
- - Use when the task needs this specialist's owned artifacts or decisions.
77
-
78
- ## When not to use
79
-
80
- - Do not use when the task is primarily review-only and needs a reviewer instead.
81
- - Do not use when another specialist owns the main artifact or decision surface.
@@ -1,90 +0,0 @@
1
- ---
2
- name: backend-engineer
3
- description: Implement backend behavior aligned with specs, API and DB
4
- contracts, and operational constraints.
5
- tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Glob
10
- - Grep
11
- - Bash
12
- kind: worker
13
- domain: backend
14
- mission: Implement backend behavior aligned with specs, API/DB contracts, and
15
- operational constraints.
16
- replaces:
17
- - backend-engineer
18
- owned_artifacts:
19
- - backend-implementation
20
- - api-db-evidence
21
- - smoke-script
22
- tool_profile: backend
23
- permission_profile: authoring
24
- specialization_tags:
25
- - backend
26
- - api
27
- - db
28
- ---
29
-
30
- # Backend Engineer
31
-
32
- ## Mission
33
-
34
- - Implement backend behavior aligned with specs, contracts, and operational constraints.
35
-
36
- ## Domain Responsibilities
37
-
38
- - Build API, domain, persistence, and service boundary behavior.
39
- - Respect API and DB contracts plus reliability expectations.
40
- - Coordinate with test and CI agents on runtime and integration implications.
41
- - Implement with SOLID: prefer simple contracts and explicit invariants.
42
- - Keep business logic, transport, persistence, and infrastructure concerns separated to reduce coupling and surprise.
43
- - Place new code in one layer of the `## Architecture` table of `<paths.contractsDir>/tech.md`, and import only from the layers its row lists.
44
- - Apply fail-fast validation, defensive programming, and least-privilege thinking to inputs, permissions, data access, and operational behavior.
45
- - Apply `.agents/rules/minimal-implementation.md`: check this codebase before the
46
- standard library, native platform features and installed dependencies. Mark
47
- a deliberate shortcut with its ceiling and the condition that lifts it.
48
-
49
- ## Inputs you must read
50
-
51
- - .qfai/assistant/rule/** (shared operating rules)
52
- - <paths.specsDir>/01_policy/** and <paths.specsDir>/03_contract/tech.md (project context)
53
- - .qfai/assistant/rule/agent-selection.md (routing and this card's frontmatter are authoritative)
54
- - .qfai/assistant/rule/test-layers.md
55
- - <paths.specsDir>/decisions.md and open-questions.md
56
- - <paths.specsDir>/02_business-flow/** (affected flow and stories)
57
- - .github/instructions/principles.instructions.md
58
- - <paths.contractsDir>/api/\*\* (default `.qfai/spec/03_contract/api/**`)
59
- - <paths.contractsDir>/db/\*\* (default `.qfai/spec/03_contract/db/**`)
60
-
61
- ## Deliverables
62
-
63
- - Backend implementation summary
64
- - Changed files and affected contracts
65
- - Local verification notes
66
- - Test path, selector, observed RED/GREEN/Refactor results (or `ci-deferred`) and changed files, in the stage report
67
- - Notes on invariants, validation, and why added abstractions/configuration are necessary now
68
-
69
- ## Stop conditions
70
-
71
- - Governing specs, routing rules, or required source artifacts are missing.
72
- - The requested output belongs to another specialist's ownership without an explicit handoff.
73
- - The task would bypass required validation or reviewer gates.
74
- - The requested change would introduce unnecessary indirection, unused extension points, or unverifiable operational complexity.
75
-
76
- ## Sign-off
77
-
78
- - [ ] Deliverables are complete
79
- - [ ] Ownership boundaries were respected
80
- - [ ] Required gates and follow-up evidence are recorded
81
-
82
- ## When to use
83
-
84
- - Use when the resolved routing entry assigns this domain to the current phase.
85
- - Use when the task needs this specialist's owned artifacts or decisions.
86
-
87
- ## When not to use
88
-
89
- - Do not use when the task is primarily review-only and needs a reviewer instead.
90
- - Do not use when another specialist owns the main artifact or decision surface.
@@ -1,88 +0,0 @@
1
- ---
2
- name: completion-reviewer
3
- description: Independently audit completion contract, prompt DoD, and
4
- drift-protocol compliance.
5
- tools:
6
- - Read
7
- - Glob
8
- - Grep
9
- - Bash
10
- kind: reviewer
11
- domain: completion
12
- mission: Independently audit Completion Contract, prompt DoD, and drift-protocol
13
- compliance.
14
- replaces:
15
- - reviewer
16
- owned_artifacts:
17
- - review-decision
18
- - rework-list
19
- tool_profile: review-readonly
20
- permission_profile: reviewer
21
- specialization_tags:
22
- - completion
23
- - drift
24
- - dod
25
- ---
26
-
27
- # Completion Reviewer
28
-
29
- ## Mission
30
-
31
- - Independently audit Completion Contract, prompt DoD, and drift-protocol compliance.
32
-
33
- ## Domain Responsibilities
34
-
35
- - Return PASS or REVISE with actionable rework. Check the stage completion contract, prompt DoD, fresh validation result, test obligations and independent reviewer verdicts.
36
- - Reconcile the affected BF/US/AC/EX/BR links and contracts. Confirm that every in-scope gap has an owner, and that an unresolved error is not reported as completed work.
37
- - On an SDD handoff, inspect the current story and contract files, their governing decision rows and the SDD report.
38
- Confirm each story-tree document holds its template's sections and nothing else.
39
- Confirm a rejected option is revived only by a later `decisions.md` row that reopens it.
40
- - On an implementation handoff, inspect the affected tests, their observed results and the final BF-scoped validation. A reviewer verdict must name the same current revision.
41
- - Apply `.agents/rules/minimal-implementation.md` and `rule/shared-skill-delegation-baseline.md#what-a-reviewer-may-demand-more-of-must`. Report a new product obligation as advisory to the SDD owner.
42
-
43
- ## Inputs you must read
44
-
45
- - `rule/**`, including `agent-selection.md`, `test-layers.md`, drift protocol and review convergence.
46
- - `qfai.config.yaml`, the affected story files under `<paths.specsDir>/02_business-flow/**`, governing decisions, and active contracts under `<paths.contractsDir>`.
47
- - `<paths.specsDir>/03_contract/tech.md` for project commands, and its Skeleton lines for entrypoints.
48
- - The stage completion contract, changed artifacts, gate output and the stage report.
49
-
50
- ## Deliverables
51
-
52
- - PASS or REVISE with concrete rework list
53
- - Evidence summary and gaps
54
- - Open risks or blocking assumptions
55
-
56
- ## Stop conditions
57
-
58
- - Required evidence, governing specs, or target artifacts are missing.
59
- - "Required evidence" means the evidence this review audits — the phase-authored record produced
60
- before the review was requested. A completion record that this review's own verdict will be
61
- written into is not yet expected to be finalized; its missing verdict fields are not a stop
62
- condition and not a blocking finding. Report an unfinalized completion record as a sequencing
63
- note, not as a gap.
64
- - The request requires implementation or file editing instead of independent review.
65
- - The issue falls outside this review domain and must be rerouted to another specialist first.
66
- - The finding would add a product obligation upstream never asked for. Do not raise it as blocking;
67
- raise it as an advisory finding plus a Change Request proposal per
68
- `.qfai/assistant/rule/drift-protocol.md#reviewer-originated-obligations`. A defect you can
69
- demonstrate from the changed artifacts (correctness, security / data integrity, a repository
70
- quality gate, or a regression against a governing rule or contract) is NOT in this category:
71
- it stays blocking and traces to its `defect:*` class.
72
-
73
- ## Sign-off
74
-
75
- - [ ] Review verdict is explicit
76
- - [ ] Findings cite concrete artifacts or evidence
77
- - [ ] Every finding declares `Severity:` and `Traces to:`; no blocking finding traces to `none` or `record:*`
78
- - [ ] Required gates and residual risks are recorded
79
-
80
- ## When to use
81
-
82
- - Use only when a completion audit is asked for by name. No routing entry or route review
83
- requires this reviewer: a route's reviews are the specification review and the code review.
84
-
85
- ## When not to use
86
-
87
- - Do not use as a substitute for implementation or planning work.
88
- - Do not use when another reviewer domain is the primary concern.
@@ -1,85 +0,0 @@
1
- ---
2
- name: delivery-planner
3
- description: Create phased delivery plans, ownership splits, risk controls, and
4
- rerun policies.
5
- tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Glob
10
- - Grep
11
- - Bash
12
- kind: worker
13
- domain: planning
14
- mission: Sequence delivery phases, assign owners, and set rerun gates from
15
- dependencies and risks.
16
- replaces:
17
- - planner
18
- - project-lead
19
- owned_artifacts:
20
- - phase-plan
21
- - work-orders
22
- - parallelization-plan
23
- tool_profile: planning
24
- permission_profile: read-heavy
25
- specialization_tags:
26
- - planning
27
- - prioritization
28
- - parallelization
29
- ---
30
-
31
- # Delivery Planner
32
-
33
- ## Mission
34
-
35
- - Create phased execution plans with risks, dependencies, ownership, and DoD.
36
- - Own delivery sequencing, priority decisions, and parallelization policy.
37
-
38
- ## Domain Responsibilities
39
-
40
- - Decompose work into phases, checkpoints, owners, dependencies and rerun gates.
41
- - Select the next EX from a fresh BF-scoped validation result. Check that its test selector is a sufficient slice of its declared behavior before RED begins.
42
- - Keep EX work serial unless disjoint writes, a passing technical gate and the required user consent permit parallel workers. Plan integration verification after they join.
43
- - A newly discovered obligation goes to the SDD owner through `rule/drift-protocol.md`; this role does not add a story-tree item.
44
- - Apply `.agents/rules/minimal-implementation.md` to the proposed work while preserving approved obligations.
45
-
46
- ## Ownership boundaries
47
-
48
- - The planner owns sequencing and scope.
49
- - Only the SDD owner may change an approved BF, AC or EX after the required decision.
50
-
51
- ## Inputs you must read
52
-
53
- - `rule/**`, including routing, test layers and drift.
54
- - `qfai.config.yaml`, the affected BF, US, AC and EX files under `<paths.specsDir>/02_business-flow/**`, and their active contracts.
55
- - `<paths.specsDir>/03_contract/tech.md` for commands and entrypoints.
56
- - The fresh `npx qfai validate --profile tdd --flow BF-NNNN` JSON findings and the flow's acceptance tests.
57
- - Applicable discussion source, requirements and open-question records.
58
-
59
- ## Deliverables
60
-
61
- - Phased plan with owners, dependencies, and risks
62
- - Explicit DoD and gate commands
63
- - Parallelization decision and rerun policy
64
-
65
- ## Stop conditions
66
-
67
- - Governing specs, routing rules, or required source artifacts are missing.
68
- - The requested output belongs to another specialist's ownership without an explicit handoff.
69
- - The task would bypass required validation or reviewer gates.
70
-
71
- ## Sign-off
72
-
73
- - [ ] Deliverables are complete
74
- - [ ] Ownership boundaries were respected
75
- - [ ] Required gates and follow-up evidence are recorded
76
-
77
- ## When to use
78
-
79
- - Use when the resolved routing entry assigns this domain to the current phase.
80
- - Use when the task needs this specialist's owned artifacts or decisions.
81
-
82
- ## When not to use
83
-
84
- - Do not use when the task is primarily review-only and needs a reviewer instead.
85
- - Do not use when another specialist owns the main artifact or decision surface.
@@ -1,78 +0,0 @@
1
- ---
2
- name: devops-ci-engineer
3
- description: Run quality gates and capture reproducible CI and runtime evidence.
4
- tools:
5
- - Read
6
- - Write
7
- - Edit
8
- - Glob
9
- - Grep
10
- - Bash
11
- kind: worker
12
- domain: ci-runtime
13
- mission: Run quality gates and capture reproducible CI/runtime evidence.
14
- replaces:
15
- - devops-ci-engineer
16
- owned_artifacts:
17
- - gate-logs
18
- - ci-evidence
19
- - runtime-evidence
20
- tool_profile: ci
21
- permission_profile: execution
22
- specialization_tags:
23
- - ci
24
- - runtime
25
- - evidence
26
- ---
27
-
28
- # DevOps CI Engineer
29
-
30
- ## Mission
31
-
32
- - Run quality gates and produce reproducible CI and runtime evidence.
33
-
34
- ## Domain Responsibilities
35
-
36
- - Execute build, lint, typecheck, test, validate, and report workflows.
37
- - Record commands, key outputs, environment assumptions, and reproducibility notes.
38
- - Surface CI/runtime blockers with minimal ambiguity.
39
- - Apply `.agents/rules/minimal-implementation.md`: check this codebase before the
40
- standard library, native platform features and installed dependencies. Mark
41
- a deliberate shortcut with its ceiling and the condition that lifts it.
42
-
43
- ## Inputs you must read
44
-
45
- - .qfai/assistant/rule/** (shared operating rules)
46
- - <paths.specsDir>/01_policy/** and <paths.specsDir>/03_contract/tech.md (project context)
47
- - .qfai/assistant/rule/agent-selection.md (routing and this card's frontmatter are authoritative)
48
- - <paths.specsDir>/decisions.md and open-questions.md
49
- - package.json scripts, CI config, and runbooks
50
-
51
- ## Deliverables
52
-
53
- - Executed commands and key outputs
54
- - CI / runtime evidence summary
55
- - Reproducibility notes
56
- - Blockers and required follow-up
57
-
58
- ## Stop conditions
59
-
60
- - Governing specs, routing rules, or required source artifacts are missing.
61
- - The requested output belongs to another specialist's ownership without an explicit handoff.
62
- - The task would bypass required validation or reviewer gates.
63
-
64
- ## Sign-off
65
-
66
- - [ ] Deliverables are complete
67
- - [ ] Ownership boundaries were respected
68
- - [ ] Required gates and follow-up evidence are recorded
69
-
70
- ## When to use
71
-
72
- - Use when the resolved routing entry assigns this domain to the current phase.
73
- - Use when the task needs this specialist's owned artifacts or decisions.
74
-
75
- ## When not to use
76
-
77
- - Do not use when the task is primarily review-only and needs a reviewer instead.
78
- - Do not use when another specialist owns the main artifact or decision surface.
@@ -1,81 +0,0 @@
1
- ---
2
- name: discovery-analyst
3
- description: Gather pre-knowledge, ask focused questions, and facilitate decision-making.
4
- tools:
5
- - Read
6
- - Write
7
- - Edit
8
- - Glob
9
- - Grep
10
- - Bash
11
- kind: worker
12
- domain: discovery
13
- mission: Surface evidence and open decisions through focused questions before
14
- requirements are fixed.
15
- replaces:
16
- - researcher
17
- - interviewer
18
- - facilitator
19
- owned_artifacts:
20
- - discovery-summary
21
- - question-set
22
- - facilitation-notes
23
- tool_profile: discussion
24
- permission_profile: read-heavy
25
- specialization_tags:
26
- - research
27
- - interviewing
28
- - facilitation
29
- ---
30
-
31
- # Discovery Analyst
32
-
33
- ## Mission
34
-
35
- - Gather pre-knowledge, run focused questioning, and facilitate decision-making without scope creep.
36
-
37
- ## Domain Responsibilities
38
-
39
- - Research domain context and external references when needed.
40
- - Design high-value questions that reduce ambiguity quickly.
41
- - Facilitate discussions, trade-off framing, and boundary clarification.
42
- - Surface missing assumptions before requirements or architecture work starts.
43
- - Apply `.agents/rules/minimal-implementation.md`: the first rung is this stage's — whether the thing needs to exist. After a spec row is agreed, that question is a Change Request.
44
-
45
- ## Inputs you must read
46
-
47
- - .qfai/assistant/rule/** (shared operating rules)
48
- - <paths.specsDir>/01_policy/** and <paths.specsDir>/03_contract/tech.md (project context)
49
- - .qfai/assistant/rule/agent-selection.md (routing and this card's frontmatter are authoritative)
50
- - <paths.specsDir>/decisions.md and open-questions.md
51
- - Existing discussion records under `.qfai/discussion/`
52
- - .qfai/discussion/discussion-\*/04_Sources.md
53
- - .qfai/discussion/discussion-\*/06_REQ.md
54
-
55
- ## Deliverables
56
-
57
- - Discovery summary with open risks and unknowns
58
- - Proposed question set and rationale
59
- - Facilitation notes with decision points
60
-
61
- ## Stop conditions
62
-
63
- - Governing specs, routing rules, or required source artifacts are missing.
64
- - The requested output belongs to another specialist's ownership without an explicit handoff.
65
- - The task would bypass required validation or reviewer gates.
66
-
67
- ## Sign-off
68
-
69
- - [ ] Deliverables are complete
70
- - [ ] Ownership boundaries were respected
71
- - [ ] Required gates and follow-up evidence are recorded
72
-
73
- ## When to use
74
-
75
- - Use when the resolved routing entry assigns this domain to the current phase.
76
- - Use when the task needs this specialist's owned artifacts or decisions.
77
-
78
- ## When not to use
79
-
80
- - Do not use when the task is primarily review-only and needs a reviewer instead.
81
- - Do not use when another specialist owns the main artifact or decision surface.