Skip to content

fix(server): audit batch 2 — shared-session imports, upstream peer lists, ACP env; drop project actions list - #304

Merged
pandec merged 12 commits into
devfrom
fix/audit2-server-mcp
Nov 25, 2026
Merged

pandec merged 12 commits into
devfrom
fix/audit2-server-mcp

Conversation

@pandec

@pandec pandec commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Fork audit batch 2 (server/MCP): three integration defects and two trims.

F1 – Bulk import duplicated sessions owned through a sibling instance. A Claude shadow instance and its default share one transcript store, but the bulk import guard compared only the instance ID, so a session imported or run through the shadow could be attached to a second thread. The EventSink guard now also matches owners on instances with the same continuation key, and owners recorded in fork_native_continuation under that key (covers a removed shadow). Bulk import keeps blocking deleted owners; manual import already matched by continuation key and is unchanged.

F3 – t3_thread_list against a stock upstream peer failed to decode. threads[].worktreePath is optional on the wire (still always emitted locally). A forwarded list with the fork-only worktreePath filter fails with a clear error when the peer's items lack the field, instead of returning unfiltered threads.

F6 – ACP agents inherited the server's own thread variables. The shared ACP spawn used extendEnv, which re-added T3CODE_THREAD_ID/TURN_ID/WORKTREE_PATH from the server process. It now builds the env from withoutThreadEnvironment(process.env) (case-insensitive) plus the adapter's values; provider instance env snapshots drop them too.

T1 – Removed t3_project_actions_list. t3_project_read/t3_project_list return the same effective actions. Upsert/remove descriptions point at t3_project_read; README, context budget, and tests updated.

T14 – One fork MCP island test matrix replaces the thread-groups and voice registration tests (8 islands, common tools, voice gating, one voice call). −210 test lines.

Evals to run (not run here; model-facing text changed): project-action tool selection cases, if any, per evals/README.md; MCP tool-list budget measured by AgentContextBudget.test.ts.

Implemented with Claude Opus 5.5 in Claude Code (T3 Code); reviewed by GPT 6.2 Astra and Claude Opus 5.5.

@pandec
pandec merged commit ffa2ecb into dev Nov 25, 2026
3 checks passed
@pandec
pandec deleted the fix/audit2-server-mcp branch November 25, 2026 09:10
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