fix: align server with protocol v2 chunked transport spec
All checks were successful
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m45s
CI / docker (push) Successful in 59s
CI / deploy-feature (push) Has been skipped
CI / deploy (push) Successful in 46s

- ChunkIngestionController: /data/chunks → /data/executions (matches
  PROTOCOL.md endpoint the agent actually posts to)
- ExecutionController: conditional on ClickHouse being disabled to
  avoid mapping conflict
- Persist originalExchangeId and replayExchangeId from ExecutionChunk
  envelope through to ClickHouse (was silently dropped)
- V5 migration adds the two new columns to executions table

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-31 23:18:35 +02:00
parent 154bce366a
commit 606f81a970
8 changed files with 34 additions and 13 deletions

View File

@@ -168,7 +168,9 @@ public class ChunkAccumulator {
envelope.getTraceId(),
envelope.getSpanId(),
false, // hasTraceData — not tracked at envelope level
envelope.getReplayExchangeId() != null // isReplay
envelope.getReplayExchangeId() != null, // isReplay
envelope.getOriginalExchangeId(),
envelope.getReplayExchangeId()
);
}

View File

@@ -35,5 +35,7 @@ public record MergedExecution(
String traceId,
String spanId,
boolean hasTraceData,
boolean isReplay
boolean isReplay,
String originalExchangeId,
String replayExchangeId
) {}