← Garden Patch Home · Patterns
Protocol error handling has traditionally offered two options: return a mechanical error code (strict but uninformative) or silently tolerate the deviation (flexible but accumulates technical debt). Agent-age protocols need a third option because the agents can reason about what went wrong.
When an agent encounters something it does not understand, it enters the error phase and describes the problem in natural language. The error message explains what was expected, what was received, and suggests how the sender might rephrase. The sender can then retry with a corrected message, negotiate an alternative, or escalate to human review.
Phase: error
Body: "I received a 'disclosure' field with value 'trusted-circle'
which is not a recognized disclosure tier. The standard tiers are:
public, professional, professional-open, community-trust, personal,
close. Did you mean 'community-trust'?"