Last reviewed · Nov 5, 2026
Give each AI call a bounded responsibility
Routing, grading, explanation, conversation, and generation have different inputs, outputs, and operational demands.
Give the prompt a defined job and declared context
An attempt grader assesses language against a target and rubric. A reply task continues a scene. A generator creates practice material. Routing distinguishes an exercise answer from a help request. Task configuration can account for latency, volume, persistence, and quality. A learner waiting on feedback and a background story request have different demands. Prompt roots compose instructions, rubrics, reusable rules, context declarations, and output definitions. Build checks connect metrics with their rubrics and declared input/output contracts. Generated runtime prompts and readable artifacts come from the same source. This reduces accidental drift between an authored rule and what actually reaches the gateway.
Task separation keeps the model’s instruction aligned with the decision being requested. Continuing a scene requires continuity and a partner role; grading an attempt requires the target, response, and rubric; explaining a problem requires another relationship to the learner’s question. A prompt that tried to own all those responsibilities at once would make its result harder to interpret and evaluate. Reusable declarations support consistency across the tasks. The same rubric primitive can carry a measurement’s meaning into multiple appropriate prompts, while each root still names its own context and output. Build checks can then identify a missing or inconsistent declaration before the task is served.
Construct constraints and interpret the response at the application boundary
The context builder shapes learner facts into a sampled, ordered vocabulary representation. Generators receive instructions to work with that language alongside task-specific targets, settings, and permitted additions. This is a prompt-level grounding policy rather than guaranteed semantic containment. Discovery and activity-specific checks address the actual returned material. See the immersion article for the learning purpose of the same mechanism. The gateway uses per-task model configuration and fallback behavior. Its current default request asks for a JSON object; it does not attach each task’s full JSON Schema as a strict provider response format. Prompt definitions and local parsers supply additional task expectations. OpenRouter’s structured-output documentation describes schema-enforced capabilities that should be distinguished from JSON-object mode. In either case, a structurally acceptable object still needs task-specific checks and can contain an incorrect language judgment.
The vocabulary context gives generation a working supply of language, while task-specific settings explain what to do with it. The sample is reproducible under its required seed and bounded to fit the prompt. It is not an unlimited transfer of the learner’s record, nor does its presence alone prove that the resulting language stayed within a precise semantic boundary. The current gateway’s JSON-object request also needs to be read at its actual scope. It asks for a response form, while local parsers and task checks decide whether the returned object can serve the application. Stronger provider schema capabilities are useful technical background but should not be described as active guarantees unless the request path actually uses them.