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
ui-server: decide whether code history on a private worktree needs a live grant #4367
Part of #4278. Deferred from the first review of PR #4362 (#4297), where the maintainer ruled these as not blocking.
withHistoryCheckout (packages/ui-server/src/brain/reference-worktrees.ts:709) checks ownership and holder state, but not covered(). After a private repository's grant is withdrawn, the owning principal can still run a fresh capture of the live checkout and restore files through history. codePreview reads the pinned pack with no grant check at all. Access is owner-only and credential-free.
Decision needed
Does history on retained evidence and on the live checkout stay available to the owner after withdrawal, or does it require a live grant?
Scope
Implement the matching check, or the documentation, once ruled.
Out of scope
Grant semantics elsewhere.
Acceptance criteria
The ruling is recorded on this issue and in docs/decisions/managed-worktrees.md.
If a live grant is required, revert and conflict preview refuse without one, by a test.
Decision (maintainer, 2026-11-21):the owner keeps code history after a grant is withdrawn. The owning principal can still view and revert retained evidence for a private worktree after its grant is withdrawn, as worktree history already allowed before #4297. Revert still requires a fresh capture equal to tree_after, and access stays owner-only and credential-free. docs/decisions/managed-worktrees.md records this explicitly. No live-grant check is added. needs: decision is removed; what remains is the documentation criterion.
Closed by #4444, squash-merged to main as a3395c4b2. The combined review found every non-native criterion met. Native-measurement criteria for this issue moved to #4420 by maintainer decision, because native proof cannot run on the integration host.
Activity
schlessera commentedon Nov 21, 2026
Decision (maintainer, 2026-11-21): the owner keeps code history after a grant is withdrawn. The owning principal can still view and revert retained evidence for a private worktree after its grant is withdrawn, as worktree history already allowed before #4297. Revert still requires a fresh capture equal to
tree_after, and access stays owner-only and credential-free.docs/decisions/managed-worktrees.mdrecords this explicitly. No live-grant check is added.needs: decisionis removed; what remains is the documentation criterion.schlessera commentedon Nov 23, 2026
Closed by #4444, squash-merged to main as
a3395c4b2. The combined review found every non-native criterion met. Native-measurement criteria for this issue moved to #4420 by maintainer decision, because native proof cannot run on the integration host.