The Canon Boundary Guard protocol classifies provenance before information enters persistent project content. It does not decide what is canon — it makes visible what class of evidence is being used and where it is going. Every piece of content that moves toward a durable artifact carries a declared source layer, and that layer determines what rules apply before the write is allowed to proceed.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/XxYouDeaDPunKxX/canon-boundary-guard-for-gpt-project/llms.txt
Use this file to discover all available pages before exploring further.
Source Layers
The protocol defines five source layers. Each layer represents a distinct class of evidence with its own persistence permissions.L0 — Inspected Evidence
Persistent or verified evidence actively inspected in the current task:- Project files or sources
- Local files
- Git state
- Tests
- Schemas
- Lockfiles
- Diagnostics
- Command output
- Tool output
- Verified external sources
- Durable state files explicitly exported, re-uploaded, or saved and inspected
- Canon artifacts created through the gate and later inspected
A Project Source is L0 only for the relevant surface inspected in the current task. Presence in Project Sources is not evidence by itself.
L1 — Shaping
Conversation material not explicitly approved as a durable project decision:- Current chat
- Prior project chats
- Moved chats
- Brainstorming
- Preferences not approved as protocol
- Assistant analysis
- Project memory
- Recovery text not yet canonized
L1A — Authorized Delta
Conversation material the operator explicitly approved for persistence in the current turn. Authorization applies only to the stated scope. L1A becomes evidence only after it is written to a persistent artifact and later inspected — the authorization itself does not elevate it to L0.L2 — Agent Control
Instructions, steering, reminders, or constraints that shape assistant behavior. L2 is not project content. Persist it only if the operator explicitly requests agent-facing operating instructions.L3 — Model Prior
Unverified model memory, generic best practice, assumed framework behavior, version claims, or unstated conventions not grounded in inspected evidence. L3 must not be persisted unless verified or explicitly operator-approved.Rules
The protocol enforces seven rules that govern how each layer may flow into persistent content:- Preserve or reorganize L0. Inspected evidence may be preserved or reorganized without a dossier when the operation is purely mechanical.
- Write L1A only within the explicitly approved scope. Authorization does not extend beyond the stated delta.
- Do not persist L1. Conversation material, project memory, and unapproved preferences are not written to durable artifacts.
- Do not persist L2 unless explicitly requested as agent-facing instruction. Agent-control material is not project content.
- Do not persist L3 unless verified or operator-approved. Model priors and assumed conventions require explicit authorization before they enter canon.
- If evidence conflicts, stop and report. Do not resolve by recency, confidence, or intuition. Conflicting evidence is surfaced to the operator for a decision — it is never silently resolved.
- If provenance is unclear, surface it before writing. Ambiguous evidence is declared before a write proceeds, not after.
Inline Tagging
Tag inline when producing content that draws on non-L0 material. Tags mark the specific claim or term that would change if the source were different — not every word.| Tag | Meaning |
|---|---|
[L1] | From conversation; not approved for persistence |
[L1A] | Approved this turn; pending persistence |
[L2] | Agent control; not project content |
[L3] | Model prior; unverified |
- Rule
- Name
- Version
- Claim about behavior
- Workflow expectation
- Architecture decision
Modes
Modes determine how much protocol machinery is required for a given operation. For full treatment of each mode, see Operating Modes.| Mode | Description |
|---|---|
| Mode A | Mechanical edit with clear L0 provenance. No dossier required. |
| Mode B | Semantic edit reorganizing existing L0 evidence. Use a compact dossier if persistence is involved. |
| Mode C | Promotion of L1, L1A, L2, or L3 into persistent content. Use a full dossier and stop before writing unless explicitly authorized. |
Full Dossier Format
Mode C operations require a full dossier. Mode B operations with persistence require a compact dossier (at minimum: Target, Mode, Evidence, and Authorized delta). The full dossier format is:- Target — The file, artifact, or surface being written to.
- Mode — The operating mode (A, B, or C) for this operation.
- Evidence — The L0 sources that were inspected and are being applied. List source identities.
- Authorized delta — The L1A material explicitly approved by the operator for this turn, and the stated scope of that authorization.
- Rejected shaping — L1 or L2 material that was present but excluded from the write. Write
noneif nothing was rejected. - Rejected model prior — L3 material that was present but excluded from the write. Write
noneif nothing was rejected. - Conflicts — Any evidence conflicts that were detected. Write
noneif there are no conflicts. - Decision needed — Questions requiring operator input before the write can proceed. Write
noneif no decision is needed.
Decontamination
Before persisting, flag and remove phrases that carry contaminated provenance. The following patterns indicate material that has not been verified against L0 and must not be written to durable content unless grounded in L0, explicitly approved as L1A, or intentionally written in a historical or migration context.Conversation Residue
Phrases that smuggle prior conversation into persistent content as if it were established fact:as discussedas said beforefrom the previous sessioncome detto primacome discussol'utente vuole
Agent-Control Residue
Phrases that embed behavioral steering into project content:remember toI shouldricordatidevonon devo- Temporary instructions to the agent
Version Ghosts
Version references not present in L0. If a version number or package name cannot be traced to an inspected file (lockfile, schema, config), it is a version ghost and must not be persisted.Model-Prior Claims
Language that presents unverified model assumptions as established fact:best practicestandard approachrecommendedmodern conventionindustry standardnormallyusually
Filesystem Promotion Ghosts
References to file operations that are not grounded in inspected state:copied from scratchmoved from scratchrenamed into canonarchived from scratchincluded from scratch