Skip to content

[Enhancement]: Standardize tool execution results across Relay #445

Description

@bbednarski9

Goal

Establish a consistent tool-execution result contract across Relay.

Tool results should contain the application-visible result together with optional opaque annotation metadata. The contract should behave consistently across in-process, worker, and native plugin surfaces.

Expected behavior

  • Tool-result annotations remain separate from the application-visible result.
  • Middleware can preserve, replace, or remove annotations.
  • Security and observability components can process the result and annotation independently.
  • Existing continuation, error, short-circuit, and pending-mark behavior remains consistent.
  • Incompatible plugin and Relay versions are rejected with clear migration guidance.

Compatibility

This introduces a breaking semantic contract for tool-execution results. The change must have a documented Relay compatibility boundary, migration guidance, and coverage across all supported plugin surfaces.

Acceptance criteria

  • All tool-execution paths use the standardized result contract.
  • Result and annotation behavior is consistent across plugin boundaries.
  • Sanitization and export behavior are tested independently.
  • Compatibility validation prevents mixing legacy and standardized result semantics.
  • The migration and compatibility expectations are documented.

Activity

  1. self-assigned this
    on Jul 15, 2026
  2. changed the title [-][Enhancement]: Add a provider-neutral annotated tool-result contract[/-] [+][Enhancement]: Carry producer-supplied tool-result annotations through tool intercepts[/+] on Jul 27, 2026
  3. changed the title [-][Enhancement]: Carry producer-supplied tool-result annotations through tool intercepts[/-] [+][Enhancement]: Preserve producer-supplied tool-result annotations through Relay intercepts[/+] on Jul 28, 2026
  4. changed the title [-][Enhancement]: Preserve producer-supplied tool-result annotations through Relay intercepts[/-] [+][Enhancement]: Carry opaque tool-result annotations through Relay intercepts[/+] on Jul 28, 2026
  5. added
    Improvementimprovement to existing functionality
    and removed
    Bugissue describes bug; PR fixes bug
    on Jul 28, 2026
  6. changed the title [-][Enhancement]: Carry opaque tool-result annotations through Relay intercepts[/-] [+][Enhancement]: Add an opaque annotation channel to tool-execution intercepts[/+] on Jul 28, 2026
  7. changed the title [-][Enhancement]: Add an opaque annotation channel to tool-execution intercepts[/-] [+][Enhancement]: Standardize tool execution results across Relay[/+] on Aug 13, 2026
  8. added a commit that references this issue on Aug 13, 2026
    56158e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Improvementimprovement to existing functionalityNeeds TriageIssue needs Triaged

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions