|
| 1 | +# Timeline pull sync through the shared owner |
| 2 | + |
| 3 | +## Problem |
| 4 | + |
| 5 | +Timeline has no deliberate pull-at-top entry into the existing sync owner. |
| 6 | +Online recovery currently inspects local sync state without guaranteeing a fresh |
| 7 | +pull, and busy force intent is not retained. The existing header spinner only |
| 8 | +covers Connecting. |
| 9 | + |
| 10 | +## Proposal |
| 11 | + |
| 12 | +The user approved design v3 and implementation plus isolated A135 acceptance on |
| 13 | +2026-10-24. The later English-default requirement sets the top drag hints to |
| 14 | +Pull to sync, then Release to sync at the threshold; |
| 15 | +hide it at release/cancel. Reuse only the existing Options-left loading component. |
| 16 | +Extend the existing Online_recovery_requested path and private pull-owner facts: |
| 17 | +online forces a check, offline uses existing admission/connection recovery, busy |
| 18 | +intent coalesces until the shared owner can send. Existing response/authoritative |
| 19 | +commit and sync phases own completion. Do not add a refresh state machine or |
| 20 | +per-refresh public contract. No spec/ or Dune changes are needed or authorized. |
| 21 | +Use the native List's existing container geometry/phase observers for the small |
| 22 | +trigger and text overlay; retain native scrolling, delegate, rows and anchors. |
| 23 | + |
| 24 | +## Decision |
| 25 | + |
| 26 | +Implemented the optional Timeline callback through Application's existing |
| 27 | +Begin_online_recovery action and Online_recovery_requested event. The shared Core |
| 28 | +retains one private forced intent until its existing pull owner can send; the |
| 29 | +existing response and authoritative commit own completion. The existing header |
| 30 | +progress node now spans Connecting, Pulling and Submitting without replacement. |
| 31 | +No protected spec/ or Dune change, independent refresh state or top spinner. |
| 32 | + |
| 33 | +The default native accessibility action is Sync. The English-default audit also |
| 34 | +replaces unconditional Capture attachment labels with Files, Photos and Camera, |
| 35 | +and the photo-add permission description with English. Existing locale-selected |
| 36 | +Chinese image-preview translations and graph/test contents remain intact. |
| 37 | + |
| 38 | +The existing public Core contract first reproduced the missing force behavior, |
| 39 | +then passed with online, busy, commit, offline/scope, cancel/shutdown and submission |
| 40 | +barrier cases. Header identity and optional native callback checks pass in their |
| 41 | +existing targets. Full dune build @all and dune runtest --force pass. |
| 42 | + |
| 43 | +A135 iPhone 13/iOS26.1 ran the actual production List, Timeline, header and Core |
| 44 | +in a Git-external synthetic IO fixture. Public XCTest touch drags verified short |
| 45 | +pull cancellation, armed release, both hints in actual recorded frames, |
| 46 | +online/no-change, offline/reconnect/apply, busy repeats, page exit/return, deep |
| 47 | +scroll non-trigger and stable first-row position. Actual system Reduce Motion |
| 48 | +was enabled for short/long physical drags and restored to its original off value. |
| 49 | +The complete flow and Reduce Motion tests both pass. CUA coordinate dragging was |
| 50 | +ineffective, so the explicitly authorized official XCTest path was used. |
| 51 | + |
| 52 | +## Alternatives considered |
| 53 | + |
| 54 | +### Default refreshable and a separate per-check contract |
| 55 | + |
| 56 | +Rejected by the updated user design: a second top spinner and independent refresh |
| 57 | +state are unwanted. The original spec extension proposal remains external evidence |
| 58 | +only and is not applied. Shared sync phase is sufficient for the reused activity |
| 59 | +indicator when the actual shared owner retains force and owns completion. |
| 60 | + |
| 61 | +## Acceptance criteria |
| 62 | + |
| 63 | +- Below-threshold release/cancel creates no sync request; armed release creates |
| 64 | + one shared trigger and hides the hint immediately. |
| 65 | +- Online pulls, offline reconnect/open/pull, and busy/repeated coalescing use the |
| 66 | + existing owner and transport; no parallel connections or dropped forced intent. |
| 67 | +- Loading is one existing header component, derived from active shared sync phases. |
| 68 | + Queue admission, old Current and socket open never imply completion; response |
| 69 | + and required authoritative apply retain Pulling until the shared work settles. |
| 70 | +- Graph/lifecycle exit retires or fences intent; no refresh continuation or endless |
| 71 | + independent spinner is introduced. Existing errors/Diagnostics remain shared. |
| 72 | +- Stable List/row identity, anchors, return-top cancellation and Reduce Motion remain. |
| 73 | +- Write meaningful failing public Core checks first, then minimal implementation, |
| 74 | + passing checks and full applicable local validation in existing test targets. |
| 75 | +- Use A135 only with isolated synthetic fixture, no accounts/real graphs, no new |
| 76 | + device, 1446, reset/deletion or OS permission changes. Record actual implemented |
| 77 | + native UI, with accurate coverage limits. No push/PR/merge/TestFlight. |
| 78 | + |
| 79 | +## Consequences |
| 80 | + |
| 81 | +- Native List overscroll remains system-owned. Only semantic hint changes update |
| 82 | + view state; the overlay reserves no layout space and no per-row geometry exists. |
| 83 | +- Keep the unrelated error-icon branch separate; main remains d37ee9c as fetched. |
| 84 | +- Reuse prepared build inputs without changing another owner's switches or caches. |
| 85 | +- Simulator host-restamping has cross_abi_validated=false; this is execution |
| 86 | + evidence, not a validated cross-compiled iOS release artifact. Synthetic auth, |
| 87 | + transport and apply completions do not establish live service/account acceptance. |
| 88 | +- No performance measurement, live graph mutation or dedicated native blocking |
| 89 | + error scenario is claimed. Existing shared error/Diagnostics behavior remains. |
| 90 | +- Evidence, temporary XCTest, original videos, result bundles and build manifests |
| 91 | + are outside the repository in the task's implementation-evidence directory. |
| 92 | + The final actual-gesture recording supersedes the earlier partial AX recording; |
| 93 | + neither it nor the earlier design movie claims production network verification. |
| 94 | + |
| 95 | +## Questions |
| 96 | + |
| 97 | +None. The latest user approval answers the implementation/isolated A135 scope. |
| 98 | +The obsolete per-check protected-spec proposal is not part of this design. |
0 commit comments