qfai 1.5.5 → 1.5.7
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 +1 -1
- package/assets/init/.qfai/assistant/instructions/agent-selection.md +13 -0
- package/assets/init/.qfai/assistant/skills/qfai-atdd/SKILL.md +8 -0
- package/assets/init/.qfai/assistant/skills/qfai-configure/SKILL.md +8 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/SKILL.md +16 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/rcp_footer.md +26 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/ui_ux_best_practices.md +1066 -0
- package/assets/init/.qfai/assistant/skills/qfai-prototyping/SKILL.md +8 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/SKILL.md +17 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/rcp_footer.md +29 -0
- package/assets/init/.qfai/assistant/skills/qfai-tdd-green/SKILL.md +8 -0
- package/assets/init/.qfai/assistant/skills/qfai-tdd-red/SKILL.md +8 -0
- package/assets/init/.qfai/assistant/skills/qfai-tdd-refactor/SKILL.md +8 -0
- package/assets/init/.qfai/assistant/skills/qfai-verify/SKILL.md +14 -0
- package/assets/init/.qfai/assistant/steering/review-gate.rules.yml +30 -1
- package/assets/init/.qfai/assistant/steering/review-roster.yml +36 -0
- package/dist/cli/index.cjs +2308 -224
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +2298 -214
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.cjs +2089 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +2089 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -250,7 +250,7 @@ flowchart LR
|
|
|
250
250
|
- Contracts SSOT: `.qfai/contracts/**`
|
|
251
251
|
- Report outputs (`.qfai/report/**`) are derived artifacts and not SSOT.
|
|
252
252
|
|
|
253
|
-
## Minimal tutorial (v1.5.
|
|
253
|
+
## Minimal tutorial (v1.5.6)
|
|
254
254
|
|
|
255
255
|
1. `npx qfai init`
|
|
256
256
|
2. Run `/qfai-discussion` to structure scope, open questions, and produce a discussion pack under `.qfai/discussion/discussion-<ts>/`.
|
|
@@ -10,6 +10,11 @@ update_frequency: occasional
|
|
|
10
10
|
|
|
11
11
|
Delegate work to specialized roles to reduce blind spots and improve quality.
|
|
12
12
|
|
|
13
|
+
## Feedback quality rule (all agents)
|
|
14
|
+
|
|
15
|
+
- Every sub-agent MUST include a concrete alternative or fix proposal when submitting FAIL verdicts or other negative feedback.
|
|
16
|
+
- Negative feedback without a concrete alternative is invalid and triggers re-judgment.
|
|
17
|
+
|
|
13
18
|
## Default delegation map
|
|
14
19
|
|
|
15
20
|
- **Researcher**: collect pre-knowledge (English sources), glossary, risks, and question angles
|
|
@@ -34,6 +39,14 @@ Delegate work to specialized roles to reduce blind spots and improve quality.
|
|
|
34
39
|
- **Runtime Gatekeeper**: runtime evidence and smoke verification
|
|
35
40
|
- **Prototyping Coverage Auditor**: detect missing spec rows and unresolved checks in prototyping coverage evidence
|
|
36
41
|
- **Doc Steward**: doc impact analysis and README/mermaid updates
|
|
42
|
+
- **Devil's Advocate (devils-advocate)**: challenge all assumptions as fundamentally wrong, provide concrete alternatives for every objection
|
|
43
|
+
- Responsibility: review under the premise that everything is wrong; use nitpicking, reductio ad absurdum, and forced analogy to present a concrete vision of the ideal state
|
|
44
|
+
- Delegation rule: executes after existing 10 reviewers (11th). FAIL must include alternative proposal. Bare negation FAIL is invalid. 3 consecutive FAILs trigger advisory demotion (current cycle only)
|
|
45
|
+
- Selection scenario: mandatory in every skill review cycle (can_be_na: false). Purpose: uncover blind spots in design, specs, and requirements
|
|
46
|
+
- **Pattern Doubler (pattern-doubler)**: demand 2x the current ID-bearing pattern count, propose concrete additions with rationale
|
|
47
|
+
- Responsibility: demand doubling of ID-bearing items (US, AC, BR, EX, TC) by identifying missing perspectives and proposing additions with justification
|
|
48
|
+
- Delegation rule: executes after devils-advocate (12th). Rationale for each proposed addition is required
|
|
49
|
+
- Selection scenario: executes in /qfai-sdd review cycles. N/A allowed only when spec pack has no ID-bearing items (can_be_na: true)
|
|
37
50
|
|
|
38
51
|
## If subagents are not supported
|
|
39
52
|
|
|
@@ -131,6 +131,14 @@ Every major artifact in this stage MUST include this fixed table schema:
|
|
|
131
131
|
- Floors/ratios are signals, not gates.
|
|
132
132
|
- `scenario.feature` and coverage ledgers are optional legacy inputs, not completion gates.
|
|
133
133
|
- Do not declare DONE until Reviewer returns `PASS`.
|
|
134
|
+
- **All reviewers: alternative proposal obligation**:
|
|
135
|
+
- Every reviewer MUST provide a concrete alternative or fix proposal when returning FAIL. Feedback without a concrete alternative is invalid and triggers re-judgment.
|
|
136
|
+
- **devils-advocate gate**:
|
|
137
|
+
- devils-advocate FAIL must include a concrete alternative proposal. Bare negation FAIL triggers re-judgment.
|
|
138
|
+
- 3 consecutive FAILs trigger advisory demotion and allow progression to the next phase.
|
|
139
|
+
- **pattern-doubler gate**:
|
|
140
|
+
- Each pattern proposed by pattern-doubler must include rationale.
|
|
141
|
+
- Artifacts with no ID-bearing items (US/AC/BR/EX/TC) are marked N/A.
|
|
134
142
|
|
|
135
143
|
### Work order template (copy/paste)
|
|
136
144
|
|
|
@@ -103,6 +103,14 @@ Every major artifact in this stage MUST include a `## Work Orders Summary` secti
|
|
|
103
103
|
- E2E/API/Integration coverage aligns with `steering/test-layers.md` and the project’s plan.
|
|
104
104
|
- Do not use pyramid ratios as a gate; use floors/ratios only as signals. Coverage obligations are the gate.
|
|
105
105
|
- Do not declare DONE or handoff until Reviewer returns `PASS`.
|
|
106
|
+
- **All reviewers: alternative proposal obligation**:
|
|
107
|
+
- Every reviewer MUST provide a concrete alternative or fix proposal when returning FAIL. Feedback without a concrete alternative is invalid and triggers re-judgment.
|
|
108
|
+
- **devils-advocate gate**:
|
|
109
|
+
- devils-advocate FAIL must include a concrete alternative proposal. Bare negation FAIL triggers re-judgment.
|
|
110
|
+
- 3 consecutive FAILs trigger advisory demotion and allow progression to the next phase.
|
|
111
|
+
- **pattern-doubler gate**:
|
|
112
|
+
- Each pattern proposed by pattern-doubler must include rationale.
|
|
113
|
+
- Artifacts with no ID-bearing items (US/AC/BR/EX/TC) are marked N/A.
|
|
106
114
|
|
|
107
115
|
### Work order template (copy/paste)
|
|
108
116
|
|
|
@@ -74,6 +74,14 @@ Every major artifact in this stage MUST include this table schema:
|
|
|
74
74
|
- Reviewer must check Drift Protocol compliance and alignment with `.qfai/assistant/steering/test-layers.md`.
|
|
75
75
|
- Test volume floors/ratios are not gates; they are risk signals.
|
|
76
76
|
- Do not declare DONE until Reviewer returns `PASS`; otherwise apply `REVISE`.
|
|
77
|
+
- **All reviewers: alternative proposal obligation**:
|
|
78
|
+
- Every reviewer MUST provide a concrete alternative or fix proposal when returning FAIL. Feedback without a concrete alternative is invalid and triggers re-judgment.
|
|
79
|
+
- **devils-advocate gate**:
|
|
80
|
+
- devils-advocate FAIL must include a concrete alternative proposal. Bare negation FAIL triggers re-judgment.
|
|
81
|
+
- 3 consecutive FAILs trigger advisory demotion and allow progression to the next phase.
|
|
82
|
+
- **pattern-doubler gate**:
|
|
83
|
+
- Each pattern proposed by pattern-doubler must include rationale.
|
|
84
|
+
- Artifacts with no ID-bearing items (US/AC/BR/EX/TC) are marked N/A.
|
|
77
85
|
|
|
78
86
|
## CRITICAL CONSTRAINTS (Read First)
|
|
79
87
|
|
|
@@ -232,6 +240,14 @@ RCP rules:
|
|
|
232
240
|
- Any `FAIL` requires return/fix/full rerun from the first reviewer.
|
|
233
241
|
- Mark fixed only when all reviewers are `PASS` or valid `N/A`.
|
|
234
242
|
- `summary.json` `target.kind` must be `"discussion"`.
|
|
243
|
+
- Execution order: existing 10 reviewers (1-10) → devils-advocate (11) → pattern-doubler (12).
|
|
244
|
+
- devils-advocate (11th):
|
|
245
|
+
- `can_be_na: false` — N/A is not allowed.
|
|
246
|
+
- FAIL must include a concrete alternative. Bare negation FAIL is invalid.
|
|
247
|
+
- 3 consecutive FAILs trigger advisory demotion (current review cycle only).
|
|
248
|
+
- pattern-doubler (12th):
|
|
249
|
+
- `can_be_na: true` — N/A is default in discussion phase as ID-bearing items are sparse.
|
|
250
|
+
- Evaluates Example Seeds count and perspective coverage.
|
|
235
251
|
|
|
236
252
|
## RCP Footer Include (MUST)
|
|
237
253
|
|
|
@@ -89,3 +89,29 @@
|
|
|
89
89
|
- 復旧: 1本でよいので、登場人物(ペルソナ)と主要分岐が分かる flowchart を入れる
|
|
90
90
|
- FAIL: pack 名が不正(latest 判定がブレる)
|
|
91
91
|
- 復旧: 不正 pack を `discussion-legacy-*` に退避し、最新 pack を timestamp 命名で作り直す
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## 拡張レビュアー
|
|
96
|
+
|
|
97
|
+
### devils-advocate(11番目)
|
|
98
|
+
|
|
99
|
+
- 役割: 全否定エージェント — 「現状すべてが間違っている」前提でレビューし、あるべき姿を提示する
|
|
100
|
+
- `can_be_na: false` — N/A は許可されない
|
|
101
|
+
- FAIL 判定時は必ず具体的代替案を提示すること。代替案なしの FAIL は無効とし、再判定を要求する
|
|
102
|
+
- 3 回連続 FAIL → アドバイザリー降格(当該レビューサイクル限定)。降格後はブロッキング力が消失し、フィードバックのみ記録する
|
|
103
|
+
- レビュー記録: `R11_devils-advocate.md`
|
|
104
|
+
|
|
105
|
+
### pattern-doubler(12番目)
|
|
106
|
+
|
|
107
|
+
- 役割: パターン倍増エージェント — discussion phase では ID 付き項目が少ないため N/A が基本
|
|
108
|
+
- `can_be_na: true` — discussion phase では Example Seeds の数と観点網羅性を評価対象とする
|
|
109
|
+
- N/A でない場合、追加パターンの根拠提示が必須
|
|
110
|
+
- レビュー記録: `R12_pattern-doubler.md`
|
|
111
|
+
|
|
112
|
+
### 代表的な FAIL と復旧(拡張レビュアー特化)
|
|
113
|
+
|
|
114
|
+
- FAIL (devils-advocate): 代替案なしの否定のみ
|
|
115
|
+
- 復旧: 具体的な「あるべき姿」と移行パスを記述させ、再判定する
|
|
116
|
+
- FAIL (devils-advocate, 3回連続): 無限ループ検知
|
|
117
|
+
- 復旧: アドバイザリー降格を記録し、devils-advocate のフィードバックを advisory として保存。次フェーズに進行する
|