Repository navigation
docs(sandbox): split the user guide into task and concept pages; add lease mode and a generated CLI reference - #905
Merged
Conversation
pdettori
force-pushed
the
docs/sandbox-section
branch
from
November 19, 2026 00:03
68803ae to
0a1f310
Compare
…lease mode and a generated CLI reference The sandbox service section of rossoctl.dev/moca, step 3 of the docs migration: - docs/sandbox/user-guide.md (one 943-line page) becomes the section overview, and its sections become pages: how-to/set-up, connect-agents, push-and-pull, agent-configuration, work-with-a-sandbox, credentials, templates, troubleshoot; concepts/isolation (with data handling) and concepts/limits. The text is unchanged apart from cross-references; the overview keeps its URL, which deployed control planes print. - docs/api/sandbox-v1-direct-client.md moves to how-to/direct-api.md, after the guide's "Using the API directly" section. - how-to/lease-mode.md (new): per-exec, lease and lease+processes from the CLI (create --mode, get, mode, reset, proc), from sbx/cli.ts, the deploy/sbx policy inputs and the direct-API lease sections. - reference/cli-sbx.md (new): `mocactl sbx --help` (SBX_ABOUT and SBX_USAGE), generated. packages/mocactl/test/sbx-reference.test.ts fails when the page and the CLI disagree and rewrites the block with UPDATE_SBX_REFERENCE=1. Links into the old pages and anchors across the repository (deploy/sbx, the specs index, CI and script comments) follow the move. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
pdettori
force-pushed
the
docs/sandbox-section
branch
from
November 19, 2026 00:12
0a1f310 to
bb8dbf1
Compare
pdettori
marked this pull request as ready for review
November 19, 2026 00:14
ingpaolodettori-dev
approved these changes
Nov 19, 2026
ingpaolodettori-dev
left a comment
There was a problem hiding this comment.
Verified against origin/main:
- Generated reference — the
cli-sbx.mdblock matchesSBX_ABOUT+SBX_USAGEbyte-for-byte, andsbx-reference.test.tsguards both markers correctly (including the fence-collision case). - Lease-mode facts — all check out against source:
SBX_MODES_ALLOWED(defaultper-exec, always allowed),SBX_IDLE_CEILING_S(default 1800, worker default 300 s),mode_not_allowed(api.ts), TTY-gated upgrade, and every documented command/flag matches the help text. - Parity — a line-by-line check finds every non-heading line of the old guide and the old direct-client page in the new pages; divergences are rewraps, forced link retargets, or the listed rewrites, plus one extra small rewrite (inline nit). No content dropped.
- Links — every retargeted link and anchor resolves, including
direct-api.md#lease-mode/#tracked-processes-leaseprocesses, and thesandbox-v1-direct-clientreference list is complete. - URL stability — keeping
user-guide.md's URL is right: the control plane prints it (handlers.ts).
One advisory outside the diff: the title and commit subject run ~110 chars vs. the 72-char convention.
Author: pdettori (MEMBER — maintainer)
Commits: 1, signed-off ✓
CI: 18/18 passing
| > **Preview.** The sandbox service is implemented, but not yet declared Stable; interfaces and | ||
| > limits may change. | ||
|
|
||
| **Run your agent** in a repository you have brought up |
There was a problem hiding this comment.
nit: the clause "in a repository you have brought up (Install, log in and bring a repository up)" reworks old user-guide.md:108 ("Run your agent in the repository…") — a deliberate-looking rewrite that isn't one of the 12 exceptions the PR body lists. Content is preserved; only noting it so the parity enumeration is complete.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is step 3 of the docs migration: the sandbox service section of rossoctl.dev/moca. The 943-line user guide becomes an overview plus one page per task or concept. It also adds the missing lease-mode page and a
mocactl sbxreference generated from the CLI.sandbox/user-guide.md(Overview)how-to/set-up.mdup, templates, lifetime, worktrees)how-to/connect-agents.mdhow-to/push-and-pull.mdhow-to/agent-configuration.mdsbx upchangeshow-to/work-with-a-sandbox.mdhow-to/egress-credentials.mdcredentials.md:.gitignoreignorescredentials.*)how-to/templates.mdhow-to/direct-api.mddocs/api/sandbox-v1-direct-client.md(moved)how-to/troubleshoot.mdconcepts/isolation.mdconcepts/limits.mdhow-to/lease-mode.mdsbx/cli.ts,deploy/sbx/README.md(SBX_MODES_ALLOWED,SBX_IDLE_CEILING_S) and the direct-API lease sectionsreference/cli-sbx.mdmocactl sbx --help, generatedThe moved text is unchanged apart from cross-references and headings: subsections became
##under each page's title. A line-by-line check againstmainfinds every non-heading line of the old guide and the old direct-client page in the new pages. The 12 exceptions are deliberate rewrites: the banner, three "below"/"above" pointers, and the intro and §9 pointer reflowed.Generated reference.
packages/mocactl/test/sbx-reference.test.tschecks that the block between the page's markers equalsSBX_ABOUT+SBX_USAGE. It fails with the regenerate command when they differ:UPDATE_SBX_REFERENCE=1 pnpm -C packages/mocactl exec vitest run test/sbx-reference.test.ts. It also checks that the help text can't close the code fence early.Links into the old pages are retargeted across the repo:
deploy/sbxREADME, RUNBOOK and template-onboarding,docs/specs/README.md,get-started, and comments inci.yml,.gitignore,smoke.sh, the Python examples andremote-worker/cmd/sbx. The "user guide, §8" mentions now link to the templates page.Testing
make check-links: 227 files, 0 broken links.scripts/check-docs-publish.sh: 70 published files, no matches.scripts/check-docs-site.shagainst a freshrossoctl/.github: 52 pages, no broken links or anchors. On its first run it caught a real bug the offline checker misses: subsection headings promoted to H1, so#ibm-bobdidn't resolve on the site. Fixed before this push.sbx-reference.test.ts: passes; fails on an edited block; passes again once regenerated.Assisted-By: Claude Code