Skip to content

Clarify synthesis and retry contracts#188

Merged
raphael merged 1 commit into
mainfrom
agent/clarify-synthesis-retry-contract
Jul 20, 2026
Merged

Clarify synthesis and retry contracts#188
raphael merged 1 commit into
mainfrom
agent/clarify-synthesis-retry-contract

Conversation

@raphael

@raphael raphael commented Jul 20, 2026

Copy link
Copy Markdown
Member

Summary

  • give RetryHint one explicit AllowsRetry authority, including terminal timeout classification
  • preserve recoverable failure repair before a requested synthesis-only transition
  • clarify how bookkeeping, terminal tools, tool metadata, and synthesis transitions compose
  • document the runtime state precedence in the repository contracts

Rationale

A planner can request synthesis after an evidence-producing tool batch, but that intent must not override typed recovery guidance from a failed tool. The previous API exposed retry classifications without one canonical retry predicate, which made callers reinterpret reasons and risked parallel orchestration policies.

The runtime now owns the precedence: recoverable failures repair first; otherwise a requested synthesis transition resumes with SynthesisOnly. Metadata remains inert and consumer-owned.

Validation

  • make test
  • make lint
  • git diff --check

@raphael
raphael merged commit f9fb38a into main Jul 20, 2026
2 checks passed
@raphael
raphael deleted the agent/clarify-synthesis-retry-contract branch July 20, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant