feat: publish self-correcting agent Node Results #340

Closed
opened 2026-07-15 15:56:54 +02:00 by dries · 0 comments
Owner

Parent

#337

What to build

Publish agent final messages as canonical Node Results. If the final message is not valid JSON, ask the same session once for a corrected result, then fail if the correction is also invalid.

Acceptance criteria

  • A valid agent final message is decoded as the Node Result output without losing JSON types.
  • Ocman supplies trusted envelope metadata rather than accepting it from the agent.
  • The first invalid response receives the agreed corrective message in the same session.
  • A corrected JSON response succeeds.
  • A second invalid response fails with an error output and no further message.
  • Service and server-level tests prove correction and terminal behavior.

Blocked by

## Parent #337 ## What to build Publish agent final messages as canonical Node Results. If the final message is not valid JSON, ask the same session once for a corrected result, then fail if the correction is also invalid. ## Acceptance criteria - [ ] A valid agent final message is decoded as the Node Result output without losing JSON types. - [ ] Ocman supplies trusted envelope metadata rather than accepting it from the agent. - [ ] The first invalid response receives the agreed corrective message in the same session. - [ ] A corrected JSON response succeeds. - [ ] A second invalid response fails with an error output and no further message. - [ ] Service and server-level tests prove correction and terminal behavior. ## Blocked by - #339
dries closed this issue 2026-07-16 00:56:11 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dries/ocman#340
No description provided.