Before persisting any content to project files, Canon Boundary Guard requires scanning the planned output for four types of residue. Each category represents material that originated outside project evidence — from the current conversation, from agent-steering instructions, from version references with no grounding in the project, or from generic model assumptions. If any of these patterns appear in content targeted for persistence, they must be flagged and resolved before writing. Silently including them contaminates project files with non-L0 material.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/XxYouDeaDPunKxX/canon-boundary-guard-codex/llms.txt
Use this file to discover all available pages before exploring further.
Residue Categories
Conversation Residue
Phrases that reference the current chat rather than project reality. These phrases are meaningful inside a conversation but have no grounding in project files and should never appear in persistent content. Flagged patterns:| Language | Phrases |
|---|---|
| English | ”as discussed”, “as said before”, “from the previous session” |
| Italian | ”come detto prima”, “come discusso”, “l’utente vuole” |
Agent-Control Residue
Instructions that were written to steer the agent during the session, but have leaked into content that would be written to project files. These phrases describe agent behavior, not project reality. Flagged patterns:| Language | Phrases |
|---|---|
| English | ”remember to”, “I should” |
| Italian | ”ricordati”, “devo”, “non devo” |
| Any | Temporary instructions to the agent |
Version Ghosts
Version references that are not present inL0 sources — project files, lockfiles, schemas, or verified tool output. A version number that came from model memory or a conversation mention is L3 until confirmed in a project file.
Example — before:
L0, tag it [L3] and surface it for operator approval before writing. If it can be confirmed, cite the source file.
Model-Prior Claims
Generic best-practice language that is not grounded in local evidence. These phrases assert quality or correctness based on general model knowledge rather than the project’s actual decisions, constraints, or context. Flagged patterns:[L3] and surface it before writing.
Exception Rule
These patterns are allowed — and do not require flagging — in three cases:- Grounded in L0 — the phrase is backed by a project file, lockfile, schema, or verified tool output that is cited.
- Explicitly approved as L1A — the operator has explicitly authorized the material for persistence in the current turn.
- Intentionally written in a historical or migration context — for example, a migration guide that deliberately references previous versions or past conventions as historical context.