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
B3c — per-file and per-step rollback service (file-write-safety series #1375) #1409
B3c — per-file and per-step rollback service (extension host).
Planned scope:
rollbackFile(checkpointId, filePath) — restore a single file from a checkpoint via the shadow-git restore path (ShadowCheckpointService.restoreFile: single-file git checkout -- ; delete the file when it did not exist at the checkpoint).
rollbackStep(stepCheckpointIds, files?) — restore every file a step touched, resolving the step's files from the B2 change journal (changes.jsonl); with a step checkpoint id, files absent from that checkpoint's journal entries fail explicitly.
This PR exists because the combined B3a scope (cards + setting + rollback) exceeded the series' 1000-line diff cap, so the rollback service split out as a stacked sub-PR (cards + setting ship first as B3a, tracking #1401).
Addendum from lane n20-2237 leg 147 (2026-11-16), for tracking issue #1409 and pull #1410 - compressed 2026-11-27 to one screen under the comment economy. Part 1 of 3. Was 5605 cp; created and last-updated 2026-11-16T17:31:15Z; body digest at supersession d9b3d6ae9bc9feef; verbatim original lane-locally at .dsh/workflow/20261122-1551/evidence/relocated/1409-issue-6923957964-v0.md (file digest abf96a14). Every number in this series is a print from lane s3-1395 leg 502 (tmp-b1-1404/u502-heads, -plan, -piece-rows, -gate-rows, -cover-13-final), not re-priced; the addendum was draft-only.
Footing (fork point, CI reproduction, price basis, advisory-gate facts): part 2 of this series, and the authoritative copy on #1401 - #1401 (comment) (series parts 1-6).
Back-pointer for PR #1410 (unit B3c of the checkpoint series): the PR body was compressed on 2026-11-27 from 47,256 cp to 1,193 cp. Nothing was lost - the record moved to 10 comments on the PR (parts 1-10 of 10; first part #1410 (comment), last #1410 (comment)), and the verbatim pre-compression body is kept lane-locally at .dsh/workflow/20261122-1551/evidence/relocated/1410-pr-body-v0.md (file digest f0a003a0; body digest at supersession 0c6c85bd91363542, head 008c7a0, updated_before_rewrite 2026-11-27T00:29:54Z).
Tracking issue #1409 addendum, part 2 of 3 (compressed 2026-11-27).
#1410 splits into four whole-file pieces in cap order - 468 then 310 extension lines, 43 webview, 36 types: piece 1 1e99ab6b8 is 468 over 115 ranges (changeJournal.ts 192, ApplyPatchTool.ts 160, checkpoints/index.ts 116); piece 2 240a2d2bc is 310 over 123 (rollback.ts 113, ShadowCheckpointService.ts 81, WriteToFileTool.ts 37, changeCard.ts 28, EditFileTool.ts 23, Task.ts 22, ClineProvider.ts 6); piece 3 17c8296e3 is 43 over 6 in webview (CheckpointSettings.tsx 35, SettingsView.tsx 6, ExtensionStateContext.tsx 2); piece 4 455266dc3 is 36 over 7 in types (message.ts 21, global-settings.ts 15). No refusal row prints on any piece; whole head as one piece prints 778. Largest single-file price in the extension bucket is 192 (changeJournal.ts), so no carve is forced; census 0 of 43 files touched by more than one commit.
Tracking issue #1409 addendum, part 3 of 3 (compressed 2026-11-27).
Control counts: piece 1 carries 2 names (Task, buildChangeCardPayload) declared in a later piece; piece 2 carries 6, all declared in packages/types; piece 3 carries 3; piece 4 carries 0. The types piece closes the others and prints last - right for the caps, wrong for a reader who bisects.
Shared method, the two instrument facts and the review arithmetic: authoritative copy on #1401, parts 5 and 6 of 6 (#1401 (comment) and #1401 (comment)).
Activity
easonLiangWorldedtech commentedon Nov 16, 2026
Addendum from lane n20-2237 leg 147 (2026-11-16), for tracking issue #1409 and pull #1410 - compressed 2026-11-27 to one screen under the comment economy. Part 1 of 3. Was 5605 cp; created and last-updated 2026-11-16T17:31:15Z; body digest at supersession d9b3d6ae9bc9feef; verbatim original lane-locally at .dsh/workflow/20261122-1551/evidence/relocated/1409-issue-6923957964-v0.md (file digest abf96a14). Every number in this series is a print from lane s3-1395 leg 502 (tmp-b1-1404/u502-heads, -plan, -piece-rows, -gate-rows, -cover-13-final), not re-priced; the addendum was draft-only.
Footing (fork point, CI reproduction, price basis, advisory-gate facts): part 2 of this series, and the authoritative copy on #1401 - #1401 (comment) (series parts 1-6).
easonLiangWorldedtech commentedon Nov 27, 2026
Back-pointer for PR #1410 (unit B3c of the checkpoint series): the PR body was compressed on 2026-11-27 from 47,256 cp to 1,193 cp. Nothing was lost - the record moved to 10 comments on the PR (parts 1-10 of 10; first part #1410 (comment), last #1410 (comment)), and the verbatim pre-compression body is kept lane-locally at .dsh/workflow/20261122-1551/evidence/relocated/1410-pr-body-v0.md (file digest f0a003a0; body digest at supersession 0c6c85bd91363542, head 008c7a0, updated_before_rewrite 2026-11-27T00:29:54Z).
easonLiangWorldedtech commentedon Nov 27, 2026
Tracking issue #1409 addendum, part 2 of 3 (compressed 2026-11-27).
#1410 splits into four whole-file pieces in cap order - 468 then 310 extension lines, 43 webview, 36 types: piece 1 1e99ab6b8 is 468 over 115 ranges (changeJournal.ts 192, ApplyPatchTool.ts 160, checkpoints/index.ts 116); piece 2 240a2d2bc is 310 over 123 (rollback.ts 113, ShadowCheckpointService.ts 81, WriteToFileTool.ts 37, changeCard.ts 28, EditFileTool.ts 23, Task.ts 22, ClineProvider.ts 6); piece 3 17c8296e3 is 43 over 6 in webview (CheckpointSettings.tsx 35, SettingsView.tsx 6, ExtensionStateContext.tsx 2); piece 4 455266dc3 is 36 over 7 in types (message.ts 21, global-settings.ts 15). No refusal row prints on any piece; whole head as one piece prints 778. Largest single-file price in the extension bucket is 192 (changeJournal.ts), so no carve is forced; census 0 of 43 files touched by more than one commit.
easonLiangWorldedtech commentedon Nov 27, 2026
Tracking issue #1409 addendum, part 3 of 3 (compressed 2026-11-27).
Control counts: piece 1 carries 2 names (Task, buildChangeCardPayload) declared in a later piece; piece 2 carries 6, all declared in packages/types; piece 3 carries 3; piece 4 carries 0. The types piece closes the others and prints last - right for the caps, wrong for a reader who bisects.
Shared method, the two instrument facts and the review arithmetic: authoritative copy on #1401, parts 5 and 6 of 6 (#1401 (comment) and #1401 (comment)).