Skip to content

docs: the rossoctl.dev/moca landing, quickstarts and operate chooser; scrub internal names - #884

Merged
pdettori merged 6 commits into
rossoctl:mainfrom
pdettori:docs/site-golive
Nov 18, 2026
Merged

pdettori merged 6 commits into
rossoctl:mainfrom
pdettori:docs/site-golive

Conversation

@pdettori

@pdettori pdettori commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This is step 2 of the docs migration: the content that makes rossoctl.dev/moca go live. #881 (the dispatch workflow and the denylist) is merged; this PR's own commits follow it.

It does four things:

  • adds the new entry pages;
  • cleans the published docs of internal deployment names;
  • fixes the contradictions the docs audit found;
  • adds the site's publish check to this repo's CI.

Moca's sandbox service and harness are open source for self-hosting, so the published docs no longer name internal deployments (SBX0, SBX1), cohorts or IBM-internal SSO. With this branch, the site's publish guard (rossoctl/.github#227) passes and the Moca section builds.

Commits

  1. fix(mocactl). mocactl sbx --help printed usage (the sandbox service, SBX0):. It now prints usage (the sandbox service):. deploy/sbx/smoke.sh accepts both forms, so it still passes against an older mocactl.
  2. docs. New pages and the scrub:
    • New pages:
      • docs/index.md: the two capabilities, how they relate, which to use, and one path per audience.
      • docs/get-started/index.md: the "I want to…" chooser.
      • docs/sandbox/quickstart.md and docs/harness/quickstart.md.
      • docs/operate/index.md: which deployment delivers which capability.
      • _category_.json per folder, for the sidebar.
    • README trimmed to a funnel into those pages.
    • Moves:
      • docs/sbx/user-guide.md → docs/sandbox/user-guide.md. An unlisted stub stays at the old path, because deployed control planes print it.
      • docs/sbx/security-review.md → docs/notes/.
      • guides/oidc-login-w3id.md → a provider-neutral guides/oidc-login.md.
    • Scrub: openapi.yaml, the API changelog, the direct-client guide and examples, and the configuration reference now cite specs by subject, not by internal name. These are description-only edits; the contract test passes.
    • Fixes:
      • docker compose down keeps sessions and credentials; only down -v removes them. Fixed in the compose README, first-run and the mocactl QUICKSTART, which also had an invalid docker compose -d down.
      • Signing-key rotation removes only SH_SESSION_TOKEN_PRIVATE_KEY, per RUNBOOK §6.
      • first-run no longer says async fan-out is unavailable on P6.
      • The two top-level "moved to archive/" stubs are removed.
  3. ci(docs). scripts/check-docs-publish.sh (make check-docs-publish, and the CI docs job) runs the site's check. It also makes the denylist case-insensitive, so the lowercase sbx0 in a link target is caught too.

Review points

  • README content. The old README's Why, Architecture, Features, How It Works and Dispatch Archetypes sections are covered by the landing page and docs/concepts/. Evidence and Roadmap moved to a draft Project page, docs/project/index.md, which the README and the landing page link to. It also points at the ADRs on GitHub.
  • Async fan-out status. deploy/k8s/README.md §14 now opens with a status note: single-tenant in v0.10.0, while multi-tenant async (grants at dequeue, Coding-agent subagents B3: grants minted at dequeue from the turn record (no bearer in the queue) #388) is in progress on main and targeted for v0.12.0. The Project page's roadmap says the same.
  • Repo-level mentions of SBX0. Code and code comments keep the SBX0 name. A follow-up PR removes it from the prose docs outside docs/, the deploy/ READMEs, the runbook and the guides that the site links to.

Testing

  • make check-links: 215 files, 0 broken links.
  • scripts/check-docs-publish.sh: passes on 54 published files, fails on a planted match, and runs on bash 3.2.
  • vitest: packages/mocactl sbx-cli 96/96; packages/control-plane discovery 9/9 and openapi-contract 21/21.
  • deploy/sbx/tests/smoke.test.sh: 35 ok, 0 not ok.
  • Prettier 3.10.1 is clean on every changed file.
  • Site build from Feat: Add a Moca docs section synced from rossoctl/moca behind a publish guard .github#227 with this branch as the moca source:
    • the guard passes;
    • 39 pages and 132 links are rewritten to GitHub;
    • 0 warnings;
    • no sbx[0-9], "internal cohort" or w3id anywhere in the rendered HTML;
    • the "tracks main" banner is present, and the old user-guide path is unlisted and noindex.

Assisted-By: Claude Code

@pdettori
pdettori marked this pull request as ready for review November 18, 2026 11:39
@pdettori
pdettori requested a review from cwiklik as a code owner November 18, 2026 11:39
@pdettori pdettori added the ready-for-ai-review Request automated AI code review from clawgenti label Nov 18, 2026
pdettori added a commit to pdettori/.github that referenced this pull request Nov 18, 2026
…ode as written

Review fixes for the Moca sync:

- The publish guard read `grep ... || true`, so a scan that failed (exit
  2: a malformed pattern in moca's docs/.publish-denylist, an unreadable
  file) looked like a clean one and published, built-in SBX[0-9]
  included. The guard now keeps grep's status: 1 publishes, 0 skips
  with the matching files listed, 2 or more skips with an ::error.
- rewrite-repo-links.mjs split code blocks with one regex, so a
  four-backtick fence, an indented fence, or a fence inside a list item
  was treated as prose and its sample links rewritten. It now scans
  line by line with CommonMark's fence rules (``` or ~~~ of 3 or more,
  any indent; closed only by the same character, at least as long,
  with nothing after it) and leaves inline code spans alone too.
- sidebarsMoca.ts no longer says the labels and order exist upstream:
  rossoctl/moca#884 adds them, and the comment says what Docusaurus
  does without them.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>

@ingpaolodettori-dev ingpaolodettori-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Author: pdettori (MEMBER — maintainer)
Areas reviewed: this PR's own five commits (36a95ce1..e5341f73) — the landing/quickstart/operate pages and internal-name scrub, scripts/check-docs-publish.sh and the docs CI job, the moved user guide, and the mocactl sbx usage line
Agent/IDE config (.claude/.vscode): none
Commits: 5 own commits after #881's c4ece01c, all signed off; git range-diff shows them byte-identical to the previous head (7f1d4051)
CI status: all 17 checks passing at this head, including k8s-kind-e2e; the branch is clean against main (6ea986d7)

This head is a rebase of 7f1d4051 onto main 6ea986d7. The net PR diff is unchanged apart from the new main content folded in (SH_WORKSPACE_IDLE in the configuration table; the runbook's "Reproducing a member's issue" links in the moved user guide), so the five findings from the previous round all still apply. Re-verified at this head:

  • the published set is 56 files and matches the site's exclusions; scanning it with the denylist plus SBX[0-9] finds no hits;
  • grep errors (status > 1) now exit 2, so a malformed pattern fails the docs job instead of passing as clean;
  • no inbound links or anchors point at the old docs/sbx/user-guide.md path, and the unlisted stub there resolves to the new page.

The five findings are non-blocking: the script's input-side fail-open (a missing denylist is still masked by || true) and four docs suggestions/nits.

Assisted-By: Claude Code

Comment thread scripts/check-docs-publish.sh Outdated
patterns="$(mktemp)"
trap 'rm -f "$patterns"' EXIT
echo 'SBX[0-9]' >"$patterns"
grep -vE '^[[:space:]]*(#|$)' docs/.publish-denylist >>"$patterns" || true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: the grep status is now checked below (good), but this line still hides a missing or unreadable docs/.publish-denylist: || true turns grep's exit 2 into success, so the scan proceeds with only SBX[0-9] and reports clean — the same fail-open on the input side. Require the file first, e.g. [ -r docs/.publish-denylist ] || { echo 'docs-publish: docs/.publish-denylist is missing or unreadable' >&2; exit 2; }, and keep || true only for the no-match (exit 1) status.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 254b028. The script now requires a readable docs/.publish-denylist and exits 2 otherwise ('missing or unreadable'). Reading it keeps grep's status too: only exit 1 (a comment-only file, nothing selected) passes; 2 or more exits 2. Checked: clean 0, file missing 2, unreadable (chmod 000) 2, comments only 0, a planted SBX3 1, and the same under bash 3.2.

Comment thread README.md Outdated
- **Sandbox service.** Your coding agent (Claude Code, OpenCode, Codex or IBM Bob) keeps running on
your laptop. Every command it runs goes to a fresh, isolated VM on a shared service, working on a
copy of your repository. You take the agent's work back as a patch. Your laptop's files are
untouched until you apply it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: “Your laptop's files are untouched until you apply it” is literally false: mocactl sbx up writes the agent configuration into the repository (.mcp.json, .claude/settings.json, opencode.json, .bob/*, CLAUDE.md, AGENTS.md — the sandbox quickstart lists them). Say “source files”, as the quickstart does, or add the caveat, so a reader is not surprised by a dirty working tree after up.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 254b028. It now says "Your laptop's source files are untouched until you apply it, apart from the agent configuration mocactl sbx up writes", which matches the sandbox quickstart.

Comment thread README.md Outdated
streaming turns, human-gated runs, and opt-in async fan-out
([ADR-0047](docs/adrs/0047-p6-async-fan-out-in-worker-drain.md)), with scheduled dispatch still
owed a P6 follow-up ([ADR-0034](docs/adrs/0034-vm-process-manager-socket-handoff.md)).
📖 **Documentation: [rossoctl.dev/moca](https://www.rossoctl.dev/moca/)** (`TODO(pending)`: the site

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: this ships a user-visible “the site doesn't exist yet” TODO on the landing README, and the <!-- Sources --> footer at :99-102 says links resolve only after migration step 2 — which is this PR. Either make the link unconditional once the site is live, or drop the URL and point at docs/index.md until then; a placeholder in the README tends to outlive the tracking issue.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 254b028. The link is now unconditional, "Documentation: rossoctl.dev/moca, built from docs/", with no placeholder: this PR is the one that makes the site live (the guard passes on this tree, and #227/#881 are merged). The footer that said links resolve only after step 2 is gone with the others (next thread).

Comment thread README.md Outdated
[Apache-2.0](LICENSE)

Licensed under the [Apache License 2.0](LICENSE).
<!-- Sources: as for docs/index.md and the two quickstarts (see their footers); package roles from

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: these <!-- Sources: ... --> footers (six files: README.md, docs/index.md, docs/get-started/index.md, docs/harness/quickstart.md, docs/operate/index.md, docs/sandbox/quickstart.md) are the only ones in the repo and are not described in docs/CONTRIBUTING-DOCS.md. They cite source line numbers that will drift on the next edit. Either document the convention there or drop the footers.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped all six in 254b028. Line-numbered citations drift on the next edit, and the convention exists nowhere else. The sources are recorded in the proposal's audit facts sheet, which keeps them out of the published pages.

Comment thread docs/glossary.md Outdated
with status `paused` and resumes on an external verdict), **C** is scheduled dispatch (a cron
trigger posts async leaves). B is served by the P6 runtime; A and C were removed with the
Knative/KEDA path. See the [README](../README.md#dispatch-archetypes).
Knative/KEDA path. See [dispatch archetypes](concepts/dispatch-archetypes.md).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: this page still says async leaf dispatch “has no P6 equivalent” (:51) and “A and C were removed with the Knative/KEDA path” (:59), which the new docs/index.md, docs/get-started/ and deploy/k8s/README.md §14 now contradict: A (async fan-out) runs on P6 opt-in, single-tenant, behind SH_ASYNC_DRAIN=1. Since this PR is fixing exactly this class of contradiction, update both sentences here too (C alone still has no P6 design).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 254b028.

  • archetype: A runs on P6 again, opt-in behind SH_ASYNC_DRAIN=1 and single-tenant in v0.10.0 (multi-tenant targeted for v0.12.0), submitted to the control plane's POST /v1/sessions/{id}/turns; the data plane's async: true stays removed. Only C has no P6 design (P6 scheduled dispatch: replace the cron-dispatch CronJob (Archetype C) removed by #691 #536).
  • leaf: instead of "no P6 equivalent", it says async leaf dispatch runs in the ordinary --role=turn workers' drain loop, under the same opt-in. That's the wording of deploy/k8s/README.md §14.

pdettori added a commit to pdettori/moca that referenced this pull request Nov 18, 2026
…ossary dispatch)

- check-docs-publish.sh: a missing or unreadable docs/.publish-denylist
  now fails the check (exit 2) instead of scanning with SBX[0-9] alone
  and passing; only grep's no-match status on a comment-only file is
  absorbed.
- README: the laptop's *source* files stay untouched until the patch is
  applied, apart from the agent configuration `mocactl sbx up` writes;
  the documentation link is unconditional, with no placeholder.
- The six `<!-- Sources -->` footers are dropped: they cited source
  line numbers that drift, and no other page has them.
- glossary: archetype A runs on P6 again, opt-in behind SH_ASYNC_DRAIN=1
  and single-tenant in v0.10.0, through POST /v1/sessions/{id}/turns;
  only C has no P6 design (rossoctl#536). The leaf entry says the same.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
`mocactl sbx --help` printed "usage (the sandbox service, SBX0):". SBX0 is
the name of one internal deployment of the sandbox service, which is
open source for self-hosting, so the line is now "usage (the sandbox
service):". deploy/sbx/smoke.sh accepts both lines, so it still passes
against a mocactl released before this change.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
…b internal names

The pages that go live at rossoctl.dev/moca (rossoctl/.github#227):

- docs/index.md: what moca is, its two capabilities (the sandbox
  service and the harness), how they relate, which to use, and a path
  per audience.
- docs/get-started/index.md: the "I want to..." chooser and the
  client install.
- docs/sandbox/quickstart.md and docs/harness/quickstart.md: a
  first run of each capability.
- docs/operate/index.md: which deployment delivers which capability.
- README.md: trimmed to a funnel into these pages.
- _category_.json per folder for the site's sidebar.

Moca is open source for self-hosting, so the published pages no longer
name internal deployments (SBX0, SBX1), cohorts or IBM-internal SSO:

- docs/sbx/user-guide.md moves to docs/sandbox/user-guide.md (an
  unlisted stub stays at the old path, which deployed control planes
  print).
- docs/sbx/security-review.md moves to docs/notes/.
- docs/guides/oidc-login-w3id.md becomes the provider-neutral
  docs/guides/oidc-login.md.
- openapi.yaml, the API changelog, the direct-client guide, its
  examples and the configuration reference cite specs by subject, not
  by internal name.

Fixes from the docs audit: `docker compose down` keeps sessions and
credentials (only `down -v` removes them); the sandbox service's signing
key is rotated by removing the one key, as RUNBOOK §6 says, not the
whole Secret; first-run no longer says async fan-out is unavailable on
P6; the two top-level "moved to archive/" stubs are removed.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
scripts/check-docs-publish.sh (make check-docs-publish, and the CI docs
job) runs the check rossoctl.dev's sync runs: every docs/ file it
publishes (all but specs, notes, plans, archive, demos, ADRs and
REORG-PLAN.md) against SBX[0-9] and docs/.publish-denylist, which now
also matches the lowercase spelling a link target carries. A match
fails here instead of silently taking the site's Moca section down.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
…ut status

The README's Evidence and Roadmap sections, dropped by the trim, now
live on docs/project/index.md, a draft page on the site that also points
at the ADRs on GitHub. The README and the landing page link to it.

deploy/k8s/README.md §14 now says async fan-out is single-tenant in
v0.10.0: multi-tenant async (grants at dequeue, rossoctl#388) is in progress on
main and targeted for v0.12.0.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
check-docs-publish.sh tested `grep` with `if`, so a scan that failed
(exit 2, e.g. a malformed pattern in docs/.publish-denylist) read as no
match and passed. It now keeps grep's status: 1 passes, 0 fails with the
matching lines, 2 or more fails as a broken scan. Same fix as the site's
sync step (rossoctl/.github#227 review).

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
…ossary dispatch)

- check-docs-publish.sh: a missing or unreadable docs/.publish-denylist
  now fails the check (exit 2) instead of scanning with SBX[0-9] alone
  and passing; only grep's no-match status on a comment-only file is
  absorbed.
- README: the laptop's *source* files stay untouched until the patch is
  applied, apart from the agent configuration `mocactl sbx up` writes;
  the documentation link is unconditional, with no placeholder.
- The six `<!-- Sources -->` footers are dropped: they cited source
  line numbers that drift, and no other page has them.
- glossary: archetype A runs on P6 again, opt-in behind SH_ASYNC_DRAIN=1
  and single-tenant in v0.10.0, through POST /v1/sessions/{id}/turns;
  only C has no P6 design (rossoctl#536). The leaf entry says the same.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
@pdettori
pdettori merged commit 156530f into rossoctl:main Nov 18, 2026
17 checks passed
@pdettori
pdettori deleted the docs/site-golive branch November 18, 2026 18:42
webchang added a commit to webchang/moca that referenced this pull request Nov 19, 2026
Brings 15 upstream merges since 2eb0219, among them the R2 host sampler
in its reviewed form (rossoctl#904), the workspace-reset marker (rossoctl#895), turn
budgets and cancel (rossoctl#856), the egress allow-all option (rossoctl#886), the sbx
installer token (rossoctl#888), and the docs site with the product-name prose
(rossoctl#884, rossoctl#885, rossoctl#899).

One conflict, deploy/sbx/template-onboarding/README.md: upstream's
product-name wording for the deploy/sbx table, keeping the fork's
mint-login.sh row.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Rong Chang <[email protected]>
@pdettori pdettori added this to the v0.11.0 milestone Nov 19, 2026
pdettori pushed a commit that referenced this pull request Nov 19, 2026
…ew's path

Three RUNBOOK corrections, found in a live run of "Reproducing a member's
issue" (#857 R4):
- An egress log is sealed at the host janitor's first sweep at least
  600 s after the sandbox ends (sealEgress runs only inside the janitor's
  route), not at the 600 s, so --verify can read "open (not sealed yet)"
  well past them; with no host janitor running it stays open.
- The caps are EGRESS_LOG_CAP (10,000 events) and EGRESS_LOG_BYTES
  (4 MiB) per log and EGRESS_TOTAL_BYTES (64 MiB) in all, kept as a
  running sum; the old text named a 200,000-event budget and a per-post
  scan that the code no longer has.
- The security review moved to docs/notes/sandbox-security-review.md
  (#884); a plain-text path the link check could not see.

Part of #857

Assisted-By: Claude Code
Signed-off-by: Rong Chang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-ai-review Request automated AI code review from clawgenti

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants