oficina / equipo Public
Native task view release follow-ups
Branch native/task-view-followups, from main 77e56eb2, in its own physical TMPDIR worktree. This follows the controller's 2026-11-26 ruling after slice 3 landed. No merge to main, deployment or release.
Behavior
The latest open merge, direction or held card takes priority. Only when none exists does the latest open question appear in the pinned decision area. Questions reuse LiveQuestionCard, including arbitrary model-written options, free-text answers and remembered project names, as before slice 3. Unknown card kinds do not displace a known decision or question.
For cards with protocol-defined choices, any unknown option makes the whole card use the existing web fallback. No known choice is left available while another choice is hidden. Question options are model text, not protocol enums.
Hosted marker names and stored failed names use the same whitespace collapse and 120-byte UTF-8 clip as runner/thin/judge_hosted.go. Clipping removes whole Unicode scalars, not bytes or extended grapheme clusters. The older-payload Failed header fallback uses the same normalization. Original bounded log lines, including unnormalized markers, remain intact and in order.
The ordinary answer path uses sendAnswer's busy guard directly. Merge still checks busy before creating a confirmation. Confirm preserves its pending intent while another operation is busy. This removes a redundant outer guard that made the sendAnswer guard unreachable in isolation during mutation tests.
No new copy, API fields, routes or server behavior.
Test-first verification
Command: swift test --package-path native/apple --filter 'TaskDecisionTests|HostedSectionTests|TaskDetailModelTests'.
Before implementation, 28 tests ran with 19 assertion failures: question fallback, whole-card fallback, and hosted name normalization. The busy regressions already passed against the existing guards. After implementation, all 28 passed. The tests include merge priority over a newer question, a question alone, closed-question exclusion, mixed known/unknown options for merge/direction/held, double spaces and tabs on either side of hosted matching, over-120-byte names on either side, and a multibyte scalar crossing byte 120. Every normalized section test reconstructs the original log byte-for-byte.
Mutation commands, results and final gates follow below.
Mutations
python3 "$TMPDIR/task-followups-mutate.py" applies each mutation separately, runs swift test --package-path native/apple --filter <suite>, requires an assertion failure (not a compiler error), and restores the source in finally. All ten were killed:
| Mutation | Suite | Result | | --- | --- | --- | | Remove the question fallback | TaskDecisionTests | Assertion failure | | Put questions in the priority group | TaskDecisionTests | Assertion failure | | Skip unknown direction/held choices | TaskDecisionTests | Assertion failure | | Filter unknown merge choices before presentation | TaskDecisionTests | Assertion failure | | Stop normalizing marker names | HostedSectionTests | Assertion failure | | Stop normalizing stored/header names | HostedSectionTests | Assertion failure | | Remove whitespace collapse | HostedSectionTests | Assertion failure | | Clip by character count instead of UTF-8 bytes | HostedSectionTests | Assertion failure | | Remove confirm's busy guard | TaskDetailModelTests | Assertion failure | | Remove sendAnswer's busy guard | TaskDetailModelTests | Assertion failure |
The two busy survivors are now independently killed through public model operations without exposing private implementation to tests.
Gates
native/scripts/check-native.sh passed: 319 tests in 41 suites with the one pre-existing known issue, 327 byte-identical web strings, fixture/schema and markdown checks, Mac build, and unsigned iPhone Simulator build. No new copy. git diff --check passed. Linux hub CI is checked on the pushed commit.
Logs and the reproducible mutation script are archived under site/build/slice3/delta-validation/task-view-followups/ in the audit checkout.