am-freescan/docs/scanner-stop-contract-20261105.json

57 lines
2.4 KiB
JSON
Raw Normal View History

{
"date": "2026-11-05",
"contract": {
"ordinaryScanStop": {
"method": "POST",
"path": "/api/v1/scan/stop",
"body": {},
"completion": "poll returned taskId until succeeded, then status must explicitly confirm scanning=false and healthy nonbusy state",
"effect": "pause acquisition; preserve current project and preview"
},
"taskCancellation": "supplier explicitly provides no cancellation endpoint; closing HTTP or terminating platform execution cannot cancel accepted SDK operations",
"disconnect": {
"path": "/api/v1/device/disconnect",
"effect": "end SDK session and in-memory project; requires confirmation and expected session/project; not automatic workflow stop"
},
"calibrationCancellation": "not defined in supplied protocol; supplier must implement safe abort/cancel or provide recovery workflow"
},
"observedFailure": {
"owner": "NATIVE:3c7cd14dd23b253b54350f156a8656c7",
"operation": "CALIBRATION_CAPTURE",
"taskId": "2e0488d2f3b74ddf968a88621797dc76",
"acceptedLocal": "2026-11-05 14:41:45",
"terminalLocal": "2026-11-05 14:46:45",
"error": "sdk_timeout: Sn3DFreeCalibrationCapturePose completion not confirmed; restart required.",
"platformWaitTimeoutMs": 120000
},
"fixes": [
"failed old remote task is preserved as FAILED but no longer skips fresh device-state verification",
"unknown or still-running commands block release and report operation/taskId; no blind resend or competing stop",
"all four scanning/busy/stateUncertain/restartRequired fields require explicit booleans before confirmation",
"SDK uncertainty or restart requirement remains blocking; no forced database unlock"
],
"tests": {
"ScannerIntegrationTest": 38,
"flowStopAndFailureTests": 18,
"ScanResourceServiceTest": 12,
"failures": 0,
"hardwareTesting": "not run; simulated localhost HTTP only"
},
"release": {
"normalStopConfirmationApiCode": 0,
"remainingOccupation": 0,
"supplierStateAtRelease": "disconnected, scanning=false, busy=false, restartRequired=false, stateUncertain=false"
},
"deployment": "development backend deployed; health and login passed",
"postflight": {
"remainingOccupation": 0,
"scannerStatus": {
"state": "busy",
"scanning": false,
"busy": true,
"restartRequired": false,
"stateUncertain": false
}
}
}