Skip to content

docs: a glossary that tells the two capabilities apart; archive REORG-PLAN - #919

Merged
pdettori merged 2 commits into
rossoctl:mainfrom
pdettori:docs/reference-project
Nov 19, 2026
Merged

pdettori merged 2 commits into
rossoctl:mainfrom
pdettori:docs/reference-project

Conversation

@pdettori

Copy link
Copy Markdown
Member

Summary

This is step 6 of the docs migration, the last one.

Glossary: the two capabilities, told apart. The docs audit found that "sandbox", "harness" and "control plane" each mean several things, and no page said so.

  • sandbox now names both meanings: a harness session's tool sandbox, and a sandbox-service sandbox. It also states that mocactl sbx neither sees nor manages a harness session's sandbox.
  • control plane gains its three route profiles (SH_ROUTE_PROFILE: harness, sandbox, combined), so "the sandbox service's control plane" reads as the same package on another profile.
  • New entries, each taken from the CLI's help text, the OpenAPI contract or the deploy pages:
    • harness: the capability, plus the narrower @moca/harness package and the historical serverless-harness/SH_* names;
    • sandbox service;
    • template, build and tag: a build is one immutable snapshot, and default is the tag used when none is given and can't be removed;
    • activation lease;
    • sandbox mode: per-exec, lease or lease+processes;
    • subject: github:<id> / oidc:<sub>.

I dropped one sentence I couldn't verify: whether a harness session made from a sandbox template (sandboxTemplate) still runs in a harness sandbox.

REORG-PLAN.md retired. It moves to docs/archive/ with a "Historical" banner naming the migration PRs that superseded it.

  • CONTRIBUTING-DOCS.md now points at the archived copy.
  • scripts/check-docs-publish.sh and docs/.publish-denylist drop it from their list of unpublished root files, since archive/ is excluded as a whole.
  • It has no relative links, so the move breaks nothing.

The Project page stays a draft, as decided. I didn't add roadmap items I couldn't source; it keeps pointing at the milestone registry and the open items.

Testing (from a clean clone of the branch)

  • make check-links: 236 files, 0 broken links, including the new in-page anchors.
  • scripts/check-docs-publish.sh: 83 files.
  • scripts/check-docs-site.sh: 61 pages, no broken links.
  • bash -n scripts/check-docs-publish.sh passes; Prettier 3.10.1 is clean.

Assisted-By: Claude Code

…-PLAN

Step 6 of the docs migration, the last:

- glossary: "sandbox" names both things the word means (a harness
  session's tool sandbox, and a sandbox-service sandbox) and that
  mocactl sbx manages only the second; "control plane" gains its three
  route profiles (harness, sandbox, combined); new entries for the
  harness (and the narrower @moca/harness package and the historical
  serverless-harness/SH_* names), the sandbox service, template, build
  and tag, activation lease, sandbox mode and subject -- each from the
  CLI's help text, the OpenAPI contract or the deploy pages.
- docs/REORG-PLAN.md moves to docs/archive/ with a Historical banner
  naming the migration that superseded it; CONTRIBUTING-DOCS.md points
  there, and the publish check and denylist drop it from their list of
  unpublished root files (archive/ is excluded as a whole).

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
@pdettori
pdettori marked this pull request as ready for review November 19, 2026 15:06
@pdettori pdettori added the ready-for-ai-review Request automated AI code review from clawgenti label Nov 19, 2026

@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.

Review — docs: a glossary that tells the two capabilities apart; archive REORG-PLAN

The split and every new entry except one check out against the code; the archive move is clean.

Verified against the source

  • Route profiles (sandbox-config.ts:87-94): exactly harness, sandbox, combined, absent or empty means harness — the glossary's wording matches, and routes.ts:16 types it the same way.
  • Subject forms (identity.ts:100-101, :255-271): github:<numeric id> and oidc:<provider sub>, with MEMBER_SUBJECT_FORMS phrased identically; SH_ALLOWED_SUBJECTS/SH_ADMIN_SUBJECTS are the enrollment lists (member-handlers.ts:94).
  • template/build/tag (sandbox-handlers.ts:2232-2234, :2321; ownership.ts:109; openapi.yaml:3108): id, id:tag and id@<build id> resolve as described; the default tag is moved, never removed, and the bare id must resolve.
  • sandbox mode (sandbox-config.ts:119-125, setup.sh:57-59): per-exec is the default and lease modes stay off until listed.
  • activation lease (cli.ts:297, :304): templates activate / deactivate exist with the flags the entry implies.
  • Archive move: check-docs-publish.sh already excluded docs/archive/, so dropping the REORG-PLAN.md root-file rule is correct rather than a loosening; CONTRIBUTING-DOCS.md points at archive/REORG-PLAN.md; nothing else in the tree references the old path; the Historical banner names the superseding PRs.
  • make check-links → 236 files, 0 broken (in-page anchors included); check-docs-publish.sh → 83 files, clean. CI: 17 green, 1 pending at review time.

One must-fix inline: the harness entry's narrower-use sentence describes the wrong package.

Author: pdettori (MEMBER — maintainer). Agent/IDE config: none. Commits: 1, signed off.

Comment thread docs/glossary.md Outdated
tools run in a harness [sandbox](#sandbox). Its sibling capability is the
[sandbox service](#sandbox-service).

Narrower uses of the word: the `@moca/harness` package (`harness/`) is only the adapter between

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

must-fix: this describes a file inside the package, not the package. @moca/harness is the turn-execution library: harness/package.json exports run-turn, run-leaf, leaf-job-runner, turn-stream, audit-log, pool-records and sandbox-affinity, and packages/server/src/server.ts:5 imports runTurn, executeTurn from it (called at :415); the supervisor, relay and control plane import it too. The Pi SessionStorageBackend adapter is one class in it, BufferedRedisBackend (harness/src/buffered-redis-backend.ts).

Something like: "the @moca/harness package (harness/) is the turn-execution library the supervisor, relay and control plane import — runTurn, run-leaf, turn streaming, the audit log, pool records; the Pi session-log adapter, BufferedRedisBackend, is one file inside it."

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 8ad7b6b. The entry now reads: "the @moca/harness package (harness/) is the turn-execution library the worker (@moca/server) and the sandbox relay import: runTurn, run-leaf, turn streaming, the audit log, pool records and sandbox selection (the Pi session-log adapter, BufferedRedisBackend, is one module in it)".

One deviation from the suggested wording: I didn't list the supervisor and control plane as importers, because the code says they aren't.

  • packages/supervisor/src/config.ts:109: the supervisor ships dependencies: {} on purpose, so the parent never loads @moca/harness.
  • packages/control-plane/src/turn-result.ts:3: the control plane "does NOT depend on" it.

The importers are packages/server (8 files) and packages/sandbox-relay (2). The exports list is from harness/package.json.

The glossary's harness entry described @moca/harness as only the Pi
session-log adapter, which is one module in it (buffered-redis-backend).
The package is the turn-execution library: its exports are run-turn,
run-leaf, leaf-job-runner, turn-stream, audit-log, pool-records,
sandbox-affinity, select-sandbox and more, imported by the worker
(@moca/server) and the sandbox relay. The supervisor and the control
plane do not depend on it at runtime (supervisor/src/config.ts:109,
control-plane/src/turn-result.ts:3).

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.

Re-review — the @moca/harness entry is now right

8ad7b6b8 changes one paragraph in docs/glossary.md and nothing else, so the rest of the review from 75d2988 stands unchanged.

The new sentence matches the package: @moca/harness as the turn-execution library that the worker (@moca/server) and the sandbox relay import, with runTurn, run-leaf, turn streaming, the audit log, pool records and sandbox selection named — all of them are in the package's exports (run-turn, run-leaf, turn-stream, audit-log, pool-records, sandbox-affinity), and packages/server/src/server.ts:5 plus packages/sandbox-relay/src/main.ts import it. BufferedRedisBackend is correctly demoted to "one module in it".

make check-links → 236 files, 0 broken; check-docs-publish.sh → 83 files, clean. CI at review time: 15 green, 2 pending. Approving; this clears the CHANGES_REQUESTED at 75d2988.

Author: pdettori (MEMBER — maintainer). No inline comments.

@pdettori
pdettori merged commit 1844b02 into rossoctl:main Nov 19, 2026
17 checks passed
pdettori added a commit to rossoctl/.github that referenced this pull request Nov 19, 2026
rossoctl/moca#919 moved docs/REORG-PLAN.md into docs/archive/, which
the sync already leaves out as a whole, so the separate REORG-PLAN.md
entry in MOCA_EXCLUDED matches nothing. Drop it, and its mentions in
the comment above and in the README.

Checked: a sync of moca main (with #919) publishes no REORG-PLAN file,
and moca's own check-docs-publish.sh dropped the same entry in #919.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
@pdettori pdettori added this to the v0.11.0 milestone Nov 20, 2026
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