fix(agent): surface work order recovery readbacks
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 37s
CD Pipeline / build-and-deploy (push) Failing after 2m31s
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-06-30 23:01:05 +08:00
parent 780ad71ed1
commit 0708602c00
2 changed files with 79 additions and 10 deletions

View File

@@ -550,6 +550,18 @@ def apply_ai_loop_current_blocker_execution_queue(
state["ai_loop_current_blocker_control_path_blocker"] = external_blocker
state["ai_loop_current_blocker_runtime_write_gate"] = runtime_write_gate
state["ai_loop_current_blocker_learning_target_count"] = len(learning_targets)
state["ai_loop_current_blocker_local_console_phase_count"] = len(
local_console_plan
)
state["ai_loop_current_blocker_local_console_phase_ids"] = (
local_console_phase_ids
)
state["ai_loop_current_blocker_post_recovery_readback_command_count"] = len(
post_recovery_readback_commands
)
state["ai_loop_current_blocker_forbidden_runtime_action_count"] = len(
forbidden_runtime_actions
)
state["active_p0_live_active_blockers"] = _unique_strings(
_strings(state.get("active_p0_live_active_blockers"))
+ ["ai_loop_current_blocker_execution_queue"]
@@ -622,13 +634,12 @@ def apply_ai_loop_current_blocker_execution_queue(
)
professional_fix = _dict(workplan.setdefault("professional_fix", {}))
professional_fix["action"] = (
"Run the AI Loop current blocker package in order: verify 110 "
"control path, execute "
f"{controlled_recovery_package}, run {post_apply_verifier}, then "
"rerun Harbor queue / registry /v2/ / deploy-marker readbacks and "
"write metadata-only KM/RAG/MCP/PlayBook receipts. Do not restart "
"Docker daemon, reboot hosts, drain nodes, switch registry "
"provider, trigger workflows, or read runner tokens from this lane."
"Run the AI Loop current blocker package in order: "
f"{', '.join(local_console_phase_ids)}, then rerun "
"Harbor queue / registry /v2/ / deploy-marker readbacks and write "
"metadata-only KM/RAG/MCP/PlayBook receipts. Do not restart Docker "
"daemon, reboot hosts, drain nodes, switch registry provider, "
"trigger workflows, or read runner tokens from this lane."
)
professional_fix["owner"] = (
"AI Loop current blocker queue plus P0-006 Harbor/110 control path"
@@ -639,8 +650,8 @@ def apply_ai_loop_current_blocker_execution_queue(
(
"P0-006-AI-LOOP-CURRENT-BLOCKER-EXECUTION-QUEUE: execute the "
f"{blocker_id} queue item through 110 control-path readback, "
"ordered local-console phases, bounded recovery package check-mode, "
"post-apply verifier, and metadata-only KM/RAG/MCP/PlayBook writeback."
f"{len(local_console_plan)} ordered local-console phases, post-recovery "
"readback commands, and metadata-only KM/RAG/MCP/PlayBook writeback."
),
(
"P0-006-HARBOR-REGISTRY-CONTROLLED-RECOVERY-PREFLIGHT: after the "