feat(agent): expose harbor receipt input contract
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 33s
CD Pipeline / build-and-deploy (push) Failing after 2m36s
CD Pipeline / post-deploy-checks (push) Has been skipped
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 33s
CD Pipeline / build-and-deploy (push) Failing after 2m36s
CD Pipeline / post-deploy-checks (push) Has been skipped
This commit is contained in:
@@ -66,6 +66,10 @@ def _assert_executor_readback(payload: dict, *, public_endpoint: bool = False):
|
||||
assert payload["rollups"]["current_blocker_execution_queue_count"] == 1
|
||||
assert payload["rollups"]["current_blocker_control_path_blocked_count"] == 1
|
||||
assert payload["rollups"]["current_blocker_local_recovery_package_count"] == 1
|
||||
assert (
|
||||
payload["rollups"]["current_blocker_harbor_recovery_receipt_input_count"]
|
||||
== 6
|
||||
)
|
||||
assert payload["rollups"]["runtime_dispatch_performed"] is False
|
||||
|
||||
batches = {batch["target"]: batch for batch in payload["execution_batches"]}
|
||||
@@ -120,6 +124,27 @@ def _assert_executor_readback(payload: dict, *, public_endpoint: bool = False):
|
||||
assert current_queue[0]["post_apply_verifier"] == (
|
||||
"check-awoooi-110-controlled-cd-lane-readiness.sh"
|
||||
)
|
||||
assert current_queue[0]["harbor_recovery_receipt_endpoint"] == (
|
||||
"/api/v1/agents/harbor-registry-controlled-recovery-receipt"
|
||||
)
|
||||
assert current_queue[0]["harbor_recovery_receipt_input_count"] == 6
|
||||
assert [
|
||||
item["input_id"]
|
||||
for item in current_queue[0]["harbor_recovery_receipt_inputs"]
|
||||
] == [
|
||||
"gitea_actions_queue_readback",
|
||||
"ssh_local_repair_output",
|
||||
"watchdog_check_output",
|
||||
"watchdog_repair_output",
|
||||
"public_registry_v2_http_status",
|
||||
"internal_registry_v2_http_status",
|
||||
]
|
||||
assert all(
|
||||
item["metadata_only"] is True
|
||||
and item["raw_output_allowed"] is False
|
||||
and item["secret_value_allowed"] is False
|
||||
for item in current_queue[0]["harbor_recovery_receipt_inputs"]
|
||||
)
|
||||
assert [phase["phase_id"] for phase in current_queue[0][
|
||||
"controlled_local_console_execution_plan"
|
||||
]] == [
|
||||
|
||||
@@ -318,6 +318,24 @@ def test_awoooi_priority_work_order_readback_overlays_ai_loop_current_blocker_qu
|
||||
"curl -k https://registry.wooo.work/v2/",
|
||||
"curl http://192.168.0.110:5000/v2/",
|
||||
]
|
||||
assert evidence["ai_loop_current_blocker_harbor_recovery_receipt_endpoint"] == (
|
||||
"/api/v1/agents/harbor-registry-controlled-recovery-receipt"
|
||||
)
|
||||
assert evidence["ai_loop_current_blocker_harbor_recovery_receipt_input_count"] == 6
|
||||
assert evidence["ai_loop_current_blocker_harbor_recovery_receipt_input_ids"] == [
|
||||
"gitea_actions_queue_readback",
|
||||
"ssh_local_repair_output",
|
||||
"watchdog_check_output",
|
||||
"watchdog_repair_output",
|
||||
"public_registry_v2_http_status",
|
||||
"internal_registry_v2_http_status",
|
||||
]
|
||||
assert all(
|
||||
item["metadata_only"] is True
|
||||
and item["raw_output_allowed"] is False
|
||||
and item["secret_value_allowed"] is False
|
||||
for item in evidence["ai_loop_current_blocker_harbor_recovery_receipt_inputs"]
|
||||
)
|
||||
assert "workflow_dispatch_from_this_endpoint" in evidence[
|
||||
"ai_loop_current_blocker_forbidden_runtime_actions"
|
||||
]
|
||||
@@ -331,6 +349,15 @@ def test_awoooi_priority_work_order_readback_overlays_ai_loop_current_blocker_qu
|
||||
assert payload["summary"][
|
||||
"ai_loop_current_blocker_post_recovery_readback_command_count"
|
||||
] == 3
|
||||
assert (
|
||||
payload["summary"][
|
||||
"ai_loop_current_blocker_harbor_recovery_receipt_input_count"
|
||||
]
|
||||
== 6
|
||||
)
|
||||
assert payload["summary"][
|
||||
"ai_loop_current_blocker_harbor_recovery_receipt_input_ids"
|
||||
][0] == "gitea_actions_queue_readback"
|
||||
assert payload["summary"][
|
||||
"ai_loop_current_blocker_forbidden_runtime_action_count"
|
||||
] == 6
|
||||
@@ -338,6 +365,7 @@ def test_awoooi_priority_work_order_readback_overlays_ai_loop_current_blocker_qu
|
||||
"P0-006-AI-LOOP-CURRENT-BLOCKER-EXECUTION-QUEUE"
|
||||
)
|
||||
assert "5 ordered local-console phases" in payload["next_execution_order"][0]
|
||||
assert "Harbor receipt inputs" in payload["next_execution_order"][0]
|
||||
|
||||
|
||||
def test_awoooi_priority_work_order_readback_overlays_live_stockplatform_drift():
|
||||
|
||||
Reference in New Issue
Block a user