fix(agent): queue bounded host pressure handoff
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m28s
CD Pipeline / build-and-deploy (push) Successful in 6m49s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 13s
CD Pipeline / post-deploy-checks (push) Successful in 1m59s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m28s
CD Pipeline / build-and-deploy (push) Successful in 6m49s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 13s
CD Pipeline / post-deploy-checks (push) Successful in 1m59s
This commit is contained in:
@@ -1225,9 +1225,21 @@ class RepairCandidateService:
|
||||
}
|
||||
and repair_template.startswith("agent99-mode ")
|
||||
)
|
||||
rollback_template = str(
|
||||
template.get("rollback_command_template") or ""
|
||||
).strip()
|
||||
safe_host_pressure_readonly_route = bool(
|
||||
route == "host_pressure_readonly_after_owner_review"
|
||||
and repair_template.startswith(
|
||||
"/home/wooo/scripts/host-sustained-load-controller.py "
|
||||
)
|
||||
and "systemctl restart" not in repair_template.lower()
|
||||
and rollback_template.startswith("no host mutation")
|
||||
)
|
||||
if (
|
||||
"playbook_command_not_safely_routable" in set(blockers)
|
||||
and not safe_agent99_route
|
||||
and not safe_host_pressure_readonly_route
|
||||
):
|
||||
return False
|
||||
if not coverage_gap.get("mcp_evidence_ready"):
|
||||
@@ -1241,7 +1253,9 @@ class RepairCandidateService:
|
||||
return False
|
||||
if repair_template.startswith("service-specific repair"):
|
||||
return False
|
||||
return route.endswith("_after_owner_review")
|
||||
return safe_host_pressure_readonly_route or route.endswith(
|
||||
"_after_owner_review"
|
||||
)
|
||||
|
||||
def _build_playbook_draft_template(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user