Commit b93eb72
docs(2.0.2-beta): CHANGELOG, SYNC2-TODO, README anchor, CLAUDE + PSEUDO-MERGE updates
Stage 9 docs preparation. Lands ahead of the version bump so the
release commit is purely the version + manifest sync, with no
narrative content.
CHANGELOG.md: full 2.0.2-beta section. Groups by user-visible
(Added / Changed / Renamed / Removed / Fixed) and internal
(commit count, branch base, test totals).
README.md:
- "What's new" updated to point at 2.0.2-beta.
- Added `<a id="github-token-setup"></a>` anchor before the
fine-grained PAT section so the TokenExpiredModal link
resolves to a stable target (the auto-generated heading
anchor is verbose and would break if the heading text
changed).
CLAUDE.md:
- Module layout: src/worker/ subtree added (cpu-worker.ts,
network-worker.ts, worker-client.ts, types.ts) with one-
line descriptions.
- src/sync2/atomic-write.ts note expanded: modify-in-place
fast path + .sync-tmp. marker protocol.
- sync2/views: token-expired-modal.ts.
- Settings group: new field names (syncStartsWithCommit,
showCommitRibbonButton, consolidateCommits,
maxAutoMergeSizeBytes).
- New constraints (4 entries):
* Worker orchestra — CPU pool + dedicated network worker;
no Obsidian API in worker scope; all HTTP via WorkerClient.
* Modify-in-place — vault.modifyBinary + marker protocol
for editor preservation + crash safety.
* syncStartsWithCommit master toggle controls all sync
surfaces (default true preserves manual-click semantic).
* User-facing copy uses plain English, never "drain"/"queue"
— those are engine identifiers.
docs/PSEUDO-MERGE-MODE.md:
- Added §17 Worker Orchestra (build pipeline, threshold gates,
CAN/CANNOT boundary, cancellation, fallback, size guard).
- Added §18 SHA-First Reconcile (decision tree, 75% short-
circuit, getContentsMetadataAtRef API).
- Added §19 Modify-in-Place Crash Safety (forward-recovery
protocol, marker naming, sweep cases, why rename strategy
didn't need a marker).
- Glossary shifted to §20.
docs/tasks/SYNC2-WORKER-REORG.md: removed (work complete; the
stable design content migrated to PSEUDO-MERGE-MODE.md §17-19,
the leftover items moved to docs/tasks/SYNC2-TODO.md).
docs/tasks/SYNC2-TODO.md (NEW): leftover items from the rework.
P0 (zero-byte conflict, size-collapse heuristic, corruption-
resilience integration tests), P1 (split-mode modal, stuck-
batch Notice, per-file Notice, token banner in Settings,
data.json migration code, README screenshots), worker
follow-ups (on-device perf, push-side SHA-first check, Stage
7 unit tests, stream-fetch, pre-push confirmation), P2 backlog
(diff3 → diff-editor delegation, mergeFn lifting). Removed-
from-scope section captures the design decisions deliberately
not implemented (main drain worker, inter-worker FS,
rename-strategy marker).
Tests: 679 unit + build green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e019520 commit b93eb72
6 files changed
Lines changed: 631 additions & 1113 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
14 | 153 | | |
15 | 154 | | |
16 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | | - | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
| |||
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
80 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
81 | 91 | | |
82 | 92 | | |
83 | 93 | | |
| |||
90 | 100 | | |
91 | 101 | | |
92 | 102 | | |
93 | | - | |
| 103 | + | |
| 104 | + | |
94 | 105 | | |
95 | 106 | | |
96 | 107 | | |
| |||
177 | 188 | | |
178 | 189 | | |
179 | 190 | | |
180 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
181 | 196 | | |
182 | 197 | | |
183 | 198 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| 138 | + | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| |||
0 commit comments