Skip to content

E4 replica-correctness topology proof + serving audit fixes (#184-186)#187

Merged
brownjuly2003-code merged 2 commits into
mainfrom
e4-replica-topology-proof
Jul 11, 2026
Merged

E4 replica-correctness topology proof + serving audit fixes (#184-186)#187
brownjuly2003-code merged 2 commits into
mainfrom
e4-replica-topology-proof

Conversation

@brownjuly2003-code

Copy link
Copy Markdown
Owner

Two independent changes on this branch (bundled into one PR).

545c2b1 — E4 delivery topology proof (kind)

Closes the Phase-3 cutover checkbox that 07-06 failed on resource pressure. Two real pods on the Postgres control-plane store, webhook visible 8/8 cross-pod (no split-brain, ADR-0010 class 5). scripts/k8s_replica_correctness_verify.sh Checks 1–2 exit 0. Proof doc: docs/perf/e4-replica-topology-2026-07-11.md. Doc-only commit — no runtime code changes.

b5b950d — serving audit fixes (#184-186)

Adversarial audit of #184/#185/#186 surfaced three non-blocker nits; fixed:

Test plan

🤖 Generated with Claude Code

JuliaEdom and others added 2 commits July 11, 2026 06:10
…6-07-11)

Completes the cutover-plan Phase 3 LIVE-verify item (attempted-but-blocked
2026-07-06 by shared-host resource contention). On a freed VM,
scripts/k8s_replica_correctness_verify.sh Checks 1-2 pass:
replicaCount=2 with both pods on the postgres control-plane store, and a
webhook registered via the Service visible on all 8 round-robin reads across
the two pods (no split-brain, ADR 0010 class 5). Exactly-one delivery /
one-alert-per-incident already store-level verified 31/31 (slice-5 PG probe);
this adds the two-real-pods topology layer.

Canon: docs/perf/e4-replica-topology-2026-07-11.md; cutover-plan checkbox flipped.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- webhook_dispatcher: drop dead bare-event_id membership test (audit #184);
  dedup is strictly on tenant:event_id, the only shape the seen-set ever stores.
- webhook_dispatcher: seed the startup scan cursor from the newest row whose
  processed_at parses, not blindly the newest row (audit #185); a malformed
  newest timestamp left the cursor None, which made the first scan re-deliver
  the whole seeded batch from the oldest journal row.
- cache_invalidation: raise the metric-cache scan window 200 -> 2000 rows
  (audit #186); 200 left no margin for a non-pushing writer at the >=100 eps
  target (pre-merge ReplacingMergeTree emits ~2 rows/event), and the comment
  claimed headroom it did not have.
- tests: per-tenant dedup guard (#184) + malformed-newest seed-edge (#185).
- docs/serving-bridge: sync the window size and its sizing rationale.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

DORA Metrics

  • Window: last 30 days
  • Branch: main
  • Deployment frequency: 107 total / 24.97 per week
  • Lead time for changes: avg 0.39h / median 0.0h
  • Change failure rate: 64.49% (69/107)
  • MTTR: 2.56h across 1 incident(s)

@brownjuly2003-code brownjuly2003-code merged commit a9164ed into main Jul 11, 2026
23 checks passed
@brownjuly2003-code brownjuly2003-code deleted the e4-replica-topology-proof branch July 11, 2026 07:36
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.

2 participants