Repository navigation
docs: address #514 review; workload runs need a token first - #519
Conversation
…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]>
ingpaolodettori-dev
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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."
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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."
There was a problem hiding this comment.
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.
Follow-up to #514 (list context workflows), from Paolo's review, plus a doc fix that missed #516 (harden workload context delivery).
docs/concepts/context-workflows.md, adds it todocs/concepts/index.mdanddocs/index.md, and gives it a Preview line saying it is a planning list.docs/context-service.mdanddocs/reference/leaf-and-envelope.md: underSH_REQUIRE_AUTH, an unauthenticated workload run gets401 token_requiredbefore the async or workload checks. Found by a Kind end-to-end run.🤖 Generated with Claude Code