Commit 3f7c65c
committed
docs(diff-ux): PR checkout model (lazy worktree ladder) and orchestrator integration
Answers the two open questions on the PR flow:
Checkout: a PR review never switches the user's working tree. Tier 0
(default) reviews entirely from fetched git objects — reading, marks,
comments, and submit need no checkout; Enter opens read-only
file-at-PR-head buffers. Tier 1 materializes a linked review worktree on
demand (scope-bar button, or offered at depth boundaries like LSP, edit,
run-tests) using the orchestrator's worktree machinery; the
workspace-trust prompt fires at materialization — when code could first
run, not when reading. Review state is keyed to PR identity (repo +
number + head-sha versions), never worktree paths, so materialization
and force-pushes carry marks forward.
Orchestrator: one worktree engine, one dock. A materialized PR review is
a workspace with a dock card (progress + checks) and normal lifecycle;
the PR picker and scope bar reuse the orchestrator's PR metadata
plumbing; an agent session with an attached PR is the same review seen
from two bases (merge-base vs session-start) via the scope-bar flip; the
reverse door (hand must-fix comments to an agent in the same worktree)
stays Part II.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01756Rh35n65zC4xHQcQAqBL1 parent 5ef120c commit 3f7c65c
1 file changed
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
452 | 498 | | |
453 | 499 | | |
454 | 500 | | |
| |||
0 commit comments