6.3 KiB
Release test migration review — 2026-10-19
Scope and method
Reviewed the current working-tree migration of tests/ui, the VBS harness changes in tests/v1_1/test_accuracy_vbs_guards.py, and the execution lease expectation in tests/trial_task_center/test_permanent_delete.py. Compared removed assertions with current production behavior and the existing current UI tests named in the review request. Also inspected related query-cancellation, replacement-log, and Value-policy coverage where relevant.
No tests or CAD were run. No source files or Git state were changed. This report is the only output written for this review.
Assessment
Approved with one nonblocking coverage recommendation. No Critical or Important findings. The migration mostly replaces obsolete UI contracts and synchronous assumptions with current project-task behavior. Passing counts alone were not used as evidence of equivalent coverage.
The review reflects the final current contents, including the retained three-case test_unresolved_queue_evidence_is_retained_after_task_purge. An earlier intermediate diff omitted that test; it is present in the reviewed result.
Safety and behavior mapping
| Original intent | Current evidence | Review |
|---|---|---|
| Confirm before replacement; cancellation dispatches nothing | Migrated workflow parameterizes accept/decline and checks worker calls plus completion | Preserved |
| Do not execute a stale Value policy | Migrated workflow tests both Value policy directions and requires zero worker calls; backend Value tests retain expected-item binding | Preserved with the current fail-closed behavior |
| A no-match job completes as a skip | Migrated workflow checks queue completion, no-match count, and new-round availability | Preserved |
| Mapping enablement changes persisted rules and execution gates | Migrated model-based toggle test checks persistence and disabled execution | Preserved without removed cell widgets |
| Navigation and worker ownership are safe | Migrated tests cover mutation navigation lock and execution browsing; current responsiveness tests cover stale task/log results, execution completion after switching, and owner naming | Preserved for supported UI paths |
| Closing cannot abandon execution or cleanup | Migrated close test requires boundary pause and ignored close; remediation/lifecycle tests retain cleanup waiting, cancellation, and unsaved-plan protection | Preserved |
| Interrupted work offers recovery and cannot be repeated after declining recovery | Migrated shell test retains recovery visibility, disabled execution, unchanged lock, and zero worker calls | Preserved |
| Permanent deletion requires explicit confirmation and rechecks state | Migrated recycle tests check default No, decline/accept, and concurrent restore; backend retains confirmation, deleted-state, rollback, evidence-retention, and project-file checks | Preserved |
| Permanent deletion cannot overlap execution | Replacement lease test checks quick_run_busy, unchanged task/rules while leased, then success after release |
Strengthened to match the current service gate |
| Readable operator errors and logs | Migrated tests retain reason/error ID and formatting; current responsiveness/replacement-log tests retain task separation, saved-vs-unverified distinctions, and completed-task reopen behavior | Preserved |
| Current layout and policy controls remain usable | Migrated tests cover task-local Value policy, custom Value/NC, optional Cell, current splitters/log dialog, and column persistence; workspace tests cover narrow-window plan visibility | Preserved for the current layout |
Justified removals
- Multi-project table selection, scan, filtering, per-project skip/retry, and manual capture controls are absent from the current one-project task shell. Current project-task tests explicitly require several of these old controls to be absent and exercise directory selection and target-plan editing instead.
- Backup override controls and
_continue_without_backupno longer exist in the current UI. Removing tests for their dispatch does not weaken the current UI contract. Backend backup failure and explicit override behavior have separate tests. - Old tests that dispatch overlapping mutation workers to test shared-button generations do not match current
_run_async, which rejects another mutation while_workersis nonempty. Current mutation navigation locking and asynchronous query ownership tests target the supported concurrency model. - Old imports of formatting helpers from
main_windowwere moved to their actual owner,ui.messages. The formatting assertions remain intact. - The VBS harness changes add the real
QPTargetCell/QPDecoderoutines now required by the extracted production routines. They do not replace production logic with stubs, relax expectations, add skips, or suppress errors.
Findings
Critical
None.
Important
None.
Minor — retain a mutation-worker destruction regression when convenient
The removed test_worker_completion_does_not_touch_widgets_after_window_destruction checked forced deleteLater() while a mutation worker was blocked. The migrated workflow close test (tests/ui/test_trial_task_center_workflow.py:63) covers an ordinary close request that is refused until completion. test_deleted_receiver_does_not_receive_worker_completion in the query-cancellation suite protects LatestQuery, a different implementation from the main window's ServiceWorker callbacks.
An adapted test using a current control would retain this defensive lifecycle coverage. This is nonblocking because current ordinary close handling explicitly waits for workers; the migration preserves that supported user path. No production failure was executed or claimed during this read-only review.
Supplied execution evidence
Read the XML summaries without running tests:
| Report | Tests | Failures | Errors | Skipped |
|---|---|---|---|---|
build/release-legacy-ui-initial-20261019.xml |
47 | 42 | 1 | 0 |
build/release-ui-migrated-final-20261019.xml |
23 | 0 | 0 | 0 |
The initial report is consistent with obsolete controls/imports and asynchronous state assertions. The final 23-test report records a clean migrated UI run. Existing current UI suites were inspected as complementary coverage; their prior release-gate pass status was supplied by the coordinator and was not rerun here.