Skip to content

feat(mecak8s): add principal-scoped Redis filesystem - #1132

Merged
jerm-dro merged 2 commits into
mainfrom
jerm-dro/01M1CSN1MT451VGJFCYQKEDT3H
Sep 4, 2026
Merged

jerm-dro merged 2 commits into
mainfrom
jerm-dro/01M1CSN1MT451VGJFCYQKEDT3H

Conversation

@jerm-dro

@jerm-dro jerm-dro commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a shell-less Redis-backed Workspace for mecak8s with atomic create/replace and the standard Read/Edit/Write/Grep/Glob contract
  • scope persistent files to the exact verified OIDC issuer/subject pair, with a reserved anonymous fallback
  • persist per-session read-before-write ledgers independently from principal-shared file data
  • wire CLI and Helm configuration, reject mounted-workspace and filesystem fork/merge combinations, and document lifecycle/capacity semantics

Session contract

The session persists an opaque Redis environment reference. Reattachment recomputes the namespace from the current verified principal and fails closed on a mismatch. Sessions with the same (iss, sub) intentionally share files; their read-before-write ledgers remain session-local. Deleting a session removes its ledger, not the principal's shared files.

Verification

  • task lint
  • Redis workspace filesystem conformance suite
  • Redis persistence, CAS, namespace isolation, and corruption tests
  • full composition test exercising Write, Read, Edit, Grep, and Glob, then reading the edited file from a second same-principal session
  • persistent Redis read-ledger conformance/restart/isolation/deletion tests
  • mecak8s CLI validation tests
  • Helm render and mounted-workspace exclusion test
  • task docs
  • task site:build

task test was also run. All affected packages and the engine/provider modules passed; the local run retained pre-existing failures in unrelated internal/app learning and role-telemetry tests that reproduce on the base branch.

Closes #889

@jerm-dro
jerm-dro merged commit 684df4f into main Sep 4, 2026
25 checks passed
@jerm-dro
jerm-dro deleted the jerm-dro/01M1CSN1MT451VGJFCYQKEDT3H branch September 4, 2026 22:28
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 a principal-scoped Redis filesystem for mecak8s

1 participant