Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 25, 2026, 6:02 PM ET / 22:02 UTC (Revision 15). ClawSweeper reviewWhat this changesThe branch lets sessions that request the same named Git worktree use one checkout and changes session lookup, sandbox projection, publication, and cleanup to follow the stored worktree ID. Merge readiness⛔ Blocked before merge - 16 items remain Current main and the latest release still reject cross-session reuse of a named worktree, so this PR remains useful. Its unchanged head retains five previously reported lifecycle defects; review also found a cross-guest workspace isolation breach and a stable-release rollback incompatibility. Priority: P2 Review scores
Verification
How this fits togetherGateway session creation asks the managed-worktree service for a Git checkout and stores its ID in the session row. Dispatch, sandbox execution, publication, reset, and garbage collection then use that binding to find or retire the checkout. flowchart LR
A[Session creation request] --> B[Named worktree selection]
B --> C[SQLite worktree registry]
C --> D[Git checkout]
D --> E[Sandbox and worker dispatch]
C --> F[Reset and cleanup]
Decision needed
Why: The current contract promises distinct guest workspaces, while this PR makes a matching name sufficient to join one; choosing a different trust boundary requires maintainer intent. Before merge
Findings
Agent review detailsSecurityNeeds attention: The diff adds no dependency or automation source, but named adoption can cross the documented guest sandbox workspace boundary. PR surfaceSource +75, Tests +198, Docs 0. Total +273 across 30 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep named sharing within an authorized creator boundary, carry the stored worktree ID through allocation, fence reset and cleanup against remaining users, and prove a rollback-compatible storage transition. Do we have a high-confidence way to reproduce the issue? Yes. Source gives specific keyed-creation, shared-reset, cleanup-race, and cross-guest scenarios; this read-only review did not execute the branch. Is this the best way to solve the issue? No. Stable-ID lookup is useful, but the ownerless marker does not preserve guest isolation, lifecycle custody, or stable rollback behavior. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 800bf8e10e7c. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (14 earlier review cycles; latest 8 shown)
|
a1f54a5 to
a134f70
Compare
|
@clawsweeper re-review All five findings are addressed at |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
a134f70 to
64feb18
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
64feb18 to
072257a
Compare
|
@clawsweeper re-review\n\nExact head |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: re-review\n\nExact head |
|
ClawSweeper assist: This needs a full correctness re-review of Evidence:
Suggested next action: Request Source: #150479 (comment) |
|
@clawsweeper re-review |
|
🦞👀 |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
072257a to
7b66384
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. |
8258396 to
1a0191f
Compare
|
@clawsweeper re-review Revision 4's two P1 authorization findings are addressed at exact head
Regression coverage exercises both archived-membership isolation and revocation during an admitted read. The PR body has the refreshed exact-head proof. Hosted CI also exposed a missing release-manifest bump: The compact Node shards also exposed stale full mocks and schema-v17 fixture manifests after current The retained-release corpus then exposed the missing versioned v18 data migration. Doctor/runtime upgrade now creates the canonical binding table and backfills active legacy session-owned worktrees before publishing the v18 fence. Both retained v15/v17 corpus cases pass through Doctor and Gateway startup; the focused state-schema suite passes 41/41 and worktree naming passes 15/15. The pending-read revocation proof now uses the real authority chain: the production Hosted CI's exhaustive schema surfaces are aligned with v18, and the oversized sharing/event policy was split into a coherent sibling module. Focused migration tests pass 4/4; authorization/broadcast tests pass 106/106; typecheck and line-cap ratchet are green. The extraction's final hosted fallout is repaired: suggestion payload inspection uses runtime record coercion instead of a new assertion, the assertion baseline shrinks with the moved code, and the update-campaign fixture supplies the runtime-config API reached through managed worktrees. On the rebased exact head, assertion/line-cap ratchets and typecheck pass; sharing/broadcast tests pass 79/79; migration/campaign tests pass 291/291 with one unrelated state test skipped. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
2f9d74b to
64fb787
Compare
|
@clawsweeper re-review Exact head There is no binding table, schema migration, peer-authorization closure, or session-owned cleanup for shared checkouts. Session rows reference the stable worktree ID; consumers resolve that ID; ownerless shared checkouts survive individual session lifecycle changes and pressure GC, then remain eligible for ordinary idle cleanup.
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
What this fixes
Creating another session with an existing named session worktree previously failed because the checkout was treated as belonging to one session.
Model
A named session worktree is a shared resource:
ownerId;There is no new schema version, migration, peer-authorization closure, or durable binding table.
User-facing behavior
Two sessions that explicitly request the same worktree name in the same repository receive the same checkout. Deleting one session leaves the checkout available to the other. Concurrent sessions are intentionally operating on the same files and can therefore observe or conflict with each other's edits.
Validation
Exact head:
64fb787aa001937021c728d4fac6a538536835b6pnpm checkpnpm tsgo:coregit diff --check