Reserved Output Fields
Overview
Any agent may include reserved ktsu_ prefixed fields in its output schema. The Kimitsu orchestrator has hardcoded, deterministic behavior for each field, allowing agents to signal control flow or security events directly through their typed output.
Reserved fields are evaluated by the orchestrator before the Air-Lock validation runs. If a fatal reserved condition (like an injection attempt) is triggered, the run terminates immediately, and the output is never passed to downstream steps.
Evaluation sequence at each step boundary:
- The agent completes and returns its full output object.
- The system extracts all
ktsu_*reserved fields from that object. - Air-Lock then validates the remaining (non-reserved) fields against the agent's declared output schema.
- Because
ktsu_*fields are consumed in step 2, they are never subject to Air-Lock validation — declaring them in the output schema is not required and they will not cause schema violations.
[!IMPORTANT] The
ktsu_prefix is strictly reserved for Kimitsu. User-defined fields must not start with this prefix.
Security Signals
ktsu_injection_attempt: boolean
Action: Fail the entire run immediately.
Indicates the agent detected an attempt to hijack its instructions through untrusted data. The run is terminated with an injection_attempt error.
ktsu_untrusted_content: boolean
Action: Fail the current step.
Indicates suspicious content was detected. The step fails, and downstream execution is halted, but it does not necessarily terminate the entire orchestrator process if handled.
Quality & Flow Signals
ktsu_confidence: number (0.0 – 1.0)
Action: Compare against confidence_threshold.
If the agent's self-reported confidence is below the step's confidence_threshold (defined in the workflow), the step fails with confidence_below_threshold.
ktsu_low_quality: boolean
Action: Fail the current step.
Indicates the agent could not produce a reliable output — for example, because the input was too ambiguous or the result did not meet internal sanity checks. Use this when the agent is certain its output should not be consumed downstream, regardless of confidence score.
ktsu_skip_reason: string
Action: Mark step as skipped.
If set, the step is consider successful but skipped. Downstream steps depending on this ID are also skipped. This is a "clean exit" for when an agent determines there is no work to be done.
ktsu_needs_human: boolean
Action: Flag for human review.
The run is halted with a needs_human_review status, signaling that a manual decision is required before proceeding.
Observability Signals
ktsu_flags: string[]
Action: Log and record.
Arbitrary labels (e.g., ["pii_detected", "high_value"]) that are recorded in the run envelope for metrics and audit trails. They have no effect on execution flow.
ktsu_rationale: string
Action: Record agent reasoning.
The agent's internal explanation for its decision. This is highly recommended for auditing and debugging complex classifications.
Processing Order
The orchestrator processes these fields in a fixed hierarchy:
ktsu_injection_attempt(Fatal)ktsu_untrusted_content(Step Failure)ktsu_low_quality(Step Failure)ktsu_needs_human(Human Review Gate)ktsu_confidence(Threshold enforcement)ktsu_skip_reason(Clean Skip)ktsu_flags&ktsu_rationale(Observability)
Revised April 2026