2.7 KiB
2.7 KiB
phase, slug, status, nyquist_compliant, wave_0_complete, created
| phase | slug | status | nyquist_compliant | wave_0_complete | created |
|---|---|---|---|---|---|
| 1 | core-pnl-functions | draft | false | false | 2026-03-21 |
Phase 1 — Validation Strategy
Per-phase validation contract for feedback sampling during execution.
Test Infrastructure
| Property | Value |
|---|---|
| Framework | go test (testify v1.11.1) |
| Config file | none — existing test infrastructure via testrepo_sqlite.go |
| Quick run command | go test -v ./internal/service/finance/... |
| Full suite command | go test -v --cover ./internal/service/finance/... |
| Estimated runtime | ~5 seconds |
Sampling Rate
- After every task commit: Run
go test -v ./internal/service/finance/... - After every plan wave: Run
go test -v --cover ./internal/service/finance/... - Before
/gsd:verify-work: Full suite must be green - Max feedback latency: 10 seconds
Per-Task Verification Map
| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|---|---|---|---|---|---|---|---|
| 01-01-01 | 01 | 1 | AST-01 | unit | go test -run TestAssetType ./internal/service/finance/... |
❌ W0 | ⬜ pending |
| 01-01-02 | 01 | 1 | PNL-01 | unit | go test -run TestParams ./internal/service/finance/... |
❌ W0 | ⬜ pending |
| 01-01-03 | 01 | 1 | QUA-01 | unit | go test -run TestNew ./internal/service/finance/... |
❌ W0 | ⬜ pending |
| 01-02-01 | 02 | 2 | DIM-01,PNL-02..08 | integration | go test -run TestQueryUser ./internal/service/finance/... |
❌ W0 | ⬜ pending |
| 01-03-01 | 03 | 2 | DIM-02,PNL-02..08 | integration | go test -run TestQueryActivity ./internal/service/finance/... |
❌ W0 | ⬜ pending |
Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky
Wave 0 Requirements
internal/service/finance/service_test.go— test file with SQLite setup viaNewSQLiteRepoForTest()- Test helper functions for seeding orders, inventory, points, coupons test data
Existing infrastructure: testrepo_sqlite.go provides NewSQLiteRepoForTest() — no framework install needed.
Manual-Only Verifications
| Behavior | Requirement | Why Manual | Test Instructions |
|---|---|---|---|
| GetDbW() absence | QUA-02 | Static check | grep -r 'GetDbW' internal/service/finance/ | wc -l should be 0 |
Validation Sign-Off
- All tasks have
<automated>verify or Wave 0 dependencies - Sampling continuity: no 3 consecutive tasks without automated verify
- Wave 0 covers all MISSING references
- No watch-mode flags
- Feedback latency < 10s
nyquist_compliant: trueset in frontmatter
Approval: pending