qfai 2.2.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -20
- package/assets/init/.claude/settings.json +35 -1
- package/assets/init/.codex/hooks.json +24 -0
- package/assets/init/.github/instructions/code-review.instructions.md +1 -1
- package/assets/init/.qfai/assistant/agent/architecture-reviewer.md +4 -4
- package/assets/init/.qfai/assistant/agent/fullstack-engineer.md +129 -0
- package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +76 -4
- package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +9 -5
- package/assets/init/.qfai/assistant/agent/requirements-reviewer.md +13 -3
- package/assets/init/.qfai/assistant/rule/agent-selection.md +22 -42
- package/assets/init/.qfai/assistant/rule/communication.md +1 -1
- package/assets/init/.qfai/assistant/rule/constitution.md +77 -242
- package/assets/init/.qfai/assistant/rule/drift-protocol.md +31 -165
- package/assets/init/.qfai/assistant/rule/references/asset-authoring.md +4 -3
- package/assets/init/.qfai/assistant/rule/references/codex-delegation.md +4 -4
- package/assets/init/.qfai/assistant/rule/references/gate-failure-autorepair.md +2 -2
- package/assets/init/.qfai/assistant/rule/references/placeholder-scan.md +2 -3
- package/assets/init/.qfai/assistant/rule/references/reviewer-findings.md +3 -3
- package/assets/init/.qfai/assistant/rule/references/worker-edit-boundary.md +15 -6
- package/assets/init/.qfai/assistant/rule/research-first-protocol.md +7 -6
- package/assets/init/.qfai/assistant/rule/review-convergence.md +7 -7
- package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +82 -66
- package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +19 -21
- package/assets/init/.qfai/assistant/rule/test-layers.md +1 -1
- package/assets/init/.qfai/assistant/rule/thinking.md +2 -2
- package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +5 -5
- package/assets/init/.qfai/assistant/rule/ui-procurement.md +1 -1
- package/assets/init/.qfai/assistant/rule/workflow.md +16 -16
- package/assets/init/.qfai/assistant/skill/qfai-configure/SKILL.md +27 -60
- package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +3 -17
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/03_Story-Workshop.md +1 -2
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/50_review_input_bundle.md +4 -3
- package/assets/init/.qfai/assistant/skill/qfai-grill/SKILL.md +9 -10
- package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +45 -58
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/confirmation-sheet.md +71 -0
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/delegated-session.md +35 -18
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-record.md +3 -3
- package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +2 -18
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +53 -21
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +35 -2
- package/assets/init/.qfai/assistant/skill/qfai-maintain/SKILL.md +2 -5
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/SKILL.md +2 -15
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-guide.md +10 -14
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/references/migration-placement.md +0 -7
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +6 -15
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +76 -5
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/handoff.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/iteration-loop.md +60 -5
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/review-payload-schema.md +15 -6
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +42 -11
- package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +8 -10
- package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +12 -7
- package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +4 -4
- package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/SKILL.md +10 -25
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/concrete-abstract-cycle.md +27 -29
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +13 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-anti-patterns.md +36 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-authoring.md +8 -9
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/requirements-decomposition.md +6 -6
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +7 -7
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +5 -5
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +7 -7
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +3 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +115 -199
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +25 -25
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +23 -113
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-design-contract-normalization.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/ui-contract.sample.yaml +8 -7
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/03_contract/tech.md +1 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions/page-NNNN.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +59 -31
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/open-questions.md +15 -11
- package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +1 -14
- package/assets/init/.qfai/assistant/skill/qfai-verify/SKILL.md +2 -13
- package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +1 -1
- package/assets/init/.qfai/assistant/skill/web-research/SKILL.md +19 -21
- package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +9 -11
- package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +2 -3
- package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +3 -4
- package/assets/init/.qfai/assistant/step/common-policy-check/STEP.md +1 -2
- package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +8 -7
- package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +7 -9
- package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +43 -2
- package/assets/init/.qfai/assistant/step/discussion-research/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/implement-acceptance/STEP.md +1 -5
- package/assets/init/.qfai/assistant/step/implement-backport/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-benchmark/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-bisect/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-credentials/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-dep-bump/STEP.md +11 -18
- package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +0 -6
- package/assets/init/.qfai/assistant/step/implement-minimize/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-oracle-parity/STEP.md +0 -6
- package/assets/init/.qfai/assistant/step/implement-procedure/STEP.md +1 -3
- package/assets/init/.qfai/assistant/step/implement-quarantine/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-refactor/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-regression-fix/STEP.md +2 -6
- package/assets/init/.qfai/assistant/step/implement-retire/STEP.md +0 -6
- package/assets/init/.qfai/assistant/step/implement-revert/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +5 -7
- package/assets/init/.qfai/assistant/step/implement-seam/STEP.md +0 -4
- package/assets/init/.qfai/assistant/step/implement-stress-harness/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-sweep/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +10 -18
- package/assets/init/.qfai/assistant/step/implement-test-fix/STEP.md +0 -5
- package/assets/init/.qfai/assistant/step/implement-tooling/STEP.md +0 -3
- package/assets/init/.qfai/assistant/step/maintain-edit/STEP.md +18 -21
- package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +4 -6
- package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +106 -31
- package/assets/init/.qfai/assistant/step/prototyping-preflight/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +18 -19
- package/assets/init/.qfai/assistant/step/sdd-cycle/STEP.md +8 -11
- package/assets/init/.qfai/assistant/step/sdd-flow/STEP.md +25 -6
- package/assets/init/.qfai/assistant/step/sdd-gate/STEP.md +0 -1
- package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +6 -8
- package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +71 -82
- package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-close/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-cluster/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-decompose/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-dedupe/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-handoff/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-investigate/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +29 -17
- package/assets/init/.qfai/assistant/step/triage-owned-cleanup/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-request-info/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/triage-security-intake/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-advisory/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-change-note/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +2 -6
- package/assets/init/.qfai/assistant/step/verify-context/STEP.md +7 -26
- package/assets/init/.qfai/assistant/step/verify-external/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-manual/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-qfai-gate/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-release-notes/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-repeat-run/STEP.md +0 -2
- package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +0 -2
- package/assets/init/root/.agents/rules/ai-readable-markdown.md +8 -1
- package/assets/init/root/.agents/rules/delegation-steering.md +69 -0
- package/assets/init/root/.agents/rules/grilling.md +81 -52
- package/assets/init/root/.agents/rules/minimal-implementation.md +5 -5
- package/assets/init/root/.agents/rules/reply-forms.md +191 -0
- package/assets/init/root/.agents/rules/session-feedback.md +104 -27
- package/assets/init/root/.agents/rules/user-questions.md +6 -1
- package/assets/init/root/.gitattributes +5 -6
- package/assets/init/root/AGENTS.md +4 -2
- package/assets/mdschema/story/03_contract/tech.mdschema.yml +1 -1
- package/assets/mdschema/story/decisions/page-NNNN.mdschema.yml +3 -3
- package/assets/mdschema/story/decisions.mdschema.yml +4 -4
- package/assets/mdschema/story/open-questions.mdschema.yml +3 -3
- package/assets/schemas/workflow/extraction.schema.json +0 -2
- package/dist/cli/index.cjs +3826 -3929
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +3793 -3904
- package/dist/cli/index.mjs.map +1 -1
- package/dist/graph/cli.cjs +14 -2
- package/dist/graph/cli.cjs.map +1 -1
- package/dist/graph/cli.d.cts +1 -1
- package/dist/graph/cli.d.ts +1 -1
- package/dist/graph/cli.mjs +14 -2
- package/dist/graph/cli.mjs.map +1 -1
- package/dist/graph/hook.cjs.map +1 -1
- package/dist/graph/hook.mjs.map +1 -1
- package/dist/hook/turn-end.cjs +1022 -0
- package/dist/hook/turn-end.cjs.map +1 -0
- package/dist/hook/turn-end.d.cts +2 -0
- package/dist/hook/turn-end.d.ts +2 -0
- package/dist/hook/turn-end.mjs +998 -0
- package/dist/hook/turn-end.mjs.map +1 -0
- package/dist/index.cjs +3635 -4578
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -21
- package/dist/index.d.ts +20 -21
- package/dist/index.mjs +3696 -4641
- package/dist/index.mjs.map +1 -1
- package/dist/process-qqX2Owgq.d.cts +18 -0
- package/dist/process-qqX2Owgq.d.ts +18 -0
- package/package.json +2 -2
- package/assets/defaults/agent-routing/_contract.yml +0 -77
- package/assets/defaults/agent-routing/common.yml +0 -14
- package/assets/defaults/agent-routing/qfai-discussion.yml +0 -57
- package/assets/defaults/agent-routing/qfai-implement.yml +0 -236
- package/assets/defaults/agent-routing/qfai-maintain.yml +0 -12
- package/assets/defaults/agent-routing/qfai-prototyping.yml +0 -48
- package/assets/defaults/agent-routing/qfai-sdd.yml +0 -56
- package/assets/defaults/agent-routing/qfai-triage.yml +0 -108
- package/assets/defaults/agent-routing/qfai-verify.yml +0 -92
- package/assets/defaults/agent-routing/skills.yml +0 -59
- package/assets/defaults/review-profiles.yml +0 -25
- package/assets/init/.qfai/assistant/agent/acceptance-test-engineer.md +0 -81
- package/assets/init/.qfai/assistant/agent/backend-engineer.md +0 -90
- package/assets/init/.qfai/assistant/agent/completion-reviewer.md +0 -88
- package/assets/init/.qfai/assistant/agent/delivery-planner.md +0 -85
- package/assets/init/.qfai/assistant/agent/devops-ci-engineer.md +0 -78
- package/assets/init/.qfai/assistant/agent/discovery-analyst.md +0 -81
- package/assets/init/.qfai/assistant/agent/doc-steward.md +0 -78
- package/assets/init/.qfai/assistant/agent/frontend-engineer.md +0 -94
- package/assets/init/.qfai/assistant/agent/orchestrator.md +0 -92
- package/assets/init/.qfai/assistant/agent/product-experience-architect.md +0 -101
- package/assets/init/.qfai/assistant/agent/qa-gatekeeper.md +0 -153
- package/assets/init/.qfai/assistant/agent/qa-strategist.md +0 -82
- package/assets/init/.qfai/assistant/agent/requirements-analyst.md +0 -96
- package/assets/init/.qfai/assistant/agent/solution-architect.md +0 -89
- package/assets/init/.qfai/assistant/agent/test-design-analyst.md +0 -132
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/change-request.md +0 -52
- package/dist/process-C21nTvkT.d.cts +0 -12
- package/dist/process-C21nTvkT.d.ts +0 -12
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: requirements-analyst
|
|
3
|
-
description: Produce testable requirements, option sets, and explicit open-question ledgers.
|
|
4
|
-
tools:
|
|
5
|
-
- Read
|
|
6
|
-
- Write
|
|
7
|
-
- Edit
|
|
8
|
-
- Glob
|
|
9
|
-
- Grep
|
|
10
|
-
- Bash
|
|
11
|
-
kind: worker
|
|
12
|
-
domain: requirements
|
|
13
|
-
mission: Turn discussion decisions into acceptance signals and record unresolved
|
|
14
|
-
choices with ownership.
|
|
15
|
-
replaces:
|
|
16
|
-
- requirements-analyst
|
|
17
|
-
- oq-harvester
|
|
18
|
-
- option-explorer
|
|
19
|
-
owned_artifacts:
|
|
20
|
-
- requirements
|
|
21
|
-
- options
|
|
22
|
-
- oq-ledger
|
|
23
|
-
tool_profile: structured-authoring
|
|
24
|
-
permission_profile: authoring
|
|
25
|
-
specialization_tags:
|
|
26
|
-
- requirements
|
|
27
|
-
- options
|
|
28
|
-
- oq
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
# Requirements Analyst
|
|
32
|
-
|
|
33
|
-
## Mission
|
|
34
|
-
|
|
35
|
-
- Convert discussions into testable requirements, explicit open questions, and option sets with acceptance signals.
|
|
36
|
-
|
|
37
|
-
## Domain Responsibilities
|
|
38
|
-
|
|
39
|
-
- Translate stakeholder intent into requirement statements and acceptance signals.
|
|
40
|
-
- Harvest undefined decisions and maintain the OQ backlog.
|
|
41
|
-
- Produce multiple solution options with a recommendation.
|
|
42
|
-
- Map requirements to impacted downstream artifacts.
|
|
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
|
-
- .qfai/discussion/discussion-\*/04_Sources.md
|
|
52
|
-
- .qfai/discussion/discussion-\*/06_REQ.md
|
|
53
|
-
- .qfai/discussion/discussion-\*/11_OQ-Register.md
|
|
54
|
-
- Discussion records under `.qfai/discussion/`
|
|
55
|
-
|
|
56
|
-
## Deliverables
|
|
57
|
-
|
|
58
|
-
- Requirements list with acceptance signals
|
|
59
|
-
- Option set with recommendation and rejected rationale
|
|
60
|
-
- Open questions with owner, decision point, and safe deferral notes
|
|
61
|
-
- Mapping from requirements to impacted artifacts
|
|
62
|
-
- For UI-bearing surfaces: every entry in the UI contract `screens[]` must
|
|
63
|
-
carry at least one `primary_task`. An empty `primary_tasks` array blocks
|
|
64
|
-
`/qfai-prototyping` at the validate lane, under `QFAI-AUD-001`. The shipped
|
|
65
|
-
`ui-contract.sample.yaml` carries filled entries; replace them with the
|
|
66
|
-
screen's own rather than emptying the list.
|
|
67
|
-
- For UI-bearing surfaces: every screen also declares `supplements` (`[]` when it
|
|
68
|
-
shows no text beyond its title, group headings and labels), and `structure` when
|
|
69
|
-
it shows a heading beyond its title. Check each proposed text element against the
|
|
70
|
-
screen's tasks and the information the user needs there, and write the ones that
|
|
71
|
-
stay into the contract with the reason. A text that only repeats a heading, an
|
|
72
|
-
action or a condition the user already has is left out. Discussion sidecars
|
|
73
|
-
inform these keys; they do not replace them. See
|
|
74
|
-
`.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md`.
|
|
75
|
-
|
|
76
|
-
## Stop conditions
|
|
77
|
-
|
|
78
|
-
- Governing specs, routing rules, or required source artifacts are missing.
|
|
79
|
-
- The requested output belongs to another specialist's ownership without an explicit handoff.
|
|
80
|
-
- The task would bypass required validation or reviewer gates.
|
|
81
|
-
|
|
82
|
-
## Sign-off
|
|
83
|
-
|
|
84
|
-
- [ ] Deliverables are complete
|
|
85
|
-
- [ ] Ownership boundaries were respected
|
|
86
|
-
- [ ] Required gates and follow-up evidence are recorded
|
|
87
|
-
|
|
88
|
-
## When to use
|
|
89
|
-
|
|
90
|
-
- Use when the resolved routing entry assigns this domain to the current phase.
|
|
91
|
-
- Use when the task needs this specialist's owned artifacts or decisions.
|
|
92
|
-
|
|
93
|
-
## When not to use
|
|
94
|
-
|
|
95
|
-
- Do not use when the task is primarily review-only and needs a reviewer instead.
|
|
96
|
-
- Do not use when another specialist owns the main artifact or decision surface.
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: solution-architect
|
|
3
|
-
description: Define architecture and contract decisions aligned with specs,
|
|
4
|
-
constraints, and rejected-option history.
|
|
5
|
-
tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- Bash
|
|
12
|
-
kind: worker
|
|
13
|
-
domain: architecture
|
|
14
|
-
mission: Choose system boundaries and contracts that satisfy specs and preserve
|
|
15
|
-
rejected options.
|
|
16
|
-
replaces:
|
|
17
|
-
- architect
|
|
18
|
-
- contract-designer
|
|
19
|
-
owned_artifacts:
|
|
20
|
-
- architecture-decisions
|
|
21
|
-
- contracts
|
|
22
|
-
- boundaries
|
|
23
|
-
tool_profile: architecture
|
|
24
|
-
permission_profile: authoring
|
|
25
|
-
specialization_tags:
|
|
26
|
-
- architecture
|
|
27
|
-
- contracts
|
|
28
|
-
- boundaries
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
# Solution Architect
|
|
32
|
-
|
|
33
|
-
## Mission
|
|
34
|
-
|
|
35
|
-
- Define architecture and contract decisions aligned with specs, constraints, and rejected-option history.
|
|
36
|
-
|
|
37
|
-
## Domain Responsibilities
|
|
38
|
-
|
|
39
|
-
- Define architecture boundaries, non-goals, and major trade-offs.
|
|
40
|
-
- Design UI, API, and DB contracts that make requirements executable. Give each one a `<KIND>-NNNN` ID from its directory and the next contract number, and number its business rules `BR-<contract number>-NNNN`.
|
|
41
|
-
- Keep references one way: a business rule cites only examples, and a contract never names an implementation file.
|
|
42
|
-
- Prevent rejected options from being reintroduced without RE-OPEN.
|
|
43
|
-
- Align architecture and contract decisions with implementation and test strategy.
|
|
44
|
-
- Apply SOLID, separation of concerns, coupling/cohesion, and fail-fast principles to structural decisions.
|
|
45
|
-
- Prefer the simplest architecture that satisfies the accepted requirements; avoid speculative extension points, premature generalization, and needless indirection.
|
|
46
|
-
- Make contracts explicit, small, and intention-revealing so implementers and reviewers can verify them without hidden assumptions.
|
|
47
|
-
- 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.
|
|
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
|
-
- <paths.specsDir>/decisions.md and open-questions.md
|
|
55
|
-
- <paths.specsDir>/02_business-flow/** (affected flow and stories)
|
|
56
|
-
- .qfai/discussion/discussion-\*/04_Sources.md
|
|
57
|
-
- .qfai/discussion/discussion-\*/06_REQ.md
|
|
58
|
-
- .github/instructions/principles.instructions.md
|
|
59
|
-
- Existing architecture docs and `<paths.contractsDir>/**` (default `.qfai/spec/03_contract/**`)
|
|
60
|
-
|
|
61
|
-
## Deliverables
|
|
62
|
-
|
|
63
|
-
- Architecture decisions with trade-offs
|
|
64
|
-
- Contract decisions and ownership boundaries
|
|
65
|
-
- Risks, mitigations, and non-goals
|
|
66
|
-
- Principle-based rationale for why the chosen design is simpler, necessary, and maintainable enough
|
|
67
|
-
|
|
68
|
-
## Stop conditions
|
|
69
|
-
|
|
70
|
-
- Governing specs, routing rules, or required source artifacts are missing.
|
|
71
|
-
- The requested output belongs to another specialist's ownership without an explicit handoff.
|
|
72
|
-
- The task would bypass required validation or reviewer gates.
|
|
73
|
-
- The proposed structure introduces unjustified abstraction, configuration, or extension points outside accepted scope.
|
|
74
|
-
|
|
75
|
-
## Sign-off
|
|
76
|
-
|
|
77
|
-
- [ ] Deliverables are complete
|
|
78
|
-
- [ ] Ownership boundaries were respected
|
|
79
|
-
- [ ] Required gates and follow-up evidence are recorded
|
|
80
|
-
|
|
81
|
-
## When to use
|
|
82
|
-
|
|
83
|
-
- Use when the resolved routing entry assigns this domain to the current phase.
|
|
84
|
-
- Use when the task needs this specialist's owned artifacts or decisions.
|
|
85
|
-
|
|
86
|
-
## When not to use
|
|
87
|
-
|
|
88
|
-
- Do not use when the task is primarily review-only and needs a reviewer instead.
|
|
89
|
-
- Do not use when another specialist owns the main artifact or decision surface.
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: test-design-analyst
|
|
3
|
-
description: Define test structure, coverage obligations, traceability, and
|
|
4
|
-
test-scope boundaries.
|
|
5
|
-
tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- Bash
|
|
12
|
-
kind: worker
|
|
13
|
-
domain: test-design
|
|
14
|
-
mission: Map obligations to test layers and define coverage and scope before
|
|
15
|
-
test implementation.
|
|
16
|
-
replaces:
|
|
17
|
-
- test-case-owner
|
|
18
|
-
- coverage-planner
|
|
19
|
-
- test-volume-estimator
|
|
20
|
-
- unit-test-scope-enforcer
|
|
21
|
-
owned_artifacts:
|
|
22
|
-
- coverage-plan
|
|
23
|
-
- layer-boundaries
|
|
24
|
-
tool_profile: testing
|
|
25
|
-
permission_profile: authoring
|
|
26
|
-
specialization_tags:
|
|
27
|
-
- coverage
|
|
28
|
-
- traceability
|
|
29
|
-
- test-design
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
# Test Design Analyst
|
|
33
|
-
|
|
34
|
-
## Mission
|
|
35
|
-
|
|
36
|
-
Map each active obligation to a test layer and an observable assertion. Assess
|
|
37
|
-
coverage depth before a stage claims completion.
|
|
38
|
-
|
|
39
|
-
## Domain Responsibilities
|
|
40
|
-
|
|
41
|
-
- During SDD, review BF → US → AC → EX links and BR → EX links. Read the
|
|
42
|
-
current story tree under configured `paths.specsDir`, and the contracts
|
|
43
|
-
under `paths.contractsDir` whose business rules cite its examples. Report
|
|
44
|
-
missing, ambiguous or contradictory obligations to the owning SDD stage. The
|
|
45
|
-
tests are not yet authored.
|
|
46
|
-
- During SDD, an instance that wrote none of the BRs it reads is the finder of
|
|
47
|
-
the concrete-abstract cycle, under
|
|
48
|
-
`skill/qfai-sdd/references/concrete-abstract-cycle.md`. It reads each BR whose
|
|
49
|
-
Statement or Examples cell the invocation wrote or changed, the EXs each
|
|
50
|
-
cites and the EXs the invocation wrote or changed. It raises findings of
|
|
51
|
-
five kinds against BF, US, AC and EX:
|
|
52
|
-
a case the rule implies that no example states, a redundant example, an
|
|
53
|
-
example no rule explains, a rule its examples do not support, and a flow,
|
|
54
|
-
story or criterion split the rules show to be wrong. A finding names its kind
|
|
55
|
-
and target IDs and changes no file. The finder does not raise again a finding
|
|
56
|
-
already decided, rejected, or answered by a pending or declined change
|
|
57
|
-
request, and it does not decide its own findings.
|
|
58
|
-
- Hold no review of its own at `implement-scaffold` or
|
|
59
|
-
`implement-acceptance`. Where the implement stage's one code review takes
|
|
60
|
-
this card, read the BF E2E test, the AC integration or API tests and the
|
|
61
|
-
selected EX tests for depth, and report every gap with its owner: a BF or AC with no
|
|
62
|
-
test to `implement-scaffold`, an acceptance test with an empty body to
|
|
63
|
-
`implement-acceptance`, a defective written assertion to
|
|
64
|
-
`implement-test-fix`, and an EX gap to `/qfai-implement`.
|
|
65
|
-
- Treat volume estimates as planning signals. A high count alone does not
|
|
66
|
-
make an obligation invalid.
|
|
67
|
-
|
|
68
|
-
## Layer and traceability check
|
|
69
|
-
|
|
70
|
-
Read `rule/test-layers.md` and `rule/constitution.md`. The required test
|
|
71
|
-
annotations are:
|
|
72
|
-
|
|
73
|
-
| Obligation | Layer | Annotation | Author |
|
|
74
|
-
| ---------- | ---------------------- | ---------------------- | ----------------- |
|
|
75
|
-
| BF | E2E | `QFAI:BF-NNNN` | `/qfai-implement` |
|
|
76
|
-
| AC | Integration or API | `QFAI:AC-NNNN-NNNN-NN` | `/qfai-implement` |
|
|
77
|
-
| EX | Every other test layer | `QFAI:EX-NNNN-NNNN-NN` | `/qfai-implement` |
|
|
78
|
-
|
|
79
|
-
A test must exercise behavior with a discriminating oracle. A file name,
|
|
80
|
-
annotation, scaffold or assertion that cannot fail for the requirement does
|
|
81
|
-
not establish coverage. That is a finding against a written body only: an
|
|
82
|
-
empty acceptance test `implement-scaffold` wrote waits for
|
|
83
|
-
`implement-acceptance` and is not REVISE. Confirm the runner and
|
|
84
|
-
`validation.traceability.testFileGlobs` both collect each proposed test.
|
|
85
|
-
A DONE `Test exception:` decision may resolve a declared obligation; name its
|
|
86
|
-
ID and decision in your review. Do not create a local exemption.
|
|
87
|
-
|
|
88
|
-
Score normal, error, boundary, special, state transition and combinatorial
|
|
89
|
-
cases where the active AC, EX, BR or contract makes them meaningful. A kept
|
|
90
|
-
failure is one declared by an active obligation, observed in the product or
|
|
91
|
-
required by the repository's input-safety floor. Do not invent a failure
|
|
92
|
-
case for every row. Distinguish a justified partial case from a missing
|
|
93
|
-
assertion. Resolve conflicting declarations through `rule/drift-protocol.md`
|
|
94
|
-
before a dependent stage proceeds.
|
|
95
|
-
|
|
96
|
-
## Inputs you must read
|
|
97
|
-
|
|
98
|
-
- `rule/agent-selection.md`, `rule/test-layers.md` and
|
|
99
|
-
`rule/shared-skill-delegation-baseline.md`.
|
|
100
|
-
- The selected BF, its US, AC and EX records, and the contracts whose BRs cite
|
|
101
|
-
those examples.
|
|
102
|
-
- `<paths.contractsDir>/tech.md#standard-commands-copy-paste` for the
|
|
103
|
-
project's Test, Lint, Typecheck and Build commands.
|
|
104
|
-
- The flow's acceptance tests when reviewing acceptance or implementation work.
|
|
105
|
-
- Current validation findings, test paths, selectors and observed results.
|
|
106
|
-
|
|
107
|
-
Read only what the active scope requires; follow linked obligations into
|
|
108
|
-
another flow when a shared contract changes.
|
|
109
|
-
|
|
110
|
-
## Deliverables
|
|
111
|
-
|
|
112
|
-
For SDD, return obligation mapping, layer decisions, and concrete gaps with
|
|
113
|
-
their owning stage. For acceptance tests, report the covered IDs, missing cases and oracle
|
|
114
|
-
risks. For implementation, return an EX-level review of the test layer,
|
|
115
|
-
selector and oracle.
|
|
116
|
-
|
|
117
|
-
Use PASS only when the in-scope mapping and applicable depth are supported by
|
|
118
|
-
current artifacts. Return REVISE with the ID, missing behavior and owner when
|
|
119
|
-
a required case is absent or the oracle cannot distinguish the behavior.
|
|
120
|
-
A missing upstream link stops dependent design under
|
|
121
|
-
`rule/drift-protocol.md`. Do not certify your own implementation.
|
|
122
|
-
|
|
123
|
-
## Stop conditions
|
|
124
|
-
|
|
125
|
-
Stop dependent test design when an upstream obligation is missing or
|
|
126
|
-
contradictory. Return REVISE when a required case or observable oracle is
|
|
127
|
-
missing.
|
|
128
|
-
|
|
129
|
-
## Sign-off
|
|
130
|
-
|
|
131
|
-
Name the reviewed flow, obligation IDs, test layers, findings, and the
|
|
132
|
-
evidence supporting PASS or REVISE.
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Change Request Row
|
|
2
|
-
|
|
3
|
-
Record a change request as one row in `<paths.specsDir>/decisions.md`. The row has exactly four cells: `ID`, `Content`, `Approach`, and `Status`. Do not create a separate change request file.
|
|
4
|
-
|
|
5
|
-
| ID | Content | Approach | Status |
|
|
6
|
-
| ---------- | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------ |
|
|
7
|
-
| `DEC-NNNN` | `Change request: <authorized repository-relative paths>; <conflicting fact and source reference>` | `<proposed change, reason, affected downstream work, owner rerun or validation required; approved by <who>, <when>, choosing <option>>` | `WIP` |
|
|
8
|
-
|
|
9
|
-
- Allocate `DEC-NNNN` by `.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md#id-allocation`, which also reads the IDs open pull requests add. Never reuse an ID, including a retired one.
|
|
10
|
-
- Begin `Content` with `Change request:` and name every repository-relative path the decision can change; an ID there authorizes nothing. A path mentioned only in a discussion or an alternative does not authorize an edit.
|
|
11
|
-
- Describe the actual contradiction and its source in `Content`. In `Approach`, state the proposed correction, affected work, and the gate that proves it is applied, inside the form stated at the top of `templates/spec/decisions.md`. Keep both cells concise enough to review as a table row.
|
|
12
|
-
- Append the row only once the user approves the change, at `WIP`, and record in `Approach` who approved it, when, and the option chosen. Move it to `DONE` only after the owner rerun, affected artifacts, and validation evidence are complete. Use `SUPERSEDED (by DEC-NNNN)` when a later decision replaces the row, and `PARTLY SUPERSEDED (by DEC-NNNN)` when it replaces only part of it.
|
|
13
|
-
- Append a declined change at `REJECTED`, recording in `Approach` who declined it and when. It authorizes no edit.
|
|
14
|
-
- After appending, change only `Status`, apart from the drift protocol's
|
|
15
|
-
explicit branch-added decision renumbering or published decision prefix
|
|
16
|
-
recovery. Keep inherited ID, Content and Approach fixed, and never delete a
|
|
17
|
-
row. A row the base holds at DONE authorizes nothing at any Status, so a later
|
|
18
|
-
change needs a new row. If its scope or proposed correction changes, append a
|
|
19
|
-
new decision row and supersede the old one.
|
|
20
|
-
- Keep open questions in `<paths.specsDir>/open-questions.md`. Use the same four columns there, with `OQ-NNNN` IDs and the statuses permitted by that template.
|
|
21
|
-
|
|
22
|
-
## Published decision prefix recovery
|
|
23
|
-
|
|
24
|
-
Use the same four-cell row only after actual approval covers this specific
|
|
25
|
-
recovery. Read `.qfai/assistant/rule/drift-protocol.md#published-decision-prefix-recovery`
|
|
26
|
-
for eligibility, byte boundaries, pre-write checks and stop conditions. Generic
|
|
27
|
-
protocol approval and a diagnostic suggestion do not authorize a target.
|
|
28
|
-
|
|
29
|
-
- Content names the target's repository-relative file and the unique target
|
|
30
|
-
DEC ID. Approach records the published source commit, fixed base and unique
|
|
31
|
-
common ancestor, with evidence the target is absent from the latter two and
|
|
32
|
-
the source commit is a current-HEAD ancestor.
|
|
33
|
-
- Evidence names actual supporting files. Grounds records the recovery reason,
|
|
34
|
-
actual approval authority, old and new SHA-256 Approach digests, and the exact
|
|
35
|
-
approved `- Evidence: <actual file references> - Grounds: ` prefix, including
|
|
36
|
-
its trailing space. Use actual references in place of the placeholder.
|
|
37
|
-
- The old digest matches the raw published source cell; the new digest matches
|
|
38
|
-
the prefix plus the complete original Approach. State the single-line valid
|
|
39
|
-
UTF-8 cell boundary: exclude only delimiter pipes and exactly one ASCII
|
|
40
|
-
padding space at each end. Decode no escapes and trim or normalize nothing.
|
|
41
|
-
- State that original ordered, nonempty Residual risk and Rollback items are
|
|
42
|
-
valid. Preserve ID, Content, Status, the full original suffix and every other
|
|
43
|
-
row. Record the immediate pre-write uniqueness, unchanged-cell and old-digest
|
|
44
|
-
checks, and the required existing validation without an exemption.
|
|
45
|
-
- Residual risk states the remaining observation and concurrency limits.
|
|
46
|
-
Rollback removes only the recorded prefix when the current new digest still
|
|
47
|
-
matches; otherwise it preserves the row and stops. Removal restores the
|
|
48
|
-
original validation failure. Do not reset, amend or force push.
|
|
49
|
-
|
|
50
|
-
Inherited records, open-question rows, unavailable provenance, ambiguous byte
|
|
51
|
-
boundaries, duplicate IDs, stale digests and any unapproved change stop recovery.
|
|
52
|
-
Do not fill approval or execution fields with assumed answers or planned results.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface GraphProcessResult {
|
|
2
|
-
exitCode: number;
|
|
3
|
-
stdout: string;
|
|
4
|
-
}
|
|
5
|
-
type GraphProcess = (command: string, args: readonly string[], options: {
|
|
6
|
-
cwd: string;
|
|
7
|
-
env?: NodeJS.ProcessEnv;
|
|
8
|
-
timeoutMs?: number;
|
|
9
|
-
maxBufferBytes?: number;
|
|
10
|
-
}) => Promise<GraphProcessResult>;
|
|
11
|
-
|
|
12
|
-
export type { GraphProcess as G };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface GraphProcessResult {
|
|
2
|
-
exitCode: number;
|
|
3
|
-
stdout: string;
|
|
4
|
-
}
|
|
5
|
-
type GraphProcess = (command: string, args: readonly string[], options: {
|
|
6
|
-
cwd: string;
|
|
7
|
-
env?: NodeJS.ProcessEnv;
|
|
8
|
-
timeoutMs?: number;
|
|
9
|
-
maxBufferBytes?: number;
|
|
10
|
-
}) => Promise<GraphProcessResult>;
|
|
11
|
-
|
|
12
|
-
export type { GraphProcess as G };
|