From 5e1098799573e90d3b23917f24353feca0ad32eb Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 10 Nov 2026 18:33:39 -0600 Subject: [PATCH] Document Photon custody and scoped local qualification Describe enabled managed Cloud handoff, current authorization, exact acknowledgement and retained retry/retirement responsibility. Preserve historical live evidence and state remaining assembled/TLS/proxy/quiet limits. Co-Authored-By: Paperclip --- doc/connections/IMESSAGE-PHOTON-VERIFICATION.md | 17 +++++++++++++++++ doc/connections/IMESSAGE-PHOTON.md | 17 ++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/doc/connections/IMESSAGE-PHOTON-VERIFICATION.md b/doc/connections/IMESSAGE-PHOTON-VERIFICATION.md index 2151eb66ca7..27e19ed30d8 100644 --- a/doc/connections/IMESSAGE-PHOTON-VERIFICATION.md +++ b/doc/connections/IMESSAGE-PHOTON-VERIFICATION.md @@ -33,6 +33,23 @@ stopped or altered. ## Deterministic acceptance evidence +The Cloud-handoff follow-up was locally qualified on 2026-11-10 with SDK 2.2.0 +and grpc-js 1.14.5 (App source `8633bd57`, Cloud source `696851d3`). Normal current +App and Cloud TypeScript producers passed. Five whole Cloud owner/resource files +passed 45 controls; a separate SDK loopback test proved cleartext HTTP/2 close and +fresh reconnect. Three whole App files passed 41 cases, including the real +Chat 4.39 shutdown path with controlled receiver/close failures and same-owner +registry retry. The new shutdown case first failed because receiver rejection +skipped adapter cleanup, then passed after independent teardown and exact close- +attempt joining. These controlled lifecycle cases do not prove physical sockets. + +Those follow-up receipts do not repeat or extend the historical September live +journeys below. The assembled real-SDK encrypted Cloud custody → authorized App +useful response → exact ACK/replay journey, TLS/proxy resource branch, and enabled +quiet/fresh-reactivation measurement remain pending. No deployed Cloud rollout +or complete sleep acceptance is claimed from compilation, pure owner controls, +or the cleartext HTTP/2 test. + `server/src/__tests__/photon/photon.test.ts` exercises Basic Cloud authentication, token redaction, dedicated/shared/missing allocation, immutable line identity, Unicode multipart publication, receipt recovery, unknown sends and explicit retry, diff --git a/doc/connections/IMESSAGE-PHOTON.md b/doc/connections/IMESSAGE-PHOTON.md index 8cab0841da7..f0961fe92ab 100644 --- a/doc/connections/IMESSAGE-PHOTON.md +++ b/doc/connections/IMESSAGE-PHOTON.md @@ -152,6 +152,14 @@ Do not retry by creating another publication or changing its key. Explicit retri reuse the original key and payload. Similar text is not evidence of delivery. An ambiguous upload without a recorded receipt also needs operator review. +On a managed instance whose Cloud supports the encrypted Photon receiver, +normal channel configuration can hand intake to Cloud while keeping the channel +enabled. The handoff retains the exact company, endpoint, credential generation, +intake cutoff, and checkpoint. Cloud stores encrypted deliveries and wakes the +App; the App still checks the current sender, destination, task, and permissions +before importing work. It acknowledges only the durably accepted ordered prefix. +An instance without that capability retains its normal local receiver. + One elected receiver holds the endpoint lease. Live streams notify a serial catch-up reader. The reader advances its checkpoint only after preceding events are durably admitted or classified, including irrelevant events. It deduplicates @@ -177,7 +185,14 @@ suppressed during pause do not become work. Outage recovery catches up eligible missed messages. Disconnect archives the endpoint, stops streams, invalidates interaction authority, and removes owned secret bindings. It does not delete the Photon project, number, subscription, or Messages history. Hiding experimental -UI alone does not disconnect existing channels. +UI alone does not disconnect existing channels. A Cloud handoff or retirement +cannot report completion from an expired lease or a missing local runtime alone: +it retains unconfirmed resource-close, delivery, and acknowledgement work. +Shutdown joins the same owned receiver and adapter resources; a failed close +remains retryable on that owner. Normal authorized Retry preserves the original +handoff and publication identities rather than replacing uncertain work with a +new send. An unknown retirement keeps its credential-cleanup responsibility +until normal acceptance and resource closure are confirmed. ## Troubleshooting