Retain attended preflight failure diagnostics before a safe retry
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a09cbb-87c6-7900-a145-4ce53ba9f1a6
This commit is contained in:
parent
68a059c730
commit
e0e4d88234
2 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue