fix(agent): require durable tenant evidence before apply
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 2m34s
CD Pipeline / build-and-deploy (push) Successful in 5m24s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 33s
CD Pipeline / post-deploy-checks (push) Successful in 3m1s

This commit is contained in:
ogt
2026-07-10 21:04:20 +08:00
parent 4c572aa57c
commit d26bf5515a
12 changed files with 402 additions and 59 deletions

View File

@@ -694,7 +694,10 @@ async def _persist_fallback_snapshot(
"""
incident_id = _get_incident_id(incident)
try:
snapshot = EvidenceSnapshot(incident_id=incident_id)
snapshot = EvidenceSnapshot(
incident_id=incident_id,
project_id=str(getattr(incident, "project_id", None) or "awoooi"),
)
snapshot.post_execution_state = post_state
snapshot.verification_result = result
snapshot.matched_playbook_id = _extract_playbook_id(action_taken)