oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1# Mac power use
2
3Branch `native/mac-power`, based on `602b91fe`. No server change, merge or
4release. Slice 7's priority review fixes were completed first at `f9e00ea6`
5with passing Linux CI.
6
7## Behaviour
8
9Command-K searches the current task window, Needs you tasks, active projects
10and the four sidebar destinations. Matching folds case and diacritics and
11supports subsequences; duplicate task entries use the latest revision. Search
12is local and bounded by the existing task-list window, not a remote full-history
13search. The selected task's actions reuse `TaskDetailModel`, the task page's
14rules, confirmations, revision bindings, errors and allowlisted web opener.
15Merge and Cancel only open confirmations. Retry has no shortcut.
16
17Go provides Command-1 through Command-4, Command-R and Command-[ / Command-].
18File provides Command-N, which opens and focuses Conversation, including when
19only a task window is open or all app windows have been closed. Command-Return
20sends in the composer; Shift-Return and marked text do not send. In the palette,
21Return opens the selection and Command-Return opens a selected task window.
22Command-Shift-M opens the existing merge confirmation.
23
24Each window publishes its own workspace with `focusedSceneValue`. The task
25WindowGroup identity contains a local session UUID and origin, never a token.
26It cannot follow an account switch or restore an old session. Task windows
27observe the event cursor and re-read detail; cancellation, moving, a changed
28repository, or verified 401/403/404 closes the window. Network errors preserve
29it with the existing read error. Selecting another task's action in a standalone
30window routes to the main window and retains the original window's identity.
31The queued action carries its context, and a fresh read precedes presentation;
32a navigation change discards that intent.
33
34## Copy and accessibility
35
36The ten `native.mac.*` keys use Luna's approved values and `Luna, 2026-11-27`
37comments. All 334 reused web strings remain byte-identical. Existing task action
38labels keep reviewed sentence case in menus, as ruled; menu-specific title case
39is a follow-up for Luna. No copy question remains.
40
41The palette uses native text fields and buttons, exposes selection traits and
42labels, and announces the selected result/action when VoiceOver is enabled.
43Arrow keys, Return, Command-Return and Escape are handled. Actual keyboard
44fixture checks covered Command-K and Down/Return reaching Merge confirmation;
45model tests pin the no-write-before-confirmation rule. Spoken VoiceOver output
46was not verified by a human in this run.
47
48## Validation and mutations
49
50Machine load, swap and other heavy jobs were checked before every build,
51filtered test invocation and fixture launch. One own heavy job at a time,
52`--jobs 4`, with timeouts. No simulator was booted. The full native/CI gate script
53was deliberately not run locally under the controller's latest machine rules.
54
55- Test-first: `swift test --package-path native/apple --jobs 4 --filter MacPowerTests`
56 failed on missing model types. Later search and routing regressions were
57 added before their implementation.
58- `swift test --package-path native/apple --jobs 4 --filter
59 'MacPowerTests|MacWorkspaceTests|TaskDetailModelTests'`: 34 tests passed.
60- `swift build --package-path native/apple --jobs 4 --product EquipoMac`: passed.
61- `python3 native/scripts/check-strings.py`, `check-parity.py`,
62 `check-oficina-id.py` and `check-sign-in-lifetime.py`: passed.
63- Post-commit `python3 scripts/runner-dead-references.py`: recorded with the
64 pushed head's CI evidence.
65
66Each mutation below was applied alone, its named filtered suite was run with
67`swift test --package-path native/apple --jobs 4 --filter <suite>`, and the
68source was restored. Every final run failed on test expectations, not a compiler
69error. The Merge confirmation mutant initially survived because the snapshot
70merge preserved an existing merge card. The test now closes that card at a
71new revision and asserts the task-action path as well as the separate card path.
72
73| Mutation | Suite | Result |
74| --- | --- | --- |
75| `search-revision` | `MacPowerTests` | killed |
76| `known-original-repo` | `MacPowerTests` | killed |
77| `palette-action-guard` | `MacWorkspaceTests` | killed |
78| `palette-other-window` | `MacWorkspaceTests` | killed |
79| `routed-action-selection` | `MacWorkspaceTests` | killed |
80| `fresh-search` | `MacPowerTests` | killed |
81| `archived-project` | `MacPowerTests` | killed |
82| `window-origin` | `MacWorkspaceTests` | killed |
83| `busy` | `MacPowerTests` | killed |
84| `refused` | `MacPowerTests` | killed |
85| `active-session` | `MacPowerTests` | killed |
86| `fresh-revision` | `MacPowerTests` | killed |
87| `read-failure` | `MacPowerTests` | killed |
88| `merge-offer` | `MacPowerTests` | killed |
89| `retry-guard` | `MacPowerTests` | killed |
90| `move-guard` | `MacPowerTests` | killed |
91| `cancel-guard` | `MacPowerTests` | killed |
92| `perform-guard` | `MacPowerTests` | killed |
93| `merge-confirmation` | `MacPowerTests` | killed |
94| `cancel-confirmation` | `MacPowerTests` | killed |
95| `merge-card` | `MacPowerTests` | killed |
96| `refusal-classification` | `MacPowerTests` | killed |
97| `cancelled-window` | `MacPowerTests` | killed |
98| `moving-window` | `MacPowerTests` | killed |
99| `moved-window` | `MacPowerTests` | killed |
100| `invisible-window` | `MacPowerTests` | killed |
101| `window-account` | `MacWorkspaceTests` | killed |
102| `window-lifetime` | `MacWorkspaceTests` | killed |
103| `history-forward` | `MacPowerTests` | killed |
104| `deduplicate` | `MacPowerTests` | killed |
105| `brief-search` | `MacPowerTests` | killed |
106| `branch-search` | `MacPowerTests` | killed |
107
108The mutation driver, individual logs and results JSON are retained beside the
109screenshots in `site/build/slice9/validation/`.
110
111## Mac evidence
112
113`site/build/slice9/mac-palette.png` and `mac-task-window.png` are in-app NSView
114snapshots from the actual offline Mac build and WindowGroup. Screen capture
115permission was unavailable, so these capture content, not WindowServer chrome.
116The fixture's current-candidate Review step now agrees with its Approved facts.
117The standalone-window shortcut check selected a retry task in main and a merge
118task in its own window; Command-Shift-M opened the latter's confirmation.
119
120The initial synthetic shortcut harness skipped NSMenu's normal opening
121lifecycle, leaving SwiftUI's cached menu validation and focused values stale.
122Running the menu delegate's opening callbacks before the key equivalent fixed
123it; a constant focus probe confirmed the diagnosis. The temporary explicit
124window registry was removed. Native SwiftUI focus remains the sole command
125source. The two read-only reviewers' normal-menu discriminator identified the issue.
126
127Confirmation sheets were reached through real keyboard/menu events. Their
128NSView bitmap omits AppKit vibrancy-rendered labels, so those incomplete images
129are not presented as screenshots; the fixture logs and model assertions are
130retained. No actual merge was sent by a capture.
131
132## Handoff
133
134Normal push with `agent-tools/push.sh`; exact head and Linux CI verdict are
135reported in the handoff and saved CI JSON. No merge, deployment or release.
136Own fixture processes and scratch are removed after validation.
137
138## Fable delta: same-task context, accessibility and navigation
139
140The task screen now resolves the Mac model directly from its current context.
141Its state owns a model only on the session/task initializer used outside that
142context. Replacing the context for the same task ID therefore replaces the
143screen's model as well as the command target. Notification, palette and
144other-window routes are covered; a mounted NSHostingView regression replaces
145the same-ID context and asserts that its Merge sheet attaches to the window.
146The palette's labelled accessibility element contains its children. Source
147contracts pin containment and the separate Not now, Open in New Window and
148result labels, following this repository's view-contract tests. An attempted
149in-process accessibility-tree walk returned no usable SwiftUI children in the
150Swift test host, so it is not used as evidence of spoken VoiceOver output.
151
152Pane changes retain the inspector's task and visibility. The workspace owns
153an unsent composer draft; recreated AppKit transcripts bind to it, including
154edits, paste and clearing after send. A Task-menu action reveals a hidden
155inspector before invoking its model. Palette Return ignores marked text.
156Task WindowGroup restoration is disabled, so old restored windows do not flash
157before account validation. Title-word-prefix matches rank first, other title
158matches next, metadata then whole-word brief matches (query length at least
159two). The index is cached until its source task/project data changes.
160
161Explicit deferrals: Command-Return from a list, double-click to open a task
162window, and a keyboard shortcut for Open in New Window. Existing sentence-case
163task labels in Mac menus remain the copy follow-up for Luna. No new copy.
164
165The notification-actions branch is checkpointed locally at 4dac0111 while this
166priority fix is handled. Its first focused Go tests passed; the unfinished
167implementation was not pushed. The approved share follow-ups come after this
168Mac delta and before notification work resumes.
169
170Delta validation: the initial review tests failed on the missing draft, routing
171and input-method helpers. Focused tests then passed, including the mounted
172same-task sheet test. All 15 deliberate mutations below failed the filtered
173`MacPowerReviewTests` suite; sources were restored after each run. Accessibility,
174restoration and keyboard wiring are source contracts; the other failures are
175behavioral assertions. The mounted screen also catches restoring the old
176state-owned Mac model. The first queued-clear log was too verbose for the
177runner's issue-line detector; its test did fail. A boolean assertion now keeps
178that output bounded, and the repeated mutation was observed failing cleanly.
179
180| Delta mutation | Result |
181| --- | --- |
182| Restore state-owned Mac screen model | killed |
183| Ignore palette accessibility children | killed |
184| Clear inspector/task on pane navigation | killed |
185| Stop storing edited composer text | killed |
186| Do not reveal inspector before menu action | killed |
187| Ignore marked text | killed |
188| Remove the Return marked-text wiring | killed |
189| Restore task windows automatically | killed |
190| Remove title-word-prefix ranking | killed |
191| Match brief substrings | killed |
192| Remove brief minimum query length | killed |
193| Rebuild the index on every query | killed |
194| Keep the queued action after navigation | killed |
195| Route own-task actions out of a task window | killed |
196| Allow a queued action across navigation with the same inspector | killed |
197
198Queued actions now also carry a navigation generation. Keeping the inspector
199across a pane change cannot revive an old action after its asynchronous read.
200Mutation logs, the driver and focused-test results are retained with the
201slice 9 review evidence. No simulator was started.
202
203Main c01b4efa was merged normally. The Mac app retains Services registration
204and the fixture/menu setup; both approved string sets and their review dates
205are retained, including the share UI catalog. On the combined head:
206`swift test --package-path native/apple --jobs 4 --filter
207'MacPowerReviewTests|MacWorkspaceTests|MacPowerTests|TaskDetailModelTests|ComposerPolishTests'`
208passed all 46 tests. String validation, 336-string parity, Oficina ID and
209sign-in-lifetime source checks passed. Full suites remain on Linux hub CI.
210