Skip to content

feat: upload and freeze workload contexts - #50

Closed
moonlight16 wants to merge 1 commit into
mainfrom
feat/workload-context-storage-45
Closed

moonlight16 wants to merge 1 commit into
mainfrom
feat/workload-context-storage-45

Conversation

@moonlight16

Copy link
Copy Markdown
Member

Summary

  • add authenticated, one-time uploads that materialize portable bundles in Context PVCs
  • expose trusted create, attachment, freeze, and delete APIs for Moca workloads
  • freeze exact revisions before Sandbox attachment and clean up upload helper Pods
  • add scoped local filesystem context deletion for demo cleanup
  • document the upload flow and security boundaries

Validation

  • go test ./...
  • local Kind Moca demo: 2/2 delegated incident tasks matched across two Sandboxes
  • verified the transient workload, Sandboxes, PVC, and local demo contexts were removed

Closes #45

@moonlight16
moonlight16 force-pushed the feat/workload-context-storage-45 branch from c2e7e4b to 73007e9 Compare October 7, 2026 06:13
moonlight16 added a commit that referenced this pull request Oct 9, 2026
Moca creates a Context, gives the client a one-time upload capability, freezes the uploaded revision, and downloads that frozen revision as a portable bundle. Context Service stores the bytes and never creates sandboxes.

Ported from #50 without the PVC attachment endpoint, which bundle delivery does not need. Adds the frozen-bundle export endpoint, aborts a failed export instead of returning a truncated 200, and starts without a helper image (upload and export are then unavailable).

Part of the work split out of rossoctl/moca#455.

Assisted-By: Claude (Anthropic AI) <[email protected]>

Signed-off-by: Jeremy Cohn <[email protected]>
@moonlight16

Copy link
Copy Markdown
Member Author

Superseded by smaller PRs, all merged: #51 (remove sandbox pools), #52 (upload, freeze, and export context bundles for Moca), #53 (default namespace context-service), and #54 (wait for the pod image digest at start-up). Closing. The Moca side is tracked from rossoctl/moca#455 (the original context-delegation PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add scoped upload and materialization capabilities for managed contexts

1 participant