Retain attended preflight failure diagnostics before a safe retry
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a09cbb-87c6-7900-a145-4ce53ba9f1a6
This commit is contained in:
codex 2026-09-14 03:46:29 +02:00
parent 68a059c730
commit e0e4d88234
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,9 @@
{
"observed_at": "2026-09-14T01:32:22.293884+00:00",
"status": "failed",
"phase": "scoped_reader_delivered",
"credential_values_emitted": false,
"reader_effective_policy_verified": true,
"existing_kv_version": 1,
"failure_code": "attended_admin_failed"
}

View file

@ -124,6 +124,9 @@ def admin(directory,negative):
receipt['health_after']=health();receipt['status']='passed';receipt['phase']='all_actions_completed'
except Exception as exc:
receipt['failure_type']=type(exc).__name__
import traceback
frame=traceback.extract_tb(exc.__traceback__)[-1]
receipt['failure_location']=frame.filename+':'+str(frame.lineno)
# Only explicit local codes are eligible; no backend exception text is exported.
if type(exc) is ValueError and str(exc).replace('_','').isalnum():receipt['failure_code']=str(exc)
raise