oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

Share follow-ups

Branch native/share-followups, based on main c01b4efa. This is the narrow follow-up to Fable's approval of f9e00ea6. No signing API writes, server changes, new copy, merge or release.

Behaviour

An uncertain earlier retry retains its exact immutable request and idempotency key both in earlierPending and on disk. A confirmed earlier retry removes only that journal entry. A definite refusal requires a 4xx with a non-empty, non-whitespace server code, excluding 401, 403, 408, 425 and 429. Authentication failures still use the existing signed-out handling and retain the journal.

Each earlier message has its own row with a whitespace-collapsed text preview bounded to 200 characters plus an ellipsis, at most two lines, an attachment count, and its own reviewed error. The existing reviewed Attachments label (chat.attach.list) accompanies a localized number; no new count sentence is introduced. Pending rows retain Try again and Discard. A refused entry is removed from disk immediately but remains in that compose view with its preview and refusal words until Dismiss. It cannot be retried from that row. Dismiss affects neither the new message nor another earlier entry.

The Mac Service regression receives a new shared URL while an earlier journal entry exists. It verifies the new text remains editable, the old entry stays unchanged in memory and on disk, and receiving content never sends it.

Validation

Tests were added first. The initial EarlierShareTests run failed on the missing summary and refusal-row model (red.log). The focused run after implementation passed 9 tests, including parameterized lost replies, 500, 408, 425, 429, empty/whitespace codes, successful disk cleanup and refused-row lifetime. The lost-A/cancel/new-B test now requires exactly two recorded requests before indexing them, so a broken request count fails cleanly.

Commands (all heavy jobs serial, load and swap checked first, four workers):

  • timeout 240 swift test --package-path native/share --jobs 4 --filter EarlierShareTests
  • timeout 300 swift test --package-path native/apple --jobs 4 --filter serviceReceivesInputAndReportsPreparationFailure
  • python3 native/scripts/check-share.py
  • python3 native/scripts/check-strings.py
  • python3 native/scripts/check-parity.py
  • git diff --check

The Mac Service test passed all four cases: URL, existing earlier entry, too many items and too-large text. String parity covers 336 reviewed web strings. The packaging guard pins the two-line preview, count, per-row error and refusal dismissal wiring. No simulator or fixture app was started; test-created windows are closed by test cleanup. The full native gate was not run locally, following the controller's latest machine rules. Linux CI is the full gate.

Mutations

Each mutation is restored immediately after its focused test. Results and logs are retained under site/build/slice7/followups/validation.

All 12 mutations failed the intended assertions, not compilation: success-disk (remove successful retry's disk cleanup), uncertain-terminal (clear every earlier failure), empty-code (accept missing server code), 408, 425, 429 (remove each transient exclusion), refused-preview (drop the refused row), refused-dismiss (retain its error after dismissal), preview-bound (remove the 200-character bound), attachment-count (report zero), row-preview (remove the two-line limit), and service-new-input (drop new text when earlier pending).

The final core rerun also tests malformed summary decoding: an unknown count stays unknown rather than becoming zero. Whitespace is collapsed for the short preview; an omitted attachments field in a valid request correctly means zero.

Final restored-code runs passed: 10 EarlierShareTests and the Mac Service test with all four cases. The final test logs are final-core.log and final-service.log. No copy questions remain.

Landed Mac power follow-ups

At the controller's request, normally merged origin/main 91be0d17 and folded Fable's three small Mac follow-ups into this same branch before resuming slice 8.

Task opens no longer enter MacNavigationHistory, preserving both the pane history and its forward entries while the inspector stays open. Updated model and workspace tests assert Back/Forward change panes rather than replay task opens.

TaskScreen.ReadKey now includes the context's object identity. The mounted-screen regression replaces a context for the same task without manually loading it. It waits for the fresh model to load and verifies its Merge confirmation becomes a real attached sheet. Before the fix, both the read and visible sheet assertions failed. Removing the identity again kills the test.

The palette accessibility source-text assertions are replaced by Fable's hosted probe as a regression test. It enables accessibility in the root environment, mounts an NSHostingView in a window, lays it out, then walks actual Objective-C accessibility attributes. It asserts an AXGroup named Jump to… and AXButtons named Not now and Open in New Window. It does not claim scroll-area result rows enumerate. No AXUIElement API, Accessibility permission, simulator or spoken VoiceOver session is needed. The prior empty-tree attempt remains in the red log for context; it lacked the accessibilityEnabled environment value.

Narrow command: timeout 240 swift test --package-path native/apple --jobs 4 --filter 'MacPowerReviewTests|MacWorkspaceTests|MacPowerTests'

Mutations: history-task-entry (put task opens back in history), context-read (remove context identity from the read key), palette-children (remove .contain).

All three Mac mutations died. In palette-children.log, removing .contain produced the exact old defect: both AXButton labels were Jump to… instead of their own names. The final restored-code run added serviceReceivesInputAndReportsPreparationFailure to the Mac filter and passed 27 tests across the three suites plus the parameterized Service test. String parity (336), check-share.py and git diff --check pass after the merge.

The post-commit reference scan initially classified the accessibility helper's generic element variable as a legacy runtime reference. Renaming that variable and comment to element required no allowance or scanner change. The restored scan passes: 2,884 text files, 3,229 classified matches, zero failures.