Nested bookmarks ride the merge offset
The numbers first: 6 bookmarks in (3 top-level, 3 level-2 sub-bookmarks), merged three sources with 2 offsets (+3, +5), read back 6/6 with hierarchy intact — both sub-bookmarks land on the exact page the formula predicts.
Day 31 proved the offset formula on a flat outline. Day 35 proved splits keep child bookmarks. This run closes the loop: does the merge offset formula survive nesting too?
The executed run
- Three sources, each with a 2-level outline:
Sec A/p1 +A-sub/p2 (3 pages),Sec B/p1 +B-sub/p2 (2 pages),Sec C/p1 +C-sub/p2 (2 pages). - Offsets from accumulated page counts:
B +3, C +5(A stays 0), applied to every bookmark — levels untouched. - Merged: 7 pages, 6 bookmarks. Read back and checked page-by-page against each source page's extracted text: 6/6 True, levels [1,2] present.
The sub-bookmark checks
B-subpointed at source p2 → predicted merged p5 (= 2+3) → actual p5, text matches source.C-subpointed at source p2 → predicted merged p7 (= 2+5) → actual p7, text matches source.- Hierarchy is written per bookmark, not inherited from a parent object — so a child that knows its own page needs nothing from its parent to survive a merge.
The rule, stated once
Offset applies per bookmark: new_page = source_page + sum(pages of sources before), level preserved as-is. Parent and child are independent rows; the formula treats them identically. What it says about a level-1 row it says about a level-2 row — today's numbers confirm it.
Not tested here: level-3+ depth, cycles, and sources with a broken outline. Those get their own numbers when we run them.