During a normal Codex session, CSBP operates quietly. There are no background writes, no automatic captures, and no silent promotions. The system loads two files in a fixed order, checks each active practice against the current work, and applies any that match. If nothing matches, Codex continues without CSBP runtime guidance.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.
What happens during a normal session
When CSBP is active and no practice formation work has been requested, the session follows this sequence:CSBP-entry-point.txtis read. This establishes system identity, authority order, load order, and write restrictions for the session.shared-best-practice.txtis loaded. This is the only file that contains runtime practices.- Each active practice is evaluated against the current work using the
applies_whencondition. - Practices that match guide decisions for that work. Practices that do not match are skipped.
shared-best-practice-compiler.txt) is not loaded during this path. It exists only for practice formation and maintenance work, and its logic must not leak into runtime use.
Runtime read order for each practice block
When Codex reads a practice block fromshared-best-practice.txt, it follows a strict evaluation order. Each step either resolves the block or stops further processing for that block.
Check status
Read the
status field. If the value is deprecated, stop reading this block. Deprecated practices are excluded from runtime use entirely.Check applies_when
Evaluate the
applies_when field against the current work. If the operational condition does not match, this practice is not relevant right now. Skip it.Use goal for interpretation
Read the
goal field to understand the intended operational effect of the practice. This frames how the do and avoid fields should be interpreted in context.Apply do as the default action
The
do field states the primary correct default action. Apply it as the default move for the current work.The empty state rule
Ifshared-best-practice.txt contains no active practices that are relevant to the current work, Codex continues without CSBP runtime guidance. There is no fallback behavior, no default stance, and no forced action.
No active match means no forced behavior. CSBP only contributes when it has something relevant to contribute.
This rule also applies when shared-best-practice.txt is empty — for example, in a fresh installation before any practices have been promoted. The runtime layer simply has nothing to apply, and Codex proceeds normally.
Runtime mode vs practice formation mode
CSBP has two operating modes. They are strictly separated. The runtime path does not load the compiler, and the formation path does not bypass the compiler’s evaluation and approval requirements.- Runtime mode
- Practice formation mode
Primary file:
shared-best-practice.txtPurpose: Apply already-promoted practices when their applies_when condition matches the current work.Can do:- Read active practices from
shared-best-practice.txt - Guide decisions when
applies_whenmatches - Skip deprecated practices
- Continue without guidance when no relevant practice matches
- Invent new practices
- Revise existing practices
- Promote candidates
- Deprecate or remove practices silently
- Load or apply compiler logic
What CSBP does not do at runtime
Understanding the boundaries of runtime behavior is as important as understanding what CSBP does. During a normal session:- No new practice creation. Codex does not draft, propose, or write new practices into
shared-best-practice.txton its own. - No auto-promotion. A pattern observed during runtime work is not automatically moved into the practice store.
- No silent writes.
shared-best-practice.txtis not modified during runtime use unless the operator has opened formation mode and approved the specific change. - No compiler logic in runtime. The formation rules, admission criteria, normalization steps, and rejection logic in
shared-best-practice-compiler.txtdo not become active behavior during normal work.
Deprecated practices
Deprecated practices remain inshared-best-practice.txt after they are deprecated. They are not deleted automatically. They are available for review and maintenance history, but they are excluded from runtime use. The read-order check on status ensures that a deprecated block is never evaluated for applies_when or applied as a do instruction.
Removal of a deprecated entry requires a direct operator instruction processed through the compiler protocol. For more on lifecycle transitions, see Maintenance.