Central principle
When an operation establishes a fact, preserve that fact in the contract that later code accepts. The consumer receives evidence of its preconditions instead of a remembered guard. Controlled construction, closed alternatives, explicit effects, and faithful executable evidence support that rule. The same evidence discipline applies to system explanations. Reuse an existing OKF owner, link claims to their source, and review affected knowledge after source changes. A page’s timestamp cannot establish factual freshness. The repository guide atdocs/documentation.md defines its concrete lifecycle and gates.
That checkout guide stays outside the portable reference snapshot.
Source map
Authored source supplies the principles. Installed caches remain consumers. The portable instructions express these rules without repository-relative links. This guide keeps those links for provenance and future comparison.
Language-specific sources inform the shared principles without forcing their syntax into other projects.
The Python automation section preserves the current project policy for mise, uv, and portable commands.
It does not replace another project’s existing language toolchain.
Exclusions and adaptations
Publication authority, repository delivery rules, provider layouts, and hook events stay with their project or host owners. The portable file does not select plugins, install packages, or grant permission for external writes. It does not create a knowledge store merely because a repository contains code. A consumer obligation determines when a stronger representation earns its cost. A small private fact needs no wrapper when it never escapes. A shared serializer needs real consumers before a common abstraction adds value. The instructions ask for necessary evidence, without a universal suite, score, or test count.Counterexamples that preserve the meaning
These cases explain the intended rules. They are not executed tests or measured model outcomes.Global placement
For Codex, the default global location is~/.codex/AGENTS.md.
CODEX_HOME can select another location. AGENTS.override.md takes precedence at that global location.
Project instructions refine the instruction chain within their scopes.
A home-directory ~/AGENTS.md does not supply Codex’s global scope.
Other hosts own their discovery and precedence rules.
Select an explicit installation destination for the host or repository in scope.
A successful file installation does not prove that a fresh host session loads or obeys the instructions.
Install a pinned local snapshot
The installer needs uv and Python 3.12 or 3.13. Its adjacent lock declares the Python dependencies. The destination must already exist as a real directory. From the checkout root, examine the asset manifest:AGENTS.md or .slopsentral tree and rejects the operation.
An identical installation returns UNCHANGED without a rewrite.
tools/global_agents.lock.json records each asset path and SHA-256 digest.
Its digest names the snapshot:
AGENTS.md last with an operation that rejects an existing target.
The installed file adds a relative link to this local source map.
The manifest includes transitive local Markdown references and companion files from linked skills and the type-safety concept.
Scripts, locks, schemas, examples, and license notices travel with those owners.
Tracked source defines the inventory. Caches and untracked files do not enter it.
External URLs remain citations that need network access.
Examine an installed snapshot without repair:
--expected-manifest-sha256 <64-lowercase-hex-characters> to bind an operation to a separately saved digest.
The copied installer can examine the same destination after the checkout disappears:
Refresh and recovery
After source review, refresh the committed inventory:.slopsentral exclusively.
If root publication fails, the installer removes only its unchanged new snapshot.
When ownership remains unproved, RECOVERY_NEEDED preserves the paths for inspection.
Interruption can leave a snapshot without AGENTS.md.
A later installation rejects that partial state.
Examine the reported paths before recovery.
The procedure trusts the destination parent. It does not prove crash durability or resistance to a hostile concurrent writer.
The installer tests use temporary directories and real file operations.
They exercise accepted installation, conflicts, stale assets, unsafe paths, interrupted publication, and checkout-independent examination.
They do not prove host instruction consumption or model compliance.