Retain build failure occurrences in failed manifests and preserve the
manifest-write error alongside the original preparation failure.
Bound diagnostic text, escape terminal controls, and keep Unicode pairs
intact. Validate optional traces and partial evidence before encoding, with
explicit diagnostics for unsupported or excessive data.
Preserve completed phase evidence and owner cleanup when bridge encoding
fails. Retain raw numeric observations, including NaN and infinities, and
keep the newest log-tail evidence after escaping.
AI-assisted-by: gpt-6.1-sol
- Improve timeout handling, error status preservation and artefact
saving after failures and interruptions
- Some refactoring for readability
- Improve tests
AI-assisted-by: gpt-6.1-sol, claude-5.5-sonnet, deepseek-flash