The AI Output Has to Be Readable by the Next Step
When we scope the AI step in a workflow, the first question we ask isn't "what should this produce for the human?" It's "what does the next step need to read?"
That question determines format, field names, and the difference between a prose block and a structured record.
The spray card example
The Freedom Ag spray card generator produces a document a rep reviews before printing. But it also produces a record: product name, rate with unit, field block, applicator, job number. Those fields exist as structured data, not just as text in a document.
Why does that matter? Because when the work order is marked complete and the application log entry is created, it reads from that record. Product name is a foreign key back to the product catalog, not a string the AI wrote. Rate and unit are discrete fields, not a number embedded in a sentence. Field block maps to the field record from the original quote.
If the spray card AI had written unstructured prose ("Apply Headline at 10 oz per acre on the northeast corn block"), the application log would have needed a second AI step to parse it. Instead, the structured fields pre-populate the log entry directly.
The session note example
The Homefront session note assistant drafts prose a provider reviews and signs. But the note also contains goal references: each observed goal in the note is a link to a specific IFSP goal record, not a paraphrase of the goal text.
The supervisor dashboard and billing audit trail both need to answer "which goals were documented this session?" Those queries run against the IFSP goal record IDs in the note, not against prose. If the AI had written "worked on gross motor skills today," the downstream modules would have no machine-readable way to answer that question. The goal references have to be structured.
The design constraint
Before we write the AI step prompt, we map the downstream modules that will read the output. For each field the downstream needs:
- Is the AI writing it as structured data, or as prose the next step will have to parse?
- If it's structured, what are the valid values? A product name is a foreign key. A field block is an enum from the job record.
- What happens when the AI can't determine a value? Does it leave the field empty, write a placeholder, or stop the workflow?
The human review gate exists to catch quality and accuracy. The structured output format exists to make downstream modules possible without a second parsing step between them.
Why this matters at scope time
A module scoped as "AI writes a summary for the rep to review" produces different architecture than "AI writes a record the next module reads." The first is a document. The second is a data layer. The document is simpler to build. The data layer compounds: every module that comes after reads from it without an intermediate parsing step.
That split has to happen at scope time, not after the first module ships. The output format defined in month one shapes what's buildable without a data-layer rebuild in month six.