Native slice 2 part 1 plan, revision 3: fold in Fable's re-review
Human
Prompt
Fable APPROVED revision 2 (b105ca6), with 3 should-fix and 6 nits to fold in. R1: a 127.0.0.1 listener for the body, Content-Length and progress tests. R2: run the Mac paste/drop proof as a spike at the start of Part C and give the NSTextView fallback its own task and review; re-apply the drag-type narrowing on each focus gain; only the main window's Ask composer uses AttachIntake; test that rich paste still becomes Markdown through the new command. R3: the sweep skips files open in Quick Look; define the date when created_at is missing. Fold in the six nits; --account bds is right (Base deployed that way on 11-27 as 07ec2ec).
From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.
Summary
Revision 3: Task 5 tests the body, Content-Length and progress against a 127.0.0.1 listener; Spike M proves Mac paste and drop at the start of Part C, with the NSTextView composer as its own conditional Task 16A and review; drag types narrowed on every focus gain; AttachIntake only for the main window's composer; a rich-paste test through the new command; the sweep skips files open in Quick Look; a missing created_at dates the file at download; and the six nits.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+102
−33
docs/superpowers/plans/2026-11-28-native-slice2-part1.md+102 −33
CI failed — run details
CI log
=== build === CGO_ENABLED=0 go build ./... === vet === go vet ./... === fmt-check === === staticcheck === go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 ./... === govulncheck === go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./... No vulnerabilities found. === gitleaks === [90m7:10PM[0m [32mINF[0m [1mUnknown SCM platform. Use --platform to include links in findings.[0m [36mhost=[0mamadan.net [90m7:10PM[0m [32mINF[0m [1m1 commits scanned.[0m [90m7:10PM[0m [32mINF[0m [1mscanned ~2803408 bytes (2.80 MB) in 570ms[0m [90m7:10PM[0m [32mINF[0m [1mno leaks found[0m === budget === go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size budget size: 22 directories within budget === script-test === scripts/prepare-apps_test.sh ok releases lookup failure stops before ship ok app owned elsewhere stops the script ok apps listing failure stops before create ok ambiguous release dir is refused ok explicit version resolves the ambiguity ok releases match is exact, not substring ok shipped version is only promoted, existing app not created ok fresh account creates, ships, promotes to edge, enables ok failing promote stops the script ok ship is retried while uploads are rate limited all passed hack/fonts_test.sh fonts_test: ok === test === go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -count=1 ./... budget: internal/webtest took 12.485s, over the 10s the default allows receipt: test step 14.533s against a 60s target (the gate's other steps are not in this figure) receipt: 16 packages ran, 0 cached, 6 without tests, 0 failed receipt: slow package 12.485s amadan.net/oficina/base/internal/webtest receipt: slow package 1.106s amadan.net/oficina/base/internal/issuer receipt: slow package 748ms amadan.net/oficina/base/internal/operations receipt: slow package 662ms amadan.net/oficina/base/internal/equipo receipt: slow package 384ms amadan.net/oficina/base/internal/consumer receipt: slow test 1.54s amadan.net/oficina/base/internal/webtest TestHomeDoesNotWaitOnAStalledSnapshot receipt: slow test 1.2s amadan.net/oficina/base/internal/webtest TestAskZoneIsToldOnce receipt: slow test 630ms amadan.net/oficina/base/internal/webtest TestAskUploadStalledBodyFreesItsSlot receipt: slow test 570ms amadan.net/oficina/base/internal/issuer TestAuthorizeRefusals receipt: slow test 530ms amadan.net/oficina/base/internal/operations TestOperationsRefusals rastrillo: budget test: 1 problem(s) exit status 1 make: *** [Makefile:47: test] Error 1 amadan: step test failed: exit status 2 amadan: job failed at step test — its output is above, not at the tail of this log
diff --git a/docs/superpowers/plans/2026-11-28-native-slice2-part1.md b/docs/superpowers/plans/2026-11-28-native-slice2-part1.md| index a133a9f..4240420 100644 |
| --- a/docs/superpowers/plans/2026-11-28-native-slice2-part1.md |
| +++ b/docs/superpowers/plans/2026-11-28-native-slice2-part1.md |
| @@ -2,10 +2,11 @@ |
| > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task by task. Steps use checkbox (`- [ ]`) syntax for tracking. Every task is tests first: write the failing test, see it fail, make it pass, then run the task's gate. |
| -**Revision 2** (2026-11-28) answers Fable's plan review |
| +**Revision 3** (2026-11-28). Revision 2 answered Fable's plan review |
| (`.superpowers/sdd/2026-11-28-native-slice2/plan-review.md`): B1, S1 to |
| -S13, and the nits taken. "Review" at the end maps each finding to where it |
| -is answered. |
| +S13, and the nits taken. Fable approved it, and revision 3 folds in the |
| +re-review's R1 to R3 and its six nits. "Review" at the end maps each |
| +finding to where it is answered. |
| **Goal:** In the Mac and iPhone apps, a person opens Store and People |
| natively instead of on the web, and folds the Apps section away (remembered |
| @@ -43,6 +44,9 @@ for them on that device). They also attach files in Ask: |
| | **Base** | 6 to 21 | `native/slice2-part1` from `origin/main`, once `design/native-slice2` (this plan) and `api/store-people` have landed | After the review (Task 21) and Luna's copy review (Task 22) | |
| | Controller | 22 | copy review (Luna, from 2026-12-02), land, release | | |
| +Part C starts with Spike M, and includes Task 16A only if the spike says |
| +so: 22 numbered tasks, one spike, and one conditional task. |
| + |
| **Equipo** needs no change. The code it lends is copied from origin/main `8bd40ed1`. Its attachment files are unchanged at `57f370c5` (Fable). |
| ## Machine hygiene (every task) |
| @@ -63,9 +67,9 @@ for them on that device). They also attach files in Ask: |
| |---|---|---| |
| | **Go, narrow** | `GOTOOLCHAIN=go1.26.11 go test -p 4 -count=1 ./internal/web ./internal/webtest -run '<tests>'` (timeout 10 min) | Tasks 1 to 3 | |
| | **Swift, narrow** | `swift test --package-path native/apple -j 4 --filter '<suites>'` (timeout 15 min). It compiles the package for macOS only | Every native task, while iterating and at its end | |
| -| **iPhone compile** | `native/scripts/build-iphone.sh simulator` (timeout 20 min) | Tasks that touch `#if os(iOS)` code: 10, 11, 18, 19 | |
| +| **iPhone compile** | `native/scripts/build-iphone.sh simulator` (timeout 20 min) | Tasks that touch `#if os(iOS)` code: 10, 11, 14, 18, 19 | |
| | **Native gate** | `native/scripts/check-native.sh` (timeout 40 min): the catalog, every BaseKit test, BaseMac, and the iPhone Simulator build | **Twice only:** after Task 12 (the big copy), and in Task 21 before asking for the merge | |
| -| **Screenshots** | `native/scripts/snapshots.sh compare mac`, then `iphone` (timeout 20 min each) | Tasks that change a picture: 9, 10, 11, 17, 18, 19, and once in Task 21. Use `record` only for pictures the task means to change, and review the contact sheets beside the mockups before committing them | |
| +| **Screenshots** | `native/scripts/snapshots.sh compare mac`, then `iphone` (timeout 20 min each) | Tasks that change a picture: 9, 10, 11, 16A (if taken), 17, 18, 19, and once in Task 21. Use `record` only for pictures the task means to change, and review the contact sheets beside the mockups before committing them | |
| | **Hub CI** | push, then `AMADAN_HOME=$HOME/.amadan-claude-agent amadan ci status oficina/base -branch <branch> -json` | After each push | |
| **What hub CI proves (checked 2026-11-28 on `382e86c`).** |
| @@ -158,17 +162,20 @@ for them on that device). They also attach files in Ask: |
| - **Path:** `FileManager.urls(.cachesDirectory)/Attachments/<accountKey>/<attachment id>/<name>`. |
| - `accountKey` is P5's. |
| - `<attachment id>` is checked against `[A-Za-z0-9_-]{1,64}`. |
| - - `<name>` is the server's name reduced to its last path component, with `/`, `\`, NUL, a leading `.` and `..` removed, and cut to 120 bytes. Its extension is replaced with the media type's (`UTType(mimeType:).preferredFilenameExtension`; `bin` when unknown). |
| + - `<name>` is the server's name reduced to its last path component, with `/`, `\`, NUL, a leading `.` and `..` removed, and cut to at most 120 bytes of UTF-8 on a character boundary. Its extension is replaced with the media type's (`UTType(mimeType:).preferredFilenameExtension`; `bin` when unknown). |
| - **Protection:** each file `0600`, excluded from backup, and on iOS written with `NSFileProtectionComplete`. |
| - **One download per id at a time:** an actor holds the in-flight tasks, and a second tap awaits the first. |
| - - **Dates:** at download, the file's modification date is set to the message's `created_at`. The sweep removes anything dated more than 14 days ago. |
| + - **Dates:** at download, the file's modification date is set to the message's `created_at`, or to the download time when the message has none (`AskMessage.createdAt` is optional). The sweep removes anything dated more than 14 days ago. |
| + - **Files open in Quick Look are skipped** (R3). The cache keeps the set of ids being previewed. A file the sweep skipped, and one already past its 14 days when it was opened, is removed when its preview closes. |
| - **The sweep** also removes the folders of accounts not signed in now. It runs at launch, on every scene going active, when the Mac window opens, and on a daily timer while the Mac app runs. |
| - **Cleared** on `end()` and when Ask is disconnected (`AskModel` sees `disconnected`). |
| - **Previews** go in a 64-item memory cache, bounded at 2 MiB each. |
| - **Privacy manifest:** the sweep reads file dates, so `PrivacyInfo.xcprivacy` gains `NSPrivacyAccessedAPICategoryFileTimestamp` with reason `C617.1`. |
| - **P10. Camera, Photos and Files.** |
| - **Camera** needs `NSCameraUsageDescription` in `ios/project.yml`. |
| - - **Photos** goes through `PhotosPicker` (`matching: .images`, which gives a Live Photo's still). Each item is loaded as a file through a `FileRepresentation` transferable, never as `Data`, so its size is checked before reading. |
| + - **Photos** goes through `PhotosPicker` (`matching: .images`, which gives a Live Photo's still). Each item is loaded as a file through a `FileRepresentation` transferable, never as `Data`. |
| + - The file's URL is valid only inside the importing closure, so it is staged there (Equipo's `stage`, into a private directory the draft owns). |
| + - It is then prepared from the staged URL (`prepareFile`), with its size checked before anything is read into memory. |
| - **Files** goes through `fileImporter`. |
| - **On the Mac,** `fileImporter` takes the nine types plus HEIC, HEIF and TIFF. |
| - **Before reading:** |
| @@ -277,7 +284,7 @@ Base, native/slice2-part1 (native/apple/Sources/BaseKit unless shown) |
| - [ ] Ask for a short review of `api/store-people` (Fable, or Codex Astra when Fable is limited) and answer it on the branch. Then land it on main through the hub, and read hub CI on main. |
| - [ ] **Note the rollback SHA:** the release now live on `base.oficina.works` (`curl -sS -D - -o /dev/null https://base.oficina.works/api/version | grep -i x-carlos-version`). Write it in the branch handoff. |
| -- [ ] **Deploy** as the Base runbook does: account `bds`, app `base`, release and promote. Restart if the promote needs it, since "live" can mean the old process. |
| +- [ ] **Deploy** as the Base runbook does: account `bds`, app `base`, release and promote. Base was deployed this way on 2026-11-27, after its adoption into team oficina, as `07ec2ec`. Restart if the promote needs it, since "live" can mean the old process. |
| - [ ] **Confirm:** |
| - `x-carlos-version` shows the new release; |
| - `curl -s https://base.oficina.works/api/v1/store` answers `401 {"code":"unauthenticated"}`, not `404`, which proves the route is there. |
| @@ -290,15 +297,19 @@ Base, native/slice2-part1 (native/apple/Sources/BaseKit unless shown) |
| **Files:** `Sources/RastrilloApple/NativeHTTP.swift`, `NativeTransport.swift`, `Sources/RastrilloTestSupport/ScriptedTransport.swift`, `Tests/RastrilloAppleTests/NativeHTTPUploadTests.swift` (new), `APPLE.md`. |
| -- [ ] **Tests first,** with a `URLProtocol` stub that captures the request: |
| - - `POST`, the body, `Content-Type`, and `Content-Length` equal to the body's size; |
| - - `Content-Disposition` is `attachment; filename*=UTF-8''…`, with `é`, spaces, `"`, `/` and `;` percent-encoded; |
| - - the request's `timeoutInterval` is 90, and a `responseDetails` request's is still the session default; |
| - - progress only grows and ends at 1.0; |
| - - `413`, `503` (with `Retry-After`) and `401` come back as a `NativeResponse` with their headers, never thrown; |
| - - a response over `maxBytes` throws; |
| - - cancelling the task cancels the upload. |
| - - `ScriptedTransport.upload` records the filename and the body's size. |
| +- [ ] **Tests first, in two kinds** (R1): |
| + - **Against a small HTTP listener on `127.0.0.1`** (a test helper on `Network.framework`; `NativeHTTP.origin` allows `http` there). A `URLProtocol` stub never sees an upload task's body or `Content-Length`, and gets no `didSendBodyData`. These tests check: |
| + - the body arrives whole, and `Content-Length` equals its size; |
| + - progress only grows and ends at 1.0; |
| + - a response the listener holds back still completes. The helper takes a hold time; the test uses 2 s, and Task 21 runs it once by hand at 45 s. |
| + - **With a `URLProtocol` stub,** through a test seam: an internal `NativeHTTP` init that takes the `URLSessionConfiguration`, so the stub's protocol class can be set. These tests check: |
| + - `POST` and `Content-Type`; |
| + - `Content-Disposition` is `attachment; filename*=UTF-8''…`, with `é`, spaces, `"`, `/` and `;` percent-encoded; |
| + - the request's `timeoutInterval` is 90, and a `responseDetails` request's is still the session default; |
| + - `413`, `503` (with `Retry-After`) and `401` come back as a `NativeResponse` with their headers, never thrown; |
| + - a response over `maxBytes` throws; |
| + - cancelling the task cancels the upload. |
| + - **`ScriptedTransport.upload`** records the filename and the body's size. |
| - [ ] **Implement it** with a `URLSessionUploadTask` and a task delegate, reusing `makeRequest` and `BoundedBody`. |
| - It is a requirement with **no default** (B1). |
| - Every in-repo conformer forwards or implements it: `NativeHTTP`, `ScriptedTransport`, and any in the kit's tests. |
| @@ -308,6 +319,28 @@ Base, native/slice2-part1 (native/apple/Sources/BaseKit unless shown) |
| ## Part C: the app (branch `native/slice2-part1`) |
| +### Spike M: Mac paste and drop, before anything else in Part C (R2) |
| + |
| +A short spike on a scratch branch, whose code is thrown away. It settles |
| +whether the Mac composer stays the SwiftUI field (Task 17 as written) or |
| +becomes Equipo's `NSTextView` editor first (Task 16A). Time box: half a |
| +day. |
| + |
| +- [ ] **Paste.** Try two ways, and keep the one that works: |
| + - retarget the existing Edit ▸ Paste item: find it by action `paste:` in `NSApp.mainMenu` after launch, and again whenever SwiftUI rebuilds the menu. It keeps AppKit's localised titles (nit 2); |
| + - `CommandGroup(replacing: .pasteboard)`, re-adding the standard items. |
| + |
| + Prove, by hand, in the main window's Ask composer: |
| + - a screenshot and a Finder file attach; |
| + - text from Pages pastes as text; |
| + - rich text still becomes Markdown; |
| + - the menu panel's composer, Settings and the sign-in code field still paste plain text. |
| +- [ ] **Drop.** Narrow the field and its field editor to text drag types, re-applied on **every** focus gain, because the shared field editor re-registers its own types each time it's set up for a field. |
| + - Prove, by hand: a Finder file dropped on the field, on the thread, and on the field after focus has left it and come back. Each attaches and inserts no path. |
| +- [ ] **Record the outcome** in the branch handoff and in this plan's Review, with what was seen. |
| + - If both hold, Task 17 goes ahead as written, with the way chosen here. |
| + - If either fails, Task 16A is taken before Task 17. |
| + |
| ### Task 6: Repin, and forward `upload` through `SwappableTransport` |
| **Files:** `native/apple/Package.swift`, `native/ios/project.yml` (`RastrilloNative.revision`), `Session/BaseSession.swift`, `Tests/BaseKitTests/SessionTests.swift`, `native/scripts/check-native.sh`. |
| @@ -454,13 +487,17 @@ Base, native/slice2-part1 (native/apple/Sources/BaseKit unless shown) |
| - the ring restarts at 0; |
| - then the busy chip, with Retry. |
| - **P8.4, discard:** |
| - - `end()` starts a discard of the unsent ids with the old client, bounded at 2 s, and returns at once; |
| + - `end()` reads the unsent ids from the draft and captures the client **before** `ask?.dispose()` clears them. It then starts a discard bounded at 2 s, and returns at once; |
| - a discard that answers `401` is dropped silently; |
| - nothing is discarded on background. |
| - - **P8.5, background:** an upload in flight is wrapped in a background task (behind a protocol the test fakes), and a lost answer shows Retry. |
| + - **P8.5, background:** |
| + - an upload in flight is wrapped in a background task, behind a protocol the test fakes; |
| + - the task's expiry handler cancels the upload and shows Retry; |
| + - files still queued behind the gate wait for the foreground and don't fail; |
| + - a lost answer shows Retry. |
| - **The PDF line:** a PDF chip says "Ask can't read PDFs yet." |
| -- [ ] Turn each `// Base differs: Task 14` test around. |
| -- [ ] **Gate:** `swift test … --filter 'BaseKitTests.AttachmentDraftTests|BaseKitTests.SessionTests'`. |
| +- [ ] Turn each `// Base differs: Task 14` test around. Add the iOS `UIApplication` conformer of the background-task protocol. |
| +- [ ] **Gate:** `swift test … --filter 'BaseKitTests.AttachmentDraftTests|BaseKitTests.SessionTests'`, then `build-iphone.sh simulator` (the conformer is iOS-only). |
| ### Task 15: Sending with files, and D5 |
| @@ -493,6 +530,21 @@ Base, native/slice2-part1 (native/apple/Sources/BaseKit unless shown) |
| - [ ] Wire it into the draft behind Task 14's gate, off the main actor. |
| - [ ] **Gate:** `swift test … --filter BaseKitTests.AttachmentFileTests`. |
| +### Task 16A: The Mac composer becomes an `NSTextView` (only if Spike M failed) |
| + |
| +**Files:** `Ask/Composer.swift`, `Mac/MacComposerEditor.swift` (new, from Equipo's `ComposerEditor` in `EquipoMac/MacComposer.swift`, P7 amended), `Tests/BaseKitTests/ComposerTests.swift`, `BaseSnapshots/AskSnapshots.swift`. |
| + |
| +- [ ] **Tests first:** every behaviour `ComposerTests` pins today still holds on the new editor: |
| + - Return sends, and Shift- or Option-Return starts a new line; |
| + - marked text (an input method) is never sent half typed; |
| + - undo and redo; |
| + - a rich paste becomes Markdown; |
| + - the placeholder; |
| + - the focus ring. |
| +- [ ] Move `ComposerInput`'s Mac half (undo, IME, rich paste) into the editor. The iPhone half is unchanged. |
| +- [ ] **Gate:** `swift test … --filter BaseKitTests.ComposerTests`, then `snapshots.sh compare mac` (the composer must look the same). |
| +- [ ] **Its own review** (Fable, or Codex Astra) before Task 17 starts. |
| + |
| ### Task 17: Attaching on the Mac |
| **Files:** `Attachments/AttachIntake.swift` (new), `Attachments/MacPasteboard.swift`, `AttachmentPromises.swift`, `Ask/Composer.swift`, `Mac/MacMainView.swift`, `../BaseMac/BaseMacApp.swift`, `Tests/BaseKitTests/MacAttachmentTests.swift`, `AttachIntakeTests.swift`, `BaseSnapshots/AskSnapshots.swift`. |
| @@ -508,17 +560,18 @@ Base, native/slice2-part1 (native/apple/Sources/BaseKit unless shown) |
| - text with an image (Pages, Word, Excel) is text; |
| - text that is only the files' own names attaches; |
| - a file promise attaches. |
| -- [ ] **Paste: a menu command.** |
| - - `BaseMacApp` replaces the Edit menu's pasteboard group (`CommandGroup(replacing: .pasteboard)`), re-adding Cut, Copy, Paste, Paste and Match Style, Delete and Select All with the standard selectors. |
| - - ⌘V arrives at its Paste through the menu, as every key equivalent does. |
| - - Paste asks `AttachIntake` first when the Ask composer has focus (`ComposerInput.focused`). On `.attach` it attaches and the field gets nothing. |
| - - Otherwise it sends `NSText.paste(_:)` down the responder chain. It sets `ComposerInput`'s `pasting` flag first, so the rich-paste path (`PasteMarkdown`) works as today. |
| - - The menu titles are the system's (`NSMenuItem` standard titles, through `Bundle(for: NSApplication.self)`), so no new strings. |
| +- [ ] **Paste: the menu's Paste,** the way Spike M chose: the retargeted existing item, or the replaced group. |
| + - ⌘V arrives at it through the menu, as every key equivalent does. |
| + - **Only the main window's Ask composer asks `AttachIntake`.** `ComposerInput` gains `attaches`, set by `MacMainView`'s composer alone. The menu panel's composer (which doesn't attach in part 1), Settings and the sign-in code field always get the plain `paste:`. `focused` alone can't tell the two composers apart. On `.attach` it attaches, and the field gets nothing. |
| + - **Otherwise** it sends `NSText.paste(_:)` down the responder chain, setting `ComposerInput`'s `pasting` flag first. This is required: the rich-paste path detects Paste by the menu item's action being `paste:` (`Composer.swift:136-139`), which the command's item no longer has. |
| + - **Test:** a rich paste through the new command still becomes Markdown (HTML on the pasteboard, Markdown in the field), and the menu panel's composer pastes text even with an image on the pasteboard. |
| + - **Accepted:** Paste from the field's own context menu calls the field editor directly, bypassing the command, so an image pasted that way does nothing. The menu, ⌘V, drop and the paperclip all attach. |
| - [ ] **Drop: on the pane.** |
| - The Ask pane takes `.onDrop(of: [.fileURL, .image, file promise types], isTargeted:)` and shows the outline (mockup `mac-drop`). |
| - - So that a drag over the field reaches the pane and doesn't insert a path, `ComposerInput.start()` re-registers the field and its field editor for text types only (`registerForDraggedTypes([.string])` after `unregisterDraggedTypes()`). Plain text can still be dragged into the field. |
| -- [ ] **Step 1 proves both by hand, before anything else is built on them.** Paste of a screenshot, a Finder file, and text from Pages; drop of a file onto the field and onto the thread. |
| - - **If either fails:** replace the Mac field with Equipo's `ComposerEditor` (copied from `MacComposer.swift`, P7 amended), and move `ComposerInput`'s undo, IME and rich-paste handling into it. Record the outcome in the commit, and in this plan's Review. |
| + - So that a drag over the field reaches the pane and doesn't insert a path, `ComposerInput` registers the field and its field editor for text types only (`registerForDraggedTypes([.string])` after `unregisterDraggedTypes()`). |
| + - It does this on **every focus gain**, not once in `start()`, because the window's shared field editor re-registers its own types each time. |
| + - Plain text can still be dragged into the field. |
| + - With Task 16A taken, the editor's own dragging overrides do this instead. |
| - [ ] **The paperclip:** left of Send, only while `can_attach`. It opens `fileImporter` (multiple selection, P10's types). |
| - [ ] **The menu panel's composer** doesn't attach in part 1. Drops there are refused quietly. |
| - [ ] **Chips and accessibility:** |
| @@ -574,7 +627,8 @@ Base, native/slice2-part1 (native/apple/Sources/BaseKit unless shown) |
| - The path, and sanitised names such as `../x.command` stored as `x.txt` for a `text/plain` file. |
| - `0600`, excluded from backup, and `.complete` (iOS, checked through an injected file-attributes protocol). |
| - One download per id. |
| - - The message date as the file date, and the 14-day sweep. |
| + - The message date as the file date (the download time without one), and the 14-day sweep. |
| + - The sweep skips an id open in Quick Look, and removes an expired one when its preview closes. |
| - Other accounts' folders removed. |
| - Cleared on `end()` and on `disconnected`. |
| - The sweep's triggers, each injected. |
| @@ -615,7 +669,8 @@ Base, native/slice2-part1 (native/apple/Sources/BaseKit unless shown) |
| - an invite to a test address; |
| - Apps folds, and stays folded after a relaunch and offline; |
| - paste, drop, the paperclip and Quick Look; |
| - - sign-out clears `Caches/Attachments/<accountKey>`. |
| + - sign-out clears `Caches/Attachments/<accountKey>`; |
| + - an upload whose answer is held for 45 s still completes: Task 5's listener helper, run once by hand with a 45 s hold. |
| - [ ] **An independent code review** of the whole branch (Fable, or Codex Astra), with this plan and spec 7.4 to 7.6 as the brief. Answer it on the branch. |
| ### Task 22 (Controller): Copy review, land, release |
| @@ -651,3 +706,17 @@ How each finding from Fable's plan review (2026-11-28) is answered: |
| | **Accessibility** | Tasks 9, 11, 17, 18, 19: the ring's value, keyboard and VoiceOver actions, numbered photo names, quiet polling, named row actions, bubble labels and focus return, announced invite errors, and the missing AX3 and dark snapshots | |
| | **Nits taken** | 1 (P7's "not copied on purpose"); 2 (fixtures generated); 3 (`@escaping`, `maxBytes`, `Content-Length`); 4 ("a member's session"); 5 (the count from `/api/v1/people` only); 6 (spec 7.5: a button heading); 7 (P5 keyed on the account); 8 (P4 backoff, stop on `401`); 9 (Task 19 deletes the preview); 10 (Live Photo and ProRAW on the device); 11 (`attachment_sent`: the chip just goes); 12 (Remove disabled while sending) | |
| | **Order** | Task 12 is split into 14 and 15. Task 12 names every file it copies | |
| + |
| +How the re-review (2026-11-28, approved) is folded in: |
| + |
| +| Finding | Answer | |
| +|---|---| |
| +| **R1** | Task 5: body, `Content-Length` and progress tested against a `127.0.0.1` listener. The `URLProtocol` stub, through a configuration seam, keeps the header and status tests | |
| +| **R2** | Spike M at the start of Part C proves paste and drop. The `NSTextView` fallback is its own Task 16A, with its own review. The drag-type narrowing is re-applied on every focus gain. Only the main window's Ask composer uses `AttachIntake`. A test checks that rich paste still becomes Markdown through the command | |
| +| **R3** | P9: the sweep skips files open in Quick Look and removes expired ones on close. A message without `created_at` dates its file at download | |
| +| **Nit 1** | Task 14: the expiry handler cancels and shows Retry; queued files wait for the foreground; `build-iphone.sh` added to its gate | |
| +| **Nit 2** | Spike M tries retargeting the existing Paste item first. Context-menu Paste bypassing the command is accepted and stated (Task 17) | |
| +| **Nit 3** | P10: Photos staged inside the importing closure, then prepared from the URL | |
| +| **Nit 4** | P9: the 120-byte cut falls on a character boundary | |
| +| **Nit 5** | Task 4: account `bds`, as Base was deployed on 2026-11-27 (`07ec2ec`) | |
| +| **Nit 6** | Task 21: a hand check that an upload held for 45 s completes | |