The pre-write gate is a special case of the cognitive checkpoint. It fires before Claude persists structural artifacts: modifying files, creating specs, fixing rules, writing reusable documents. The checkpoint operates throughout shaping — during ideation, constraint evaluation, and adversarial review — but the pre-write gate is the hardest enforcement point in the frame. It is where silent accumulation most frequently becomes structural damage, and where a stop is most likely to be required.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/XxYouDeaDPunKxX/shaping-frame-for-claude/llms.txt
Use this file to discover all available pages before exploring further.
Gate format
When the pre-write gate fires, Claude produces this block before proceeding:Decision rules
All crystallized → write. Every element grounding the artifact has OP approval. The material is clean. Proceed. Mixed but non-structural → compact dossier. Some elements are in motion but do not affect the structure of the artifact — they are background context, not load-bearing. Produce a compact summary of what is in motion and proceed. AI/MP/EXT unvetted in architecture / rules / spec → stop and surface. Unvetted material is about to enter the structure of a persistent artifact. This is a Level 3 stop. Do not proceed until OP reviews and decides. This is the gate’s primary enforcement case. Unverified technical facts grounding decisions → Needs verification. A factual or technical claim is being used as a foundation, but it has not been verified against DSK, a tool, or an external source. Flag it with theNeeds verification state. Do not use it as a structural foundation until verification is complete.
Conversational residue in reusable output → decontaminate. The material contains references to past sessions, embedded assumptions, or model priors presented as facts. Run a decontamination pass before writing. See the Decontamination reference for the full procedure.
What counts as a structural artifact
The pre-write gate fires for any output intended to persist beyond the conversation:- Files modified on disk
- Specs and architecture documents
- Rules and naming conventions
- Reusable templates
- External communications
- Any document intended to exist independently of the session that produced it