Skip to content

feat(platform): provide fixed Connect cloud config CAS - #980

Open
simonvanlaak wants to merge 2 commits into
mainfrom
t3/platform-connect-cloud-config
Open

simonvanlaak wants to merge 2 commits into
mainfrom
t3/platform-connect-cloud-config

Conversation

@simonvanlaak

@simonvanlaak simonvanlaak commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Connect's TypeScript login/logout adoption needs durable access to the existing cloud config group. Add fixed connect-owner readConnectCloud / compareAndSwapConnectCloud operations to the existing config helper and expose createConnectCloudConfig from compiled @apparent/config-host/cloud ESM/declarations.

CAS compares the entire presence/value under the same config writer lock and atomic publication used by existing writers. It preserves config outside cloud; Connect constructs the next opaque group and retains nested server/unknown fields/secrets, consent and cutover policy. Missing remains distinct from null. Conflict/read do not rewrite, and matching same-value CAS republishes after an uncertain durability result. Lost/uncertain replies are unknown with no automatic retry. No arbitrary key selector, second writer, GUI operation or installed-route switch is added.

The package requires Node >=22.18 and the paired contracts peer; its cloud declaration graph is headless. Values remain bounded to 16,384 serialized JSON bytes, and the existing protocol frame to 65,536 bytes including LF. The native producer explicitly builds the public adapter before exercising the exact staged helper, and its verify lane includes a normal packed consumer install.

Validation: independent Luna priority source review approved; TypeScript transport 12/12; cold paired tar normal install/plain Node/strict declarations without React and installed transport 12/12 with cargo/rustc/tsc/esbuild denied; native Rust 4 library + 2 host + 18 integration tests; clean frozen-source Linux RELEASE producer and six public staged-helper cases; AppShell 50 checks and architecture passed. Root build passed; the root suite passed 941 tests with 14 ignored under a private umask inside the admitted driver. All five packaged Linux Electron checks passed using the documented owned Xvfb and existing sandbox helper. Initial local runs without those test-environment requirements remain retained as failed evidence; no production safeguard was weakened.

Required before usable delivery: applicable fresh Linux/Mac PR native producers, merge gates and exact-main artifact/receipt/attestation admission. Connect's live Rust writer remains authoritative until its owner qualifies the separate transition. No activation or installed GUI proof is claimed. Platform retains a direct usable API/package/helper/evidence return to the existing waiting Connect owner.

@simonvanlaak
simonvanlaak marked this pull request as ready for review November 7, 2026 06:31

This branch has not been deployed

No deployments
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.

1 participant