Product preview slot for port/notes-float #1098

Open
opened 2026-11-12 14:53:05 +00:00 by kayg · 6 comments
Owner

Requested: a real apps/web + Rust server preview, with normal passkey auth, for port/notes-float before merge to dev.

Implementation decision: dedicated https://notes-float.preview.calternal.cloud/ because the product uses root-relative API/service-worker paths. RP ID and origin will match that host. Caddy keeps existing mockup routes. Preview state and bootstrap tokens remain private under ~/preview-product/notes-float on dev-02; no production data or services.

Plan: deploy script in a PR into dev; Nix/slot builds on dev-02; separate persistent user service and fixed loopback port per slot; synthetic starter notes; repeatable redeploy preserving preview accounts; DNS-01 TLS; Safari on macos-01 and iPhone simulator verification with screenshots here. No merges or subagents.

Initial branch head: be968d9df0 (same as current dev). Open Notes Float slice PRs are separate; this deploy follows the requested branch only. Evidence and account instructions will follow.

Requested: a real apps/web + Rust server preview, with normal passkey auth, for port/notes-float before merge to dev. Implementation decision: dedicated https://notes-float.preview.calternal.cloud/ because the product uses root-relative API/service-worker paths. RP ID and origin will match that host. Caddy keeps existing mockup routes. Preview state and bootstrap tokens remain private under ~/preview-product/notes-float on dev-02; no production data or services. Plan: deploy script in a PR into dev; Nix/slot builds on dev-02; separate persistent user service and fixed loopback port per slot; synthetic starter notes; repeatable redeploy preserving preview accounts; DNS-01 TLS; Safari on macos-01 and iPhone simulator verification with screenshots here. No merges or subagents. Initial branch head: be968d9df0c759d4200c50d8d8396990cd43338f (same as current dev). Open Notes Float slice PRs are separate; this deploy follows the requested branch only. Evidence and account instructions will follow.
Author
Owner

Deploy implementation is pushed in #1099. Current resource constraint: dev-02 has 48 GiB available, below BRIEF-COMMON's 50 GiB build floor. No other lane's build/cache data will be deleted. Continuing lint, DNS/TLS setup and browser preparation while waiting for space. New product hostname: https://notes-float.preview.calternal.cloud/.

Deploy implementation is pushed in #1099. Current resource constraint: dev-02 has 48 GiB available, below BRIEF-COMMON's 50 GiB build floor. No other lane's build/cache data will be deleted. Continuing lint, DNS/TLS setup and browser preparation while waiting for space. New product hostname: https://notes-float.preview.calternal.cloud/.
Author
Owner

DNS and DNS-01 TLS are provisioned; Caddy validation passes and the existing mockup review still returns HTTP 200. The new hostname currently routes to port 25080; product build is starting. Correction to the earlier resource note: df -B1 reports 51.26 GB available, above the brief's stated 50 GB floor (the 48 figure was GiB). The deploy script now checks 50,000,000,000 bytes before each build step and uses a disposable executable runtime tmpfs for Rust build output, removed on exit. No other lane's files are removed. Bash syntax and shellcheck pass after intentional expansion/source annotations. SafariDriver on both Mac/iOS supports virtual authenticators, allowing actual passkey ceremony coverage without using kayg's enrollment token.

DNS and DNS-01 TLS are provisioned; Caddy validation passes and the existing mockup review still returns HTTP 200. The new hostname currently routes to port 25080; product build is starting. Correction to the earlier resource note: df -B1 reports 51.26 GB available, above the brief's stated 50 GB floor (the 48 figure was GiB). The deploy script now checks 50,000,000,000 bytes before each build step and uses a disposable executable runtime tmpfs for Rust build output, removed on exit. No other lane's files are removed. Bash syntax and shellcheck pass after intentional expansion/source annotations. SafariDriver on both Mac/iOS supports virtual authenticators, allowing actual passkey ceremony coverage without using kayg's enrollment token.
Author
Owner

The real product is live at https://notes-float.preview.calternal.cloud/ (branch port/notes-float, be968d9df). Healthy systemd user service calternal-preview-notes-float listens only on 127.0.0.1:25080; origin and WebAuthn RP ID match the visited hostname. No dev-user bypass. Kayg's preview account has synthetic notes and an unused private enrollment token/link.

Validation so far: Bash syntax and shellcheck pass; 6 focused DNS boundary/idempotency tests pass through Nix + slot on dev-02. Rust and web builds succeeded; temporary Rust output was removed. A redeploy while another lane reduced free disk below 50 GB refused to build and preserved the live service. Disk space is now available and a full repeat deploy is queued.

Browser limitation discovered: macOS SafariDriver accepts a virtual authenticator but registration remains pending, and credential inspection returns HTTP 501. The Studio's iOS driver reports no eligible simulator session host. Native Safari virtual-passkey coverage cannot yet be claimed. Continuing actual passkey coverage in Chromium and authenticated rendering/notes checks in real Safari, with these limits kept explicit.

The real product is live at https://notes-float.preview.calternal.cloud/ (branch port/notes-float, be968d9df). Healthy systemd user service calternal-preview-notes-float listens only on 127.0.0.1:25080; origin and WebAuthn RP ID match the visited hostname. No dev-user bypass. Kayg's preview account has synthetic notes and an unused private enrollment token/link. Validation so far: Bash syntax and shellcheck pass; 6 focused DNS boundary/idempotency tests pass through Nix + slot on dev-02. Rust and web builds succeeded; temporary Rust output was removed. A redeploy while another lane reduced free disk below 50 GB refused to build and preserved the live service. Disk space is now available and a full repeat deploy is queued. Browser limitation discovered: macOS SafariDriver accepts a virtual authenticator but registration remains pending, and credential inspection returns HTTP 501. The Studio's iOS driver reports no eligible simulator session host. Native Safari virtual-passkey coverage cannot yet be claimed. Continuing actual passkey coverage in Chromium and authenticated rendering/notes checks in real Safari, with these limits kept explicit.
Author
Owner

Real Safari on macos-01, 1440 × 900, the deployed Rust server + apps/web at https://notes-float.preview.calternal.cloud/. Synthetic QA account, Trip ideas opened.

Passkey setup, logout, fresh-browser passkey sign-in and note opening passed in Chrome on the Mac through its own Nix/slot. Safari then restored that authenticated QA session and passed server auth status plus note-content checks; these screenshots are real Safari, not Playwright WebKit. Native Safari passkey completion remains unverified because the virtual authenticator does not complete there. Kayg’s separate enrollment token was not used.

mac-note-light.png

mac-note-dark.png

Real Safari on macos-01, 1440 × 900, the deployed Rust server + apps/web at https://notes-float.preview.calternal.cloud/. Synthetic QA account, Trip ideas opened. Passkey setup, logout, fresh-browser passkey sign-in and note opening passed in Chrome on the Mac through its own Nix/slot. Safari then restored that authenticated QA session and passed server auth status plus note-content checks; these screenshots are real Safari, not Playwright WebKit. Native Safari passkey completion remains unverified because the virtual authenticator does not complete there. Kayg’s separate enrollment token was not used. ![mac-note-light.png](https://git.kayg.org/attachments/e4e6c728-89e1-470f-ad3d-5b4704b106cb) ![mac-note-dark.png](https://git.kayg.org/attachments/ba629450-4712-4475-b9e2-53193820f9a3)
Author
Owner

Repeat deployment now passes end-to-end with the same one-command invocation. The script reuses the complete build when the requested branch still points at the already deployed SHA; a changed SHA still builds Rust + apps/web through Nix/slot. The user service restarted healthy, the private enrollment file compared unchanged, and the preview data was retained. The temporary iPhone QA session-transfer route was removed and its cleanup timer stopped.

Kayg account instructions: connect to NetBird, retrieve the private file /home/cua/preview-product/notes-float/enrollment-url.txt on dev-02 through the captain (do not paste it into this issue), and open that URL on the device that should save the preview passkey. Enter your name and choose Create passkey. This enrolls the already-created, separate kayg preview account with synthetic Trip ideas and Reading list notes. The one-time token lasts 24 hours from creation. Afterwards use https://notes-float.preview.calternal.cloud/ and Sign in with your passkey. Preview passkeys belong to notes-float.preview.calternal.cloud and are separate from production. No invite approval or admin bootstrap is needed. Redeploy preserves the account and its passkeys.

Current validation head d8b6088e2: Bash syntax + shellcheck clean; python3 -m unittest discover -s scripts/preview -p product_dns_test.py -v reports 6 tests, OK. Actual passkey enrollment/login and real Mac Safari note screenshots are above. The first headless iPhone captures were blank and have NOT been posted as success evidence; a plain-health-page comparison is running to distinguish simulator rendering from the product.

Repeat deployment now passes end-to-end with the same one-command invocation. The script reuses the complete build when the requested branch still points at the already deployed SHA; a changed SHA still builds Rust + apps/web through Nix/slot. The user service restarted healthy, the private enrollment file compared unchanged, and the preview data was retained. The temporary iPhone QA session-transfer route was removed and its cleanup timer stopped. Kayg account instructions: connect to NetBird, retrieve the private file /home/cua/preview-product/notes-float/enrollment-url.txt on dev-02 through the captain (do not paste it into this issue), and open that URL on the device that should save the preview passkey. Enter your name and choose Create passkey. This enrolls the already-created, separate kayg preview account with synthetic Trip ideas and Reading list notes. The one-time token lasts 24 hours from creation. Afterwards use https://notes-float.preview.calternal.cloud/ and Sign in with your passkey. Preview passkeys belong to notes-float.preview.calternal.cloud and are separate from production. No invite approval or admin bootstrap is needed. Redeploy preserves the account and its passkeys. Current validation head d8b6088e2: Bash syntax + shellcheck clean; python3 -m unittest discover -s scripts/preview -p product_dns_test.py -v reports 6 tests, OK. Actual passkey enrollment/login and real Mac Safari note screenshots are above. The first headless iPhone captures were blank and have NOT been posted as success evidence; a plain-health-page comparison is running to distinguish simulator rendering from the product.
Author
Owner

the iphone check now passes in real iOS 27 Safari on a disposable iPhone 18 Pro simulator on std. the test restored the synthetic QA session, forced a full document reload, opened Trip ideas, and asserted the actual XCTest accessibility hierarchy contained “Spiti in June”. the earlier sign-in screen was stale app state after session transfer. light and dark screenshots were inspected before upload. this verifies authenticated note rendering, not native Safari passkey enrollment. Chrome on macos-01 separately passed actual WebAuthn enrollment, logout and fresh-browser sign-in; native Safari enrollment remains unverified because of the driver limitations documented above.

iphone dark

iphone light

final deployment: https://notes-float.preview.calternal.cloud/ (NetBird required). source port/notes-float at be968d9df0. PR #1099 at 72b0626015. no merge performed.

one-command redeploy from the control host:

netbird ssh cua@calternal-dev-02-std 'export PATH=/nix/var/nix/profiles/default/bin:$PATH; cd ~/Developer/Worktrees/product-preview-driver; nix develop -c bash scripts/preview-product.sh port/notes-float notes-float'

the existing driver checkout contains the PR scripts. after the PR merges, the captain can update that dedicated checkout to origin/dev. repeated deployments preserve the preview account and passkeys; changed branch tips build through Nix and ~/bin/slot.

kayg's enrollment link is private at /home/cua/preview-product/notes-float/enrollment-url.txt on dev-02. retrieve it through the captain and open it on the device that should save the passkey. it enrolls the separate kayg preview account; the one-use token expires 24 hours after creation. use the public slot URL for subsequent sign-ins. no secret is in this issue.

fresh checks on the final script head: bash -n scripts/preview-product.sh scripts/preview/product-host.sh; shellcheck scripts/preview-product.sh scripts/preview/product-host.sh; python3 -m unittest discover -s scripts/preview -p product_dns_test.py -v (6 passed). tools came from nix shell nixpkgs#shellcheck nixpkgs#python3. latest deployment exited 0, both preview user services are active, renewal timer is enabled, HTTPS health is ok, unauthenticated auth/status correctly returns signed_in:false, existing mockup /review.html returns 200. temporary QA proxy routes are removed, diagnostic unit stopped, own simulator deleted and capture job finished. no production service or data was accessed.

the iphone check now passes in real iOS 27 Safari on a disposable iPhone 18 Pro simulator on std. the test restored the synthetic QA session, forced a full document reload, opened Trip ideas, and asserted the actual XCTest accessibility hierarchy contained “Spiti in June”. the earlier sign-in screen was stale app state after session transfer. light and dark screenshots were inspected before upload. this verifies authenticated note rendering, not native Safari passkey enrollment. Chrome on macos-01 separately passed actual WebAuthn enrollment, logout and fresh-browser sign-in; native Safari enrollment remains unverified because of the driver limitations documented above. ![iphone dark](https://git.kayg.org/attachments/0a966335-d445-4012-93b8-fb2ee0f00ec4) ![iphone light](https://git.kayg.org/attachments/8d83f11e-677d-403d-8f2f-bc6a8eb45bc4) final deployment: https://notes-float.preview.calternal.cloud/ (NetBird required). source port/notes-float at be968d9df0c759d4200c50d8d8396990cd43338f. PR #1099 at 72b06260154bfbeaa91d531f2923a2cfc44ae5f8. no merge performed. one-command redeploy from the control host: ```sh netbird ssh cua@calternal-dev-02-std 'export PATH=/nix/var/nix/profiles/default/bin:$PATH; cd ~/Developer/Worktrees/product-preview-driver; nix develop -c bash scripts/preview-product.sh port/notes-float notes-float' ``` the existing driver checkout contains the PR scripts. after the PR merges, the captain can update that dedicated checkout to origin/dev. repeated deployments preserve the preview account and passkeys; changed branch tips build through Nix and ~/bin/slot. kayg's enrollment link is private at /home/cua/preview-product/notes-float/enrollment-url.txt on dev-02. retrieve it through the captain and open it on the device that should save the passkey. it enrolls the separate kayg preview account; the one-use token expires 24 hours after creation. use the public slot URL for subsequent sign-ins. no secret is in this issue. fresh checks on the final script head: bash -n scripts/preview-product.sh scripts/preview/product-host.sh; shellcheck scripts/preview-product.sh scripts/preview/product-host.sh; python3 -m unittest discover -s scripts/preview -p product_dns_test.py -v (6 passed). tools came from nix shell nixpkgs#shellcheck nixpkgs#python3. latest deployment exited 0, both preview user services are active, renewal timer is enabled, HTTPS health is ok, unauthenticated auth/status correctly returns signed_in:false, existing mockup /review.html returns 200. temporary QA proxy routes are removed, diagnostic unit stopped, own simulator deleted and capture job finished. no production service or data was accessed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#1098
No description provided.