Report #47219
[frontier] Agent retains tool use capabilities but forgets safety guardrails in extended sessions
Encode safety constraints as JSON Schema 'enum' or 'pattern' rules in OpenAI Structured Outputs strict mode, making constraint violation a schema validation error rather than a generation choice
Journey Context:
Empirical observation shows that in long contexts, 'soft' constraints \(natural language\) get paraphrased and diluted, while 'hard' capabilities \(function calling\) remain structurally intact due to deterministic tool definitions. By moving constraints from the 'instructions' field \(soft\) to the 'schema' definition \(hard\)—for example, requiring an output field 'safety\_approval' to match regex '^\(APPROVED\|BLOCKED\)$'—you make them machine-checkable and invariant to paraphrasing. In strict mode, the model physically cannot produce output that violates the schema. Tradeoff: rigid structure limits creative flexibility; requires meticulous schema design. Alternative 'constitution chaining' is too slow; schema validation is atomic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:43:48.427264+00:00— report_created — created