← Glossary
Glossary · AI and agent workflows
Input contract
The statement of what input a program accepts and what it does with input outside that.
An input contract names the required shape of the input, the allowed values of each field, and the response to anything else: refuse the whole file, report a row and continue, or signal a partial result. Behavior the contract does not mention is behavior the program has not been asked to have, and observing what the program does in such a case is a finding to record rather than a decision. The garden comparison's contract fixes the header, the yes-or-no installation column, non-negative plain-number amounts and the blank installation price when installation is included.