--- phase: 2 slug: transaction-search-diagrams status: draft nyquist_compliant: false wave_0_complete: false created: 2026-03-11 --- # Phase 2 — Validation Strategy > Per-phase validation contract for feedback sampling during execution. --- ## Test Infrastructure | Property | Value | |----------|-------| | **Framework** | JUnit 5 + Spring Boot Test + Testcontainers ClickHouse 25.3 | | **Config file** | cameleer-server-app/pom.xml (testcontainers dep), AbstractClickHouseIT base class | | **Quick run command** | `mvn test -pl cameleer-server-app -Dtest=SearchControllerIT` | | **Full suite command** | `mvn clean verify` | | **Estimated runtime** | ~45 seconds | --- ## Sampling Rate - **After every task commit:** Run `mvn test -pl cameleer-server-app -Dtest=IT` - **After every plan wave:** Run `mvn clean verify` - **Before `/gsd:verify-work`:** Full suite must be green - **Max feedback latency:** 45 seconds --- ## Per-Task Verification Map | Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status | |---------|------|------|-------------|-----------|-------------------|-------------|--------| | 02-01-01 | 01 | 1 | SRCH-01 | integration | `mvn test -pl cameleer-server-app -Dtest=SearchControllerIT#searchByStatus` | ❌ W0 | ⬜ pending | | 02-01-02 | 01 | 1 | SRCH-02 | integration | `mvn test -pl cameleer-server-app -Dtest=SearchControllerIT#searchByTimeRange` | ❌ W0 | ⬜ pending | | 02-01-03 | 01 | 1 | SRCH-03 | integration | `mvn test -pl cameleer-server-app -Dtest=SearchControllerIT#searchByDuration` | ❌ W0 | ⬜ pending | | 02-01-04 | 01 | 1 | SRCH-04 | integration | `mvn test -pl cameleer-server-app -Dtest=SearchControllerIT#searchByCorrelationId` | ❌ W0 | ⬜ pending | | 02-01-05 | 01 | 1 | SRCH-05 | integration | `mvn test -pl cameleer-server-app -Dtest=SearchControllerIT#fullTextSearch` | ❌ W0 | ⬜ pending | | 02-01-06 | 01 | 1 | SRCH-06 | integration | `mvn test -pl cameleer-server-app -Dtest=DetailControllerIT#detailReturnsNestedTree` | ❌ W0 | ⬜ pending | | 02-02-01 | 02 | 1 | DIAG-01 | integration | `mvn test -pl cameleer-server-app -Dtest=DiagramControllerIT#contentHashDedup` | Partial | ⬜ pending | | 02-02-02 | 02 | 1 | DIAG-02 | integration | `mvn test -pl cameleer-server-app -Dtest=DetailControllerIT#detailIncludesDiagramHash` | ❌ W0 | ⬜ pending | | 02-02-03 | 02 | 1 | DIAG-03 | integration | `mvn test -pl cameleer-server-app -Dtest=DiagramRenderControllerIT#renderSvg` | ❌ W0 | ⬜ pending | *Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky* --- ## Wave 0 Requirements - [ ] `SearchControllerIT.java` — stubs for SRCH-01 through SRCH-05 - [ ] `DetailControllerIT.java` — stubs for SRCH-06, DIAG-02 - [ ] `DiagramRenderControllerIT.java` — stubs for DIAG-03 - [ ] `TreeReconstructionTest.java` — unit test for tree rebuild logic (core module) - [ ] Schema migration script `02-search-columns.sql` — extends schema for Phase 2 columns - [ ] Update `AbstractClickHouseIT.initSchema()` to load both `01-schema.sql` and `02-search-columns.sql` *Existing infrastructure covers test framework and Testcontainers setup.* --- ## Manual-Only Verifications | Behavior | Requirement | Why Manual | Test Instructions | |----------|-------------|------------|-------------------| | SVG visual quality | DIAG-03 | Correct layout/colors need visual inspection | Render a sample diagram, open SVG in browser, verify node colors and layout direction | --- ## Validation Sign-Off - [ ] All tasks have `` 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 < 45s - [ ] `nyquist_compliant: true` set in frontmatter **Approval:** pending