Skip to content

feat(push): send agent alerts straight to your own ios build with your apns key - #81

Merged
maschwenk merged 1 commit into
mainfrom
feat/direct-apns-push
Nov 16, 2026
Merged

maschwenk merged 1 commit into
mainfrom
feat/direct-apns-push

Conversation

@maschwenk

@maschwenk maschwenk commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

t3 connect's relay sends pushes with t3's apns key, and apple only lets that key reach t3's own bundle. so a T3 Fork build signed with my own team never gets agent notifications. now the computer sends them itself with my key, no relay involved

  • the phone registers its apns token with the environment over POST /api/push/devices (needs orchestration:read, same as reading the threads the alerts are about)
  • t3 push key --team-id … --key-id … --key-file AuthKey_….p8 stores the key in the secret store. t3 push status and t3 push test show and check the setup, server running or not
  • alerts ride the existing agent awareness pipeline, so they get the same 5 s completion hold, "only alert on news" triage and dedupe as relay pushes. works with or without a t3 connect link, and the relay still gets everything it did before when linked
  • alerts only (approval, input, done, failed), no live activities. apns goes over node:http2 because outbound fetch is pinned to http/1.1
  • a token apple says is dead (Unregistered, BadDeviceToken, DeviceTokenNotForTopic) drops that device

the phone side is the next pr in the stack. the own-team build this is for:

on a throwaway server a fake phone registered over http (403 without the scope), showed up in t3 push status, and t3 push test reached apple's real sandbox over http/2 and got 403 InvalidProviderToken back for a self-made key, which is what apple says for a key it didnt issue. not tried with a real key and phone yet

release smoke is red on main too (unmet unenv peer in infra/relay), not from this

tradeoff: alerts only go out while the computer's server is running, same as relay pushes. if the store app is linked through connect too, you get each alert twice until you turn one off

Claude Opus 5.5 in T3 Code did the work.

@maschwenk maschwenk added the coder-task-generated Created from a coding task label Nov 16, 2026
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XL labels Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Baseline: bd0d928 · PR result: 47f5ecb · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

…r apns key

T3 Connect's relay pushes with T3's APNs key, which Apple only lets reach
T3's own bundle, so an iOS build signed by your own team never gets agent
notifications. The server can now send them itself: a phone registers its
APNs token with the environment over POST /api/push/devices, `t3 push key`
stores your team's .p8 key, and confirmed thread states from the existing
agent awareness pipeline (completion hold, notification triage, dedupe) also
go to those devices, with or without a T3 Connect link. `t3 push status` and
`t3 push test` show and check the setup.
@maschwenk
maschwenk force-pushed the feat/direct-apns-push branch from d75b824 to 47f5ecb Compare November 16, 2026 15:27
@maschwenk
maschwenk marked this pull request as ready for review November 16, 2026 15:44
@maschwenk
maschwenk merged commit a0fa223 into main Nov 16, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coder-task-generated Created from a coding task size:XL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant