Skip to content

Resolve native session alert references on the paired host - #317

Merged
n0rpan merged 1 commit into
mainfrom
mobile/session-alert-host-lookup
Dec 1, 2026
Merged

n0rpan merged 1 commit into
mainfrom
mobile/session-alert-host-lookup

Conversation

@n0rpan

@n0rpan n0rpan commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Part of #95, parity row P19. The host already sends generic finished, failed, and goal alerts. This adds the host lookup the phone will use to open the session that generated one.

  • Give each session alert a random opaque reference. The version prefix lets a later relay change distinguish routable alerts from older ones. The existing relay request and approval references keep their wire format.
  • Before queueing, remember the reference for its exact recipient, active enrollment, scope, thread, and expiry in a bounded in-memory cache.
  • A signed phone-only settings request resolves that reference. The host rechecks route reachability, current enrollment, and pairing. The reply contains only the route and thread address.
  • The phone and APNs worker changes follow in separate PRs. Current clients continue opening the app from these alerts.

Tested with the 199-test host-web suite, including the recipient and exact route, expiry, eviction, unknown references, signed-body tampering, and a tap arriving before the relay replies. Checked against main at 5d28347.

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T20:02:41.911974Z 75f83d3 PR opened
🔒 Security Review ✅ Completed 2026-11-30T20:06:12.069489Z 75f83d3 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.

@n0rpan n0rpan added the full-ci label Dec 1, 2026
@n0rpan
n0rpan enabled auto-merge December 1, 2026 14:20
@n0rpan

n0rpan commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

In line to merge. Commit 75f83d3 is reviewed with nothing blocking; it enters the merge queue when OX merge check passes.

@n0rpan
n0rpan added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit 16531ab Dec 1, 2026
59 checks passed
@n0rpan
n0rpan deleted the mobile/session-alert-host-lookup branch December 1, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant