Files
CyberGril/docs/rework/hel879/regression-close-ownership.json
T
zonggongandmultica-agent 7f66015ac8 HEL-879 unified voice candidate assembled and verified on hel-879-assembly (isolated branch; PR#11 and hel-870-assembly untouched) - the merge brings exactly the audited HEL-877 voice backend (aba2aeb: src/cybergril/voice module with zero new dependencies, byte-identical to the author's head) and the HEL-897-verified voice frontend (c61d9c9: web/src byte-identical to the original author's head - the CSS hash change to index-BpZaybfD.css is entirely the author's own components.css +21 lines, no visual rework by this card); the one integration adjustment is test-harness alignment, not a product change: the voice adapter fixtures and verify_hel877_voice_chain.py built their router without a budget config, which the mainline's HEL-882 hard gate (guard.acquire before every real send) now correctly refuses at cap 0 - they now use the same tests/conftest.engineering_budget() every mainline test uses, no gate weakened, no src change on either author's side; full battery rerun on the assembled head: pytest 324/324 (299 mainline + 25 voice), ruff clean, web typecheck 0 errors / lint 0 errors 1 pre-existing warning / vitest 88/88 / build passes, real-server browser 9/9 with the HEL-896 precise-interaction revision (reach card over real HTTP, stage plays the reach-out, unread clears, message-id dedup, restart epoch+1, zero permission API calls, zero non-loopback outbound - evidence docs/rework/hel879/browser/), verify_hel877_voice_chain 8/8 offline full-chain, the .12 livekit-agents 1.8.8 real-SDK stdin check regenerated from THIS head's sources 8/8 ALL PASS (zero writes zero network), check_release_offline R1-R7 passes, pinned-SDK regressions on hel857-venv all green (close-ownership 16/16, shutdown-queued 12/12, inflight 6/6, semantic-recovery 7/7, mem0-real 12/12 - the seal change is exercised through the same PersistentBudget paths), requirement checks 4/4 (origin/main and c121c42, each with and without handoff-HEL-879.json); release-artifacts.json records the exact release code commit (01ff919), the tarball sha256 measured equal to the lock, and the cache-reusable wheels reverified with content digests after the disk-recovery cache incident; honest gaps kept open: real-call acceptance untested and unauthorized (D1 voice, trusted HTTPS device path, budgets), LiveKit room/worker release after API restart still lacks real-environment evidence (_prune only drops the in-memory registry, end_session does delete_room), incremental subtitles remain a contract gap not a completed feature, CG-011 proactive voice stays an explicit no-op; zero real LLM/embed/ASR/TTS, zero downloads, no mic, no service started or stopped on any shared machine, not deployed, nothing merged, authoritative ledgers/freezes/HEL-835 gate untouched, real caps stay 0
Co-authored-by: multica-agent <github@multica.ai>
2026-10-27 03:36:37 +08:00

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": []
}