Before any persistent write, Canon Boundary Guard classifies the operation into one of three modes. The mode determines whether the assistant proceeds silently, produces a compact dossier as a lightweight provenance record, or stops entirely and waits for explicit operator authorization. Selecting the correct mode is not discretionary — it is a mechanical consequence of what sources the output draws on.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.
Mode A — Mechanical L0 operation
Definition: The output draws entirely on inspected L0 evidence. No non-L0 material enters the persistent artifact. The operation is mechanical: extracting, copying, reformatting, or reorganizing content that is already fully inspected, without interpretation or synthesis. Behavior: Proceed silently. No dossier is required. Use cases:- Copying a field value from an inspected schema into a generated config file
- Renaming a variable using a naming convention already defined in an L0 source
- Extracting a list of endpoints from an inspected OpenAPI file
- Reformatting inspected JSON to YAML without changing content
Mode B — Semantic reorganization of L0
Definition: The operation semantically reorganizes existing L0 evidence — drawing conclusions, rewriting structure, merging sources, or summarizing content — without introducing any L1, L2, or L3 material. The assistant is interpreting and arranging what is already inspected, not importing new assumptions. Behavior: Produce a compact dossier if persistence is involved. The compact dossier documents the target artifact, the selected mode, and the evidence list so provenance can be traced later. Use cases:- Summarizing an inspected requirements document into a structured spec
- Merging two inspected schemas into a unified data model
- Rewriting an inspected architecture diagram description into a narrative section
Mode C — Promotion of non-L0 material
Definition: The persistent output contains L1, L1A, L2, or L3 material. The assistant is promoting something from conversation, operator approval, agent-control context, or model memory into a durable artifact. Behavior: Produce a full dossier AND stop before writing unless the operator has explicitly authorized the delta in the current turn.Mode C does not forbid persistence. It requires explicit operator authorization before the assistant proceeds. Once the operator authorizes the specific delta, the assistant may write the artifact and apply the
[SAFE TO SAVE] label.- Promoting a draft design decision agreed on in chat into a spec document
- Incorporating a chat-agreed naming convention into a protocol file
- Persisting a new workflow rule the operator proposed during the session
- Writing a policy document that includes model-prior best-practice guidance the operator approved
none when a field is empty. Do not invent rejected items — if nothing was excluded, say none.
Mode selection logic
Use the following decision process before every persistent write:Does the output contain any L1, L1A, L2, or L3 material?
If yes → Mode C. Produce the full dossier and stop pending operator authorization.
Does the output semantically reorganize L0 evidence?
If yes (and no non-L0 material is present) → Mode B. Produce the compact dossier and proceed.
Scratch operations
Writes inside/mnt/data/scratch/** are Mode A by default and do not require a dossier. Scratch is a disposable, non-canon zone. Content there is not considered persistent output and does not trigger the gate.
However, promotion from /mnt/data/scratch/** to any canon or final destination always triggers the gate, regardless of whether the scratch file was created as Mode A. At promotion time, the assistant must classify provenance fresh and select the appropriate mode for the promoted artifact.