workspace-identity ยท diff
git:20261004.4bb7222 to git:20261019.c94a4e9
1 added, 0 removed. Audit A to A.
---
description: Canonical workspace identity across ownership and trust boundaries
globs:
- "internal/session/**/*.go"
- "internal/remote/**/*.go"
- "internal/mcp/**/*.go"
- "internal/subagents/**/*.go"
- "internal/hooks/**/*.go"
- "internal/skills/**/*.go"
- "external/httpserver/**/*.go"
alwaysApply: false
---
# Workspace identity
- Compare workspace ownership, filtering, trust, and cache identity through `SameWorkspacePath` or the canonical form, never raw strings.
- Account for symlinks, `/tmp` versus `/private/tmp`, and case-insensitive Windows and macOS paths.
- Keep the logical path for display and the canonical key for identity.
+ - Trust receipts, project switches and what a project shares (a project MCP server, the scheduler's scan set) key by `mcp.TrustWorkspace`, which answers a folder of a linked git worktree with the same folder of its main checkout; paths stay on the real workspace.
- Remote adapters forward workspace filters.