Skip to content

feat: make session placement server-owned - #996

Merged
JAORMX merged 40 commits into
mainfrom
acc/server-owned-session-placement
Sep 3, 2026
Merged

JAORMX merged 40 commits into
mainfrom
acc/server-owned-session-placement

Conversation

@JAORMX

@JAORMX JAORMX commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • make filesystem placement exclusively server-owned across local, remote, headless, and cloud-native deployments
  • remove client-supplied workspace paths from Harness/HTTP APIs and replace worktree paths with source-scoped ephemeral selectors
  • add server-side ClearSession and placement-aware ForkSession successor operations
  • persist exact private environment identity while keeping public session, schedule, delegation, driver, and ACP boundaries path-safe
  • migrate mecatui /clear, model switching, worktree discovery, session resume, schedules, teams, and no-FS behavior
  • add ADR 0288 and the landed 26-criterion acceptance plan

Security properties

  • public clients cannot select host/container filesystem paths
  • worktree selectors are HMAC-scoped to caller and source session, re-enumerated before use, and expire on restart
  • placement provider binding and exact reattachment are mandatory; invalid refs never fall back to a default
  • all Engine entry paths enforce exact environment identity
  • no-FS is attenuation-only and cannot upgrade through successors, delegation, schedules, or ACP
  • physical roots and private environment refs are withheld from public responses/errors

Verification

  • task generate
  • task lint
  • task test (Helm v3.18.6)
  • task docs
  • task site:build
  • task api:check
  • task build
  • go run ./cmd/mecademo
  • server-owned placement plan: 26 ACs, 0 failures

Global task ac-trace-strict remains red on main and this branch for the same unrelated baseline debt: one missing fire-delivery proof and six orphaned ADR-0244 pins.

Review panel

Initial review found provider-bypass, root-affinity, exact-entry, legacy-path, metadata, and error-sanitization defects. Three repair waves closed them. Final security re-review reported no remaining Critical, High, or Medium findings.

Compatibility

Intentional breaking change. There are no compatibility users: obsolete path-bearing requests and stored duplicate workspace authority are rejected rather than deprecated or migrated.

@JAORMX
JAORMX force-pushed the acc/server-owned-session-placement branch 5 times, most recently from e28032c to 8d61131 Compare September 3, 2026 12:57
@JAORMX
JAORMX force-pushed the acc/server-owned-session-placement branch from 8d61131 to 377d15a Compare September 3, 2026 13:23
@JAORMX
JAORMX merged commit 5226b91 into main Sep 3, 2026
25 checks passed
@JAORMX
JAORMX deleted the acc/server-owned-session-placement branch September 3, 2026 13:37
kantord added a commit that referenced this pull request Sep 3, 2026
Leftover from rebasing onto #996 (server-owned session placement) -
this paragraph should have been fixed in the same commit that dropped
the workspace concept elsewhere in this file, but the edit never got
staged.

Co-authored-by: Claude Sonnet 5 <[email protected]>
kantord added a commit that referenced this pull request Sep 4, 2026
Leftover from rebasing onto #996 (server-owned session placement) -
this paragraph should have been fixed in the same commit that dropped
the workspace concept elsewhere in this file, but the edit never got
staged.

Co-authored-by: Claude Sonnet 5 <[email protected]>
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