Skip to content

docs(spec): phase 2 flow diagram and future simplifications - #561

Merged
moonlight16 merged 4 commits into
rossoctl:mainfrom
moonlight16:docs/phase2-flow-diagram
Oct 21, 2026
Merged

moonlight16 merged 4 commits into
rossoctl:mainfrom
moonlight16:docs/phase2-flow-diagram

Conversation

@moonlight16

Copy link
Copy Markdown
Member

Follow-up to #553 (the phase 2 design).

  • Replaces the §2 placeholder with the flow diagram (workload-sandboxes-flow.svg) and a numbered list of the 9 steps, each with a short bold label.
  • Adds §11, "Future simplifications": ideas to explore once phase 2 works, not decisions. Testing moves to §12.

🤖 Generated with Claude Code

Replace the §2 placeholder with the flow diagram and a numbered list of
the 9 steps, each with a short bold label. Add §11, future
simplifications to explore once phase 2 works; testing moves to §12.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jeremy Cohn <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jeremy Cohn <[email protected]>
@pdettori pdettori added the ready-for-ai-review Request automated AI code review from clawgenti label Oct 21, 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.

Docs-only follow-up to #553. I checked the 9-step list and the diagram against §3–§7 of the spec (attach token and trusted labels, provisioner internal API, mount subPaths, delete order), and they're consistent. The §11→§12 renumbering breaks no references in docs/ or ADR-0043. The SVG is static (no scripts or links). There are two nits on accuracy, inline. Neither blocks merge.

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

Comment thread docs/specs/workload-sandboxes-flow.svg Outdated
<g class="step"><circle cx="1160" cy="278" r="10"/><text x="1160" y="278">4</text></g>
<text class="api" x="1180" y="258">resolve attachment (context-service#40)</text>
<text class="sub" x="1180" y="275">needs attach for the owner; returns</text>
<text class="api" x="1180" y="291">{namespace, claimName, accessMode}</text>

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 step 4 label lists {namespace, claimName, accessMode}, but step 4 in §2 and §5.2 say the resolve call returns {namespace, claimName, backend, accessMode}. Add backend, or mark the list as abbreviated.

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 4771190: the step 4 label now lists {namespace, claimName, backend, accessMode}.

`provisioning`.
3. **Request sandboxes:** the worker calls `PUT /internal/v1/workloads/{name}/{generation}` on
`moca-provisioner` with its service token and the caller's API token; the provisioner derives
`wl` from the verified owner.

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: "derives wl from the verified owner" (also in the SVG, lines 114 and 171) leaves out part of §4.1: wl = "w-" + sha256(owner \0 name \0 generation). Generation is the input that gives a re-created workload a new wl (§3.2). Consider "derives wl from the verified owner, name and generation".

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 4771190: step 3 and the SVG (the step 3 arrow's footnote) now say wl comes from the verified owner, name and generation.

…eration

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jeremy Cohn <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jeremy Cohn <[email protected]>
@moonlight16
moonlight16 merged commit 95ff373 into rossoctl:main Oct 21, 2026
14 checks passed
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.

3 participants