Repository navigation
docs(spec): phase 2 flow diagram and future simplifications - #561
Conversation
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]>
ingpaolodettori-dev
left a comment
There was a problem hiding this comment.
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
| <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> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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".
There was a problem hiding this comment.
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]>
Follow-up to #553 (the phase 2 design).
workload-sandboxes-flow.svg) and a numbered list of the 9 steps, each with a short bold label.🤖 Generated with Claude Code