Skip to content

docs: address #514 review; workload runs need a token first - #519

Merged
moonlight16 merged 1 commit into
rossoctl:mainfrom
moonlight16:docs/workloads-review-followups
Oct 14, 2026
Merged

moonlight16 merged 1 commit into
rossoctl:mainfrom
moonlight16:docs/workloads-review-followups

Conversation

@moonlight16

Copy link
Copy Markdown
Member

Follow-up to #514 (list context workflows), from Paolo's review, plus a doc fix that missed #516 (harden workload context delivery).

  • Moves the context workflows list to docs/concepts/context-workflows.md, adds it to docs/concepts/index.md and docs/index.md, and gives it a Preview line saying it is a planning list.
  • Uses the MOCA spelling, says "workflow 5" rather than "feat(knative): M7 cluster experiments — E1 economics + E3 mobility + E4 recovery #5" for cross-references, and explains BugStone.
  • States phase 1 limits (synchronous only, logged-in users, off unless enabled) and that shared sandboxes are not a security boundary between users. Clarifies that delegated tasks mount the PVC only in per-workload sandboxes (/workloads phase 2: give each workload its own sandboxes and, optionally, durable storage #476, phase 2: per-workload sandboxes and storage).
  • Workflow 9: Context Service already captures and restores harness state; the gap is cross-harness translation.
  • docs/context-service.md and docs/reference/leaf-and-envelope.md: under SH_REQUIRE_AUTH, an unauthenticated workload run gets 401 token_required before the async or workload checks. Found by a Kind end-to-end run.

🤖 Generated with Claude Code

…401 first

Move the context workflows list to docs/concepts/ with a Preview line and index entries, use the MOCA spelling, state phase 1 limits and that shared sandboxes are not a security boundary, link Context Service's capture/restore for workflow 9, and say "workflow N" for cross-references. Also correct that under SH_REQUIRE_AUTH an unauthenticated workload run is 401 token_required first (missed rossoctl#516).

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Jeremy Cohn <[email protected]>
@moonlight16
moonlight16 requested a review from pdettori as a code owner October 14, 2026 16:48
@evaline-ju evaline-ju added the ready-for-ai-review Request automated AI code review from clawgenti label Oct 14, 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.

This PR addresses all eight #514 comments. The new 401-first wording matches the code: /runs runs resolveTurnAuth (which raises token_required under SH_REQUIRE_AUTH) before the async workload_runs_unavailable branch and resolveRunWorkload, and deploy/k8s/base/supervisor.yaml sets SH_REQUIRE_AUTH=true. Nothing on main links to the old docs/context-workflows.md, and the new relative links resolve.

One suggestion, which comes from our own #514 nit: Context Service captures state for all four harnesses, but restore is Claude Code only today. Details are inline.

Author: moonlight16 (MEMBER — maintainer)
Areas reviewed: Docs (checked against knative-server server.ts/turn-auth.ts/workloads.ts, deploy/k8s, docs/context-service.md, rossoctl/context-service docs and contextctl)
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: passing

authorization).
- **Sharing to do:** more than one user using the same workload or Context. Not designed yet.
- **Capture and restore exist:** Context Service already captures and restores native agent-harness
state for Claude Code, Codex, OpenCode and Pi

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: Capture covers Claude Code, Codex, OpenCode and Pi through contextctl ctx attach, but restore is Claude Code only. Context Service's harness-attachments.md says "Manual capture and restore currently support Claude Code project state", and contextctl ctx restore rejects any harness other than claude (cmd/contextctl/main.go). My #514 nit overstated this from the README, sorry. Maybe: "Context Service already captures native agent-harness state for Claude Code, Codex, OpenCode and Pi, and restores Claude Code state."

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.

Thanks. Rather than narrow the wording, we're making restore cover all four harnesses: rossoctl/context-service#55. The doc will match once that lands.

example a Claude Code session) and restores it into another (for example Codex or Pi) to continue
the work. Moca is not involved.
**9. Hand work to another agent.** Context Service already captures an agent harness's native state
(for example a Claude Code session) and restores it into the same kind of harness. Continuing the

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: Same point as above: "restores it into the same kind of harness" only holds for Claude Code today. Maybe "and restores a Claude Code session into Claude Code."

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.

Thanks. Rather than narrow the wording, we're making restore cover all four harnesses: rossoctl/context-service#55. The doc will match once that lands.

@moonlight16
moonlight16 merged commit f5a9cba into rossoctl:main Oct 14, 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