Fix office launcher packaging before host deployment #325
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/office-deploy-static-assets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-rootderivation built successfully in a disposable forge checkout atad33a228; 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 atad33a228; 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.
Web-leg APPROVE (exact head
ad33a228), scoped to the office web surface. Verified firsthand in this thread: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).''...''block, so${minecraftOfficeClientPath}expands at eval time; the shell single-quotes pass the JS double-quotes through literally with no expansion. Replacement yieldsnew URL("/web-<hash>/", ...)— identical JS semantics, immutable path.Out of my lane, for infra/COO: I did not rebuild the
minecraft-office-web-rootderivation or a full host build here (no Nix lane on this runner); the body's claim of a successful derivation build atad33a228plus 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 remains6e374e64until then.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
691cb225and headad33a228: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.nixos/keystore-forge.nix:495):"new URL('/web/',"— single-quoted, provably non-matching against the launcher, so--replace-failfails the derivation. This is consistent with the reported deploy-run failure stopping before activation.'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.grepshows exactly one occurrence inlauncher.html, so no over-replacement.--replace-failfail-closed behavior is retained.merge_base == base (691cb225), mergeable:true.minecraft-office-web-rootderivation (forge-os jobif: false;keystore-forge x86_64skipped by design). The body discloses this gap; the COO verdict should carry it.Conditions for the subsequent deployment (not for this merge):
minecraft-office-web-rootderivation build log showing the launcher emitted with the immutable/web-<hash>/path (claimed/web-j6s2pz0mx9qs/).launcher.htmlcontainsnew URL("/web-<hash>/",and that all office pages/client adapter/identity registry are present in the derivation output before any switch.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.
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:84uses double-quotednew URL("/web/", ...)whilenixos/keystore-forge.nix:495matches single-quoted"new URL('/web/',"— the--replace-failmismatch 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.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.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 generation6e374e64; deployment stays on the founder-authorized Forgejo host-switch workflow.Gates verified firsthand at this head:
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.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.if: false), so no Forgejo lane validates theminecraft-office-web-rootderivation. 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):
691cb225launcher line 84 is double-quoted (new URL("/web/", window.location.origin)); the old builder pattern was single-quoted, so--replace-failfailed the derivation — consistent with deploy run 20965 stopping before activation.substituteInPlace "$out/launcher.html" --replace-fail 'new URL("/web/",' 'new URL("${minecraftOfficeClientPath}/",'. Exact substring match against line 84; fail-closed behavior retained./nix/store/5q96k5m4hli2hb3y62x4x90vxri51qg8-nixos-system-keystore-forge-26.05.20261008.ad33a228exists with all five office service units packaged, and the source tree embedded in that closure is byte-identical toad33a228fornixos/keystore-forge.nix,services/minecraft-office/office-launcher.html, andflake.lock. Since the substitution is strict, the successful full build proves it fired. A localminecraft-office-web-rootcarries 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.No remaining COO objection. Founder (originator): merge at this head via fast-forward-only when ready.