oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

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