fix(agent99): reconcile live cold-start dispatches
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m8s
CD Pipeline / build-and-deploy (push) Successful in 13m33s
CD Pipeline / post-deploy-checks (push) Has been cancelled

This commit is contained in:
ogt
2026-07-15 03:18:09 +08:00
parent 66aeb34bf6
commit 29072e4004
11 changed files with 300 additions and 73 deletions

View File

@@ -225,6 +225,13 @@ async def test_webhook_router_never_queues_generic_ansible_for_cold_start(
incident_lookup.assert_not_awaited()
bridge.assert_awaited_once()
assert handoff["single_writer_executor"] == "Agent99"
assert handoff["policy_route_id"] == "agent99_recover_after_owner_review"
assert handoff["route_id"] == "agent99:host_recovery:Recover"
assert bridge.await_args.kwargs["route_id"] == "agent99:host_recovery:Recover"
assert bridge.await_args.kwargs["work_item_id"] == (
"agent99-dispatch:awoooi:INC-20260711-11C751:"
"agent99:host_recovery:Recover"
)
assert handoff["execution_priority"] == 30
assert handoff["queued"] is True
assert handoff["runtime_execution_authorized"] is False