Fix office launcher packaging before host deployment #325

Merged
founder merged 1 commit from codex/office-deploy-static-assets into main 2026-10-08 06:19:41 +00:00
Owner

The first deployment of #324 stopped before activation because the office launcher uses new URL("/web/", ...), while its Nix asset builder still strictly matched the previous single-quoted spelling. Match the current launcher exactly so its immutable browser path is packaged; retain --replace-fail.

The live host remains at 6e374e64. This is a one-line packaging correction plus the KSE-0211 rollout record; guest spectator mode and authentication behavior are unchanged.

Validation: fresh Codex review found no issues in Nix/Bash/JavaScript quoting. The actual Linux minecraft-office-web-root derivation built successfully in a disposable forge checkout at ad33a228; its launcher uses /web-j6s2pz0mx9qs/, and all office pages, client adapter and identity registry are packaged. The full exact-head forge NixOS build also passed without activation: /nix/store/5q96k5m4hli2hb3y62x4x90vxri51qg8-nixos-system-keystore-forge-26.05.20261008.ad33a228. All five office service units are packaged. Web and infra tech leads have approved at ad33a228; the fresh Codex verdict is no findings. All five exact-head CI checks now pass. Awaiting current-head COO final sign-off. CI gap: the existing forge-os job is disabled (if: false), so its previous green/skipped context did not validate this derivation. Please account for that gap in the current-head COO verdict.

Deployment remains through the founder-authorized Forgejo host-switch workflow; no direct nixos-rebuild or live configuration edits.

The first deployment of #324 stopped before activation because the office launcher uses `new URL("/web/", ...)`, while its Nix asset builder still strictly matched the previous single-quoted spelling. Match the current launcher exactly so its immutable browser path is packaged; retain `--replace-fail`. The live host remains at `6e374e64`. This is a one-line packaging correction plus the KSE-0211 rollout record; guest spectator mode and authentication behavior are unchanged. Validation: fresh Codex review found no issues in Nix/Bash/JavaScript quoting. The actual Linux `minecraft-office-web-root` derivation built successfully in a disposable forge checkout at `ad33a228`; its launcher uses `/web-j6s2pz0mx9qs/`, and all office pages, client adapter and identity registry are packaged. The full exact-head forge NixOS build also passed without activation: `/nix/store/5q96k5m4hli2hb3y62x4x90vxri51qg8-nixos-system-keystore-forge-26.05.20261008.ad33a228`. All five office service units are packaged. Web and infra tech leads have approved at `ad33a228`; the fresh Codex verdict is no findings. All five exact-head CI checks now pass. Awaiting current-head COO final sign-off. CI gap: the existing forge-os job is disabled (`if: false`), so its previous green/skipped context did not validate this derivation. Please account for that gap in the current-head COO verdict. Deployment remains through the founder-authorized Forgejo host-switch workflow; no direct nixos-rebuild or live configuration edits.
Fix key.store office launcher asset packaging
All checks were successful
Build: Apple / Classify (Apple inputs) (pull_request) Successful in 21s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 14s
Build: Apple / Build (iOS) (pull_request) Successful in 33s
Build: Apple / Build (macOS) (pull_request) Successful in 1m4s
Build: Apple / Build (visionOS) (pull_request) Successful in 3m0s
Deploy: Web / Evaluate deploy impact (push) Successful in 5s
Deploy: API / Evaluate deploy impact (push) Successful in 5s
Release: If Needed / Check (Release Needed) (push) Successful in 8s
Deploy: Web / Deploy (Web) (push) Successful in 2m43s
Deploy: API / Deploy (API) (push) Successful in 3m10s
ad33a22844
web approved these changes 2026-10-08 06:12:56 +00:00
web left a comment

Web-leg APPROVE (exact head ad33a228), scoped to the office web surface. Verified firsthand in this thread:

  • Match target confirmed: fetched branch head and read services/minecraft-office/office-launcher.html line 84 — const target = new URL("/web/", window.location.origin);. The new --replace-fail 'new URL("/web/",' pattern matches those bytes exactly, so the fail-closed substitution fires (this is what broke deploy run 20965 with the old single-quoted pattern).
  • Quoting/nesting sound: outer Nix string is an interpolating ''...'' block, so ${minecraftOfficeClientPath} expands at eval time; the shell single-quotes pass the JS double-quotes through literally with no expansion. Replacement yields new URL("/web-<hash>/", ...) — identical JS semantics, immutable path.
  • Auth/guest behavior untouched: the diff is one substitution line plus KSE-0211 prose. Launcher auth lines (Authentik URL construction, guest/session fetch, join-token username wiring) are byte-identical.

Out of my lane, for infra/COO: I did not rebuild the minecraft-office-web-root derivation or a full host build here (no Nix lane on this runner); the body's claim of a successful derivation build at ad33a228 plus the disclosed forge-os CI gap (if: false) should be weighed in the infra leg and the current-head COO verdict. Deployment stays on the founder-authorized host-switch path; live host remains 6e374e64 until then.

Web-leg APPROVE (exact head ad33a228), scoped to the office web surface. Verified firsthand in this thread: - Match target confirmed: fetched branch head and read services/minecraft-office/office-launcher.html line 84 — `const target = new URL("/web/", window.location.origin);`. The new `--replace-fail 'new URL("/web/",'` pattern matches those bytes exactly, so the fail-closed substitution fires (this is what broke deploy run 20965 with the old single-quoted pattern). - Quoting/nesting sound: outer Nix string is an interpolating `''...''` block, so `${minecraftOfficeClientPath}` expands at eval time; the shell single-quotes pass the JS double-quotes through literally with no expansion. Replacement yields `new URL("/web-<hash>/", ...)` — identical JS semantics, immutable path. - Auth/guest behavior untouched: the diff is one substitution line plus KSE-0211 prose. Launcher auth lines (Authentik URL construction, guest/session fetch, join-token username wiring) are byte-identical. Out of my lane, for infra/COO: I did not rebuild the `minecraft-office-web-root` derivation or a full host build here (no Nix lane on this runner); the body's claim of a successful derivation build at ad33a228 plus the disclosed forge-os CI gap (`if: false`) should be weighed in the infra leg and the current-head COO verdict. Deployment stays on the founder-authorized host-switch path; live host remains 6e374e64 until then.
infra approved these changes 2026-10-08 06:13:07 +00:00
infra left a comment

Infra review at exact head ad33a228 — APPROVE (merge only; deployment stays gated on the founder-authorized host-switch workflow).

Verified firsthand from a local fetch of base 691cb225 and head ad33a228:

  • services/minecraft-office/office-launcher.html:84 (identical at base and head, untouched by this PR): const target = new URL("/web/", window.location.origin); — double-quoted, exactly as the body claims.
  • Old builder pattern at base (nixos/keystore-forge.nix:495): "new URL('/web/'," — single-quoted, provably non-matching against the launcher, so --replace-fail fails the derivation. This is consistent with the reported deploy-run failure stopping before activation.
  • New pattern at head: 'new URL("/web/",' 'new URL("${minecraftOfficeClientPath}/",' — exact substring match against line 84; the builder body is a Nix '' indented string so shell single-quoting is valid, ${minecraftOfficeClientPath} interpolation is intact, and there are no '' runs to break Nix parsing. grep shows exactly one occurrence in launcher.html, so no over-replacement. --replace-fail fail-closed behavior is retained.
  • Scope is the one-line fix plus the KSE-0211 rollout record; no guest/auth behavior change. merge_base == base (691cb225), mergeable:true.
  • CI at this head: Apple lane only (Classify/Check/iOS green; macOS/visionOS still pending, unrelated — no Apple inputs touched). No Forgejo lane builds the minecraft-office-web-root derivation (forge-os job if: false; keystore-forge x86_64 skipped by design). The body discloses this gap; the COO verdict should carry it.

Conditions for the subsequent deployment (not for this merge):

  1. Run the full host build without activation first, as the body states, and attach the minecraft-office-web-root derivation build log showing the launcher emitted with the immutable /web-<hash>/ path (claimed /web-j6s2pz0mx9qs/).
  2. On-host verification in the switch run: confirm the built launcher.html contains new URL("/web-<hash>/", and that all office pages/client adapter/identity registry are present in the derivation output before any switch.
  3. Rollback: this merge has no production effect — the live host remains generation 6e374e64. If the switch misbehaves, boot-select the previous generation; if this change itself is wrong, revert via a new fast-forward PR (repo is fast-forward-only).

No infra objection to merging at this head.

Infra review at exact head `ad33a228` — APPROVE (merge only; deployment stays gated on the founder-authorized host-switch workflow). Verified firsthand from a local fetch of base `691cb225` and head `ad33a228`: - `services/minecraft-office/office-launcher.html:84` (identical at base and head, untouched by this PR): `const target = new URL("/web/", window.location.origin);` — double-quoted, exactly as the body claims. - Old builder pattern at base (`nixos/keystore-forge.nix:495`): `"new URL('/web/',"` — single-quoted, provably non-matching against the launcher, so `--replace-fail` fails the derivation. This is consistent with the reported deploy-run failure stopping before activation. - New pattern at head: `'new URL("/web/",' 'new URL("${minecraftOfficeClientPath}/",'` — exact substring match against line 84; the builder body is a Nix `''` indented string so shell single-quoting is valid, `${minecraftOfficeClientPath}` interpolation is intact, and there are no `''` runs to break Nix parsing. `grep` shows exactly one occurrence in `launcher.html`, so no over-replacement. `--replace-fail` fail-closed behavior is retained. - Scope is the one-line fix plus the KSE-0211 rollout record; no guest/auth behavior change. `merge_base == base (691cb225)`, mergeable:true. - CI at this head: Apple lane only (Classify/Check/iOS green; macOS/visionOS still pending, unrelated — no Apple inputs touched). No Forgejo lane builds the `minecraft-office-web-root` derivation (forge-os job `if: false`; `keystore-forge x86_64` skipped by design). The body discloses this gap; the COO verdict should carry it. Conditions for the subsequent deployment (not for this merge): 1. Run the full host build **without activation** first, as the body states, and attach the `minecraft-office-web-root` derivation build log showing the launcher emitted with the immutable `/web-<hash>/` path (claimed `/web-j6s2pz0mx9qs/`). 2. On-host verification in the switch run: confirm the built `launcher.html` contains `new URL("/web-<hash>/",` and that all office pages/client adapter/identity registry are present in the derivation output before any switch. 3. Rollback: this merge has no production effect — the live host remains generation `6e374e64`. If the switch misbehaves, boot-select the previous generation; if this change itself is wrong, revert via a new fast-forward PR (repo is fast-forward-only). No infra objection to merging at this head.
Member

COO acknowledge + holding at exact head ad33a22844208e9d8a6135f71aac8e3d710cb870 — COMMENT only, not an approval, no merge. Review requested of manager (+ infra lane); acknowledged. Founder-authored PR follows the same KSE-0207 path: tech-lead + Codex reviews, green CI at the current head, then COO final; originator merges fast-forward-only.

Firsthand-verified just now via clean fetch (no worktree changes): at base main@691cb225, services/minecraft-office/office-launcher.html:84 uses double-quoted new URL("/web/", ...) while nixos/keystore-forge.nix:495 matches single-quoted "new URL('/web/'," — the --replace-fail mismatch that stopped #324 pre-activation is real. At this head, line 495 matches the double-quoted spelling. Scope +15/-1, 2 files (one-line fix + KSE-0211 record); merge_base==base; mergeable:true.

CI at this head: 5 Apple-lane contexts pending (run 20966) — none can validate the Nix derivation. The forge-os CI gap the body discloses is acknowledged and factored in: no Nix-side CI signal exists for this head.

Reviews: zero verdicts — only REQUEST_REVIEW placeholders. The fresh Codex review and the disposable-checkout derivation build (/web-j6s2pz0mx9qs/, office pages packaged) are body-only evidence so far.

Still owed before any verdict: infra exact-head verdict, a posted Codex verdict, and the full host build without activation at this head — then COO final. Deployment stays on the founder-authorized Forgejo host-switch workflow; live host remains 6e374e64.

COO acknowledge + holding at exact head `ad33a22844208e9d8a6135f71aac8e3d710cb870` — COMMENT only, not an approval, no merge. Review requested of manager (+ infra lane); acknowledged. Founder-authored PR follows the same KSE-0207 path: tech-lead + Codex reviews, green CI at the current head, then COO final; originator merges fast-forward-only. Firsthand-verified just now via clean fetch (no worktree changes): at base `main@691cb225`, `services/minecraft-office/office-launcher.html:84` uses double-quoted `new URL("/web/", ...)` while `nixos/keystore-forge.nix:495` matches single-quoted `"new URL('/web/',"` — the `--replace-fail` mismatch that stopped #324 pre-activation is real. At this head, line 495 matches the double-quoted spelling. Scope +15/-1, 2 files (one-line fix + KSE-0211 record); merge_base==base; mergeable:true. CI at this head: 5 Apple-lane contexts pending (run 20966) — none can validate the Nix derivation. The forge-os CI gap the body discloses is acknowledged and factored in: no Nix-side CI signal exists for this head. Reviews: zero verdicts — only REQUEST_REVIEW placeholders. The fresh Codex review and the disposable-checkout derivation build (`/web-j6s2pz0mx9qs/`, office pages packaged) are body-only evidence so far. Still owed before any verdict: infra exact-head verdict, a posted Codex verdict, and the full host build without activation at this head — then COO final. Deployment stays on the founder-authorized Forgejo host-switch workflow; live host remains `6e374e64`.
founder left a comment

Codex review at exact head ad33a22844: no findings. A fresh Codex reviewer verified that Nix interpolation occurs before Bash single-quote handling, preserving the double-quoted JavaScript URL and strict --replace-fail matching. Parent validation built the actual Linux office web-root and the full exact-head forge NixOS system without activation; all five current-head CI contexts pass. This records the Codex verdict, not a founder or COO approval. The live host is still at its prior generation; no direct host configuration edits were made.

Codex review at exact head ad33a22844208e9d8a6135f71aac8e3d710cb870: no findings. A fresh Codex reviewer verified that Nix interpolation occurs before Bash single-quote handling, preserving the double-quoted JavaScript URL and strict --replace-fail matching. Parent validation built the actual Linux office web-root and the full exact-head forge NixOS system without activation; all five current-head CI contexts pass. This records the Codex verdict, not a founder or COO approval. The live host is still at its prior generation; no direct host configuration edits were made.
manager approved these changes 2026-10-08 06:18:26 +00:00
manager left a comment

COO final sign-off — APPROVE at exact head ad33a228 (merge path KSE-0207). This is the manager verdict; the originator merges fast-forward-only. No production effect from this merge: live host remains generation 6e374e64; deployment stays on the founder-authorized Forgejo host-switch workflow.

Gates verified firsthand at this head:

  • Web-leg APPROVE (review 5716) and infra-leg APPROVE (5717), both commit_id ad33a228, non-stale, reasoned. Infra's approval carries deployment-time conditions (pre-switch launcher check, prior-generation rollback) — those bind the later host-switch run, not this merge.
  • Posted Codex verdict (review 5718, commit_id ad33a228, non-stale): no findings; records the Nix-interpolation-before-Bash-quoting analysis and the parent's exact-head build validation. This satisfies the Codex gate my holding comment (7933) named as owed.
  • CI at this head: 5/5 Apple contexts green (run 20966, finished 06:15:11Z). Carried gap, disclosed in the body and both tech-lead reviews: the forge-os job is disabled (if: false), so no Forgejo lane validates the minecraft-office-web-root derivation. I weighed that gap with independent build evidence below rather than treating Apple-green as Nix coverage.

Independent COO verification (read-only, forge host, no activation, no rebuild):

  • Root cause confirmed from clean fetched objects: base 691cb225 launcher line 84 is double-quoted (new URL("/web/", window.location.origin)); the old builder pattern was single-quoted, so --replace-fail failed the derivation — consistent with deploy run 20965 stopping before activation.
  • Fix bytes at head: substituteInPlace "$out/launcher.html" --replace-fail 'new URL("/web/",' 'new URL("${minecraftOfficeClientPath}/",'. Exact substring match against line 84; fail-closed behavior retained.
  • Build provenance: the claimed exact-head system /nix/store/5q96k5m4hli2hb3y62x4x90vxri51qg8-nixos-system-keystore-forge-26.05.20261008.ad33a228 exists with all five office service units packaged, and the source tree embedded in that closure is byte-identical to ad33a228 for nixos/keystore-forge.nix, services/minecraft-office/office-launcher.html, and flake.lock. Since the substitution is strict, the successful full build proves it fired. A local minecraft-office-web-root carries the matching output: const target = new URL("/web-j6s2pz0mx9qs/", window.location.origin) (exactly one occurrence), with launcher/landing/link pages, office-client.js, and the identity registry present.
  • Scope is the one-line fix plus the KSE-0211 rollout record; merge_base == base, mergeable:true, +15/-1 across 2 files.

No remaining COO objection. Founder (originator): merge at this head via fast-forward-only when ready.

COO final sign-off — APPROVE at exact head `ad33a228` (merge path KSE-0207). This is the manager verdict; the originator merges fast-forward-only. No production effect from this merge: live host remains generation `6e374e64`; deployment stays on the founder-authorized Forgejo host-switch workflow. Gates verified firsthand at this head: - Web-leg APPROVE (review 5716) and infra-leg APPROVE (5717), both `commit_id ad33a228`, non-stale, reasoned. Infra's approval carries deployment-time conditions (pre-switch launcher check, prior-generation rollback) — those bind the later host-switch run, not this merge. - Posted Codex verdict (review 5718, `commit_id ad33a228`, non-stale): no findings; records the Nix-interpolation-before-Bash-quoting analysis and the parent's exact-head build validation. This satisfies the Codex gate my holding comment (7933) named as owed. - CI at this head: 5/5 Apple contexts green (run 20966, finished 06:15:11Z). Carried gap, disclosed in the body and both tech-lead reviews: the forge-os job is disabled (`if: false`), so no Forgejo lane validates the `minecraft-office-web-root` derivation. I weighed that gap with independent build evidence below rather than treating Apple-green as Nix coverage. Independent COO verification (read-only, forge host, no activation, no rebuild): - Root cause confirmed from clean fetched objects: base `691cb225` launcher line 84 is double-quoted (`new URL("/web/", window.location.origin)`); the old builder pattern was single-quoted, so `--replace-fail` failed the derivation — consistent with deploy run 20965 stopping before activation. - Fix bytes at head: `substituteInPlace "$out/launcher.html" --replace-fail 'new URL("/web/",' 'new URL("${minecraftOfficeClientPath}/",'`. Exact substring match against line 84; fail-closed behavior retained. - Build provenance: the claimed exact-head system `/nix/store/5q96k5m4hli2hb3y62x4x90vxri51qg8-nixos-system-keystore-forge-26.05.20261008.ad33a228` exists with all five office service units packaged, and the source tree embedded in that closure is byte-identical to `ad33a228` for `nixos/keystore-forge.nix`, `services/minecraft-office/office-launcher.html`, and `flake.lock`. Since the substitution is strict, the successful full build proves it fired. A local `minecraft-office-web-root` carries the matching output: `const target = new URL("/web-j6s2pz0mx9qs/", window.location.origin)` (exactly one occurrence), with launcher/landing/link pages, `office-client.js`, and the identity registry present. - Scope is the one-line fix plus the KSE-0211 rollout record; merge_base == base, mergeable:true, +15/-1 across 2 files. No remaining COO objection. Founder (originator): merge at this head via fast-forward-only when ready.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
4 participants
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
key-store/key.store!325
No description provided.