Skip to content

C Expand Batch 1: workspace registry CRUD + auth bootstrap#42

Merged
BadGuyFranco merged 1 commit into
mainfrom
c-expand-batch1-registry-crud
May 23, 2026
Merged

C Expand Batch 1: workspace registry CRUD + auth bootstrap#42
BadGuyFranco merged 1 commit into
mainfrom
c-expand-batch1-registry-crud

Conversation

@BadGuyFranco
Copy link
Copy Markdown
Owner

Summary

  • C-D1 (founder-ratified): GET /auth/session returns { csrfToken, bearerToken } with strict loopback Host required and Origin absent or loopback-only; 9 bootstrap regression tests.
  • Workspace registry HTTP: GET/POST/PUT/DELETE /workspaces (+ GET /workspaces/:id) with Zod schemas in packages/schemas/src/oz/workspace-http.ts.
  • CLI: cocoder oz register --id ID --workspace-root PATH (upsert semantics; tokenized paths via tokenizePath).
  • Decision Log: C-D1..C-D4 captured in oz-mvp plan.

Test plan

  • pnpm -r test322/322 (+20 from 302 baseline)
  • C-S1..C-S9 security tests unchanged green
  • New: oz-security-auth-bootstrap.test.mjs (C-D1)
  • New: oz-workspaces-crud.test.mjs (registry CRUD + CLI register)
  • cli-help-baseline.txt regenerated for oz register

Notes

  • Batch 2 next: multiplexer-observer + runs API + real launch/stop subprocess.
  • C-D1 threat-model amendment to be duplicated in docs/oz-security-checklist.md (Batch 4).

Made with Cursor

Ships daemon workspace endpoints, founder-ratified GET /auth/session Bearer
bootstrap with strict loopback Origin/Host, cocoder oz register CLI, and
Zod HTTP schemas so the dashboard can share one contract source.

Co-authored-by: Cursor <cursoragent@cursor.com>
@BadGuyFranco BadGuyFranco merged commit 2789bee into main May 23, 2026
2 checks passed
@BadGuyFranco BadGuyFranco deleted the c-expand-batch1-registry-crud branch May 23, 2026 12:32
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.

1 participant