Repository navigation
Conversation
Validate explicit finished, failed and goal_reached session requests: a
known kind, a canonical s1_-prefixed 32-byte base64url event reference and
a required canonical pairing hint. Render the stateless APNs worker's
fixed copy with data exactly {kind, session_ref: suffix, pairing_hint}.
The session path reuses the approval delivery path for expiry, size,
fid/token targeting, click_action and proxy: DENY, and carries no
approval field. The legacy approval payload and results stay unchanged;
the dispatcher and HTTP surfaces are untouched.
Tests: node --test mobile-push-relay/test/*.test.js (199 pass). New
fcm-session.test.js covers all three kinds, approval byte parity, the exact
session data, validation before access token or transport, expiry, size,
fid targeting and provider answer classification.
Accept an optional finished, failed or goal_reached kind on the authenticated POST /v1/notifications. Absence stays the legacy approval. A typed kind is validated before queueing: the event reference must be the canonical s1_ session reference and the installation id must be the canonical 32-byte value the dispatcher hashes into the pairing hint. Store the kind in delivery schema version 3, with an approval default and a CHECK over the fixed values. A typed kind is refused with kind_unavailable for an APNs binding, before a delivery or enqueue slot exists. True v1->v2->v3 and v2->v3 migrations add only the column, leaving retry, lease, dedupe and ordering state intact. The dispatcher passes kind only to a typed FCM delivery. Approval requests keep approvalRef and the byte-identical FCM payload, and APNs never receives a session field. Tests: node --test mobile-push-relay/test/*.test.js (205 pass).
Serve authenticated GET /v1/capabilities from the host API. The fixed
{"sessionAlerts":1|0} answer follows the same provider set that narrows
registration, so it reports exactly whether the deployment built the FCM
adapter. The route needs no request body or content type and keeps the
existing no-store response headers. Document the contract and cover auth,
method, path, FCM readiness and service adapter wiring.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 93761b969d
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
20da774 requires an object before decoding the capability fields. I reproduced the array accepting the capability before the fix and confirmed that the regression now stops at the GET. All 20 relay client tests passed. I also ran the exact Rust transport against the actual Node HTTP handler, SQLite store, dispatcher, and FCM adapter over isolated TLS. Versioned registration, typed enqueue, duplicate suppression, stale generation rejection, and the legacy approval payload all passed. Only the external Firebase provider transport was simulated. |
|
/queue b2c28a5 |
1 similar comment
|
/queue b2c28a5 |
|
In line to merge. Commit 49e655e is reviewed with nothing blocking; it has entered the merge queue. |
|
Stock clients (latest) failed at The fixture, launcher and workflow are byte-identical to main at |
|
The Ubuntu x86-64 package job failed in the linked-worker browser fixture after both private result checks passed. At I reproduced the race with the actual fixture HTTP handler on an Ubuntu x86-64 runner. Pausing immediately before the write exposed an empty final file in 300 of 300 requests. Closing a unique temporary file before renaming it into place reduced that to 0 of 300. The reader received every exact output, including an intentionally unexpected result that still failed the original The recovery also aligns the TLS fixture’s GET method with #424. The previous combined queue tree had two identical definitions. Applying the recovery to that tree leaves one, with the action-registration and session-alert capability paths intact. GitHub ejected the candidate. The Intel package runner also lost communication with GitHub while building the test executables. Its test step never started and its job-log endpoint returned 404. The host recorded no more specific cause. The advisory latest-client job reproduced the OpenCode positional-argument failure. Pushed both fixture changes together at |
|
/queue 49e655e |
Part of #95. Based on main after #365 merged at
65b7d8ac.Add a typed host relay client call for finished, failed and goal-reached session alerts. The call requires a canonical reference, a canonical installation ID and a confirmed registration generation. It checks the bearer-authenticated capability at the configured HTTPS origin before enqueueing, using the existing bounded transport and response handling. Unsupported, malformed, extra-field and duplicate-field responses do not enable delivery. The call has no approval fallback.
Verified 20 relay client tests, including exact legacy approval and APNs worker wire bytes, a typed send over fixture TLS, authentication errors and unknown capability results. No production sender uses the method yet.
Checked against main at
be0a803e, including #384 and #424. The TLS fixture has one GET handler for both capability endpoints. On recovery head49e655e6, all 227 host-web library tests passed with nine fixture launchers ignored. The root CLI suite, clippy, formatting, 99 CI helper tests and the full Chromium linked-worker flow passed locally.A required Ubuntu package run exposed an empty file between creation and the linked-worker fixture’s first write. The fixture now publishes the completed result by atomic rename. On Ubuntu x86-64, 300 deliberately delayed writes exposed 300 early empty reads before the fix and zero afterward. Failed package job · Diagnostic run