Files
crank/_bmad-output/test-artifacts/test-design-progress-epic-6.md
T

54 lines
5.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
runScope: 'epic-level'
runKey: 'epic-6'
workflowStatus: 'completed'
totalSteps: 5
stepsCompleted: ['step-01-detect-mode', 'step-02-load-context', 'step-03-risk-and-testability', 'step-04-coverage-plan', 'step-05-generate-output']
lastStep: 'step-05-generate-output'
nextStep: ''
inputDocuments:
- '_bmad-output/planning-artifacts/epics.md'
- '_bmad-output/test-artifacts/test-design-architecture.md'
- '_bmad-output/test-artifacts/test-design-qa.md'
- '_bmad-output/planning-artifacts/prds/prd-crank-2026-08-03/prd.md'
- '_bmad-output/planning-artifacts/architecture/architecture-crank-2026-08-03/ARCHITECTURE-SPINE.md'
- '_bmad/tea/config.yaml'
lastSaved: '2026-09-13'
---
# Epic 6 test design progress
Output: test-design-epic-6.md. Completed 2026-09-13. Story/requirement/AC-count coverage, source references, risk scores and format validated. Template adapted to existing-project inventory: counts are scenario seeds, estimates are provisional QA deltas, no synthetic code-coverage or execution claim. Native loop ATDD is post-dev; pre-implementation customization is a separate pending approval, not executed by this design run.
## Coverage decisions
6 story families, two independently assertable scenario seeds per family (A positive contract; B rejection/fault). The last two former 6.1 full-workflow groups move to 6.6; 6.4 adds the approved Run/generator/report correlation group (7 AC groups), and 6.6 has 9. Per-process spool applies only where the owning telemetry contract requires it; this revision does not add a blanket new spool. All owning-story Given/When/Then groups remain required ATDD input; these are not a claim of exhaustive implemented test cases.
Scope: FR-36–FR-40; system families CP-22..24. Lowest effective level assigned per family. P0 security/data integrity with no workaround; P1 user/core flow. No speculative mandatory P2/P3 additions.
Source reuse: Runtime metric/overhead patterns in `crates/crank-runtime/tests/product_metrics.rs` and `crates/crank-metrics/tests/overhead.rs`; real MCP fixture in `apps/ui/scripts/playwright-http-fixture.js` and `apps/ui/tests/e2e/onboarding.spec.js`.
Gaps: No Load Scenario, runner, safety-plan or report feature suites found. Existing microbenchmarks/local budget checks do not prove generated RPS, control-plane isolation or product capacity. DAU preview is a load model, not the measured unique-Agent DAU rollup of 5.8.
NFR: Hard non-overridable ceilings1000RPS/512VU/2h/10,000,000iterations (6.3). Qualification100RPS30m +250RPS5m, per-minute success≥99.95% and saturation rejects≤0.1%; platform overheadp95≤50ms/p99≤150ms with10ms upstream/cache off. Arrival tolerance and stop/drain policy must be frozen by owning story, never chosen silently by tests.
Fixtures: Counted controllable upstream; signed-plan negative fixtures with exact change fingerprints; isolated runner CPU/memory/network and reserved control path; host kill socket in disposable sandbox; external calibrated generator/counters to separate harness saturation from SUT saturation.
Execution: PR functional tests, nightly bounded expensive/fault work, weekly calibrated qualifications; scheduled tiers are planned, not configured. Mandatory story ACs still must pass before acceptance, regardless of tier. 72h/30day release windows only in Epic8. QA effort assumption with prerequisite implementation ready: P0 40–80h; P1 24–48h; optional P2 0–8h/P3 0–4h; total 64–140h (~2–4 contributor-weeks). Not a backlog of compulsory new tests; refine against existing-test reuse during ATDD.
## Risks and NFR planning
| Risk | Category | Failure | P | I | Score | System risk | Mitigation / owner / deadline |
|---|---|---|---:|---:|---:|---|---|
| E6-R1 | SEC | Forged/stale load plan dispatches damaging writes | 3 | 3 | 9 | R-010 | Signed fingerprint + replay/SSRF/write negatives; Security, 6.3 |
| E6-R2 | OPS | Runner duplicates generation or cannot stop | 2 | 3 | 6 | R-010 | Owner fencing + reserved path + independent kill; Runner, 6.4–6.5 |
| E6-R3 | PERF | Generator bottleneck/aggregation reports false SUT performance | 3 | 3 | 9 | R-006 | External calibration + independent counts; Performance, 6.6 |
Scores describe inherent risk, not observed failures or a release verdict. Security/reliability/performance thresholds inherit the system design and owning story ACs; missing environment/measurement evidence remains explicit, never inferred PASS.
Context: Rust/PostgreSQL + browser JavaScript fullstack. Existing test source inventory at main 083974c; f8ee7c9 candidate is separate. Browser CLI absent; no live exploration, no fabricated evidence. Playwright/Pact utility flags are intentions only: packages absent; no library migration or Pact scaffolding in this planning scope. Required risk, probability/impact, test levels/priorities and NFR knowledge loaded; concrete source reuse and gaps appear in the epic plan.
Explicit batch request, independent epic scope. Requirements and acceptance criteria: planning-artifacts/epics.md, Epic 6. System designs already updated; no product implementation or test execution authorized by this planning run.