You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let oc_start_session pass its own delegation profile (CAS field names), narrower than the owner's box-wide OPENCODE_DELEGATE_DYNAMIC_PROFILE.
Why it is parked
The delegation gate cannot tell which session made a call. The box's MCP calls carry no session identity, and approvals are already box-wide for the same reason.
A session identity set inside the box could be set by any session (the box is one trust zone). So a per-task profile could only ever be a convenience, like oc_start_session {keystone}, never a wall. The owner's box-wide profile stays the wall.
No current task needs it. The box-wide profile plus approvals cover today's use.
If picked up
Decide first whether a convenience-only narrowing is worth it. If yes: a per-session header on the ks-dynamic MCP entry, read by the gate, that can only narrow the box-wide profile.
delegate/-p watcher bug: headless builder detaches from launcher PID, so watchers report it dead while it works #261 (packages/opencode/src/plugin/opencodealt-docs.ts): Export HEADLESS_WATCHER_GUIDANCE and include it in DOCS_SYSTEM_LINE and DOCS_TEMPLATE so /docs and session system prompts explicitly document that headless runs use opencodealt run (-p on opencode serve is --password) and that Windows .cmd/.bat launcher shims can detach/exit while the worker continues — programmatic watchers must track session activity (oc_status / oc_events / transcript updates), never a launcher shim PID.
Add strict monotonic narrowing (isVisibleWithNarrowing / decideWithNarrowing) in mcp-gate/src/policy.ts: a per-task profile can only narrow the owner's box-wide OPENCODE_DELEGATE_DYNAMIC_PROFILE (intersection of visibility, union of deny/approval requirements; �pprovals: 'listed' on a narrower profile never downgrades �pprovals: 'risky' on the base profile).
Support POST /v1/profile on �dminHandler (host-only admin network authenticated with GATE_ADMIN_TOKEN) and x-opencode-delegate-profile header on rontHandler (failing closed with HTTP 400 if malformed).
Accept delegationProfile (CAS field names) on oc_start_session and delegate_task, persist in HostSessionState / SessionRecord, and push delegationProfile ?? null to ctx.gate.setTaskProfile(...) on session start and oc_send so task profiles never leak across sessions.
🔓 RELEASED — Merged to dev in PR #283 ($mergedSha, head 6b20d60). Verified by ARCH-GATE-02: PASS, FRESH-QA: PASS, and all 8 CI + CodeRabbit checks green.
Activity
Alter-Igor commentedon Nov 3, 2026
🔒 HELD — Delivery Program Director (LIF-001-44 Wave 3 WS-09)
ARCH-GATE-01: PASS (Model: google/gemini-3.8-flash via Synapse)
fix(delegate-mcp): reject overlapping profiled sessions and propagate…
fix(delegate-mcp): guard ctx.config.home in applyTaskProfile (#124)
fix(delegate-mcp): serialize gate profile updates and propagate listS…
fix(delegate-mcp): restore git argv in workspaces sync countBefore (#124
fix(delegate-mcp): enforce strict state listing and reject delegation…
feat(delegate-mcp): add narrow-only per-task delegation profiles and …
Alter-Igor commentedon Nov 3, 2026
🔓 RELEASED — Merged to dev in PR #283 ($mergedSha, head 6b20d60). Verified by ARCH-GATE-02: PASS, FRESH-QA: PASS, and all 8 CI + CodeRabbit checks green.