{ "date": "2026-11-05", "behavior": "Expired remote scanner tasks no longer leave permanent native workflow occupations. Reconcile task_not_found on exact endpoint only after two explicit healthy idle snapshots, then confirm every assigned robot through existing release path. Retry terminal STOP_PENDING native flows every 15 seconds.", "commandHistory": "Preserve UNKNOWN or original FAILED result and error; store recovery proof; never replay old command or claim SDK success.", "guards": [ "only HTTP404 with task_not_found", "explicit scanning/busy/restartRequired/stateUncertain/calibrationActive false", "stable state/session/project across reads", "connected SDK with explicit online feedback or explicitly disconnected SDK", "matching original command key/taskId/endpoint/owner and compare-and-set journal update", "no active context, unfinished node thread or assigned robot lock", "all robots must confirm stop before releasing whole owner" ], "tests": { "ScannerExpiredTaskRecoveryTest": { "tests": 7, "failures": 0, "errors": 0, "skipped": 0 }, "ScannerIntegrationTest": { "tests": 42, "failures": 0, "errors": 0, "skipped": 0 }, "FlowControlServiceTest": { "tests": 4, "failures": 0, "errors": 0, "skipped": 0 }, "FlowFailedOccupationTest": { "tests": 8, "failures": 0, "errors": 0, "skipped": 0 }, "FlowStopOccupationTest": { "tests": 6, "failures": 0, "errors": 0, "skipped": 0 }, "ScanResourceServiceTest": { "tests": 16, "failures": 0, "errors": 0, "skipped": 0 } }, "deployment": "final development package deployed; health and login passed", "realHardwareVerification": "not performed; tests use local HTTP simulator and H2 resource database", "frontend": "resource occupations refresh automatically every 15 seconds, skip hidden/inactive pages and duplicate requests", "testTotal": 83, "frontendVerification": { "typecheck": "passed", "build": "passed", "ui": "actual resource occupations page confirmed automatic refresh explanation and manual refresh", "screenshot": ".local/expired-task-auto-release-ui.png" }, "postflightScanner": { "state": "restart_required", "scanning": false, "busy": false, "restartRequired": true, "stateUncertain": true } }