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
{{ message }}
Repository navigation
Commit 8a78354
Browse filesBrowse the repository at this point in the historyBrowse files
fix(workspace): identity review — one owner, bounded resolve, budgeted label
From the Kilo, CodeRabbit and Codex reviews of the identity PR.
- The routing directive no longer says "This project is bound to Altimate
workspace X": it names the workspace that SERVES the tools ("Altimate
workspace X serves the warehouse tools named below"). The snapshot is
taken from local state at tool resolution and identity is revalidated
against the server later in the turn, so the old sentence could
contradict the identity section in one prompt. The ownership test now
rejects every "this project is linked|bound|connected|attached to"
phrasing instead of one string.
- `identity.ts` resolves the binding at most once per 30 s per project
(`OUTCOME_MEMO_MS`) and clears the memo on `onBindingChanged`. The
resolver deliberately does not memoise an unreachable server, and a
cached binding past its validation window re-asks too; on the prompt's
critical path that was one `git remote` plus up to two 15-second
requests before every generation for the length of an outage.
- The label is budgeted on its encoded form (`MAX_LABEL_CHARS`, lone
surrogates made well-formed first) so no name can push the section past
the cap and clip the instruction; the name is shortened with an
ellipsis and the id kept whole. Cap raised to 1,000 as defense in depth.
- Tests: hostile-name test now fails without the sanitiser (NEL and the
Unicode separators are not JSON-escaped); the trigger test pins the
narrowing suffix and that every active instruction sits in the
trigger sentence; encoded-label budget covered for surrogates, quotes,
backslashes and emoji; memo probe-once and unlink-invalidation covered.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6
0 commit comments