Preserve tool result failure status across conversations

Merged
DR
3mo ago
+128-22

Closes #334.

Tool result stream events know whether execution succeeded, failed, or was denied, but the persisted ToolResult payload did not retain success and error metadata. After a conversation reload, failed results therefore looked the same as successful ones.

This keeps status on the ToolResult value object, serializes only non-default fields, remains compatible with legacy payloads, and makes max-step and approval failure paths populate the same metadata.

Validation:

  • Added failing-first value-object and database reload regressions
  • Unit and Feature suites: 1,883 passed, 24 skipped, 3,935 assertions
  • Pint and PHPStan pass

Provider integration tests require live credentials and were not part of deterministic local validation.