pmokeDOCS
AI & Machine Resources

Machine Resource Contracts

Formats, stability boundaries, and integrity checks for exported machine resources.

Contract map

EndpointMedia typeStability
llms.txttext/plain; charset=utf-8Structured discovery index
llm/{lang}/{slug}.mdtext/markdown; charset=utf-8Processed page content
llms-{lang}.txttext/plain; charset=utf-8Locale context snapshot
ai-index.jsonapplication/jsonManifest schema 1
generated/*.jsonapplication/jsonGenerated CLI/config contracts
config.schema.jsonapplication/jsonCanonical config v4 structure

Manifest record

Each page entry contains locale, title, description, canonical HTML URL, Markdown URL, and a SHA-256 digest of the exact exported Markdown bytes. The manifest also identifies every top-level machine endpoint and its media type.

{
  "locale": "en",
  "canonical_url": "https://kerr-group.github.io/pmoke/en/docs/quickstart/",
  "markdown_url": "https://kerr-group.github.io/pmoke/llm/en/quickstart.md",
  "sha256": "<64 lowercase hexadecimal characters>"
}

Integrity check

manifest=https://kerr-group.github.io/pmoke/ai-index.json
url=$(curl -fsSL "$manifest" | jq -r '.pages[] | select(.locale == "en" and .title == "Quickstart") | .markdown_url')
expected=$(curl -fsSL "$manifest" | jq -r '.pages[] | select(.locale == "en" and .title == "Quickstart") | .sha256')
actual=$(curl -fsSL "$url" | sha256sum | cut -d' ' -f1)
test "$actual" = "$expected"

Identical source commits produce deterministic feeds. New fields may be added to manifest schema 1; consumers must ignore unknown fields. A breaking shape change requires a schema increment.

On this page