From 9ba1b839df11539a6b6cae744586f7ffd32abe85 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Wed, 11 Mar 2026 11:29:01 +0100 Subject: [PATCH] docs(01): add phase 1 research and validation strategy Co-Authored-By: Claude Opus 4.6 --- .../01-VALIDATION.md | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 .planning/phases/01-ingestion-pipeline-api-foundation/01-VALIDATION.md diff --git a/.planning/phases/01-ingestion-pipeline-api-foundation/01-VALIDATION.md b/.planning/phases/01-ingestion-pipeline-api-foundation/01-VALIDATION.md new file mode 100644 index 00000000..b559dc6f --- /dev/null +++ b/.planning/phases/01-ingestion-pipeline-api-foundation/01-VALIDATION.md @@ -0,0 +1,86 @@ +--- +phase: 1 +slug: ingestion-pipeline-api-foundation +status: draft +nyquist_compliant: false +wave_0_complete: false +created: 2026-03-11 +--- + +# Phase 1 — Validation Strategy + +> Per-phase validation contract for feedback sampling during execution. + +--- + +## Test Infrastructure + +| Property | Value | +|----------|-------| +| **Framework** | JUnit 5 (Spring Boot managed) + Testcontainers 2.0.2 | +| **Config file** | cameleer3-server-app/src/test/resources/application-test.yml (Wave 0) | +| **Quick run command** | `mvn test -pl cameleer3-server-core -Dtest=WriteBufferTest -q` | +| **Full suite command** | `mvn verify` | +| **Estimated runtime** | ~30 seconds | + +--- + +## Sampling Rate + +- **After every task commit:** Run `mvn test -pl cameleer3-server-core -q` +- **After every plan wave:** Run `mvn verify` +- **Before `/gsd:verify-work`:** Full suite must be green +- **Max feedback latency:** 30 seconds + +--- + +## Per-Task Verification Map + +| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status | +|---------|------|------|-------------|-----------|-------------------|-------------|--------| +| 1-01-01 | 01 | 1 | INGST-04 | unit | `mvn test -pl cameleer3-server-core -Dtest=WriteBufferTest -q` | ❌ W0 | ⬜ pending | +| 1-01-02 | 01 | 1 | INGST-01 | integration | `mvn test -pl cameleer3-server-app -Dtest=ExecutionControllerIT -q` | ❌ W0 | ⬜ pending | +| 1-01-03 | 01 | 1 | INGST-05 | unit+integration | `mvn test -pl cameleer3-server-app -Dtest=BackpressureIT -q` | ❌ W0 | ⬜ pending | +| 1-01-04 | 01 | 1 | INGST-06 | integration | `mvn test -pl cameleer3-server-app -Dtest=ClickHouseTtlIT -q` | ❌ W0 | ⬜ pending | +| 1-02-01 | 02 | 1 | INGST-01 | integration | `mvn test -pl cameleer3-server-app -Dtest=ExecutionControllerIT -q` | ❌ W0 | ⬜ pending | +| 1-02-02 | 02 | 1 | INGST-02 | integration | `mvn test -pl cameleer3-server-app -Dtest=DiagramControllerIT -q` | ❌ W0 | ⬜ pending | +| 1-02-03 | 02 | 1 | INGST-03 | integration | `mvn test -pl cameleer3-server-app -Dtest=MetricsControllerIT -q` | ❌ W0 | ⬜ pending | +| 1-02-04 | 02 | 1 | API-02 | integration | `mvn test -pl cameleer3-server-app -Dtest=OpenApiIT -q` | ❌ W0 | ⬜ pending | +| 1-02-05 | 02 | 1 | API-03 | integration | `mvn test -pl cameleer3-server-app -Dtest=HealthControllerIT -q` | ❌ W0 | ⬜ pending | +| 1-02-06 | 02 | 1 | API-04 | integration | `mvn test -pl cameleer3-server-app -Dtest=ProtocolVersionIT -q` | ❌ W0 | ⬜ pending | +| 1-02-07 | 02 | 1 | API-05 | unit | `mvn test -pl cameleer3-server-app -Dtest=ForwardCompatIT -q` | ❌ W0 | ⬜ pending | + +*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky* + +--- + +## Wave 0 Requirements + +- [ ] `cameleer3-server-app/src/test/resources/application-test.yml` — test ClickHouse config +- [ ] `cameleer3-server-core/src/test/java/.../WriteBufferTest.java` — buffer unit tests +- [ ] `cameleer3-server-app/src/test/java/.../AbstractClickHouseIT.java` — shared Testcontainers base class +- [ ] `cameleer3-server-app/src/test/java/.../ExecutionControllerIT.java` — ingestion integration test +- [ ] Docker available on test machine for Testcontainers + +*If none: "Existing infrastructure covers all phase requirements."* + +--- + +## Manual-Only Verifications + +| Behavior | Requirement | Why Manual | Test Instructions | +|----------|-------------|------------|-------------------| +| ClickHouse TTL removes data after 30 days | INGST-06 | Cannot fast-forward time in ClickHouse | Verify TTL clause in CREATE TABLE DDL, integration test uses SYSTEM TTL MERGES | + +--- + +## 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 < 30s +- [ ] `nyquist_compliant: true` set in frontmatter + +**Approval:** pending