fix(awooop): persist signal metadata and auto-repair prestate
Some checks failed
Code Review / ai-code-review (push) Successful in 11s
CD Pipeline / tests (push) Successful in 1m14s
CD Pipeline / build-and-deploy (push) Failing after 3m33s
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-05-18 10:59:54 +08:00
parent 5c240744eb
commit 1a2b04f5cf
8 changed files with 302 additions and 37 deletions

View File

@@ -208,10 +208,28 @@ class PostExecutionVerifier:
timeout=TOOL_TIMEOUT_SEC,
)
snapshot.pre_execution_state = state
try:
await snapshot.update_pre_execution(state)
except Exception as exc:
logger.warning(
"verifier_pre_state_persist_failed",
incident_id=incident_id,
snapshot_id=snapshot.snapshot_id,
error=str(exc),
)
logger.debug("verifier_pre_state_captured", incident_id=incident_id)
except Exception:
logger.warning("verifier_pre_state_failed", incident_id=incident_id)
snapshot.pre_execution_state = {}
try:
await snapshot.update_pre_execution({})
except Exception as exc:
logger.warning(
"verifier_empty_pre_state_persist_failed",
incident_id=incident_id,
snapshot_id=snapshot.snapshot_id,
error=str(exc),
)
async def _collect_post_state(self, incident: "Incident") -> dict[str, Any]:
"""