Skip to content

Stream versioned user settings updates across devices - #139

Merged
rafiki270 merged 14 commits into
mainfrom
codex/settings-stream
Nov 4, 2026
Merged

rafiki270 merged 14 commits into
mainfrom
codex/settings-stream

Conversation

@rafiki270

@rafiki270 rafiki270 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Native apps can subscribe to /oauth/me/settings/:namespace/:key/events for an authoritative snapshot followed by versioned deltas. PostgreSQL notifications carry committed settings changes across API instances, including confidential API writes and namespace deletion.

Each send rechecks live authorization. Subscriptions are bounded, reads are serialized and coalesced, reconnects recover from a snapshot, and connections recycle before the Cloud Run timeout. The additive migration bounds lock waits; settings writes retain their If-Match contract. The pool-contention test runs separately because schema-isolated fixtures still share database-wide advisory locks. The multi-subscriber test waits for both clients before its next write when asserting every intermediate delta.

Validation

  • Windows Maxis with PostgreSQL 17: 12 focused tests passed, covering real TCP subscribers on another API instance, array deltas, deletion, reconnect, rejected client messages, revocation, admission limits and capacity recovery. API typecheck passed.
  • Final CI passed at d365d6a: dependency audit, 2,769 DB-less tests and 955 PostgreSQL integration tests (four tests skipped overall).
  • Live Cloud Run configuration: three maximum instances, concurrency 80, 300-second requests and non-throttled CPU. Each active instance adds one lazy database listener; existing application/admin pool limits are unchanged.
  • Deployed merge d6880f1 as Cloud Run revision uoa-auth-00358-9hq, serving 100% of traffic. Startup logs confirm the settings notification migration applied. Live health and API documentation checks passed; an unauthenticated WebSocket upgrade returned 401. Three signed-in devices remain unverified. No rendered UI changes.

Copilot AI balanced review requested due to automatic review settings November 4, 2026 17:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T17:40:06.452979Z 7833955 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 4, 2026 17:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 4, 2026 17:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 4, 2026 18:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 4, 2026 18:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@rafiki270
rafiki270 merged commit d6880f1 into main Nov 4, 2026
2 checks passed
@rafiki270
rafiki270 deleted the codex/settings-stream branch November 4, 2026 19:18
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