| 1 | # Changed-file facts follow-ups |
| 2 | |
| 3 | Branch `changes/facts-followups`, fresh worktree from main `478e0055`. |
| 4 | No new copy, server routes, runner protocol, or merge-authority changes. |
| 5 | |
| 6 | The Changed files tab retains the last detail facts while a newer list revision |
| 7 | for the same candidate is being read. The task's status and action rules still |
| 8 | use the current revision; stale detail facts never enable a stale action. |
| 9 | A different candidate drops the displayed facts immediately. A completed detail |
| 10 | read replaces the retained facts, including a response without facts. A failed |
| 11 | read leaves same-candidate facts visible alongside the existing read failure. |
| 12 | |
| 13 | Both path validators reject U+061C through the shared change-paths.json fixture. |
| 14 | Other valid format characters, including ZWJ emoji names, remain accepted. |
| 15 | |
| 16 | ## Verification |
| 17 | |
| 18 | Only focused tests run locally while the shared Mac is loaded. No simulators |
| 19 | or fixture apps are started. Go uses GOMAXPROCS=2, GOTOOLCHAIN=go1.26.11, |
| 20 | CGO_ENABLED=0 and -p 1. Swift uses --jobs 2 and named test filters. |
| 21 | |
| 22 | Test-first: TestChangePathSharedCases failed for U+061C before the Go validator |
| 23 | change, then passed. Native tests cover a suspended detail read, candidate |
| 24 | change, failed read, completed replacement and missing-facts fallback; all three |
| 25 | non-truncated totals; grouping at 9, 10 and 11 files; and malformed optional |
| 26 | change_files objects, arrays, scalars and nested fields without losing the step. |
| 27 | |
| 28 | Native red run failed the U+061C path/rename cases and the three same-candidate |
| 29 | retention assertions. The implementation then passed all 15 focused tests in |
| 30 | the ChangeFilesTests and ChangeFilesRefreshTests suites. The read fixture uses |
| 31 | continuations to hold and finish a real model request; it has no timing sleeps. |
| 32 | No screenshot is needed to prove the pending-read behavior, and no simulator |
| 33 | was started. |
| 34 | |
| 35 | Commands: |
| 36 | |
| 37 | - `go test -p 1 ./internal/wire -run '^TestChangePathSharedCases$' -count=1` |
| 38 | with the Go environment above: red, then green. |
| 39 | - `swift test --package-path native/apple --jobs 2 --filter |
| 40 | 'ChangeFilesTests|ChangeFilesRefreshTests'`: red, then green. |
| 41 | - Each mutation runs only its named test with the same Go/Swift limits; |
| 42 | the mutation script restores each source file in a finally block. |
| 43 | |
| 44 | All eight mutations were killed: |
| 45 | |
| 46 | 1. Remove the non-truncated totals equality check: all three totals fail. |
| 47 | 2. Group lists shorter than eleven files: the 9/10-file assertions fail. |
| 48 | 3. Delay grouping until twelve files: the 11-file assertion fails. |
| 49 | 4. Throw on malformed change_files instead of dropping the optional field: |
| 50 | the step-decode regression fails. |
| 51 | 5. Accept U+061C natively: shared path and rename-source assertions fail. |
| 52 | 6. Drop retained facts during the next detail read: pending-read assertions fail. |
| 53 | 7. Retain facts after the candidate changes: candidate-change assertion fails. |
| 54 | 8. Accept U+061C in Go: TestChangePathSharedCases fails. |
| 55 | |
| 56 | Individual commands, failure logs and results are archived under |
| 57 | `site/build/slice5/followups/validation/`. Full local suites and simulator runs |
| 58 | are intentionally omitted under the controller's machine-load ruling; Linux |
| 59 | CI is the final gate. The focused suites are rerun after restoring mutations. |
| 60 | |
| 61 | Final restored-source results: the two focused Go tests passed (0.216s), and |
| 62 | all 15 focused native tests passed (0.289s). No new copy or outstanding copy |
| 63 | questions. No runtime processes or simulator resources were created. |
| 64 | |