fix(awooop): persist signal metadata and auto-repair prestate
This commit is contained in:
@@ -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]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user