ifp

Garden Patch Home · Inquiries

Structured Schema vs Natural Language for Agent Message Content

The Question

IFP-3 makes a bold architectural choice: message bodies are natural language (Markdown-formatted), not structured schemas. The envelope (metadata) is structured (YAML in IFP-3, JSON in IFP-4), but the content — the actual information agents exchange about their operators’ contexts — is free-form text.

The stated justification: “Agents are good at NLP; rigid structures lose nuance.”

Is this sufficient reasoning for one of the protocol’s most load-bearing decisions?

What Makes This Worth Investigating

What natural language enables. Nuance, ambiguity tolerance, context-dependent meaning, emotional register, cultural expression. A natural language body can say “my human is going through a rough patch and might appreciate hearing from old friends” in ways that no schema can capture.

What natural language makes harder. Validation, interoperability testing, deterministic processing, automated compliance checking. When the body is free text, there is no machine-checkable way to verify that a message contains the required information for its phase.

The IFP-1 tension. IFP-1 Section 6.1 replaces Postel’s Law with “be clear in what you send; be explicit when you don’t understand.” But natural language bodies resist clarity enforcement — a message can be grammatically correct and semantically ambiguous. The clarity principle and the NL body choice may be in tension.

Validation gap. IFP-4 provides structured envelopes that can be schema-validated. But the body — where the actual content lives — cannot be validated by machine. An agent could send a syntactically valid IFP message with a body that says nothing useful.

Hybrid approaches exist. Some protocols use structured fields for machine processing alongside free-text fields for human context (e.g., git commit messages: structured header + free-text body). IFP-4’s body.parts[] mechanism could carry both structured data and natural language — but the spec does not require structured parts.

Possible Directions

Sources

Relations