Repository navigation
docs(sbx): template operations in the RUNBOOK and user guide; templates-check.sh - #794
Conversation
…ts template deploy/sbx/templates-check.sh checks, against a deployed SBX0, that a client chooses the template its sandbox runs on. It does nothing unless SBX_LIVE_CHECK=1, reads only the environment, never prints a token (tokens go to 0600 files), and deletes the sandboxes it created at exit, also on failure or interrupt. With two users' logins (SBX_CHECK_HOME_A, _B) and two or more templates (SBX_CHECK_TEMPLATES) it checks: 1. the list names every template and no worker id; 2. each create records the template asked for; an unknown template is refused (unknown_template) and creates nothing; 3. each template's sandboxes go to its own worker; two sandboxes of one template share it but not their workspace key; 4. each sandbox's commands answer on its template's image, with an optional per-template probe (SBX_CHECK_PROBE_<ID>) that must say yes only there; 5. a token for one template's sandbox, sent to another template's worker, is PERMISSION_DENIED at the relay (direct client), and user B cannot reach user A's sandbox; 6. sbx up --template refuses a repository bound to another template's sandbox. SBX_CHECK_EXEC=0 checks the control plane alone (no command, no sbx up). deploy/sbx/tests/templates-check.test.sh runs it against a fake mocactl and a fake relay client: a correct service passes; each broken service (one worker for two templates, an unknown template accepted, a probe answering on the wrong template, a lax relay, B reaching A) fails its own check and still cleans up. The script runs on bash 3.2: the test runs it under its own interpreter, and make test-deploy-bash32 now includes the test. Refs rossoctl#753 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Rong Chang <[email protected]>
…heck - RUNBOOK §5, now "Adding, updating and removing a template": the onboarding folder as its long form; the build options a benchmark image needs; a versioned update (a new snapshot is a new worker; the old one drains, then is retired); removal, and what egress credentials do for a worker that serves no template; one control plane process per template store; what an operator sets in the self-serve policy (profiles, registries and repositories, quotas, and the rollback caution for the repository allowlist). - RUNBOOK §9: sizing a worker's budget for the commands run at once on a template, not for one session. - RUNBOOK guest egress: a template's snapshot built with its egress CA. - RUNBOOK §14, new: checking the templates with templates-check.sh. - README: where template onboarding lives, and the template tools and check beside the worker install. The sections the units carry (enrollment through the API, Redis's image and memory limit, the host agent, memory-aware placement, cold-start pacing, egress records, snapshot read-ahead) stay with their units' pull requests. Refs rossoctl#753 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Rong Chang <[email protected]>
- docs/sbx/user-guide.md: a new §8, "Using your own templates": quota, policy and hosts; activate with a sized wait, create --seed, deactivate --stop-now; that a probe sandbox created with --seed and then changed needs sbx rm --force; tags, edits and retire; the waits and their exit 5; egress records; --record; the admin writes. Creating and following a template stay with the authoring client's own section; later sections are renumbered. - packages/mocactl/README.md: run --record, and a pointer to mocactl sbx and its template commands. Refs rossoctl#753 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Rong Chang <[email protected]>
… at them - docs/specs/README.md: SBX rows for session templates, the template lifecycle, enrollment and roles, sandbox egress records, subject trust for gate records, memory-aware placement, cold-start pacing and mocactl for templates, each with the issue its implementation is proposed for. The specs come with those units, so they are named, not linked. - The SBX0 design, §8.2: a pointer from its hand-built curated set to the onboarding guide, the lifecycle design and the runbook's template sections. Refs rossoctl#753 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Rong Chang <[email protected]>
ingpaolodettori-dev
left a comment
There was a problem hiding this comment.
Summary
This PR is the operations side of the template docs: RUNBOOK §5/§9/§14, user guide §8, the specs README rows, and a new deploy/sbx/templates-check.sh with a fake-backed test in test-deploy-bash32. I checked the script against main. Its mocactl flags, the strings it matches (unknown_template, no such sandbox, has template X, not Y, /etc/moca-rootfs-source) and the sandbox_v1_client calls all exist, and sbx env prints SBX_TOKEN_CMD, not a token, so the logs it keeps after a failure are safe. One suggestion: a silent-abort path under set -e.
Author: webchang (MEMBER, maintainer)
Areas reviewed: Shell, Makefile, Docs
Agent/IDE config (.claude/.vscode): none
Commits: 4 commits, all signed off: yes
CI status: all checks passing
AI-assisted review, approved by a maintainer before posting.
| bad+=" $t: exit $RC, $(lastline "$LOGS/hello-$t.err")" | ||
| continue | ||
| fi | ||
| seen+=" $t=[$(sed -n 's/^hello //p' "$LOGS/hello-$t.out" | grep -o 'digest=sha256:[0-9a-f]\{12\}' | head -1)]" |
There was a problem hiding this comment.
suggestion: Under set -euo pipefail, if a template's guest has no /etc/moca-rootfs-source, or the file has no digest=sha256: line (an older snapshot, say), the grep -o fails and the seen+= assignment fails with it, so the script exits 1 mid-run. It prints no not ok line, and because FAILS is still 0, cleanup deletes the logs. Lines 164/166 (before=/after= from as a ls --json | jq length) have the same silent-abort path on a transient ls failure. Add || true inside the substitution here, and run the two ls counts through x (or || echo '?'), so the check reports instead of dying.
clawgenti
left a comment
There was a problem hiding this comment.
All checks pass. Ready for human review.
Every claim I checked holds against the code in the PR stack this documents (#758-#792):
- the script's behavior;
- the flags and env vars;
- the user guide's commands (
templates tag/edit/transfer/retire/quota,deactivate --stop-now,sbx hosts,sbx egress,--record); - the wait limits (1800 s/300 s/3600 s, ×1.25, 4 h cap, exit 5);
build_in_use/template_retired;- the
--recordredaction and its excluded commands; - the exit 75 retry;
- the anchors.
Suggestions and nits are inline: one internal contradiction on worker budget sizing, and one way templates-check.sh can break its documented exit contract.
- Author: webchang (MEMBER — maintainer)
- Areas reviewed: Shell (
deploy/sbx/templates-check.shand its test), Makefile (test-deploy-bash32), Docs (deploy/sbx/{README,RUNBOOK}.md,docs/sbx/user-guide.md,docs/specs/README.md, the SBX0 spec,packages/mocactl/README.md) - Agent/IDE config (.claude/.vscode): none
- Commits: 4 commits, all signed-off: yes
- CI status: passing (all 17 checks, including
deploy-scripts-bash32,shellcheck,docs,k8s-kind-e2eandDCO)
Verified by:
gh pr view --json commits(4/4Signed-off-by),gh pr checks 794, andgh api .../pulls/794(author_association: MEMBER).- Ran
bash deploy/sbx/tests/templates-check.test.shat the PR head: all 5 cases pass. - Ran
shellcheckon the script and its test: info-level only (SC2016 on an intentional single-quoted remote command; SC2015 on the SKIP guard). - Ran
python scripts/check-doc-links.pyat the PR head: 0 broken links, including the newRUNBOOK.md#5-...,#14-...anduser-guide.md#8-using-your-own-templatesanchors. No in-repo link pointed at the renumbered user-guide §8-§10. - Checked the script against the code:
TEMPLATE_ID_REmatches control-planesandbox-config.ts.unknown_template/no such template,no such sandboxandhas template T0, not T1match the control-plane andmocactl sync.tsstrings.sbx envexport names match, and theSandbox(...)/_execsignature matchesdocs/api/examples/sandbox_v1_client.py.- The relay answers
PERMISSION_DENIEDon a workload mismatch. /v1/janitor/sandboxesreturnswrk.
- Grepped each user-guide command and constant on the implementing unit's head: #762, #768, #774, #776, #781, #784, #786 and #792.
Generated by RepoMan github-pr-review@235a7f7 (https://github.com/rossoctl/agent-skills/blob/235a7f7620139ee3e4ab0872b8439591fe52e8c1/skills/github-pr-review/SKILL.md).
| - **A worker's budget is sized for concurrent use, not for one session.** `install-host.sh`'s | ||
| smallest `--budget-mb` holds one session at the unit's standby depth of 2, (guest RAM + 32) × 3 + | ||
| 1024 MiB (13408 MiB for a 4096 MiB guest). A **running** VM is charged its full guest size and a | ||
| paused standby only its dirty pages, so that minimum fits about two running VMs: a third command |
There was a problem hiding this comment.
suggestion — the two descriptions of the minimum budget disagree.
- This line says the minimum, (guest RAM + 32) × 3 + 1024 = 13408 MiB, "fits about two running VMs: a third command at once on the template is refused".
- Plugged into the sizing formula two lines down, (guest RAM + 32) × running VMs + 1024, 13408 is exactly three 4096 MiB VMs.
- docs(sbx): the template onboarding guide and its governance #793's GUIDE §9 table reports the measurement as "3 per worker at 13408 MiB".
If the real limit is two commands plus a standby being promoted (which is what GUIDE §9's prose and the 17536 example suggest), say that the promoted standby counts as a running VM. For example: "...fits three VMs, so two commands at once plus a standby being promoted; a third command is refused...". Then align GUIDE §9's "3 per worker" cell, so operators don't size from contradictory numbers.
| SBX1[i]="$SBX_ID" | ||
| done | ||
| if [[ -n "$bad" ]]; then notok 'create: one sandbox per template, each recording its template' "$bad"; exit 1; fi | ||
| before="$(as a ls --json </dev/null | jq length)" |
There was a problem hiding this comment.
nit — under set -euo pipefail, a failing sbx ls here (and on line 166) aborts the script with mocactl's own exit code and no not ok line. I reproduced it: a pipeline returning 4 in a $(...) assignment exits 4 through the EXIT trap. For example, unreachable is 4 and loginRequired is 3. That breaks the documented contract (0/1/2, with 2 meaning "before any sandbox is touched"), even though sandboxes were created; cleanup does still run. Suggested fix:
before="$(as a ls --json </dev/null | jq length)" || { notok 'create: sbx ls' "$(as a ls --json 2>&1 >/dev/null </dev/null | tail -n 1)"; exit 1; }The same applies to after=.
Conflicts and resolutions: - docs/sbx/user-guide.md §8: main's "Your own templates" (what a template is, quota and policy, create with --dry-run, follow) is kept whole, with this branch's `mocactl sbx hosts` added to its "What you may do"; this branch's sections follow it (use it, change and retire it, waits and their exit, what your sandbox reached, a record of every call, for admins). This branch's own §8 opening, which pointed to the authoring client and the onboarding guide for create and follow, is dropped: main's section now covers them. Follow-up in the merge: docs/specs/README.md links the user guide's §8 by its heading as merged, rossoctl#8-your-own-templates. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Rong Chang <[email protected]>
|
Merged main (d4babb8). Tests ran locally on the existing node_modules, since a fresh install is held by the new hono pin's release-age window; CI is the full check. Assisted-By: Claude Code |
…te lifecycle stack Upstream main 0dc3d01 (API 1.21.0) carries the reviewed, final form of the features this branch held in early, integrated versions, through the PRs filed from this fork (rossoctl#755-rossoctl#776, rossoctl#781, rossoctl#782, rossoctl#784-rossoctl#786, rossoctl#789-rossoctl#794, rossoctl#798-rossoctl#800) and the maintainer's lease mode, grants and lease clients (rossoctl#763, rossoctl#802, rossoctl#807, rossoctl#808, rossoctl#810, rossoctl#812, rossoctl#814). Where upstream has a feature, upstream's version wins: its code, tests, openapi, CHANGELOG (byte identical), docs and specs. The fork was 736 commits behind and 390 ahead (merge base dd0ce71). Conflict resolution (148 files, 82 both-modified, 66 both-added): every conflicted file is upstream's side as is (byte identical to 0dc3d01). No conflicted file differs from 0dc3d01 in this commit. One file merged without a conflict and was set back to upstream's: - packages/mocactl/src/sbx/push.ts: the auto-merge added the fork's baselineAtHead a second time beside upstream's own (fb28e06's function, already upstream); upstream's file as is. With that, this commit's tree is 0dc3d01's plus the 18 files only the fork has (below). Every other file the fork changed is upstream's. Conflicted files, all resolved to upstream's side (0dc3d01): - deploy/k8s/overlays/ocp-combined/kustomization.yaml (AA) - deploy/k8s/overlays/ocp-combined/patch-addressing.yaml (AA) - deploy/k8s/overlays/ocp-combined/patch-relay.yaml (AA) - deploy/microvm/P4-ON-P6.md (UU) - deploy/microvm/build-rootfs.sh (UU) - deploy/microvm/build-snapshot.sh (UU) - deploy/microvm/setup-microvm.sh (UU) - deploy/microvm/tests/build-rootfs.test.sh (UU) - deploy/microvm/tests/build-snapshot.test.sh (UU) - deploy/microvm/tests/setup-microvm.test.sh (UU) - deploy/sbx/README.md (UU) - deploy/sbx/RUNBOOK.md (UU) - deploy/sbx/host-agent.sh (AA) - deploy/sbx/install-host.sh (UU) - deploy/sbx/sbx-host-agent-wanted.service (AA) - deploy/sbx/sbx-host-agent-wanted.timer (AA) - deploy/sbx/sbx-host-agent.service (AA) - deploy/sbx/[email protected] (UU) - deploy/sbx/setup.sh (UU) - deploy/sbx/template-onboarding/GUIDE.md (AA) - deploy/sbx/template-onboarding/ONBOARDING.md (AA) - deploy/sbx/template-onboarding/README.md (AA) - deploy/sbx/template-onboarding/examples/django__django-11133.gate-record.json (AA) - deploy/sbx/template-onboarding/examples/django__django-11133.json (AA) - deploy/sbx/template-onboarding/governance/GATING-RULES.md (AA) - deploy/sbx/template-onboarding/governance/PROCESS.md (AA) - deploy/sbx/template-onboarding/governance/README.md (AA) - deploy/sbx/template-onboarding/template-build.sh (AA) - deploy/sbx/template-onboarding/template-register.sh (AA) - deploy/sbx/template-onboarding/tests/examples.test.sh (AA) - deploy/sbx/template-onboarding/tests/template-build.test.sh (AA) - deploy/sbx/template-onboarding/tests/template-register.test.sh (AA) - deploy/sbx/template-onboarding/verify-provenance.py (AA) - deploy/sbx/templates-check.sh (AA) - deploy/sbx/tests/host-agent.test.sh (AA) - deploy/sbx/tests/install-host.test.sh (UU) - deploy/sbx/tests/overlay-combined.test.sh (AA) - deploy/sbx/tests/setup.test.sh (UU) - deploy/sbx/tests/templates-check.test.sh (AA) - deploy/vm/tests/setup-vm.test.sh (UU) - docs/api/CHANGELOG.md (UU) - docs/api/harness-openapi.yaml (UU) - docs/api/openapi.yaml (UU) - docs/concepts/sandboxes-and-tiers.md (UU) - docs/reference/change-policy.md (UU) - docs/reference/cli-mocactl.md (UU) - docs/reference/configuration.md (UU) - docs/reference/http-api.md (UU) - docs/sbx/user-guide.md (UU) - docs/specs/2026-10-15-sbx0-internal-sandbox-service-design.md (UU) - docs/specs/2026-10-30-session-sandbox-templates-design.md (AA) - docs/specs/2026-11-03-template-lifecycle-and-provenance-design.md (AA) - docs/specs/2026-11-05-combined-control-plane-design.md (AA) - docs/specs/2026-11-08-enrollment-and-roles-api-design.md (AA) - docs/specs/2026-11-08-sandbox-egress-records-design.md (AA) - docs/specs/2026-11-08-subject-trust-gate-records-design.md (AA) - docs/specs/README.md (UU) - harness/src/run-turn.ts (UU) - harness/src/sandbox-affinity.ts (UU) - harness/src/select-sandbox.ts (UU) - harness/test/select-sandbox-templates.test.ts (AA) - harness/test/turn-seed.test.ts (AA) - harness/test/turn-stream.test.ts (UU) - packages/control-plane/src/activation-lock.ts (AA) - packages/control-plane/src/activation.ts (AA) - packages/control-plane/src/egress-handlers.ts (UU) - packages/control-plane/src/egress-log.ts (AA) - packages/control-plane/src/errors.ts (UU) - packages/control-plane/src/exchange.ts (UU) - packages/control-plane/src/handler-util.ts (UU) - packages/control-plane/src/handlers.ts (UU) - packages/control-plane/src/host-handlers.ts (AA) - packages/control-plane/src/identity.ts (UU) - packages/control-plane/src/index.ts (UU) - packages/control-plane/src/main.ts (UU) - packages/control-plane/src/member-handlers.ts (AA) - packages/control-plane/src/members.ts (AA) - packages/control-plane/src/ownership.ts (UU) - packages/control-plane/src/provenance.ts (AA) - packages/control-plane/src/routes.ts (UU) - packages/control-plane/src/sandbox-config.ts (UU) - packages/control-plane/src/sandbox-handlers.ts (UU) - packages/control-plane/src/server.ts (UU) - packages/control-plane/src/template-catalog.ts (AA) - packages/control-plane/src/template-policy.ts (AA) - packages/control-plane/src/token.ts (UU) - packages/control-plane/test/activation.test.ts (AA) - packages/control-plane/test/egress-redis.test.ts (AA) - packages/control-plane/test/errors.test.ts (UU) - packages/control-plane/test/host-flow.test.ts (AA) - packages/control-plane/test/members.test.ts (AA) - packages/control-plane/test/openapi-contract.test.ts (UU) - packages/control-plane/test/provenance.test.ts (AA) - packages/control-plane/test/repository-allowlist.test.ts (AA) - packages/control-plane/test/route-authz-enumeration.test.ts (UU) - packages/control-plane/test/route-profile.test.ts (UU) - packages/control-plane/test/routes.test.ts (UU) - packages/control-plane/test/sandbox-egress.test.ts (AA) - packages/control-plane/test/sandbox-handlers.test.ts (UU) - packages/control-plane/test/session-templates.test.ts (AA) - packages/control-plane/test/subject-trust.test.ts (AA) - packages/control-plane/test/template-admin.test.ts (AA) - packages/control-plane/test/template-catalog.test.ts (AA) - packages/control-plane/test/template-create.test.ts (AA) - packages/knative-server/src/server.ts (UU) - packages/knative-server/src/turn-auth.ts (UU) - packages/knative-server/test/turn-auth.test.ts (UU) - packages/mocactl/src/api/errors.ts (UU) - packages/mocactl/src/api/frames.ts (UU) - packages/mocactl/src/cli.ts (UU) - packages/mocactl/src/core/session-manager.ts (UU) - packages/mocactl/src/core/session-options.ts (UU) - packages/mocactl/src/headless.ts (UU) - packages/mocactl/src/sbx/api.ts (UU) - packages/mocactl/src/sbx/call-record.ts (AA) - packages/mocactl/src/sbx/cli.ts (UU) - packages/mocactl/src/sbx/commands.ts (UU) - packages/mocactl/src/sbx/dry-run.ts (AA) - packages/mocactl/src/sbx/exec.ts (UU) - packages/mocactl/src/sbx/run.ts (UU) - packages/mocactl/src/sbx/templates.ts (AA) - packages/mocactl/test/contract.test.ts (UU) - packages/mocactl/test/harness.test.ts (UU) - packages/mocactl/test/headless.test.ts (UU) - packages/mocactl/test/helpers/sbx.ts (UU) - packages/mocactl/test/run-record.test.ts (AA) - packages/mocactl/test/sbx-admin-subjects.test.ts (AA) - packages/mocactl/test/sbx-cli.test.ts (UU) - packages/mocactl/test/sbx-egress.test.ts (AA) - packages/mocactl/test/sbx-exec.test.ts (UU) - packages/mocactl/test/sbx-templates.test.ts (AA) - packages/mocactl/test/session-manager.test.ts (UU) - packages/mocactl/test/session-options.test.ts (UU) - remote-worker/cmd/microvm-worker/main.go (UU) - remote-worker/cmd/microvm-worker/template_record.go (AA) - remote-worker/cmd/microvm-worker/template_record_test.go (AA) - remote-worker/cmd/microvm-worker/verify_cache.go (AA) - remote-worker/cmd/microvm-worker/verify_cache_test.go (AA) - remote-worker/internal/egress/audit_test.go (UU) - remote-worker/internal/session/labels.go (UU) - remote-worker/internal/vmpool/errors.go (UU) - remote-worker/internal/vmpool/guestconn.go (UU) - remote-worker/internal/vmpool/guestconn_test.go (UU) - remote-worker/internal/vmpool/launcher_firecracker.go (UU) - remote-worker/internal/vmpool/launcher_firecracker_egress_unix_test.go (UU) - remote-worker/internal/vmpool/snapshot.go (UU) - remote-worker/internal/vmpool/snapshot_test.go (UU) - remote-worker/internal/vmpool/verifycache.go (AA) Fork-only files, kept as they are (upstream has no such file): - deploy/sbx/mint-login.sh, deploy/sbx/tests/mint-login.test.sh: a test login minted with the deployment's signing key. Checked against upstream: makeSigner/mint, SANDBOX_API_ISSUER, the moca-mu1 Secret and its label, the env keys it reads and mocactl's sbx-auth.json shape are all still upstream's. - deploy/sbx/template-onboarding/deck/ (README, requirements, the two generators, deck_kit.py, the two PDFs, .gitignore): the fork's decks. - deploy/sbx/template-onboarding/GUIDE.pdf: regenerated from upstream's GUIDE.md in a later commit. - deploy/sbx/template-onboarding/governance/GAPS-AND-ASSUMPTIONS.md and INVENTORY-2026-11-02.md: the fork's register and inventory. - docs/specs/2026-11-09-cold-start-pacing-design.md, 2026-11-09-memory-aware-placement-design.md and 2026-11-10-mocactl-template-commands-design.md: the fork's design notes; upstream folded their content into its lifecycle spec (§6.4 memory, §6.5 pacing) and the user guide (mocactl). - docs/tools/gen_pdf.py, docs/tools/gen_toc.py: the PDF and TOC tools. Fork-only behaviour, decided one by one (from git log 0dc3d01..f125c02 --no-merges, checked against 0dc3d01): Ported onto upstream's code, each in its own commit after this one: - The pinned-session retire guard (c571226): a retire is refused (409 build_in_use) while an active Moca Pi session is pinned to the build. Upstream's buildsInUse checks live sandboxes only and its comment says pinned sessions are still to be checked. - Reuse only while a host holds the snapshot (G29, 521efe5): upstream reuses any registered build with the same inputs; its own lifecycle spec (§4, Reuse) says a registered build is reused only while a host reports holding its snapshot. - install-host.sh --uninstall-shared and the mounted legacy jail guard (5e66397): upstream has neither. - GUIDE §4b.4's base example without skip_git_identity_check (f125c02): upstream applies X12 under every profile, so its example create would be refused. - Links from upstream's READMEs to the fork-only files above. Dropped, because upstream's design replaces them on purpose: - Removal of admin-rejected builds: upstream stops them and never removes them (the user's decision in rossoctl#786). - The harness-profile catalog's fallback to SH_SESSION_TEMPLATES (902255b): upstream serves the harness profile the store's templates only (its test was renamed so); a combined plane is unaffected. - The fork's register ids (G-numbers), window dates and results pointers inside the documents upstream now has (RUNBOOK, README, GUIDE, ONBOARDING, PROCESS, GATING-RULES, P4-ON-P6, the specs): upstream's text wins; the fork's own documents above keep them. - The fork's image-builder-specific wording in GATING-RULES.md: upstream's generic wording (the image builder) is taken as is. Dropped, could be re-proposed (no upstream equivalent, but the port is an API change or its intent upstream is unclear): - TurnPlacement.template, a turn result naming the session's sandbox template (9d6004d): a harness API field; upstream's CHANGELOG is kept byte identical. - An imported build's catalog entry and create record carrying the declared seed (20d0995): sessions are seeded the same (upstream falls back to the declared seed); only the field in the catalog API goes. - mocactl: sbx create --seed checking the seeded HEAD against the spec's baseline_commit; activate --wait stopping at once on not_held or memfile_mismatch; ApiError's readiness, readinessReason and queuePosition in refusals; an admin write refused when the control plane URL came only from the login; the admin-write issuer check for the combined profile; the dry run's X1.offline check and its guest_mb and git-less advice; the quota, policy and build lines' extra fields (quotaSource, selfAttest, allowedRepositories, heldBy, attestation). Upstream's reviewed client (rossoctl#767, rossoctl#768) left them out; the server still enforces every rule. Already upstream (not lost): build reuse (G21), the verify cache, the host agent's --keep-shared removals, read-ahead, the hash_version 2 check in the microVM worker, M7, G39, G42, G43, G48, G49, G50, mocactl --record, --version, the minted login's own control plane, activate --wait sizing, and every other fork feature listed in the task. The relay's per-client tokens: not on this branch (the fork's sandbox-relay main.ts is older upstream code), so nothing to resolve. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Rong Chang <[email protected]>
Closes #753, with #793. On main (5f49091). Documents the units in #756–#792; merge after them.
What it does: the operations side of the template docs, plus a live check. Four signed-off commits:
deploy/sbx/templates-check.shand its test: a live check that the client chooses its template. bash 3.2-ready, and added totest-deploy-bash32.docs/sbx/user-guide.md§8, "Using your own templates", andpackages/mocactl/README.docs/specs/READMErows for the template designs, and a pointer from the SBX0 design.Notes for review:
Checks:
scripts/check-doc-links.pyfinds 0 broken links, and prettier passes;templates-check.test.shpasses on bash 5 and 3.2;9 files, +685 / -20.
Assisted-By: Claude Code