Skip to content

[P2] Enforce data integrity and harden container startup - #3

Closed
apple050620312 wants to merge 1 commit into
codex/p1-scaling-hot-pathfrom
codex/p2-data-ops-resilience
Closed

apple050620312 wants to merge 1 commit into
codex/p1-scaling-hot-pathfrom
codex/p2-data-ops-resilience

Conversation

@apple050620312

Copy link
Copy Markdown
Owner

Summary

  • Make find-or-create paths recover safely from uniqueness races without masking unrelated database failures.
  • Add a migration that deduplicates existing rows and enforces unique member and custom-domain constraints.
  • Expand and index event names for operational queries.
  • Flush buffered analytics and close HTTP sessions during shutdown.
  • Generate runtime configuration safely, bound database startup waits, and make migrations explicit and fail-closed.
  • Keep the database private to the Compose network and add a one-shot migration service.

Priority

P2 — improves correctness, rollout safety, and recovery under concurrent multi-worker operation.

Dependency

Stacked on #2. Review and merge #2 first; after it merges, retarget this PR to main.

Validation

  • Migration module imports successfully.
  • Compose topology tests pass.
  • Source-tree parsing and repository consistency checks pass.

@apple050620312

Copy link
Copy Markdown
Owner Author

Superseded by upstream PR Kyrela#113.

@github-actions github-actions Bot locked and limited conversation to collaborators Sep 10, 2026
@apple050620312
apple050620312 deleted the codex/p2-data-ops-resilience branch September 10, 2026 06:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant