Skip to content

docs(sbx): record the live acceptance in the security review - #565

Merged
pdettori merged 3 commits into
rossoctl:mainfrom
pdettori:docs/sbx-live-acceptance
Oct 21, 2026
Merged

pdettori merged 3 commits into
rossoctl:mainfrom
pdettori:docs/sbx-live-acceptance

Conversation

@pdettori

Copy link
Copy Markdown
Member

What

Records the SBX0 live acceptance (spec §10.6, the 1c gate's "Live" rows) in docs/sbx/security-review.md: every Live row now carries its verified result and date, and §4's pending-live-rows bullet becomes the run's record.

The run (2026-10-20)

Against the deployed namespace with workers and janitor on the KVM host:

  • deploy/sbx/smoke.sh: steps 1–4 and 6 green in the full run; step 5's Claude Code half green in a re-run of that step alone, after the smoke harness fix (fix(sbx): allow the sandbox MCP tools on the CLI in the smoke's headless claude run #564 — a change that touches only the claude invocation, no other step). Step 5's OpenCode half was skipped (not installed on the acceptance machine) and is recorded as still pending.
  • Hand checks at the same run: the deployed sandbox profile from outside (harness routes 404, probes shared, sandbox route 401); a tokenless Exec (refused UNAUTHENTICATED, relay audit no bearer token, no sub) and a tokenless attach (stream closed with no ServerFrame, worker never registered); the guest's absent network (DNS gaierror, raw connect errno 101).
  • The run caught one real defect — the Firecracker wrapper let a command ending in exit skip the pre-teardown sync, losing every client put — fixed and merged in fix(vmpool): run the wrapped command in a subshell so its exit cannot skip the sync #562 with a new non-KVM regression test and a strengthened KVM durability gate.

§5 (reviewer sign-off) is left blank: that is the human step this record feeds.

🤖 Generated with Claude Code

The 1c gate's live rows, verified 2026-10-20 against the deployed
namespace (spec 10.6): the smoke's steps 1-4 and 6 green in the full run,
step 5's Claude Code half green in a re-run of that step after the smoke
harness fix (PR rossoctl#564; the change touches only the claude invocation), and
the hand checks - the deployed sandbox profile from outside, a tokenless
Exec and a tokenless attach, and the guest's absent network - done at the
same run. Step 5's OpenCode half is still pending (not installed on the
acceptance machine). The run caught one real defect, fixed and merged in
PR rossoctl#562 with a new regression test.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
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.

Summary

Docs-only: records the SBX0 live acceptance (spec §10.6) in docs/sbx/security-review.md. Each formerly "Live (Task 10)" row now carries its result and date, and §4's pending bullet becomes the run's record. The second commit is a Prettier reflow of the tables only (a whitespace-insensitive word diff shows nothing else changed). The record is candid about what didn't run (OpenCode half of step 5) and about the defect the run caught (#562, merged). The no bearer token audit reason it quotes matches sandbox-auth.ts:71 on main.

Two non-blocking gaps in how the record pins what was run, plus one leftover in the legend.

Author: pdettori (MEMBER — maintainer)
Areas reviewed: Docs
Agent/IDE config (.claude/.vscode): none
Commits: 2 commits, all signed-off: yes
CI status: passing (14/14)

Comment thread docs/sbx/security-review.md Outdated
verified only when that run is recorded in it.
- **The live acceptance ran 2026-10-20** (spec §10.6), against the deployed namespace with
workers and janitor on the KVM host: `deploy/sbx/smoke.sh`, steps 1–4 and 6 green in the
full run; step 5's Claude Code half green in a re-run of that step alone after a smoke

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: step 5's Claude Code half is recorded green on a smoke harness fix that isn't on main. That fix is #564, which is still open (our review requested changes there: deploy/sbx/tests/smoke.test.sh:342 is red). main's smoke.sh:513 still runs claude -p without --allowedTools, so re-running step 5 from main today would fail the way the first run did. Either merge #564 first, or name the commit/branch the re-run used here (and ideally the deployed image digests or main SHA for the whole run). That way the sign-off in §5 points at reproducible code. Same for the row-level "Verified live" entries, which currently carry only a date.

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.

Addressed in acae764: section 4 now names the exact code the run used — the deployed image was the CI image of main at dc1c25fc (ghcr.io/rossoctl/moca:main-dc1c25f), the KVM worker was built from f5bf7840 (#562, merged as 920fa884), steps 1-4 and 6 ran main's harness (the sync-fix branch changed only the Go worker), and step 5's re-run used the harness at 6aedba08 (#564). Every Verified-live row now points at section 4 for that record. #564's review comment is also fixed (5bc65c3), so once it merges, main reproduces the whole run.

Comment thread docs/sbx/security-review.md Outdated
harness fix (headless claude ignored the workspace allow in an untrusted repository;
`--allowedTools` on the CLI, a change that touches only the claude invocation and no other
step). Step 5's OpenCode half was skipped — OpenCode was not installed on the acceptance
machine — so that half is still pending a first live run. The hand checks above (§1.2's

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 spec's 1c exit criterion is "§10.3–§10.6 pass", and §10.6 step 5 covers both agents. With the OpenCode half still pending, say here whether that blocks opening the cohort or is accepted as a known gap (for example, the cohort is told OpenCode is unverified until its first live run). Otherwise the §5 reviewer has to make that call without it being named.

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.

Addressed in acae764: section 4 now names it explicitly — accepted as a known gap that does not block opening the cohort, with the cohort told the OpenCode half is unverified until its first live run. Flagging here that this stance is mine to propose and the maintainer's to veto: say the word and I will flip it to a blocker.

Verified on 2026-10-19, on the branch at the commit that adds this file, unless a row says
otherwise. Test paths are relative to the repository root.
otherwise. Test paths are relative to the repository root. The live acceptance (the rows that
needed it) ran 2026-10-20; §4 records 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.

nit: the status legend at L15–16 still defines Live (Task 10) as "Pending until that run", but no row uses that status any more; they now say "Verified live, ". Update the legend entry (e.g. "Verified live: shown by the live acceptance against a deployed namespace, on the date given") so the vocabulary matches the rows.

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.

Done in acae764: the legend entry is now Verified live — shown by the live acceptance against a deployed namespace, on the date given, with section 4 recording the run and the exact code it used.

… OpenCode gap named, the legend matched to the rows

Per review on rossoctl#565: name the exact commits the live acceptance used
(image of main at dc1c25f, worker at f5bf784 = rossoctl#562, step-5 harness at
6aedba0 = rossoctl#564), point every Verified-live row at section 4, state that
the pending OpenCode half is an accepted known gap that does not block
the cohort, and rename the Live (Task 10) legend entry to Verified live
now that no row is pending.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
@pdettori pdettori added the ready-for-ai-review Request automated AI code review from clawgenti label Oct 20, 2026
@pdettori
pdettori merged commit 995667f into rossoctl:main Oct 21, 2026
14 checks passed
@pdettori
pdettori deleted the docs/sbx-live-acceptance branch October 21, 2026 00:47
pdettori added a commit to pdettori/moca that referenced this pull request Oct 21, 2026
The 1c gate is closed: the live acceptance against the deployed
namespace ran 2026-10-20 and its results are recorded in
docs/sbx/security-review.md (PR rossoctl#565). Flip the spec, ADR-0042, and the
specs README row to Accepted.

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