Select the runtime and project
Resolve the runtime’s absolute path inside the installed skill. Use that script with its adjacent lock. Installed caches remain consumers. Copy the complete project template into an independent Git repository for a minimal example. Include its hidden.knowledge directory.
The template uses app/, handbook/, and knowledge/ with no repository-specific assumptions.
Its coverage configuration selects plain OKF.
It needs no native Claims sidecars or OpenWiki checkpoint.
Run the installed runtime directly:
CURRENT returns 0. STALE returns 1 with affected areas.
Invalid configuration, missing evidence, broken links, or incomplete native state return REJECTED with status 2.
A missing lock is rejected by check. It never establishes current documentation.
The review lock must use a separate path outside every prepared input.
It cannot replace a source, page, configuration, Claim sidecar, or completion record.
record preserves existing targets without the KNOWLEDGE_REVIEW kind and valid receipt structure.
It stages the admitted receipt beside its target before replacement.
The kind marks the format, without cryptographic authentication or protection against a hostile concurrent writer.
Define the source-to-concept map
Adapt the template’s configuration to the actual source and document roots. The configuration schema describes version 2. Every declared field is necessary:
Paths are repository-relative. A trailing slash selects a directory prefix.
A path without that slash selects one exact file.
Source selections and area selections must contain files.
Each area needs an explanation beneath the selected knowledge root.
Every declared page must belong to
documentRoots.
Each concept carries nonempty type, title, and description fields.
Use source citations and concept links to explain mechanisms, consumers, invariants, and failures.
The page contract defines standalone OKF format and source-evidence procedures.
The template concept supplies a concrete source-linked example.
The gate rejects uncovered source files and unowned active pages.
It also rejects missing targets, missing Markdown anchors, and pages unreachable from entrypoints.
These assertions establish the configured graph. They do not establish complete semantic coverage.
An area named after a subsystem still needs a useful explanation of that subsystem.
Review before a snapshot
Runcheck before a source change when a lock exists.
After a source change, use its affected areas to choose the explanations for review.
Read the source diff, direct consumers, and executable evidence before a documentation decision.
Refresh changed explanations, citations, indexes, and inbound links together.
If the explanation remains accurate, record the source-backed no-change reason in the existing PR or task receipt.
Keep historical results identified as historical.
Do not rewrite an old measurement as a current result.
Run the selected format, source-evidence, prose, and focused behavior procedures.
Resolve missing evidence before this deliberate snapshot command:
record stores reviewed bytes. It does not inspect the quality of the review or prove factual accuracy.
A new source file, renamed path, changed page, or changed configuration can invalidate the snapshot.
An unchanged digest cannot prove runtime readiness, continued external validity, or reader comprehension.
No wall-clock age policy is implicit.
Declare fingerprint exceptions
The runtime has no implicit version exclusions or Slopsentral paths. Use an emptyfingerprintIgnores list unless source review justifies an exception.
A declared exception selects exact JSON fields through JSON Pointers:
product.json and both fields exist in the selected source.
The gate rejects an invalid pointer or a pointer that does not resolve.
The listed fields no longer affect the source fingerprint.
Other fields still affect it.
Document why each excluded change cannot invalidate its explanation.
Treat exceptions as reviewed policy rather than a general release workaround.
Preserve an OpenWiki owner
For an existing OpenWiki repository, select:record.
For a plain OKF store, keep OKF selected and use the standalone page procedures instead.
Do not create another knowledge store to satisfy the gate.
Keep a pinned consumer command
Direct installed-runtime use keeps one canonical implementation. A project can instead copy the exact script and lock as a pinned consumer tool. Record their upstream source revision and SHA-256 digests in the project’s existing dependency record. Keep the copied files byte-identical to that selected source. Review upstream changes before an update and refresh the recorded provenance deliberately. For a local command, copy the selected pair tobin/knowledge and bin/knowledge.lock.
Keep the lock beside the executable with the matching base name.
Do not edit the consumer copy to add project policy. Change the coverage configuration instead.
The script remains runnable from outside the original checkout with explicit --repo, --config, and --lock.
Add a CI check when authorized
The example assumes an approved, committed copy at.knowledge/runtime/documentation.py with its matching lock.
Pin that pair’s revision and digests before use.
The existing CI environment must provide Git and Python 3.12 or 3.13.
Pin uv to 0.12.9 through that environment’s tool owner.
The following illustrative job uses GitHub Actions. Replace action placeholders with approved complete commit SHAs.
It stages the pinned consumer pair and runs check only:
record, generate pages, install plugins, or write remote configuration as a side effect of this check.
The example supplies no remote setup or scheduling authority.
Keep runtime files outside documentRoots and map them as source when their behavior forms part of project coverage.