215 lines
6.8 KiB
JSON
215 lines
6.8 KiB
JSON
{
|
|
"head": "HEL-894 close ownership under cancellation",
|
|
"real_llm_requests": 0,
|
|
"real_embeddings": 0,
|
|
"boundary": "deterministic 512 vectors, non-loopback forbidden",
|
|
"protocol": "drain-phase cancel re-arms; finish-phase cancel keeps markers, refuses ticks, lands the layer-owned close exactly once; lock waiters never touch the owner's state",
|
|
"checks": [
|
|
{
|
|
"name": "F1 cancelled caller does not return before its close lands",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"name": "F1 markers stay: closing set, not yet closed, client untouched",
|
|
"ok": true,
|
|
"detail": "{\"closing\": true, \"closed\": false, \"client_usable\": true}"
|
|
},
|
|
{
|
|
"name": "F1 tick during closing claims nothing and sends nothing",
|
|
"ok": true,
|
|
"detail": "{\"gateway_arrived\": false, \"gateway_posts\": 0, \"llm_used\": 0, \"batch\": {\"state\": \"queued\", \"reason\": null, \"owner\": null, \"attempts\": 0, \"entry_ids\": null}}"
|
|
},
|
|
{
|
|
"name": "F1 layer-owned close lands exactly once, no live workers",
|
|
"ok": true,
|
|
"detail": "{\"closed\": true, \"client_usable\": false, \"live_workers\": 0, \"close_calls\": 1, \"closing_still_set\": true, \"batch\": {\"state\": \"queued\", \"reason\": null, \"owner\": null, \"attempts\": 0, \"entry_ids\": null}}"
|
|
},
|
|
{
|
|
"name": "F1 no late error",
|
|
"ok": true,
|
|
"detail": "None"
|
|
},
|
|
{
|
|
"name": "F1 reopened batch intact and unbilled",
|
|
"ok": true,
|
|
"detail": "{\"state\": \"queued\", \"reason\": null, \"owner\": null, \"attempts\": 0, \"entry_ids\": null, \"row_done\": 0, \"llm_used\": 0}"
|
|
},
|
|
{
|
|
"name": "F2 cancelled caller does not return before its close lands",
|
|
"ok": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"name": "F2 markers stay: closing set, not yet closed, client untouched",
|
|
"ok": true,
|
|
"detail": "{\"closing\": true, \"closed\": false, \"client_usable\": true}"
|
|
},
|
|
{
|
|
"name": "F2 tick during closing claims nothing and sends nothing",
|
|
"ok": true,
|
|
"detail": "{\"gateway_arrived\": false, \"gateway_posts\": 0, \"llm_used\": 0, \"batch\": {\"state\": \"queued\", \"reason\": null, \"owner\": null, \"attempts\": 0, \"entry_ids\": null}}"
|
|
},
|
|
{
|
|
"name": "F2 layer-owned close lands exactly once, no live workers",
|
|
"ok": true,
|
|
"detail": "{\"closed\": true, \"client_usable\": false, \"live_workers\": 0, \"close_calls\": 1, \"closing_still_set\": true, \"batch\": {\"state\": \"queued\", \"reason\": null, \"owner\": null, \"attempts\": 0, \"entry_ids\": null}}"
|
|
},
|
|
{
|
|
"name": "F2 no late error",
|
|
"ok": true,
|
|
"detail": "None"
|
|
},
|
|
{
|
|
"name": "F2 reopened batch intact and unbilled",
|
|
"ok": true,
|
|
"detail": "{\"state\": \"queued\", \"reason\": null, \"owner\": null, \"attempts\": 0, \"entry_ids\": null, \"row_done\": 0, \"llm_used\": 0}"
|
|
},
|
|
{
|
|
"name": "W owner close still pending, waiter cancel keeps the signal",
|
|
"ok": true,
|
|
"detail": "{\"active_close_pending\": true, \"signal_after_waiter_cancel\": true}"
|
|
},
|
|
{
|
|
"name": "W new batch refused during the owner's close",
|
|
"ok": true,
|
|
"detail": "{\"state\": \"queued\", \"reason\": null, \"owner\": null, \"attempts\": 0, \"entry_ids\": null}"
|
|
},
|
|
{
|
|
"name": "W original batch still actively owned while blocked",
|
|
"ok": true,
|
|
"detail": "{\"state\": \"pending\", \"reason\": null, \"owner\": \"a6173b4a79a84dbd6378281c17b23127\", \"attempts\": 1, \"entry_ids\": null}"
|
|
},
|
|
{
|
|
"name": "W original worker completes, one close, new batch untouched",
|
|
"ok": true,
|
|
"detail": "{\"original_batch\": {\"state\": \"done\", \"reason\": null, \"owner\": null, \"attempts\": 1, \"entry_ids\": \"[\\\"494b27cf-6e99-4e9a-ad17-bc4c9d2f42ec\\\"]\"}, \"new_batch_still\": {\"state\": \"queued\", \"reason\": null, \"owner\": null, \"attempts\": 0, \"entry_ids\": null}, \"row_done\": 1, \"gateway_posts_after_release\": 1, \"client_closed\": true}"
|
|
}
|
|
],
|
|
"finish_cancel_sdk_only": {
|
|
"caller_done_after_cancel": false,
|
|
"after_cancellation": {
|
|
"closing": true,
|
|
"closed": false,
|
|
"client_usable": true
|
|
},
|
|
"tick_during_closing": {
|
|
"gateway_arrived": false,
|
|
"gateway_posts": 0,
|
|
"llm_used": 0,
|
|
"batch": {
|
|
"state": "queued",
|
|
"reason": null,
|
|
"owner": null,
|
|
"attempts": 0,
|
|
"entry_ids": null
|
|
}
|
|
},
|
|
"finish_landed": {
|
|
"closed": true,
|
|
"client_usable": false,
|
|
"live_workers": 0,
|
|
"close_calls": 1,
|
|
"closing_still_set": true,
|
|
"batch": {
|
|
"state": "queued",
|
|
"reason": null,
|
|
"owner": null,
|
|
"attempts": 0,
|
|
"entry_ids": null
|
|
}
|
|
},
|
|
"late_worker_error": null,
|
|
"persisted": {
|
|
"state": "queued",
|
|
"reason": null,
|
|
"owner": null,
|
|
"attempts": 0,
|
|
"entry_ids": null,
|
|
"row_done": 0,
|
|
"llm_used": 0
|
|
}
|
|
},
|
|
"finish_cancel_then_store_close": {
|
|
"caller_done_after_cancel": false,
|
|
"after_cancellation": {
|
|
"closing": true,
|
|
"closed": false,
|
|
"client_usable": true
|
|
},
|
|
"tick_during_closing": {
|
|
"gateway_arrived": false,
|
|
"gateway_posts": 0,
|
|
"llm_used": 0,
|
|
"batch": {
|
|
"state": "queued",
|
|
"reason": null,
|
|
"owner": null,
|
|
"attempts": 0,
|
|
"entry_ids": null
|
|
}
|
|
},
|
|
"finish_landed": {
|
|
"closed": true,
|
|
"client_usable": false,
|
|
"live_workers": 0,
|
|
"close_calls": 1,
|
|
"closing_still_set": true,
|
|
"batch": {
|
|
"state": "queued",
|
|
"reason": null,
|
|
"owner": null,
|
|
"attempts": 0,
|
|
"entry_ids": null
|
|
}
|
|
},
|
|
"late_worker_error": null,
|
|
"persisted": {
|
|
"state": "queued",
|
|
"reason": null,
|
|
"owner": null,
|
|
"attempts": 0,
|
|
"entry_ids": null,
|
|
"row_done": 0,
|
|
"llm_used": 0
|
|
}
|
|
},
|
|
"waiter_cancel": {
|
|
"active_close_pending": true,
|
|
"signal_after_waiter_cancel": true,
|
|
"new_batch_during_closing": {
|
|
"state": "queued",
|
|
"reason": null,
|
|
"owner": null,
|
|
"attempts": 0,
|
|
"entry_ids": null
|
|
},
|
|
"original_batch_while_blocked": {
|
|
"state": "pending",
|
|
"reason": null,
|
|
"owner": "a6173b4a79a84dbd6378281c17b23127",
|
|
"attempts": 1,
|
|
"entry_ids": null
|
|
},
|
|
"after_release": {
|
|
"original_batch": {
|
|
"state": "done",
|
|
"reason": null,
|
|
"owner": null,
|
|
"attempts": 1,
|
|
"entry_ids": "[\"494b27cf-6e99-4e9a-ad17-bc4c9d2f42ec\"]"
|
|
},
|
|
"new_batch_still": {
|
|
"state": "queued",
|
|
"reason": null,
|
|
"owner": null,
|
|
"attempts": 0,
|
|
"entry_ids": null
|
|
},
|
|
"row_done": 1,
|
|
"gateway_posts_after_release": 1,
|
|
"client_closed": true
|
|
}
|
|
},
|
|
"failures": []
|
|
} |