CSBP is intentionally small. The entire system is three files, and each file has one job that the others cannot touch. That separation is not cosmetic — it is the mechanism that keeps the runtime layer stable, prevents draft or discussion logic from leaking into active behavior, and ensures the system definition itself cannot be rewritten during normal use.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/XxYouDeaDPunKxX/CSBP-Codex-Shared-Best-Practice/llms.txt
Use this file to discover all available pages before exploring further.
The three layers at a glance
| File | Role | Mutable at runtime | Read timing |
|---|---|---|---|
CSBP-entry-point.txt | Bootstrap and routing layer. Defines system identity, authority order, load order, mode routing, and write restrictions. | No | First, every session |
shared-best-practice.txt | Runtime layer. Stores already-promoted practices that may guide live work when relevant. | Yes — but only through the compiler path and with operator approval | After entry point |
shared-best-practice-compiler.txt | Formation layer. Governs formation, evaluation, normalization, promotion, revision, deprecation, removal, and rejection. | No | Only during practice formation work |
Layer 1 — CSBP-entry-point.txt
CSBP-entry-point.txt is the bootstrap and routing layer. It is the first file read in every session, and it defines everything a fresh Codex session needs to understand CSBP before touching any other file.
It sets:
- System identity — what CSBP is and what files it includes
- Authority order — where CSBP sits relative to operator instruction,
AGENTS.md, and local project guidance - Load order — the explicit sequence in which the other two files are read
- Mode routing — which mode (runtime or practice formation) applies and when
- Write restrictions — which files must never be modified and under what conditions
shared-best-practice.txtmay change
The entry point is read first, every session. Codex must not infer CSBP behavior from filenames alone or skip system-definition resolution. Reading this file activates CSBP for the current session.
Layer 2 — shared-best-practice.txt
shared-best-practice.txt is the runtime layer. It stores only practices that have already passed through the compiler protocol and received operator approval — no drafts, no candidates, no speculative entries.
During a normal Codex session, this is the only file (besides the entry point) that is loaded. Each block in the file follows a fixed shape:
Layer 3 — shared-best-practice-compiler.txt
shared-best-practice-compiler.txt is the formation layer. It governs every lifecycle operation that can affect shared-best-practice.txt:
- Formation — evaluating whether a recurring pattern qualifies as a CSBP practice
- Normalization — rewriting candidates as preventive, runtime-ready instructions
- Promotion — moving an approved candidate into the runtime layer
- Revision — updating wording, scope, or kind of an existing practice
- Deprecation — marking a practice as no longer active for runtime use
- Removal — deleting a deprecated or invalid entry on direct operator instruction
- Rejection — declining a candidate that does not meet admission criteria
The compiler is a decision layer, not a memory layer. Its logic evaluates whether a pattern deserves to exist in the runtime file. It does not apply practices or behave like one.
The two load paths
CSBP has two distinct load paths depending on what work is being done. Runtime path — used during every normal Codex session:Why keeping the three jobs separate matters
Each of the three files owns exactly one job:| Job | File responsible | Why separation matters |
|---|---|---|
| Define the system | CSBP-entry-point.txt | Prevents the runtime layer from redefining what CSBP is or what authority it has |
| Apply promoted practices | shared-best-practice.txt | Prevents speculative or draft guidance from becoming active behavior |
| Form or revise practices | shared-best-practice-compiler.txt | Prevents formation discussion and drafting logic from leaking into normal operation |
shared-best-practice.txt exists because it survived a formation process and received operator approval. If the formation logic were embedded in the same file, that guarantee would not hold.