| 1 | # Share follow-ups |
| 2 | |
| 3 | Branch native/share-followups, based on main c01b4efa. This is the narrow |
| 4 | follow-up to Fable's approval of f9e00ea6. No signing API writes, server |
| 5 | changes, new copy, merge or release. |
| 6 | |
| 7 | ## Behaviour |
| 8 | |
| 9 | An uncertain earlier retry retains its exact immutable request and idempotency |
| 10 | key both in earlierPending and on disk. A confirmed earlier retry removes only |
| 11 | that journal entry. A definite refusal requires a 4xx with a non-empty, |
| 12 | non-whitespace server code, excluding 401, 403, 408, 425 and 429. Authentication |
| 13 | failures still use the existing signed-out handling and retain the journal. |
| 14 | |
| 15 | Each earlier message has its own row with a whitespace-collapsed text preview |
| 16 | bounded to 200 characters plus an ellipsis, at most two lines, an attachment |
| 17 | count, and its own reviewed error. The existing reviewed Attachments label |
| 18 | (chat.attach.list) accompanies a localized number; no new count sentence is |
| 19 | introduced. Pending rows retain Try again and Discard. A refused entry is removed |
| 20 | from disk immediately but remains in that compose view with its preview and |
| 21 | refusal words until Dismiss. It cannot be retried from that row. Dismiss affects |
| 22 | neither the new message nor another earlier entry. |
| 23 | |
| 24 | The Mac Service regression receives a new shared URL while an earlier journal |
| 25 | entry exists. It verifies the new text remains editable, the old entry stays |
| 26 | unchanged in memory and on disk, and receiving content never sends it. |
| 27 | |
| 28 | ## Validation |
| 29 | |
| 30 | Tests were added first. The initial EarlierShareTests run failed on the missing |
| 31 | summary and refusal-row model (red.log). The focused run after implementation |
| 32 | passed 9 tests, including parameterized lost replies, 500, 408, 425, 429, |
| 33 | empty/whitespace codes, successful disk cleanup and refused-row lifetime. |
| 34 | The lost-A/cancel/new-B test now requires exactly two recorded requests before |
| 35 | indexing them, so a broken request count fails cleanly. |
| 36 | |
| 37 | Commands (all heavy jobs serial, load and swap checked first, four workers): |
| 38 | |
| 39 | - timeout 240 swift test --package-path native/share --jobs 4 --filter EarlierShareTests |
| 40 | - timeout 300 swift test --package-path native/apple --jobs 4 --filter serviceReceivesInputAndReportsPreparationFailure |
| 41 | - python3 native/scripts/check-share.py |
| 42 | - python3 native/scripts/check-strings.py |
| 43 | - python3 native/scripts/check-parity.py |
| 44 | - git diff --check |
| 45 | |
| 46 | The Mac Service test passed all four cases: URL, existing earlier entry, too |
| 47 | many items and too-large text. String parity covers 336 reviewed web strings. |
| 48 | The packaging guard pins the two-line preview, count, per-row error and refusal |
| 49 | dismissal wiring. No simulator or fixture app was started; test-created windows |
| 50 | are closed by test cleanup. The full native gate was not run locally, following |
| 51 | the controller's latest machine rules. Linux CI is the full gate. |
| 52 | |
| 53 | ## Mutations |
| 54 | |
| 55 | Each mutation is restored immediately after its focused test. Results and |
| 56 | logs are retained under site/build/slice7/followups/validation. |
| 57 | |
| 58 | All 12 mutations failed the intended assertions, not compilation: |
| 59 | success-disk (remove successful retry's disk cleanup), uncertain-terminal |
| 60 | (clear every earlier failure), empty-code (accept missing server code), 408, |
| 61 | 425, 429 (remove each transient exclusion), refused-preview (drop the refused |
| 62 | row), refused-dismiss (retain its error after dismissal), preview-bound (remove |
| 63 | the 200-character bound), attachment-count (report zero), row-preview (remove |
| 64 | the two-line limit), and service-new-input (drop new text when earlier pending). |
| 65 | |
| 66 | The final core rerun also tests malformed summary decoding: an unknown count |
| 67 | stays unknown rather than becoming zero. Whitespace is collapsed for the short |
| 68 | preview; an omitted attachments field in a valid request correctly means zero. |
| 69 | |
| 70 | |
| 71 | Final restored-code runs passed: 10 EarlierShareTests and the Mac Service test |
| 72 | with all four cases. The final test logs are final-core.log and final-service.log. |
| 73 | No copy questions remain. |
| 74 | |
| 75 | ## Landed Mac power follow-ups |
| 76 | |
| 77 | At the controller's request, normally merged origin/main 91be0d17 and folded |
| 78 | Fable's three small Mac follow-ups into this same branch before resuming slice 8. |
| 79 | |
| 80 | Task opens no longer enter MacNavigationHistory, preserving both the pane history |
| 81 | and its forward entries while the inspector stays open. Updated model and |
| 82 | workspace tests assert Back/Forward change panes rather than replay task opens. |
| 83 | |
| 84 | TaskScreen.ReadKey now includes the context's object identity. The mounted-screen |
| 85 | regression replaces a context for the same task without manually loading it. |
| 86 | It waits for the fresh model to load and verifies its Merge confirmation becomes |
| 87 | a real attached sheet. Before the fix, both the read and visible sheet assertions |
| 88 | failed. Removing the identity again kills the test. |
| 89 | |
| 90 | The palette accessibility source-text assertions are replaced by Fable's hosted |
| 91 | probe as a regression test. It enables accessibility in the root environment, |
| 92 | mounts an NSHostingView in a window, lays it out, then walks actual Objective-C |
| 93 | accessibility attributes. It asserts an AXGroup named Jump to… and AXButtons |
| 94 | named Not now and Open in New Window. It does not claim scroll-area result rows |
| 95 | enumerate. No AXUIElement API, Accessibility permission, simulator or spoken |
| 96 | VoiceOver session is needed. The prior empty-tree attempt remains in the red log |
| 97 | for context; it lacked the accessibilityEnabled environment value. |
| 98 | |
| 99 | Narrow command: |
| 100 | timeout 240 swift test --package-path native/apple --jobs 4 --filter 'MacPowerReviewTests|MacWorkspaceTests|MacPowerTests' |
| 101 | |
| 102 | Mutations: history-task-entry (put task opens back in history), context-read |
| 103 | (remove context identity from the read key), palette-children (remove .contain). |
| 104 | |
| 105 | All three Mac mutations died. In palette-children.log, removing .contain produced |
| 106 | the exact old defect: both AXButton labels were Jump to… instead of their own |
| 107 | names. The final restored-code run added |
| 108 | serviceReceivesInputAndReportsPreparationFailure to the Mac filter and passed |
| 109 | 27 tests across the three suites plus the parameterized Service test. |
| 110 | String parity (336), check-share.py and git diff --check pass after the merge. |
| 111 | |
| 112 | The post-commit reference scan initially classified the accessibility helper's |
| 113 | generic element variable as a legacy runtime reference. Renaming that variable |
| 114 | and comment to element required no allowance or scanner change. The restored |
| 115 | scan passes: 2,884 text files, 3,229 classified matches, zero failures. |
| 116 | |