qfai 1.9.2 → 1.10.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.
- package/README.md +67 -6
- package/assets/init/.qfai/assistant/README.md +27 -0
- package/assets/init/.qfai/assistant/agents/acceptance-test-engineer.md +1 -0
- package/assets/init/.qfai/assistant/agents/backend-engineer.md +1 -0
- package/assets/init/.qfai/assistant/agents/completion-reviewer.md +29 -2
- package/assets/init/.qfai/assistant/agents/delivery-planner.md +17 -0
- package/assets/init/.qfai/assistant/agents/frontend-engineer.md +1 -0
- package/assets/init/.qfai/assistant/agents/implementation-reviewer.md +17 -0
- package/assets/init/.qfai/assistant/agents/orchestrator.md +2 -2
- package/assets/init/.qfai/assistant/agents/qa-gatekeeper.md +183 -5
- package/assets/init/.qfai/assistant/agents/test-design-analyst.md +22 -3
- package/assets/init/.qfai/assistant/catalog/cli-ux-guidelines.md +2 -2
- package/assets/init/.qfai/assistant/catalog/spec_required_files.json +2 -1
- package/assets/init/.qfai/assistant/catalog/test-layers-ci-lanes.md +60 -0
- package/assets/init/.qfai/assistant/catalog/test-layers.md +430 -13
- package/assets/init/.qfai/assistant/catalog/worklog-entry.schema.md +165 -0
- package/assets/init/.qfai/assistant/constitution/communication.md +1 -1
- package/assets/init/.qfai/assistant/constitution/constitution.md +1 -1
- package/assets/init/.qfai/assistant/constitution/drift-protocol.md +359 -10
- package/assets/init/.qfai/assistant/constitution/quality.md +35 -5
- package/assets/init/.qfai/assistant/constitution/requirements-decomposition.md +37 -0
- package/assets/init/.qfai/assistant/constitution/shared-skill-delegation-baseline.md +419 -8
- package/assets/init/.qfai/assistant/constitution/shared-skill-operating-baseline.md +122 -5
- package/assets/init/.qfai/assistant/constitution/workflow.md +53 -7
- package/assets/init/.qfai/assistant/manifest/agent-catalog.yml +439 -946
- package/assets/init/.qfai/assistant/manifest/agent-routing.yml +116 -4
- package/assets/init/.qfai/assistant/manifest/review-profiles.yml +9 -0
- package/assets/init/.qfai/assistant/process/migrations/v1.4.27-atdd-alignment.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-atdd/SKILL.md +150 -53
- package/assets/init/.qfai/assistant/skills/qfai-atdd/references/credential-reuse.md +146 -0
- package/assets/init/.qfai/assistant/skills/qfai-atdd/references/red-provenance.md +456 -0
- package/assets/init/.qfai/assistant/skills/qfai-atdd/references/review-fix-rounds.md +128 -0
- package/assets/init/.qfai/assistant/skills/qfai-atdd/references/scaffolding.md +29 -0
- package/assets/init/.qfai/assistant/skills/qfai-atdd/references/shared-test-artifacts.md +96 -0
- package/assets/init/.qfai/assistant/skills/qfai-atdd/references/stale-manifest.md +34 -0
- package/assets/init/.qfai/assistant/skills/qfai-atdd/references/test-case-depth-checklist.md +52 -5
- package/assets/init/.qfai/assistant/skills/qfai-configure/SKILL.md +16 -8
- package/assets/init/.qfai/assistant/skills/qfai-discussion/SKILL.md +8 -4
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/design-md-brand-catalog.md +2 -2
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/discussion-completion-matrix.md +17 -7
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/rcp_footer.md +10 -4
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/review-cycle-playbook.md +5 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/ui-bearing-playbook.md +4 -4
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/ui_ux/review_audit_playbook.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/ui_ux/trend_scan_playbook.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/ui_ux_best_practices.md +17 -7
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/01_Context.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/02_Inception-Deck.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/03_Story-Workshop.md +11 -3
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/05_Scope.md +5 -2
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/07_NFR.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/09_Constraints.md +7 -4
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/10_Policy.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/11_OQ-Register.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/12_OQ-Resolution-Log.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/14_Review-Request.md +14 -7
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/99_delta.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/review/Rxx_reviewer.md +16 -7
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/review/review_request.md +9 -6
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/review/summary.json +2 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/uiux/40_screen_contracts.md +3 -2
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/uiux/50_review_input_bundle.md +4 -2
- package/assets/init/.qfai/assistant/skills/qfai-implement/SKILL.md +252 -130
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/change-request-reset.md +93 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/checkpoint-verification.md +210 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/cross-spec-ownership.md +73 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/evidence-revision.md +291 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/execution-ledger.md +389 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/final-checklist.md +28 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/finding-classification.md +49 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/ledger-preconditions.md +55 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/oracle-strength.md +81 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/parallelization-policy.md +235 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/red-admissibility.md +91 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/red-not-observable.md +112 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/relevant-test-suite.md +87 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/review-artifact-layout.md +44 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/round-evidence.md +118 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/selector-granularity.md +24 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/upstream-artifact-ordering.md +33 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/references/volume-policy.md +149 -0
- package/assets/init/.qfai/assistant/skills/qfai-prototyping/SKILL.md +35 -18
- package/assets/init/.qfai/assistant/skills/qfai-prototyping/references/evidence-requirements.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-prototyping/references/generator-prompt.md +106 -7
- package/assets/init/.qfai/assistant/skills/qfai-prototyping/references/handoff.md +40 -11
- package/assets/init/.qfai/assistant/skills/qfai-prototyping/references/iteration-loop.md +48 -1
- package/assets/init/.qfai/assistant/skills/qfai-prototyping/templates/DESIGN.md.sample +6 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/SKILL.md +87 -22
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/contract-artifact-rules.md +148 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/rcp_footer.md +10 -4
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/review-cycle-playbook.md +5 -1
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/sdd-execution-playbook.md +4 -2
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/sdd-phase-checklists.md +18 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/sdd-quality-gate.md +44 -3
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/sdd-triage.md +60 -7
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/spec-traceability-rules.md +171 -6
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/change-request.md +125 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/contracts/db-contract.sample.sql +6 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/evidence/sdd-spec.md +92 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/_policies/01_Objective.md +27 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/_policies/02_Initiative.md +30 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/_policies/05_Contracts.md +16 -6
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/_policies/06_Glossary.md +19 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/_policies/07_Constraints.md +25 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/_policies/08_Decisions.md +22 -2
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/_policies/11_Slice-Policy.md +37 -10
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/spec/02_User-stories.md +20 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/spec/03_Acceptance-Criteria.md +19 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/spec/04_Business-Rules.md +32 -3
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/spec/06_Test-Cases.md +56 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/spec/07_Decisions.md +29 -2
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/spec/10_Plan.md +41 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/spec/16_Traceability-ledger.md +58 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/templates/specs/spec/tdd/test-list.md +56 -0
- package/assets/init/.qfai/assistant/skills/qfai-verify/SKILL.md +57 -102
- package/assets/init/.qfai/assistant/skills/qfai-verify/references/articles.md +24 -0
- package/assets/init/.qfai/assistant/skills/qfai-verify/references/context-load.md +22 -0
- package/assets/init/.qfai/assistant/skills/qfai-verify/references/verify-output-contract.md +48 -0
- package/assets/init/.qfai/assistant/skills/qfai-verify/templates/verify-evidence.md +48 -0
- package/assets/init/.qfai/assistant/skills/web-research/SKILL.md +25 -7
- package/assets/init/.qfai/waivers.yml +11 -5
- package/assets/init/root/.github/workflows/qfai-tests.yml +318 -0
- package/assets/init/root/.github/workflows/qfai-validate.yml +327 -24
- package/assets/init/root/DESIGN.md +6 -0
- package/assets/init/root/qfai.config.yaml +15 -12
- package/dist/cli/index.cjs +20646 -13620
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +22101 -15061
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.cjs +13954 -8829
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +423 -14
- package/dist/index.d.ts +423 -14
- package/dist/index.mjs +9330 -4224
- package/dist/index.mjs.map +1 -1
- package/package.json +22 -19
|
@@ -53,14 +53,28 @@ When unsure, read inputs in this order:
|
|
|
53
53
|
|
|
54
54
|
- P1: `.qfai/assistant/constitution/*`
|
|
55
55
|
- P2: `.qfai/assistant/manifest/*` + `.qfai/assistant/catalog/*`
|
|
56
|
-
- P3: `.qfai/specs/<spec-id>/
|
|
56
|
+
- P3: `.qfai/specs/<spec-id>/07_Decisions.md` + `.qfai/specs/_policies/08_Decisions.md` (Decision Records, `DR-*`; if no spec yet, state "not applicable")
|
|
57
57
|
- P4: other artifacts (01_Spec.md, contracts, evidence, optional legacy `scenario.feature` / coverage ledgers)
|
|
58
58
|
|
|
59
59
|
## Verify Scope Rule (Mandatory)
|
|
60
60
|
|
|
61
|
-
- `/qfai-verify` MUST always run full-scan verification
|
|
61
|
+
- `/qfai-verify` MUST always run full-scan verification **within the declared scope**.
|
|
62
62
|
- Do NOT use Preflight Diff (or any diff-only shortcut) in this skill.
|
|
63
63
|
- Preserve the verify-as-safety-gate intent: verify must not be reduced to incremental checks.
|
|
64
|
+
- "Full-scan" means every gate that applies to the current stage, not every gate in the repository regardless of stage. Each scope names the profile that produces it, and they must match — a `full`-profile run is recorded as `scope: "full"` whatever stage triggered it.
|
|
65
|
+
- **Prototyping carve-out (local only — see "Mandatory checks": CI rejects narrow profiles).** When `/qfai-verify` is invoked to satisfy the prototyping DONE gate — i.e. Work Order H of `/qfai-prototyping`, before `npx qfai prototyping certify` — the scope is `prototyping`, and the validate run is `npx qfai validate --profile prototyping --fail-on error`. This is NOT a diff-only shortcut and NOT a waiver: it is the phase-isolation contract the certify gate enforces (`prototypingCertify.ts` accepts only `scope="prototyping"`, and `reviewerGate.ts` raises `R-CERTIFY-VERIFY-CIRCULAR` at severity `error` when a `verify.json` carrying `atdd` / `full` / `implement` is present while a prototyping loop is active). A `full` run at that point necessarily fails `QFAI-ATDD-111/112/113`, which are obligations of stage 5 (`/qfai-atdd`) — a stage that has not run yet. Do not clear them with annotation-only tests; declare the prototyping scope instead.
|
|
66
|
+
|
|
67
|
+
## Verify Output Contract — `.qfai/output/verify.json`
|
|
68
|
+
|
|
69
|
+
`/qfai-verify` MUST write `.qfai/output/verify.json` at the end of the run: it is
|
|
70
|
+
the machine-readable verdict, and `.qfai/evidence/verify-<spec-id>.md` does not
|
|
71
|
+
replace it. `status` is `"PASS"` only when every gate in scope passed, and
|
|
72
|
+
`scope` names the stage this run actually covered — never a stage you did not
|
|
73
|
+
run.
|
|
74
|
+
|
|
75
|
+
The field table, the closed `scope` enum, the conforming example and the rules
|
|
76
|
+
on what must never be written are in `references/verify-output-contract.md`.
|
|
77
|
+
Read it before writing the file.
|
|
64
78
|
|
|
65
79
|
## Sub-agent Delegation (MANDATORY)
|
|
66
80
|
|
|
@@ -77,7 +91,7 @@ Follow `.qfai/assistant/constitution/shared-skill-delegation-baseline.md`.
|
|
|
77
91
|
### Delegation Failure (Hard Stop)
|
|
78
92
|
|
|
79
93
|
- No additional overrides.
|
|
80
|
-
- Do not simulate roles.
|
|
94
|
+
- Do not simulate roles. Classify the failure per the baseline taxonomy first: `unavailable` stops the stage with a remediation report; `saturated` uses the bounded retry branch and keeps the stage open.
|
|
81
95
|
|
|
82
96
|
### Work Orders Summary (MANDATORY evidence)
|
|
83
97
|
|
|
@@ -95,8 +109,8 @@ Use the shared schema.
|
|
|
95
109
|
- Follow `.qfai/assistant/constitution/shared-skill-delegation-baseline.md#reviewer-gate-baseline`.
|
|
96
110
|
- Reviewer checks:
|
|
97
111
|
- required roles were delegated;
|
|
98
|
-
- validate evidence exists: `qfai validate --profile verify --fail-on error` completed with `error=0
|
|
99
|
-
- per-iter evidence (screenshot + HTML + review.json) exists under `.qfai/evidence/prototyping/iter-NN/`, and the recorded final iteration in `.qfai/evidence/prototyping/prototyping.json#iterations[]` has both screenshot and HTML on disk. The completion-certificate is NOT a verify-gate input — `qfai prototyping certify` runs AFTER `/qfai-verify` (it requires a passing `verify.json`). Cert digest validation belongs to `certify --check`, run during the prototyping handoff or after edits to brand assets, not here;
|
|
112
|
+
- validate evidence exists: `npx qfai validate --profile verify --fail-on error` completed with `error=0` — for a `scope: "prototyping"` run this is `npx qfai validate --profile prototyping --fail-on error` instead, per the prototyping carve-out in "Verify Scope Rule". Requiring the `verify` profile here would reinstate the circular gate: it fails `QFAI-ATDD-111/112/113`, so no reviewer could return PASS before `/qfai-atdd` has run;
|
|
113
|
+
- per-iter evidence (screenshot + HTML + review.json) exists under `.qfai/evidence/prototyping/iter-NN/`, and the recorded final iteration in `.qfai/evidence/prototyping/prototyping.json#iterations[]` has both screenshot and HTML on disk. The completion-certificate is NOT a verify-gate input — `npx qfai prototyping certify` runs AFTER `/qfai-verify` (it requires a passing `verify.json`, which `/qfai-verify` writes to the canonical `.qfai/report/verify.json`). Cert digest validation belongs to `certify --check`, run during the prototyping handoff or after edits to brand assets, not here;
|
|
100
114
|
- Drift Protocol enforced;
|
|
101
115
|
- test-layer policy enforced against `test-layers.md`.
|
|
102
116
|
- gate counts and ratios are signals, not gates.
|
|
@@ -115,7 +129,7 @@ Use the shared template.
|
|
|
115
129
|
|
|
116
130
|
Use the shared template.
|
|
117
131
|
|
|
118
|
-
- Required field: `Status (PASS/REVISE)`.
|
|
132
|
+
- Required field: `Status (PASS/REVISE/PENDING)`. `PENDING` marks a gate that could not be run (see the baseline's reviewer-budget branch); it never counts as `PASS`.
|
|
119
133
|
|
|
120
134
|
## Stage 0 — Steering completion refresh (mandatory)
|
|
121
135
|
|
|
@@ -131,9 +145,11 @@ Follow `.qfai/assistant/constitution/shared-skill-operating-baseline.md#delta-re
|
|
|
131
145
|
- You MUST produce the required evidence file: `.qfai/evidence/verify-<spec-id>.md`.
|
|
132
146
|
- `.qfai/evidence/` is intentionally NOT tracked by Git (it ships with a local `.gitignore`).
|
|
133
147
|
- Do NOT commit evidence files; summarize key outcomes in the PR description instead.
|
|
148
|
+
- You MUST write `.qfai/output/verify.json` per "Verify Output Contract" above. Downstream gates read that file, not the evidence markdown.
|
|
134
149
|
- You MUST run the mandatory checks listed below and record outcomes.
|
|
135
|
-
-
|
|
150
|
+
- **This** gate is full-scan, in CI and everywhere else: `npx qfai validate --profile verify --fail-on error`, or the default `npx qfai validate --fail-on error`. A partial profile does not satisfy it, and no waiver or environment makes it satisfy it. That is a statement about the verification gate, not a ban on narrow profiles in CI: `qfai-discussion`, `qfai-prototyping` and `qfai-atdd` each define a narrow profile as their own stage gate, those runs are legitimate under `CI=true`, and `QFAI-VALIDATE-017` (`warning`) marks them as not-full-scan rather than blocking them. The prototyping carve-out below is a local, pre-`certify` run.
|
|
136
151
|
- Waivers are only for `warning` / `info` findings. If a waiver attempts to suppress an `error`, treat it as a failure and fix the root cause.
|
|
152
|
+
- A waiver's `rule:` is the finding's `code`, copied verbatim from `.qfai/report/validate.json` — `QFAI-ATDD-112`, `TDDLIST_UNKNOWN_LEVEL`, `E_TC_ORPHAN`. Do not strip the `QFAI-` prefix; the stripped form is a back-compat alias only.
|
|
137
153
|
- You MUST stop and escalate if any gate fails without an actionable fix list.
|
|
138
154
|
- Completion must be approved by a reviewer who did not run the gates.
|
|
139
155
|
|
|
@@ -149,11 +165,12 @@ Run quality gates and produce evidence that the change is correct and safe.
|
|
|
149
165
|
## Success Criteria (Definition of Done)
|
|
150
166
|
|
|
151
167
|
- Repo quality gates PASS (format/lint/type/test/build/etc).
|
|
152
|
-
- QFAI checks PASS (at minimum: `qfai validate --profile verify`,
|
|
168
|
+
- QFAI checks PASS (at minimum: `npx qfai validate --profile verify`, or `--profile prototyping` for a `scope: "prototyping"` run; optionally `npx qfai report`).
|
|
153
169
|
- Declared screens have mandatory screenshot and HTML evidence.
|
|
154
170
|
- A concise evidence summary exists (copy‑paste for PR).
|
|
155
171
|
- The PR-ready summary includes **Change Classification (Primary/Tags)** per `.qfai/assistant/constitution/change-classification.md`.
|
|
156
172
|
- Evidence file exists: `.qfai/evidence/verify-<spec-id>.md`.
|
|
173
|
+
- Verdict file exists: `.qfai/output/verify.json`, with `status` and `scope` set per "Verify Output Contract".
|
|
157
174
|
- Completion is approved by a reviewer who did not run the gates.
|
|
158
175
|
|
|
159
176
|
## Mandatory checks
|
|
@@ -172,28 +189,15 @@ Run quality gates and produce evidence that the change is correct and safe.
|
|
|
172
189
|
|
|
173
190
|
## Non‑Negotiable Principles (QFAI Articles)
|
|
174
191
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
If there is a conflict between code and spec, treat the spec as authoritative and either (a) fix code or (b) raise an explicit Open Question to change the spec.
|
|
179
|
-
|
|
180
|
-
2. **Traceability is mandatory**
|
|
181
|
-
Every meaningful change must be traceable: **Require → Spec → Scenario → Tests → Code → Verification evidence**.
|
|
182
|
-
|
|
183
|
-
3. **Evidence over confidence**
|
|
184
|
-
Prefer observable proof (logs, commands, file diffs, test results). If you cannot verify, say so and record it.
|
|
185
|
-
|
|
186
|
-
4. **Minimize scope, but never hide gaps**
|
|
187
|
-
Keep changes minimal, but do not “paper over” missing decisions. If something blocks correctness, stop and ask.
|
|
188
|
-
|
|
189
|
-
5. **Quality gates are the decision mechanism**
|
|
190
|
-
Use tests/lint/typecheck/build/pack verification (whatever the repo defines) as the primary guardrail. Fix until PASS.
|
|
192
|
+
Seven articles bind every run: spec is authoritative over code, traceability is
|
|
193
|
+
mandatory, evidence beats confidence, scope stays minimal but gaps stay visible,
|
|
194
|
+
outputs are runnable, and only truly blocking questions reach the user.
|
|
191
195
|
|
|
192
|
-
|
|
193
|
-
|
|
196
|
+
Quality gates are the decision mechanism — tests, lint, typecheck, build and
|
|
197
|
+
pack verification, whatever the repo defines. Fix until PASS.
|
|
194
198
|
|
|
195
|
-
|
|
196
|
-
|
|
199
|
+
The articles are stated in full, with what each one forbids, in
|
|
200
|
+
`references/articles.md`.
|
|
197
201
|
|
|
198
202
|
## README Rule
|
|
199
203
|
|
|
@@ -258,26 +262,12 @@ Every 5 major actions, pause and restate:
|
|
|
258
262
|
|
|
259
263
|
## Step 0 — Load Context (always)
|
|
260
264
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
- `.qfai/assistant/catalog/product.md`
|
|
265
|
-
- any additional files under `.qfai/assistant/{manifest,catalog}/`
|
|
265
|
+
Read the project steering, the constitution, the artifacts for the current work
|
|
266
|
+
item, and the repo's own conventions before anything else. The file-by-file
|
|
267
|
+
reading list is in `references/context-load.md`.
|
|
266
268
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
- `.qfai/assistant/constitution/workflow.md` (or equivalent)
|
|
270
|
-
|
|
271
|
-
3. Read existing artifacts for the current work item (if present):
|
|
272
|
-
- `.qfai/specs/spec-*/`
|
|
273
|
-
- `.qfai/contracts/`
|
|
274
|
-
- `.qfai/evidence/`
|
|
275
|
-
|
|
276
|
-
Do not use discussion-pack artifacts as verification inputs. Verify reads normalized specs, contracts, and evidence only.
|
|
277
|
-
|
|
278
|
-
4. Inspect repo conventions:
|
|
279
|
-
- package manager (pnpm/npm/yarn), test runner, lint/typecheck scripts, CI definitions
|
|
280
|
-
- existing test patterns (unit/integration/e2e)
|
|
269
|
+
Do not use discussion-pack artifacts as verification inputs. Verify reads
|
|
270
|
+
normalized specs, contracts, and evidence only.
|
|
281
271
|
|
|
282
272
|
## Step 0 — Project Analysis (mandatory)
|
|
283
273
|
|
|
@@ -295,7 +285,7 @@ If analysis cannot be performed, clearly state what could not be verified and pr
|
|
|
295
285
|
|
|
296
286
|
## Step 0.5 — Steering Bootstrap / Refresh (mandatory when incomplete)
|
|
297
287
|
|
|
298
|
-
QFAI expects `assistant/
|
|
288
|
+
QFAI expects `assistant/catalog/` to contain **project‑specific facts** so all subsequent design/test/implementation fits this repository.
|
|
299
289
|
|
|
300
290
|
### What to do
|
|
301
291
|
|
|
@@ -337,12 +327,12 @@ If unknown, propose defaults and mark assumptions.
|
|
|
337
327
|
|
|
338
328
|
Run (adjust as needed):
|
|
339
329
|
|
|
340
|
-
- `qfai validate --profile verify --fail-on error`
|
|
341
|
-
- `qfai report` (if used in this repo)
|
|
330
|
+
- `npx qfai validate --profile verify --fail-on error` — or `npx qfai validate --profile prototyping --fail-on error` when this run's scope is `prototyping`
|
|
331
|
+
- `npx qfai report` (if used in this repo)
|
|
342
332
|
|
|
343
333
|
Notes:
|
|
344
334
|
|
|
345
|
-
- CI must run default/full validation only. Partial profiles are local skill checks only.
|
|
335
|
+
- CI must run default/full validation only. Partial profiles are local skill checks only. The `prototyping` scope is the one exception, and it is a stage carve-out rather than a shortcut — see "Verify Scope Rule".
|
|
346
336
|
- If `QFAI-WAIVER-002` appears, remove the invalid waiver and resolve the underlying `error` finding.
|
|
347
337
|
|
|
348
338
|
Capture:
|
|
@@ -392,56 +382,15 @@ Output this format:
|
|
|
392
382
|
|
|
393
383
|
## Evidence (MANDATORY)
|
|
394
384
|
|
|
395
|
-
Create and update
|
|
396
|
-
|
|
397
|
-
Evidence must include:
|
|
385
|
+
Create and update `.qfai/evidence/verify-<spec-id>.md`. Evidence must include:
|
|
398
386
|
|
|
399
387
|
- command list + pass/fail + next actions
|
|
400
388
|
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
- Objective
|
|
404
|
-
- Inputs reviewed (files/paths)
|
|
405
|
-
- Decisions made (with rationale)
|
|
406
|
-
- Work performed (what changed, where)
|
|
407
|
-
- Commands executed + key outputs
|
|
408
|
-
- Gaps / Open risks (must be explicit; "none" is acceptable if justified)
|
|
409
|
-
- Final status (PASS/FAIL) + who confirmed
|
|
410
|
-
|
|
411
|
-
### Template
|
|
412
|
-
|
|
413
|
-
```md
|
|
414
|
-
# Verify Evidence: <spec-id>
|
|
389
|
+
Never a status-only claim.
|
|
415
390
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
## Decisions made (with rationale)
|
|
421
|
-
|
|
422
|
-
## Work performed (what changed, where)
|
|
423
|
-
|
|
424
|
-
## Commands executed + key outputs
|
|
425
|
-
|
|
426
|
-
- command:
|
|
427
|
-
- result:
|
|
428
|
-
|
|
429
|
-
## QFAI gates
|
|
430
|
-
|
|
431
|
-
- command:
|
|
432
|
-
- result:
|
|
433
|
-
|
|
434
|
-
## Repo gates
|
|
435
|
-
|
|
436
|
-
- command:
|
|
437
|
-
- result:
|
|
438
|
-
|
|
439
|
-
## Next actions (if any)
|
|
440
|
-
|
|
441
|
-
## Gaps / Open risks
|
|
442
|
-
|
|
443
|
-
## Final status (PASS/FAIL) + who confirmed
|
|
444
|
-
```
|
|
391
|
+
The required section list and the copy/paste skeleton are in
|
|
392
|
+
`templates/verify-evidence.md`. Every section is required; "none" with a
|
|
393
|
+
justification is an acceptable value, deleting the heading is not.
|
|
445
394
|
|
|
446
395
|
## Completion Criteria (Final Gate)
|
|
447
396
|
|
|
@@ -450,9 +399,14 @@ Evidence must include:
|
|
|
450
399
|
1. QFAI validation:
|
|
451
400
|
|
|
452
401
|
```bash
|
|
453
|
-
qfai validate --profile verify --fail-on error
|
|
402
|
+
npx qfai validate --profile verify --fail-on error
|
|
454
403
|
```
|
|
455
404
|
|
|
405
|
+
For a `scope: "prototyping"` run, this gate is
|
|
406
|
+
`npx qfai validate --profile prototyping --fail-on error` instead. The `verify`
|
|
407
|
+
profile is not achievable before `/qfai-atdd` has run — see the prototyping
|
|
408
|
+
carve-out in "Verify Scope Rule".
|
|
409
|
+
|
|
456
410
|
2. Repository standard gates (discover from package.json/CI/docs):
|
|
457
411
|
- format check
|
|
458
412
|
- lint
|
|
@@ -469,9 +423,10 @@ If you cannot run these commands (environment limitation):
|
|
|
469
423
|
|
|
470
424
|
## Output
|
|
471
425
|
|
|
472
|
-
-
|
|
426
|
+
- `.qfai/output/verify.json` — the machine-readable verdict (`status` + `scope`), per "Verify Output Contract". Downstream gates read this file.
|
|
427
|
+
- `.qfai/evidence/verify-<spec-id>.md` — the human-readable evidence summary with all gate results
|
|
473
428
|
- All gates: PASS confirmed
|
|
474
|
-
- Next action suggestion: proceed to PR creation (use your platform workflow)
|
|
429
|
+
- Next action suggestion: proceed to PR creation (use your platform workflow), or — for a `scope: "prototyping"` run — proceed to `npx qfai prototyping certify`
|
|
475
430
|
|
|
476
431
|
## DONE Declaration (Mandatory Output)
|
|
477
432
|
|
|
@@ -506,7 +461,7 @@ When this skill is complete, provide a final user-facing completion message and
|
|
|
506
461
|
- Any gate failed:
|
|
507
462
|
Action: return to the owning skill, fix the issue, then rerun `/qfai-verify`.
|
|
508
463
|
- Need a report artifact:
|
|
509
|
-
Action: run `qfai report` after validation outputs are up to date.
|
|
464
|
+
Action: run `npx qfai report` after validation outputs are up to date.
|
|
510
465
|
|
|
511
466
|
## Default Autopilot Policy
|
|
512
467
|
|
|
@@ -532,5 +487,5 @@ A skill MAY narrow the auto-decide bucket (drop entries) but MUST NOT widen it.
|
|
|
532
487
|
project_memory:
|
|
533
488
|
|
|
534
489
|
- Verify is the full-scan approval gate; per-skill validate runs (sdd/atdd/tdd) are signals, the verify gate is the binding pass.
|
|
535
|
-
- Completion requires zero errors across
|
|
490
|
+
- Completion requires zero errors across every profile in the declared scope AND zero leakage in the distributed-surface guard AND a clean branch version pin. A `scope: "prototyping"` run's scope is the `prototyping` profile only; stage-5 obligations (QFAI-ATDD-111/112/113) belong to the later `atdd` / `full` run.
|
|
536
491
|
- Verify never rewrites artifacts; it only reads and reports. Drift fixes belong to /qfai-sdd / /qfai-implement / /qfai-atdd respectively.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Non‑Negotiable Principles (QFAI Articles)
|
|
2
|
+
|
|
3
|
+
These principles are inspired by “constitution / articles” patterns used by other agent frameworks, but adapted to QFAI.
|
|
4
|
+
|
|
5
|
+
1. **SDD First (Specification is the source of truth)**
|
|
6
|
+
If there is a conflict between code and spec, treat the spec as authoritative and either (a) fix code or (b) raise an explicit Open Question to change the spec.
|
|
7
|
+
|
|
8
|
+
2. **Traceability is mandatory**
|
|
9
|
+
Every meaningful change must be traceable: **Require → Spec → Scenario → Tests → Code → Verification evidence**.
|
|
10
|
+
|
|
11
|
+
3. **Evidence over confidence**
|
|
12
|
+
Prefer observable proof (logs, commands, file diffs, test results). If you cannot verify, say so and record it.
|
|
13
|
+
|
|
14
|
+
4. **Minimize scope, but never hide gaps**
|
|
15
|
+
Keep changes minimal, but do not “paper over” missing decisions. If something blocks correctness, stop and ask.
|
|
16
|
+
|
|
17
|
+
5. **Quality gates are the decision mechanism**
|
|
18
|
+
Use tests/lint/typecheck/build/pack verification (whatever the repo defines) as the primary guardrail. Fix until PASS.
|
|
19
|
+
|
|
20
|
+
6. **Make it runnable**
|
|
21
|
+
Outputs must be executable in terminal/CI. Provide copy‑paste commands.
|
|
22
|
+
|
|
23
|
+
7. **User time is expensive**
|
|
24
|
+
Ask only the questions that are truly blocking. Everything else: make reasonable assumptions and label them clearly.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Step 0 — Load context
|
|
2
|
+
|
|
3
|
+
1. Read relevant **project steering** (if present):
|
|
4
|
+
- `.qfai/assistant/catalog/structure.md`
|
|
5
|
+
- `.qfai/assistant/catalog/tech.md`
|
|
6
|
+
- `.qfai/assistant/catalog/product.md`
|
|
7
|
+
- any additional files under `.qfai/assistant/{manifest,catalog}/`
|
|
8
|
+
|
|
9
|
+
2. Read **project constitution / instructions** (if present):
|
|
10
|
+
- `.qfai/assistant/constitution/constitution.md`
|
|
11
|
+
- `.qfai/assistant/constitution/workflow.md` (or equivalent)
|
|
12
|
+
|
|
13
|
+
3. Read existing artifacts for the current work item (if present):
|
|
14
|
+
- `.qfai/specs/spec-*/`
|
|
15
|
+
- `.qfai/contracts/`
|
|
16
|
+
- `.qfai/evidence/`
|
|
17
|
+
|
|
18
|
+
Do not use discussion-pack artifacts as verification inputs. Verify reads normalized specs, contracts, and evidence only.
|
|
19
|
+
|
|
20
|
+
4. Inspect repo conventions:
|
|
21
|
+
- package manager (pnpm/npm/yarn), test runner, lint/typecheck scripts, CI definitions
|
|
22
|
+
- existing test patterns (unit/integration/e2e)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Verify Output Contract — `.qfai/output/verify.json`
|
|
2
|
+
|
|
3
|
+
`/qfai-verify` MUST write `.qfai/output/verify.json` at the end of the run. This file is the machine-readable verdict; `.qfai/evidence/verify-<spec-id>.md` remains the human-readable evidence and does not replace it. Two independent readers consume it — `npx qfai prototyping certify` and the `R-CERTIFY-VERIFY-CIRCULAR` validator. Only `certify` fails closed: it refuses to seal a certificate when the file is missing, unparseable, or not `status: "PASS"` with `scope: "prototyping"`. The validator is advisory in the other direction — a missing, unparseable, scope-less or unknown-scope `verify.json` produces no finding (`reviewerGate.ts#detectCertifyVerifyCircular`), because its job is to catch a _wrong-phase_ verdict, not to demand that one exist. So an absent `verify.json` will not fail `npx qfai validate`; it will stop `certify`.
|
|
4
|
+
|
|
5
|
+
Canonical path: `.qfai/output/verify.json` (NOT `.qfai/evidence/`). Create the `.qfai/output/` directory if absent.
|
|
6
|
+
|
|
7
|
+
| Field | Type | Required | Meaning |
|
|
8
|
+
| ------------ | ---------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
9
|
+
| `status` | string | yes | `"PASS"` when every gate in scope passed; `"FAIL"` otherwise. Only `"PASS"` satisfies a downstream gate. |
|
|
10
|
+
| `scope` | string | yes\* | Which stage's gate set this run covers. See the enum below. \*Required on every new run. `certify` still accepts a file written before this field existed, so a reader MUST treat absence as "legacy file", never as a licence to omit it. |
|
|
11
|
+
| `specId` | string | no | The spec this run targeted, when scoped to one (e.g. `"spec-0001"`). |
|
|
12
|
+
| `recordedAt` | ISO-8601 string | no | When the run completed. |
|
|
13
|
+
| `summary` | string | no | One or two sentences an operator can read without opening the evidence markdown. |
|
|
14
|
+
| `gates` | array of objects | no | Per-gate results: `{ name, status, command }`. Advisory; no reader gates on it today. |
|
|
15
|
+
|
|
16
|
+
`status` is a closed two-value enum: `"PASS"` / `"FAIL"`. There is no `"WARN"` — a run with only `warning` / `info` findings is `"PASS"` (waivers apply to those severities only). Any `error` finding makes it `"FAIL"`.
|
|
17
|
+
|
|
18
|
+
`scope` is a closed enum. Write the one that matches the stage you were invoked for:
|
|
19
|
+
|
|
20
|
+
| `scope` | Written by | validate profile | Accepted by |
|
|
21
|
+
| ------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
22
|
+
| `prototyping` | Work Order H of `/qfai-prototyping`, before `certify` | `npx qfai validate --profile prototyping` | `npx qfai prototyping certify` — this is the ONLY value it accepts |
|
|
23
|
+
| `atdd` | after `/qfai-atdd`, checking ATDD obligations only | `npx qfai validate --profile atdd` | rejected by prototyping certify; `R-CERTIFY-VERIFY-CIRCULAR` when a prototyping loop is still active |
|
|
24
|
+
| `full` | any whole-repository run, including the one after `/qfai-atdd` or `/qfai-implement` | `npx qfai validate --profile verify` (= `full`) | same as `atdd` |
|
|
25
|
+
|
|
26
|
+
There is no `implement` value: the enum is closed at these three, and a run after
|
|
27
|
+
`/qfai-implement` is recorded as `full`. (`reviewerGate.ts` still recognises a
|
|
28
|
+
legacy `implement` string so an old file is not silently treated as
|
|
29
|
+
prototyping-scoped, but nothing accepts it as a verdict — do not write it.)
|
|
30
|
+
|
|
31
|
+
Minimal conforming example for the prototyping gate:
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"status": "PASS",
|
|
36
|
+
"scope": "prototyping",
|
|
37
|
+
"specId": "spec-0001",
|
|
38
|
+
"recordedAt": "2026-01-31T09:12:44Z",
|
|
39
|
+
"summary": "Prototyping gates passed: validate --profile prototyping error=0, per-iter evidence present for all declared screens, reviewer gate PASS."
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Rules:
|
|
44
|
+
|
|
45
|
+
- Never write `"status": "PASS"` without the command outputs that justify it. A `FAIL` verdict is a legitimate output — the gate downstream is supposed to stop.
|
|
46
|
+
- Never write a `scope` you did not actually run. Writing `"prototyping"` after a `full` run is a false verdict, not a workaround — and the reverse is just as wrong: a `--profile verify` run is `scope: "full"`, not `scope: "atdd"`, because `atdd` means the ATDD gate set only (see `_policies/06_Glossary.md`, `verify.json#scope`).
|
|
47
|
+
- `scope` is marked `yes\*` in the table above for exactly one reason: `certify` tolerates its absence in a file written before the field existed. That is a read-side allowance for legacy artifacts, not a write-side option — a new run that omits it is producing a malformed `verify.json`, and no reader should be built assuming the field may be missing.
|
|
48
|
+
- Do not add a `version` / `schemaVersion` field. No reader validates one, and a second version series in a distributed artifact is exactly what the distributed-surface rule forbids: the npm package version is the only version this surface has.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Verify evidence template
|
|
2
|
+
|
|
3
|
+
Copy this into `.qfai/evidence/verify-<spec-id>.md` and fill every section. A
|
|
4
|
+
section left empty is a gap, not a pass — write "none" with a justification
|
|
5
|
+
rather than deleting the heading.
|
|
6
|
+
|
|
7
|
+
Required sections (all of them, in this order):
|
|
8
|
+
|
|
9
|
+
- Objective
|
|
10
|
+
- Inputs reviewed (files/paths)
|
|
11
|
+
- Decisions made (with rationale)
|
|
12
|
+
- Work performed (what changed, where)
|
|
13
|
+
- Commands executed + key outputs
|
|
14
|
+
- Gaps / Open risks (must be explicit; "none" is acceptable if justified)
|
|
15
|
+
- Final status (PASS/FAIL) + who confirmed
|
|
16
|
+
|
|
17
|
+
```md
|
|
18
|
+
# Verify Evidence: <spec-id>
|
|
19
|
+
|
|
20
|
+
## Objective
|
|
21
|
+
|
|
22
|
+
## Inputs reviewed (files/paths)
|
|
23
|
+
|
|
24
|
+
## Decisions made (with rationale)
|
|
25
|
+
|
|
26
|
+
## Work performed (what changed, where)
|
|
27
|
+
|
|
28
|
+
## Commands executed + key outputs
|
|
29
|
+
|
|
30
|
+
- command:
|
|
31
|
+
- result:
|
|
32
|
+
|
|
33
|
+
## QFAI gates
|
|
34
|
+
|
|
35
|
+
- command:
|
|
36
|
+
- result:
|
|
37
|
+
|
|
38
|
+
## Repo gates
|
|
39
|
+
|
|
40
|
+
- command:
|
|
41
|
+
- result:
|
|
42
|
+
|
|
43
|
+
## Next actions (if any)
|
|
44
|
+
|
|
45
|
+
## Gaps / Open risks
|
|
46
|
+
|
|
47
|
+
## Final status (PASS/FAIL) + who confirmed
|
|
48
|
+
```
|
|
@@ -20,6 +20,10 @@ QFAI Skill Body (SSOT)
|
|
|
20
20
|
|
|
21
21
|
## Sub-agent Delegation (MANDATORY)
|
|
22
22
|
|
|
23
|
+
Follow `.qfai/assistant/constitution/shared-skill-delegation-baseline.md`.
|
|
24
|
+
The sections below add only pipeline-specific detail; where they and the
|
|
25
|
+
baseline overlap, the baseline governs.
|
|
26
|
+
|
|
23
27
|
### Orchestrator Protocol (MUST)
|
|
24
28
|
|
|
25
29
|
- Orchestrator may only create work orders, delegate tasks, integrate outputs, and present results.
|
|
@@ -38,19 +42,33 @@ QFAI Skill Body (SSOT)
|
|
|
38
42
|
|
|
39
43
|
## Work Orders Summary
|
|
40
44
|
|
|
41
|
-
Every major research artifact
|
|
45
|
+
Every major research artifact MUST include a `## Work Orders Summary` table.
|
|
46
|
+
Use the shared schema from `shared-skill-delegation-baseline.md` — including the
|
|
47
|
+
`Agent instance` column, without which an author-reviewed-their-own-work
|
|
48
|
+
collision cannot be detected from the evidence afterwards. Typical pipeline
|
|
49
|
+
steps:
|
|
42
50
|
|
|
43
|
-
| Step | Role (sub-agent) | Task title | Input (refs) | Output (refs) | Status (PASS/REVISE) |
|
|
44
|
-
| ---- | ---------------- | -------------------------- | --------------------- | ----------------- |
|
|
45
|
-
| 1 | Researcher | Discover candidate sources | User request + config | Candidate list | PASS/REVISE
|
|
46
|
-
| 2 | Analyst | Prepare research notes | Candidate URLs | Research notes | PASS/REVISE
|
|
47
|
-
| 3 | Reviewer | Review evidence and claims | Notes + sources | Approval decision | PASS/REVISE
|
|
51
|
+
| Step | Role (sub-agent) | Agent instance | Task title | Input (refs) | Output (refs) | Status (PASS/REVISE/PENDING) |
|
|
52
|
+
| ---- | ---------------- | --------------- | -------------------------- | --------------------- | ----------------- | ---------------------------- |
|
|
53
|
+
| 1 | Researcher | `<instance id>` | Discover candidate sources | User request + config | Candidate list | PASS/REVISE |
|
|
54
|
+
| 2 | Analyst | `<instance id>` | Prepare research notes | Candidate URLs | Research notes | PASS/REVISE |
|
|
55
|
+
| 3 | Reviewer | `<instance id>` | Review evidence and claims | Notes + sources | Approval decision | PASS/REVISE |
|
|
48
56
|
|
|
49
57
|
### Reviewer Gate (MUST)
|
|
50
58
|
|
|
51
|
-
- Final completion gate MUST be performed by an independent
|
|
59
|
+
- Final completion gate MUST be performed by an independent reviewer, as defined
|
|
60
|
+
normatively in `shared-skill-delegation-baseline.md#definition-independent-reviewer-normative`.
|
|
61
|
+
Being routed as `Reviewer` does not by itself make an agent independent: an agent
|
|
62
|
+
that drafted or edited any artifact under review is disqualified for the whole run,
|
|
63
|
+
and MUST hand the same evidence set to a non-participating reviewer instead of
|
|
64
|
+
returning `PASS`.
|
|
65
|
+
- Reviewer responses use the response template in
|
|
66
|
+
`shared-skill-delegation-baseline.md#reviewer-response-template`, including the
|
|
67
|
+
REQUIRED `Authored/edited under review:` line. A response omitting that line is
|
|
68
|
+
not a valid verdict; anything other than `none` cannot be a `PASS`.
|
|
52
69
|
- Reviewer checks the Drift Protocol, verifies alignment with `test-layers.md`, and treats ratios as signals, not gates.
|
|
53
70
|
- Reviewer returns only `PASS` or `REVISE` with a concrete fix proposal when returning `REVISE`.
|
|
71
|
+
- A gate that could not be run at all is recorded as `PENDING` in the Work Orders Summary. `PENDING` never counts as `PASS`.
|
|
54
72
|
|
|
55
73
|
## CRITICAL CONSTRAINTS (Read First)
|
|
56
74
|
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
version: 1
|
|
2
2
|
waivers: []
|
|
3
|
-
#
|
|
3
|
+
# Write `rule:` exactly as the finding's `code` appears in
|
|
4
|
+
# `.qfai/report/validate.json` and in the CLI output — `QFAI-ATDD-112`,
|
|
5
|
+
# `TDDLIST_UNKNOWN_LEVEL`, `E_TC_ORPHAN`. Do not strip the `QFAI-` prefix; the
|
|
6
|
+
# stripped form is kept working only for older waiver files.
|
|
7
|
+
#
|
|
8
|
+
# Waivers apply to `warning` and `info` findings only. A waiver aimed at an
|
|
9
|
+
# `error` is a configuration error and fails the run.
|
|
10
|
+
#
|
|
11
|
+
# Example — a project that deliberately ships its own `Level` vocabulary:
|
|
4
12
|
# - id: WVR-20260207-01
|
|
5
|
-
# rule:
|
|
13
|
+
# rule: TDDLIST_UNKNOWN_LEVEL
|
|
6
14
|
# scope:
|
|
7
15
|
# paths: [".qfai/specs/spec-0001/**"]
|
|
8
|
-
#
|
|
9
|
-
# dl_ids: ["DL-20260207-01"]
|
|
10
|
-
# reason: "Legacy acceptance tests are being migrated; suppress until migration completes."
|
|
16
|
+
# reason: "Level vocabulary is owned by this project; migration tracked in DL-20260207-01."
|
|
11
17
|
# expires: "2026-03-01"
|
|
12
18
|
# evidence: "delta.md#DL-20260207-01"
|
|
13
19
|
# owner: "team-foo"
|