The prompt builds
a chain of evidence.
There are two kinds of prompt here. First, you give a coding agent the build brief on pages 44–45 to create Research Relay. Later, the running program sends your question and a role instruction to a local model. A “contract” in this article means the rules for that role’s reply and the checks the program applies to it.
The planner chooses 1-3 unique existing source IDs
The planner returns a small selection from approved notes. The application must reject an invented ID even if the model explains it fluently.
an exact contiguous quote from the selected source
Use a literal comparison to check that the quoted characters occur in the source. Then review whether that source supports the claim; that step calls for interpretation.
Reserve and save the call count before each request
A failed request still consumes the reserved budget. Saving first keeps a restart from silently granting that request back. The backend implements this rule through persisted budget state.