ChatGPT Projects do not expose a user-defined pre-write hook equivalent to theDocumentation 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.
PreToolUse event available in tools like Codex. Without such a hook, nothing natively stops a chat exchange, a model assumption, or an in-progress draft from silently becoming a Project Source, a reusable spec, or a downloadable artifact. Canon Boundary Guard addresses this gap by defining a simulated PreToolUse gate at the semantic persistence boundary — a mandatory classification and authorization step that ChatGPT must perform before any output crosses into durable or canon territory.
When to Run the Gate
The gate must be run before any of the following operations:- File writes intended as durable output — any write that is meant to persist beyond the current scratch session
- Downloadable final artifacts — files produced as ready-to-export deliverables
- Canvas updates intended for reuse — Canvas or document output that will be referenced, shared, or built upon
- Project Source candidates — content proposed for upload or registration as a Project Source
- Reusable docs, specs, or prompts — documentation, specifications, protocols, or prompt templates intended for ongoing use
- Protocol, naming, architecture, workflow, or invariant changes — any output that defines or modifies operating rules, structural decisions, or behavioral expectations
- State or recovery operations — writes to
_SESSION_STATE.json, emission ofCANON_STATE_DELTAblocks, or any output used to recover session state - Promotion from
/mnt/data/scratch/**to any canon or final destination — any movement of content out of the disposable scratch zone (see Scratch & Canon for full promotion rules) [SAFE TO SAVE]output — any response that will carry this label must pass the gate before the label is applied
When NOT to Run the Gate
The gate is not required for operations that produce no durable output and carry no canon risk:- Temporary scratch operations — working files written to
/mnt/data/scratch/**with no promotion intent - Private calculations — intermediate numerical, logical, or structural computations used only within the current step
- Intermediate parsing — extraction or transformation of content that will be discarded or inspected before any further use
- Disposable tests — one-off checks, dry runs, or exploratory outputs that are not surfaced as decisions or results
Disposable scratch work inside
/mnt/data/scratch/** is Mode A by default and does not require a dossier. The gate only activates when content leaves scratch or is presented as persistent, final, or reusable.Mode Classification at the Gate
Before the gate can complete, the proposed output must be classified into one of three operating modes. The mode determines what authorization and documentation the gate requires:- Mode A — Mechanical L0 operation. The output is a straightforward mechanical edit with clear L0 provenance (inspected project files, verified sources, direct tool output). The gate passes silently with no dossier required.
- Mode B — Semantic reorganization of L0. The output reorganizes, restructures, or summarizes existing L0 evidence. A compact dossier is required if the output is persistent. Mechanical proof-of-read is required before writing.
- Mode C — Promotion of L1, L1A, L2, or L3. The output introduces conversation material, agent-control instructions, or unverified model priors into persistent content. A full dossier is required and ChatGPT must stop before writing unless the operator has explicitly authorized the delta.