| 1 | # Automatic titles after outline movement |
| 2 | |
| 3 | Three native pages distinguish vertical ordering, horizontal ordering and an |
| 4 | explicit title. Moving the second outline ahead of the first changes the two |
| 5 | automatic titles to `Second 🦋 é`; the explicit title remains unchanged. |
| 6 | |
| 7 | `before` is the native source. `native` records the corresponding COM moves and |
| 8 | an independent cold reopen. `candidate` is the Rust edit; `cold` is its independent |
| 9 | OneNote reopen. Cold captures preserve exact active graphs. Rust movement retains |
| 10 | all text identities, content, formatting and history. Identical artifacts link |
| 11 | to one copy; `provenance.json` records the native runs and clone teardown. |
| 12 | |
| 13 | The Rust regression originally left both automatic-title fields unchanged. |
| 14 | Position edits now update the existing page and metadata caches within the same |
| 15 | revision as the coordinates. The offline regression additionally changes the |
| 16 | remote title-producing text, loses the publication reply and reopens the cache |
| 17 | before confirmation and a dependent edit. |
| 18 | |
| 19 | Run `tools.test_outline_edit.OutlineEditTest.test_automatic_titles_follow_native_and_rust_outline_movement` |
| 20 | through Python unittest after building the workspace examples with all features. |
| 21 | The Rust test `native_automatic_and_explicit_titles_follow_outline_movement` can |
| 22 | export a new candidate directory through `ONESTORE_OUTLINE_TITLE_OUTPUT`. |
| 23 | |
| 24 | To regenerate the native controls, copy `fixture.json` and the synthetic section |
| 25 | from `corpus/native-delete/deletion-05/before` into a new input notebook directory. |
| 26 | Capture it with `tools/native_runner.py --author tools/native/pages.ps1 |
| 27 | --collect-notebook`. Capture that result's notebook with |
| 28 | `--author tools/native/outline-title.ps1 --collect-notebook`, then independently |
| 29 | cold-open both the native result and the Rust candidate without an author script. |