Bind worktree RPC operations to the dispatched task #27

Closed
opened 2026-10-27 13:34:39 +00:00 by sam · 0 comments
Owner

The sandboxed agent can currently choose owner, repo, issue, base, and branch on worktree RPC requests. The daemon then performs host deletion and credentialed forge operations without correlating the request to the dispatched task or enforcing WorkDir containment.

Acceptance criteria

Reject traversal and unconfigured or task-mismatched coordinates before any filesystem or forge side effect; derive or validate the permitted branch; regression tests fail on the old behavior and pass on the fix.

Close reason

Fixed on main: worktreerpc now exposes only Push, authorized by an opaque per-dispatch grant issued from the dispatched *store.Task (worktreerpc.go:71-83). Sandbox input no longer selects host path, repo or branch; ValidCoordinates rejects traversal. Package tests pass.


Imported from beads archie-core-1ysw.1 · GitHub #589 · type bug · priority P0 · created 2026-08-22 · closed 2026-08-24

The sandboxed agent can currently choose owner, repo, issue, base, and branch on worktree RPC requests. The daemon then performs host deletion and credentialed forge operations without correlating the request to the dispatched task or enforcing WorkDir containment. ### Acceptance criteria Reject traversal and unconfigured or task-mismatched coordinates before any filesystem or forge side effect; derive or validate the permitted branch; regression tests fail on the old behavior and pass on the fix. ### Close reason Fixed on main: worktreerpc now exposes only Push, authorized by an opaque per-dispatch grant issued from the dispatched *store.Task (worktreerpc.go:71-83). Sandbox input no longer selects host path, repo or branch; ValidCoordinates rejects traversal. Package tests pass. --- _Imported from beads `archie-core-1ysw.1` · GitHub #589 · type bug · priority P0 · created 2026-08-22 · closed 2026-08-24_
sam added the criticalbug labels 2026-10-27 13:34:39 +00:00
sam self-assigned this 2026-10-27 13:34:39 +00:00
sam closed this issue 2026-10-27 13:34:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#27