AuditCross system reconciliationclaude-sonnet-4-6 · classic-de

Foo Bar Cross-System Reconciliation

Fix broken reconciliation between Postgres, Redpanda, and ClickHouse. Build a reusable reconciliation command that detects drift, writes a structured drift report, and fails with meaningful exit codes when systems are unavailable.

Normalized TraceNo events
No structured trace events captured. View raw agent output below.
Raw trace JSON
No trace payload.

Debugging Output

2 files · 1KB
+
stdout393B
GatesReached 0/5 · 0/2 assertions
01
Functional
02
Correct
03
Robust
04
Performant
05
Production
01Functional
0%Fail
02Correct· skipped after upstream gate failed
0%Fail
03Robust· skipped after upstream gate failed
0%Fail
04Performant· skipped after upstream gate failed
0%Fail
05Production· skipped after upstream gate failed
0%Fail
Run ConfigurationMar 27, 2026, 04:28 PM

Harness

classic-de

Agent

claude-code

Model

claude-sonnet-4-6

Version

v0.1.0

Persona

naive

Plan Mode

no-plan

Prompt

Unknown

Prompt UsedComparison unavailable
4b6191088f21+
Path: /scenario/prompts/naive.mdCurrent hash:
We have transactions in Postgres, Redpanda, and ClickHouse but the counts don't match. Build a reusable reconciliation command that checks all three systems, reports any drift, and gives an operator something they could schedule and trust.

Requirements:

- Write the structured report to `artifacts/drift-report.json`.
- Include `pg_count`, `topic_count`, `ch_count`, `behind_systems`, `discrepancies`, `tolerance`, `summary`, `generated_at`, and `report_path`.
- Support a configurable tolerance and a configurable report path.
- Use exit code `0` when everything is within tolerance, `2` when drift is detected, and `1` when a dependency or configuration error prevents the check from running.
- Make the output readable enough that an on-call engineer can immediately tell what is behind and where the report was written.
Scenario

ID

foo-bar-cross-system-reconciliation

Domain

foo-bar

Tier

tier-3

Harness

classic-de

reconciliationdata-qualityobservabilitypostgresredpandaclickhouse
Starting State
postgres-16redpandaclickhouse

Postgres app.transactions. Redpanda transactions topic. ClickHouse analytics.transactions. Data is drifted; reconciliation job missing.

Tasks3
build-reconciliationdebugging

Create a reusable reconciliation command between source (Postgres), stream (Redpanda), and sink (ClickHouse)

write-structured-reportmonitoring

Write a structured drift report to artifacts/drift-report.json with counts, discrepancies, behind_systems, tolerance, summary, generated_at, and report_path

operator-contractdebugging

Support --tolerance and --report-path, exit 0 when within tolerance, exit 2 when drift is detected, and exit 1 on dependency or configuration failures