Skip to content

docs(0017): align backfill tasks + overview docs to local CH mirror#48

Merged
karczuRF merged 3 commits into
developfrom
docs/backfill-ch-mirror-alignment
Jun 19, 2026
Merged

docs(0017): align backfill tasks + overview docs to local CH mirror#48
karczuRF merged 3 commits into
developfrom
docs/backfill-ch-mirror-alignment

Conversation

@karczuRF

Copy link
Copy Markdown
Collaborator

Summary

  • Refresh the Stream 1/2 backfill tasks (0017, 0028, 0053) to the post-ADR-0007 model: the local staging store is a ClickHouse mirror of the Hetzner prices.* schema (same local-CH → Hetzner shape BE uses), not a local Postgres; rows are pushed to Hetzner CH via the 0052 mTLS client with ReplacingMergeTree(version) idempotency.
  • Add the archival/historical USD asset price requirement to 0017 (volume_quote / volume_quote_usd / close_usd + oracle_prices), flagging the historical-oracle open question; 0053 populates volume_quote (0058) and leaves USD columns DEFAULT 0 for enrichment (0026).
  • Reconcile the stale "2 secrets per env" assumption to a single {cert,key,ca} JSON bundle secret per identity (named by MTLS_SECRET_NAME) in 0050, 0052, and both overview docs.
  • Sweep both architecture overview docs (§7 backfill section, data-flow diagrams, ASCII flow boxes, legends) for the Postgres → ClickHouse sink correction — aligning them with shipped reality (0027 shipped local ClickHouse; ADR 0007 pivoted off RDS). Intentional historical notes left intact.
  • Replace personal username with "operator" throughout.

Docs/task-content only — no code or schema changes. Done (archived) tasks untouched.

karczuRF added 3 commits June 19, 2026 10:55
Align the Stream 1/2 backfill tasks with the post-ADR-0007 reality: the
local staging store is a ClickHouse mirror of the Hetzner prices.* schema
(same local-CH -> Hetzner shape BE uses), not a local Postgres.

- 0017: dual-role local CH (soroban_events input + prices.* mirror);
  add the archival/historical USD asset price requirement
  (volume_quote / volume_quote_usd / close_usd + oracle_prices).
- 0053: Postgres -> local CH mirror across summary/steps/AC; volume_quote
  per 0058, USD columns left DEFAULT 0 for enrichment (0026); repoint
  provisioning blocker 0050 -> 0063.
- 0028: SDEX cloud-push source is the 0027 local CH (not Postgres),
  target is Hetzner CH prices.* (not RDS), push via 0052 mTLS client,
  ReplacingMergeTree(version) idempotency.

Replace personal username with "operator" throughout.
Update the stale two-secret cert/key assumption to the decided shape:
a single {cert,key,ca} JSON bundle secret per identity per env, named
by MTLS_SECRET_NAME (0063 Design Decision #3 / 0052's client).

- 0052: the cert-load step reads one bundle secret, not two.
- 0050: prices-api receives one {cert,key,ca} bundle per env.
Sweep both architecture overviews for staleness contradicting shipped
reality (0027 shipped local ClickHouse; ADR 0007 pivoted off RDS).

- Backfill sink: local Postgres -> local ClickHouse across the §7
  two-stream section, data-flow diagrams, ASCII flow boxes, the
  workstation subgraph, resumability prose, and diagram legends.
- Credentials: "2 secrets per env" -> single {cert,key,ca} JSON bundle
  secret per identity (named by MTLS_SECRET_NAME).

Intentional historical notes ("prior Postgres design", "RDS removed",
changelog rows) left intact.
@karczuRF karczuRF merged commit fdd2297 into develop Jun 19, 2026
3 checks passed
@karczuRF karczuRF deleted the docs/backfill-ch-mirror-alignment branch June 19, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant