| 1 | # Native task view controller report |
| 2 | |
| 3 | Branch: native/task-view, started from origin/main 4024216e in its own physical |
| 4 | TMPDIR worktree. Main advanced to eb367315 with the landed attachment slice; |
| 5 | `git merge origin/main` brought that work in (fast-forward) before final |
| 6 | verification. This branch has not been rebased. No merge to main, release or |
| 7 | deployment is authorized. |
| 8 | |
| 9 | ## Scope and rulings |
| 10 | |
| 11 | Overview, Changed files, Checks and Preview share a pinned decision. Changed |
| 12 | files and Preview remain web links in this slice. The thin engine has no plan |
| 13 | state; offer approval only when the web has an actionable card (controller |
| 14 | confirmed 2026-11-26). |
| 15 | |
| 16 | Own-task Move uses GET /projects.allowed. Another creator's task opens the |
| 17 | existing /tasks/{id}/move page in the default Mac browser or the iPhone Safari |
| 18 | sheet. The controller approved this limited fallback on 2026-11-26 because |
| 19 | MoveChoices uses the creator's allowed repositories, which the device API |
| 20 | cannot read for another creator. Follow-up: GET /tasks/{id}/move-choices for |
| 21 | devices, using the same authorization and choices as the web. |
| 22 | |
| 23 | Luna approved these exact native-only strings on 2026-11-26: |
| 24 | |
| 25 | | Key | Value | |
| 26 | | --- | --- | |
| 27 | | native.task.overview | Overview | |
| 28 | | native.task.changes | Changed files | |
| 29 | | native.task.undo_merge | Undo merge | |
| 30 | | native.task.undo_confirm | Undo this merge? | |
| 31 | | native.task.undo_detail | Equipo will start a task to revert this merge. From now on, it will ask before every merge in this project. | |
| 32 | |
| 33 | Other imported words are copied from copy.go under check-parity.py. Native |
| 34 | catalog entries use the existing translated/manual convention. Native-only |
| 35 | approval attribution is retained here and beside their Swift call sites. |
| 36 | |
| 37 | ## Tests first |
| 38 | |
| 39 | `swift test --package-path native/apple --filter TaskDetailTests` first failed |
| 40 | fullWireTaskKeepsEveryNestedField on the original partial decoder. The coverage |
| 41 | fixture populates every field of wire.Task, wire.Step and their nested wire |
| 42 | subresources, including copydesk.Signature. It is a serialization shape, not |
| 43 | an actionable task. Typed optional fields preserve older payloads. The |
| 44 | round-trip test now passes without dropping any populated field. |
| 45 | |
| 46 | The action-rule tests first failed 15 assertions with the empty rule model. |
| 47 | The implementation follows work_pages.go taskLineOf/priorityOf, |
| 48 | work_views.go decorate/decisionOf/liveStep, and mergeauth.go undoReceipt. |
| 49 | `swift test --package-path native/apple --filter TaskDetailTests` then passed |
| 50 | 7 tests, including parameterized lifecycle and needs-you cases. |
| 51 | |
| 52 | `swift test --package-path native/apple --filter |
| 53 | 'TaskActionAPITests|CheckSectionTests'` first failed 36 issues with the stub |
| 54 | commands, fallback-only errors and empty parser. With implementation, all 6 |
| 55 | tests pass. Requests cover merge, cancel, round, undo (receipt revision), move, |
| 56 | kind and priority, bearer use, 409/500 propagation and reviewed failure words. |
| 57 | Priority preserves the deadline as RFC3339 or explicit null. The parser uses |
| 58 | the runner's `=== script` markers only for .amadan/ci.d, preserves Go test |
| 59 | markers, applies the existing 200-line/32-KiB bounds and moves the last section |
| 60 | to the front only on failure. ciDScript exits at the first failed script. |
| 61 | |
| 62 | Compiler scaffolding corrections (a generated inline declaration and duplicate |
| 63 | TaskActions.swift basenames) were resolved before counting failing assertions. |
| 64 | |
| 65 | TaskDetailModelTests first failed 8 assertions with stub reads/actions; the |
| 66 | implementation passes the double-tap, creator, stale-confirmation and conflict |
| 67 | refresh tests. TaskDecisionTests first failed 4 assertions with the stub card |
| 68 | selector/choice validator, then passed with creator/owner, lifecycle, current |
| 69 | card, exploration, known-choice and direction-note guards. The task-card |
| 70 | answer test first failed 3 assertions with a stub answer, then passed. Its fake |
| 71 | server also verifies that a malformed successful response is shown as failure. |
| 72 | |
| 73 | The fixed move URL test failed 2 assertions against the settings-only allowlist, |
| 74 | then passed with the exact `/tasks/[A-Za-z0-9_-]+/move` pattern. The separate |
| 75 | other-creator branch test failed with the unconnected opener and then passed: |
| 76 | it hands the fixed-origin task URL to the opener and never reads the viewer's |
| 77 | project choices. The production opener is the existing settings presentation. |
| 78 | |
| 79 | The model tests use a usable fake bearer and implement `/snapshot`, `/tasks`, |
| 80 | `/needs-you`, `/time-zone` and `/projects`, so refresh assertions exercise the |
| 81 | signed-in refresh path as well as the full task read. Own Move filters out the |
| 82 | current repository, sorts the allowed list, refuses destinations outside it, |
| 83 | and does not send another creator's task through the native route. |
| 84 | |
| 85 | ## Native screen and layout |
| 86 | |
| 87 | The iPhone keeps its decision below the scrolling evidence on every tab. The |
| 88 | Mac presents the same decision as a toolbar above the tabs in task detail. |
| 89 | Overview includes the brief, track, facts, Review summary, steps, branch/commit |
| 90 | and task thread. Checks uses the existing bounded selectable log component, |
| 91 | with the failed runner section open first and Review's summary below. It |
| 92 | reloads when the task revision changes. Unknown card kinds remain on the web; |
| 93 | the thin task has no plan state to fabricate into an approval. |
| 94 | |
| 95 | The simulator UI tests drive the production screen through an offline transport: |
| 96 | Overview, the actual More menu, the actual Merge confirmation, Checks, and |
| 97 | Accessibility Extra Large. All four approved tab labels remain visible without |
| 98 | truncation at default and Accessibility Extra Large. The native segmented |
| 99 | control and wording are unchanged; the controller was notified of this result. |
| 100 | |
| 101 | A second web comparison added failing tests for two existing page rules: |
| 102 | `OpenMergeCards` selects the newest open card by created time/id, and |
| 103 | `pageTask` removes earlier merge steps from an exploration. Both tests failed |
| 104 | before implementation and pass now. Held cards retain their reviewed Run it |
| 105 | now / Wait choices. No response text is invented for an unknown card option. |
| 106 | |
| 107 | Device-route boundary: Continue without Copy has only |
| 108 | `/conversation/tasks/{id}/continue-without-copy`, not a bearer device route. |
| 109 | That decision, unknown card kinds and the outside-sandbox warning keep the |
| 110 | existing Open in Equipo on the web fallback. The controller was notified. |
| 111 | |
| 112 | ## Mutations |
| 113 | |
| 114 | Command: `python3 "$TMPDIR/task-view-mutate.py"`. For each mutation the |
| 115 | harness saves the source, makes one change, runs |
| 116 | `swift test --package-path native/apple --filter 'TaskDetail|TaskDecision|TaskAction|CheckSection'`, |
| 117 | requires a failing assertion (not just a compiler error), then restores the |
| 118 | source. The last focused baseline passed 30 tests in 5 suites. All 88 distinct |
| 119 | mutations below were killed. The Move availability mutation initially survived; |
| 120 | an ended-task read test was added and the mutation then failed as intended. |
| 121 | One closure mutation initially did not compile; it was corrected to a compiling |
| 122 | mutation and killed by assertions. A literal mismatch stopped one batch before |
| 123 | mutation; it was corrected and the batch resumed. Neither was counted as a kill. |
| 124 | |
| 125 | The runner, final verdict JSON and command transcript are retained in |
| 126 | `polish-audit/equipo-daily-driver/site/build/slice3/`. The verification archive |
| 127 | contains the individual failing test logs and the red/green baseline logs. |
| 128 | |
| 129 | | Mutation | Result | |
| 130 | | --- | --- | |
| 131 | | `owner` | Assertion failed; restored | |
| 132 | | `creator` | Assertion failed; restored | |
| 133 | | `done` | Assertion failed; restored | |
| 134 | | `cancelled` | Assertion failed; restored | |
| 135 | | `moving` | Assertion failed; restored | |
| 136 | | `stopping` | Assertion failed; restored | |
| 137 | | `merging` | Assertion failed; restored | |
| 138 | | `merge_offer` | Assertion failed; restored | |
| 139 | | `live_driver` | Assertion failed; restored | |
| 140 | | `kind_toggle` | Assertion failed; restored | |
| 141 | | `priority_toggle` | Assertion failed; restored | |
| 142 | | `retry_failed` | Assertion failed; restored | |
| 143 | | `retry_terminated` | Assertion failed; restored | |
| 144 | | `recover_reason` | Assertion failed; restored | |
| 145 | | `recover_unterminated` | Assertion failed; restored | |
| 146 | | `round_copyhold` | Assertion failed; restored | |
| 147 | | `round_copy_skip` | Assertion failed; restored | |
| 148 | | `round_need` | Assertion failed; restored | |
| 149 | | `undo_offer` | Assertion failed; restored | |
| 150 | | `undo_sha` | Assertion failed; restored | |
| 151 | | `undo_checks` | Assertion failed; restored | |
| 152 | | `undo_window` | Assertion failed; restored | |
| 153 | | `undo_task` | Assertion failed; restored | |
| 154 | | `undo_kind` | Assertion failed; restored | |
| 155 | | `undo_open` | Assertion failed; restored | |
| 156 | | `undo_options` | Assertion failed; restored | |
| 157 | | `driver_preview` | Assertion failed; restored | |
| 158 | | `driver_research` | Assertion failed; restored | |
| 159 | | `driver_publish` | Assertion failed; restored | |
| 160 | | `decision_creator` | Assertion failed; restored | |
| 161 | | `decision_owner` | Assertion failed; restored | |
| 162 | | `decision_final` | Assertion failed; restored | |
| 163 | | `decision_moving` | Assertion failed; restored | |
| 164 | | `decision_stopping` | Assertion failed; restored | |
| 165 | | `decision_copyhold` | Assertion failed; restored | |
| 166 | | `decision_copy_skip` | Assertion failed; restored | |
| 167 | | `decision_task` | Assertion failed; restored | |
| 168 | | `decision_open` | Assertion failed; restored | |
| 169 | | `decision_kind` | Assertion failed; restored | |
| 170 | | `decision_explore` | Assertion failed; restored | |
| 171 | | `decision_allowlist` | Assertion failed; restored | |
| 172 | | `answer_choice` | Assertion failed; restored | |
| 173 | | `answer_note_limit` | Assertion failed; restored | |
| 174 | | `answer_note_required` | Assertion failed; restored | |
| 175 | | `rules_fresh` | Assertion failed; restored | |
| 176 | | `move_busy` | Assertion failed; restored | |
| 177 | | `move_web` | Assertion failed; restored | |
| 178 | | `move_current_filter` | Assertion failed; restored | |
| 179 | | `write_busy` | Assertion failed; restored | |
| 180 | | `write_allowed` | Assertion failed; restored | |
| 181 | | `confirmation_revision` | Assertion failed; restored | |
| 182 | | `receipt_revision` | Assertion failed; restored | |
| 183 | | `move_creator` | Assertion failed; restored | |
| 184 | | `move_destination` | Assertion failed; restored | |
| 185 | | `move_same_repo` | Assertion failed; restored | |
| 186 | | `card_revision` | Assertion failed; restored | |
| 187 | | `settings_allowlist` | Assertion failed; restored | |
| 188 | | `move_origin_path` | Assertion failed; restored | |
| 189 | | `action_bearer` | Assertion failed; restored | |
| 190 | | `action_failure` | Assertion failed; restored | |
| 191 | | `action_conflict_words` | Assertion failed; restored | |
| 192 | | `undo_revision_body` | Assertion failed; restored | |
| 193 | | `log_bound` | Assertion failed; restored | |
| 194 | | `log_gate` | Assertion failed; restored | |
| 195 | | `log_testing_marker` | Assertion failed; restored | |
| 196 | | `log_failure_first` | Assertion failed; restored | |
| 197 | | `explore_page_kind` | Assertion failed; restored | |
| 198 | | `latest_card` | Assertion failed; restored | |
| 199 | | `card_sort` | Assertion failed; restored | |
| 200 | | `card_id` | Assertion failed; restored | |
| 201 | | `card_busy` | Assertion failed; restored | |
| 202 | | `checks_status` | Assertion failed; restored | |
| 203 | | `checks_exit` | Assertion failed; restored | |
| 204 | | `move_allowed` | Assertion failed; restored | |
| 205 | | `explore_merge_filter` | Assertion failed; restored | |
| 206 | | `priority_creator` | Assertion failed; restored | |
| 207 | | `menu_creator` | Assertion failed; restored | |
| 208 | | `round_creator` | Assertion failed; restored | |
| 209 | | `round_placement` | Assertion failed; restored | |
| 210 | | `undo_creator` | Assertion failed; restored | |
| 211 | | `rules_revision_only` | Assertion failed; restored | |
| 212 | | `rules_read_only` | Assertion failed; restored | |
| 213 | | `decision_revision_only` | Assertion failed; restored | |
| 214 | | `decision_read_only` | Assertion failed; restored | |
| 215 | | `placement_guard` | Assertion failed; restored | |
| 216 | | `placement_stop` | Assertion failed; restored | |
| 217 | | `placement_hold` | Assertion failed; restored | |
| 218 | | `placement_preparing` | Assertion failed; restored | |
| 219 | |
| 220 | ## Gates and captures |
| 221 | |
| 222 | No server code or route changed, so the controller's native-only gate applies; |
| 223 | no new GET route needs a performance budget. `native/scripts/check-native.sh` |
| 224 | checks wire fixtures, catalog/parity, sign-in lifetime, reference hygiene, the |
| 225 | whole Swift suite, and both native builds. The post-commit reference scan is |
| 226 | run separately as required. Gate logs, simulator captures, Mac capture and |
| 227 | exact-head Linux CI verdict are retained in `site/build/slice3/`. |
| 228 | |
| 229 | Final local results: |
| 230 | |
| 231 | - `native/scripts/check-native.sh`: passed. 482 catalog entries; 326 web |
| 232 | strings byte-identical under parity; 298 Swift tests in 38 suites passed |
| 233 | (one pre-existing known issue); Mac and iPhone Simulator builds passed. |
| 234 | - `native/scripts/build-mac.sh --configuration debug`: passed, ad hoc local |
| 235 | bundle only. The capture runs that bundle through Launch Services with |
| 236 | `EQUIPO_TASK_FIXTURE=overview` and `EQUIPO_FIXTURE_CAPTURE` pointing into the |
| 237 | audit directory. It records only its own NSWindow through AppKit. |
| 238 | - `xcodebuild -project native/ios/EquipoPhone.xcodeproj -scheme TaskViewUI |
| 239 | -destination 'platform=iOS Simulator,id=<isolated EquipoTaskView simulator>' |
| 240 | -derivedDataPath native/build/Phone |
| 241 | -resultBundlePath "$TMPDIR/task-view-final-ui.xcresult" |
| 242 | CODE_SIGNING_ALLOWED=NO test`: passed all 3 UI tests. The Checks test also |
| 243 | requires an expanded text view and verifies the failing section precedes |
| 244 | the earlier successful section. |
| 245 | - The first native gate flagged the debug capture's `Data.write` call under |
| 246 | the blanket raw-secret-store-write rule. The fixture now uses the existing |
| 247 | fixture convention, FileManager.createFile; the gate was not weakened. |
| 248 | |
| 249 | Inspected actual captures, all in `site/build/slice3/`: |
| 250 | `iphone-overview.png`, `iphone-checks.png`, `iphone-menu.png`, |
| 251 | `iphone-merge-confirmation.png`, `iphone-tabs-large.png`, and `mac-task.png`. |
| 252 | The duplicate branch row was removed from the confirmation before this final |
| 253 | capture. The iPhone fixture uses the normal inline task navigation title. |
| 254 | The extra large-text image records the unchanged, untruncated approved tabs. |
| 255 | There are no outstanding copy questions. |
| 256 | |
| 257 | After commit, the required command is |
| 258 | `python3 scripts/runner-dead-references.py`; its final output is retained as |
| 259 | `post-commit-references.log`. Push uses the normal helper with `native task view` |
| 260 | and `origin native/task-view`. Linux hub status is read with |
| 261 | `AMADAN_HOME="$HOME/.amadan-claude-agent" amadan ci status oficina/equipo -branch |
| 262 | native/task-view -json` into a scratch file; the exact commit verdict is saved |
| 263 | as `site/build/slice3/ci-verdict.json` before handoff. No merge to main or release. |
| 264 | |
| 265 | The first post-commit reference scan included the newly tracked files and |
| 266 | flagged five uses of a reserved project name in fake Move choices. Those |
| 267 | fixture-only choices now use `oficina/notes`. No shipped route or behavior |
| 268 | changed. The reference scan and native gate were repeated after that fix. |
| 269 | |
| 270 | ## Screenshot review follow-up (2026-11-26) |
| 271 | |
| 272 | The Mac tab picker now hides its visual label while retaining its accessibility |
| 273 | label. The more menu uses the borderless Mac menu style with its indicator |
| 274 | hidden. Overview keeps branch and commit in the facts block only, on both |
| 275 | platforms. Every pinned primary action now uses RosterButton, including answer, |
| 276 | round, merge and web fallbacks; secondary card choices retain that component's |
| 277 | secondary style. |
| 278 | |
| 279 | The contradictory Checks screenshot was fixture data, not stale summary |
| 280 | selection. Both tabs already selected the last Review in wire step order. |
| 281 | That selection now lives in TaskPage.latestReview and is covered with an older |
| 282 | approval, a newer changes-requested review, and a trailing Preview. Missing |
| 283 | Review and missing steps also return no summary. The failed fixture now contains |
| 284 | an earlier approval followed by changes requested, with matching task verdict, |
| 285 | review headline and summary, and no merge offer. The Checks UI test requires |
| 286 | Changes requested and rejects Approved on that tab. |
| 287 | |
| 288 | Test-first command: `swift test --package-path native/apple --filter |
| 289 | latestReviewWins`. With the selector stub returning nil, the test failed at |
| 290 | `#require` (red). With last matching Review, it passed (green). Replacing |
| 291 | `task.steps?.last` with `task.steps?.first` failed the id, headline and summary |
| 292 | assertions (mutation killed), then the source was restored. This adds one |
| 293 | mutation to the original 88 killed mutations. Logs are retained as |
| 294 | `polish-red.log`, `polish-green.log`, and `polish-mutation.log` in the slice3 |
| 295 | capture directory. No new runtime copy was introduced. |
| 296 | |
| 297 | Follow-up validation: `native/scripts/check-native.sh` passed with 299 Swift |
| 298 | tests in 38 suites (one existing known issue), 326 exact web parity strings, |
| 299 | and both native builds. `build-mac.sh --configuration debug` passed. |
| 300 | The same TaskViewUI command above, with result bundle |
| 301 | `$TMPDIR/task-view-polish-ui.xcresult`, passed all three UI tests. All six |
| 302 | screenshots were recaptured from this branch; Mac and iPhone Overview and |
| 303 | iPhone Checks were inspected for these changes. The existing large-type tab |
| 304 | capture, menu and confirmation were refreshed too. The isolated simulator |
| 305 | and fixture Mac process were stopped after capture. |
| 306 | |
| 307 | ## Fable delta review (2026-11-26) |
| 308 | |
| 309 | This delta supersedes the earlier statement that selecting the last Review was |
| 310 | sufficient. Evidence must also belong to the current candidate SHA. Overview |
| 311 | and Checks now select the last matching Review/Checks step. A missing current |
| 312 | Review shows the exact reviewed web `runner.verdict.skipped` words, “Not run”. |
| 313 | Running or queued Checks show their state without fetching an empty log. |
| 314 | |
| 315 | Hosted logs use the optional device-only `Step.hosted.failed` projection approved |
| 316 | by the controller. It exposes failed job names only, from stored HostedCI, |
| 317 | without repo, branch, URL, log, token or runner metadata. It is part of the |
| 318 | existing task-authorized step representation; no new GET route or runner |
| 319 | protocol change is involved. Non-hosted and malformed/missing stored results |
| 320 | omit the field. OpenAPI and native decoding include the additive field; older |
| 321 | payloads still decode. Native uses these names as the marker allowlist. Only |
| 322 | when the field is absent does it fall back to the header's `Failed:` names. |
| 323 | The hosted header appears as a summary and every named failed job is marked. |
| 324 | |
| 325 | Local section markers accept only basename-shaped names, excluding whitespace, |
| 326 | paths and Go test markers. Section boundaries retain the original marker line, |
| 327 | the prefix before the first marker, and every other bounded log line. Failed |
| 328 | local sections move first; source-order ids let tests reconstruct the exact |
| 329 | bounded log. A tool can spoof a basename marker such as `=== 20-check`, so the |
| 330 | local failure indication remains a hint. Follow-up: the runner should send |
| 331 | structured section names and byte offsets, or escape marker-like tool output. |
| 332 | |
| 333 | Merge, Undo and Cancel now create a confirmation intent in TaskDetailModel; |
| 334 | only confirming that intent can send the write. Cancel appears last after a |
| 335 | divider, uses the destructive role, and remains hidden during merging. |
| 336 | Cancel title and detail are approved **Luna, 2026-11-26**: |
| 337 | `native.task.cancel_confirm` = “Cancel this task?”; |
| 338 | `native.task.cancel_detail` = “Equipo will stop this task. You cannot resume it, |
| 339 | and nothing will be merged.” Buttons reuse reviewed web strings. |
| 340 | |
| 341 | Decision cards are restricted to merge, direction and held. Unknown options |
| 342 | hide only themselves, preserving recognized choices. Successful direction |
| 343 | answers clear the draft note, and other answer types never carry it. All task, |
| 344 | Preview, Move and Changed files links go through the shared checked opener: |
| 345 | fixed origin-relative task paths, or a Changed files URL on the exact session |
| 346 | origin or HTTPS amadan.net. Credentials, unexpected ports, lookalike hosts and |
| 347 | other forges are refused. Mac opens the default browser; iPhone uses the |
| 348 | parent-owned Safari sheet. |
| 349 | |
| 350 | Test-first commands and observations: |
| 351 | |
| 352 | - `swift test --package-path native/apple --filter TaskCandidateTests`: red, |
| 353 | 10 assertions failed before current-candidate selection; green after it. |
| 354 | - `swift test --package-path native/apple --filter TaskDetailModelTests`: model |
| 355 | confirmation tests red with 6 assertions before intent enforcement; green |
| 356 | after implementation. Wire assertions distinguish receipt revision 72 from |
| 357 | task revision 9 and preserve the urgent deadline. |
| 358 | - `swift test --package-path native/apple --filter TaskDecisionTests`: red, |
| 359 | 5 assertions for newer unknown/question cards and unknown options; green. |
| 360 | - `swift test --package-path native/apple --filter HostedSectionTests`: red for |
| 361 | hosted grouping, summary, all-failed labeling and lossless local splitting; |
| 362 | green after implementation. A test encoding setup used numeric dates first; |
| 363 | corrected to use raw server JSON before the final decoding assertion. |
| 364 | - `swift test --package-path native/apple --filter TaskWebNavigationTests`: |
| 365 | red for fixed task pages and unchecked Changed files URLs; green after the |
| 366 | allowlist implementation. |
| 367 | - `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test ./internal/equipo/chat -run |
| 368 | '^TestStepHostedDeviceView' -count=1`: red (field missing), then green. |
| 369 | - Wire schema regenerated through `EQUIPO_DEVICE_SCHEMAS=<scratch> |
| 370 | GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test ./internal/wire/wireschema -run |
| 371 | '^TestDump$' -count=1`. The device contract test passed. |
| 372 | |
| 373 | The source budget increases are precisely the approved minimal projection: |
| 374 | wire 7067 lines, chat 34835 source / 9583 test lines. Existing exemptions now |
| 375 | record those measured counts and the reason; no route/performance exemption |
| 376 | was added. |
| 377 | |
| 378 | Initial delta validation checkpoint: all 314 Swift tests passed (one existing |
| 379 | known issue). Go build and vet passed with `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 |
| 380 | GOOS=linux GOARCH=amd64 make build vet`; the Make target also compiles/vets the |
| 381 | Darwin runner. Native staticcheck v0.7.0 and govulncheck v1.8.0, analyzing with |
| 382 | `GOOS=linux GOARCH=amd64`, passed. Govulncheck reported no reachable vulnerable |
| 383 | code. `make fmt-check spacing copy-release-check lanes-check budget` and |
| 384 | `make migration-check` passed. The formatting tool came from the Go 1.26.11 |
| 385 | GOROOT prepended to PATH. |
| 386 | |
| 387 | Local runner-host cannot pass on this Mac: runner prerequisites fail, and the |
| 388 | quarantine checks require Codex 0.165.0 while the local binary reports 0.154.0. |
| 389 | `make test-quarantine` records 11 prerequisite/provider failures; no test or |
| 390 | provider contract was weakened. The Linux hub run is the required final gate. |
| 391 | |
| 392 | Mutation command: for each listed edit, `swift test --package-path native/apple |
| 393 | --filter <suite>`; each source restored in a `finally` block before the next |
| 394 | mutation. All 31 compiled and failed assertions (no compile failures counted). |
| 395 | |
| 396 | | Mutation | Suite | Result | |
| 397 | | --- | --- | --- | |
| 398 | | undo-task-revision | TaskDetailModelTests | killed | |
| 399 | | perform-busy | TaskDetailModelTests | killed | |
| 400 | | merge-confirmation | TaskDetailModelTests | killed | |
| 401 | | undoMerge-confirmation | TaskDetailModelTests | killed | |
| 402 | | cancel-confirmation | TaskDetailModelTests | killed | |
| 403 | | merge-card-confirmation | TaskDetailModelTests | killed | |
| 404 | | explore-revision | TaskDetailModelTests | killed | |
| 405 | | urgent-deadline | TaskDetailModelTests | killed | |
| 406 | | direction-clear | TaskDetailModelTests | killed | |
| 407 | | direction-note-only | TaskDetailModelTests | killed | |
| 408 | | review-last | TaskCandidateTests | killed | |
| 409 | | review-candidate | TaskCandidateTests | killed | |
| 410 | | checks-last | TaskCandidateTests | killed | |
| 411 | | checks-candidate | TaskCandidateTests | killed | |
| 412 | | running-checks-empty-log | TaskCandidateTests | killed | |
| 413 | | decision-kind | TaskDecisionTests | killed | |
| 414 | | merge-unknown-option | TaskDecisionTests | killed | |
| 415 | | direction-unknown-option | TaskDecisionTests | killed | |
| 416 | | hosted-only-last-failed | HostedSectionTests | killed | |
| 417 | | hosted-not-split | HostedSectionTests | killed | |
| 418 | | hosted-header-not-summary | HostedSectionTests | killed | |
| 419 | | hosted-empty-field-fallback | HostedSectionTests | killed | |
| 420 | | hosted-allowlist | HostedSectionTests | killed | |
| 421 | | local-prose-marker | HostedSectionTests | killed | |
| 422 | | marker-lines-dropped | HostedSectionTests | killed | |
| 423 | | prefix-dropped | HostedSectionTests | killed | |
| 424 | | web-allowlist | TaskWebNavigationTests | killed | |
| 425 | | forge-allowlist | TaskWebNavigationTests | killed | |
| 426 | | forge-credentials | TaskWebNavigationTests | killed | |
| 427 | | forge-port | TaskWebNavigationTests | killed | |
| 428 | | cancel-merging | TaskDetailModelTests | killed | |
| 429 | |
| 430 | Three final edge regressions were added test-first: the facts block borrowing |
| 431 | an older candidate's gate, a truncated hosted log being styled as a header, |
| 432 | and a merge-card confirmation surviving a task revision change. The focused |
| 433 | run failed four assertions before the fixes, then passed 23 tests. Removing |
| 434 | each fix separately also failed its assertions: `facts-current-candidate`, |
| 435 | `truncated-hosted-is-log`, and `merge-card-task-revision` (three more mutations). |
| 436 | A truncated prefix remains in the bounded monospaced log view; only an actual |
| 437 | Hosted CI header is rendered as the summary. Merge card confirmations now bind |
| 438 | both the task revision and the existing card revision. |
| 439 | |
| 440 | The four Go mutations also failed the intended mapping assertions: |
| 441 | `hosted-mapping-absent`, `hosted-drop-name`, `hosted-local-exposed`, and |
| 442 | `hosted-omit-guard`. They ran with `go test -overlay=<mutation.json> |
| 443 | ./internal/equipo/chat -run '^TestStepHostedDeviceView' -count=1`, under |
| 444 | `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0`; overlays isolate them from other reads |
| 445 | without changing the checked-out source. The unmutilated mapping and device |
| 446 | contract tests were run again afterwards. **38 delta mutations killed: 34 |
| 447 | native and 4 Go.** The ten review survivors are all represented, including both |
| 448 | last/current-candidate selectors and both model-level confirmations. |
| 449 | |
| 450 | Final native gate: `native/scripts/check-native.sh` passed, 316 tests in 41 |
| 451 | suites (one existing known issue), 485 catalog strings, 327 exact web parity |
| 452 | strings, and both native builds. The rebuilt Mac bundle passed and was captured |
| 453 | through its own NSWindow. TaskViewUI ran all five scenarios: Overview/menu/Merge, |
| 454 | local failing Checks, hosted Checks, Cancel confirmation, and large-type tabs. |
| 455 | The first hosted UI assertion counted accessibility text-view objects (8 rather |
| 456 | than 2), although both log boxes were visibly correct. It now checks the actual |
| 457 | visible text of both jobs; rerunning that test passed. The other four scenarios |
| 458 | passed on the first run. All captures were inspected and replaced in |
| 459 | `site/build/slice3/`; the new additional captures are `iphone-checks-hosted.png` |
| 460 | and `iphone-cancel-confirmation.png`. The fixture process and isolated simulator |
| 461 | were stopped after capture. |
| 462 | |
| 463 | `make test` was attempted locally. The repository-wide command cannot pass on |
| 464 | Darwin: a direct `go test ./internal/toolproxy` reproduces the existing |
| 465 | `undefined: unix.O_PATH` compilation error at stdio.go:112 and :118. After |
| 466 | 11 minutes the broad command was still running thin tests; its own process |
| 467 | group was stopped once that platform blocker was confirmed. No Linux test |
| 468 | result is inferred from the interrupted local run. Linux hub CI remains the |
| 469 | required verdict. The focused changed-package tests pass on this Mac. |
| 470 | |
| 471 | Final changed-package validation: `go test ./internal/equipo/chat |
| 472 | ./internal/wire/...` passed with Go 1.26.11 and CGO disabled. `make perf` ran |
| 473 | TestPerfScreens and TestPerfBoot but the repository-wide command failed on the |
| 474 | same Darwin toolproxy compilation issue; no route or performance budget was |
| 475 | changed. Final `make fmt-check budget` passed. Gate logs and the individual |
| 476 | mutation transcripts are retained in `site/build/slice3/delta-validation/`. |
| 477 | There are no outstanding copy questions. No merge or release was performed. |
| 478 | |