workspace-identity · git:20261019.c94a4e9 · 2026-10-19 · sha256 1bf51d0eecdc7d6a
workspace-identity git:20261019.c94a4e9A
Immutable. This exact content never changes and is served at /api/v1/blob/1bf51d0eecdc7d6a.
--- 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.