manni ai-context vocabulary
Built-in id: manni:ai-context:1.2.0
Published at https://hawkeyexl.github.io/manni/schemas/ai-context/1.2.0.json.
A $schema that names this URL resolves to the bundled copy, with no network
call.
The question it answers: how did machines make this page, and how may
they use it? Two production fields, provenance and meta-provenance,
record what a machine wrote. Two consumption fields, risks and
sample-questions, speak to the agent that reads the page. Reach for it once
models write prose or metadata in your docs, or read them to act.
Use it
Section titled “Use it”AI context is in the
default set, so a
run checks it on every page with no config line. A config’s own schemas add
to the default set. An override replaces the set, so an entry that should keep
AI context sets defaults: true:
meta: overrides: - collection: guides defaults: true schemas: - ./schemas/guide.jsonFields
Section titled “Fields”| Field | Type | Location | Notes |
|---|---|---|---|
provenance | list of entries | external | Which body lines a machine wrote, one entry per range. Each entry names the machine, the lines, and an integrity hash that pins them. manni meta derive manages it |
meta-provenance | list of entries | external | Per-model attribution of machine-proposed metadata, meaning which fields and evals, at what confidence |
risks | string or list, open | page | Pre-flight flags for agents and reviewers. The seven recommended flags are cost-incurring, destructive, irreversible, privileged, open-world, read-only and idempotent. Any other non-empty string is valid |
sample-questions | one item or a list | page | Questions a reader asks that should find this page. An item can also pin the lines that answer it. manni graph check asks them |
No field is required. Both lists of entries need at least one entry, with no
duplicates. risks takes one non-empty string, or a non-empty list of unique
ones. sample-questions takes one item, or a non-empty list of unique items.
A sample question is a non-empty string, or an object that requires
question. A string is a question this page must be found for.
| Key | Type | Notes |
|---|---|---|
question | string, non-empty | The question, as a reader would ask it |
answers | list of pins | The lines on this page that answer it. Without it, the page itself must be found |
generated-by | string, non-empty | The model that drafted the question or any of its pins, as provider/model |
confidence | number from 0 to 1 | The drafting model’s confidence |
reviewed | boolean | false marks a drafted question, and its pins are drafts with it. Absent means true |
reviewed-by | string, non-empty | Who confirmed the question |
A pin in answers requires lines.
| Key | Type | Notes |
|---|---|---|
lines | integer or string | One body line, or a range such as "41-43", counted as a provenance entry counts them |
integrity | string | sha256- and 64 lowercase hex digits over those lines. Without it, the lines are not checked for change |
reviewed | boolean | false marks a pin nobody has confirmed, on a question that is itself confirmed. Absent means true |
Neither object takes any other key. manni graph check asks each question. A pinned one
must find the section that holds its lines, and a pin whose lines moved or
changed is reported.
answers inside a sample-questions item carries x-manni-graph-output: false, so delivered metadata carries the question without its pins. The
mark changes no validation.
A provenance entry requires all three of its keys.
| Key | Type | Notes |
|---|---|---|
generated-by | string, non-empty | The model, agent, or tool that wrote the lines |
lines | integer or string | One body line, or a range such as "12-30". Lines count from the first line after the frontmatter |
integrity | string | sha256- and 64 lowercase hex digits over those lines. It is the entry’s identity |
A meta-provenance entry requires generated-by and at least one of fields
or evals.
| Key | Type | Notes |
|---|---|---|
generated-by | string, non-empty | The model or agent that proposed the values |
fields | list of strings | JSON Pointers to the values it proposed, such as /intent or /graph/label |
evals | list of strings | Kebab ids of the evals it proposed |
confidence | mapping | A number from 0 to 1, keyed by a pointer from fields or an id from evals |
Neither entry takes any other key.
The Location column is the x-manni-location mark each field carries. page
means the value belongs in the document’s own metadata and reaches delivered
output. external means it belongs in the collection’s
external-metadata manifest. A field
is page when an agent fetching the page acts on it. risks and
sample-questions speak to an agent at read time. Both provenance records
describe how the page was made. See
field location for how the marks are
used.
Additional properties
Section titled “Additional properties”Allowed at the root. A generator’s keys and the other vocabularies’ keys pass
beside ai-context’s, which checks only the four keys it claims. The entries in
provenance and meta-provenance are closed, and so are a sample question’s
object and its pins. A misspelled key inside any of them fails.
Example
Section titled “Example”The example keeps every field in the page to show them together. In a collection with a manifest, the two provenance records sit in the manifest.
---title: Install the operator on Kubernetesdescription: Deploy the operator with Helm and verify the rollout.provenance: - generated-by: claude-fable-5 lines: 4-18 integrity: sha256-78af1d3321f9cbb177a7e4c958e39be56fd14cb93c1e441778bc4232e0fe4b1fmeta-provenance: - generated-by: claude-fable-5 fields: [/intent, /sample-questions] confidence: { /intent: 0.9, /sample-questions: 0.84 }risks: [privileged, cost-incurring]sample-questions: - How do I install the operator on EKS? - question: Which Helm values enable the webhook? answers: - lines: 21-23 integrity: sha256-43f97ea38783c4c88d2a558e429656b86aa00e3f5fcf5e5b284293cc41430496 - question: How do I roll the operator back? answers: - lines: 30-32 generated-by: anthropic/claude-sonnet-5-5 confidence: 0.82 reviewed: false---The first question must find the page. The second must find the section that holds body lines 21 to 23. A model drafted the third, and nobody has reviewed it yet.
A common mistake
Section titled “A common mistake”A meta-provenance entry that names a field by its key, not by a pointer,
fails.
---title: Install the operator on Kubernetesdescription: Deploy the operator with Helm and verify the rollout.meta-provenance: - generated-by: claude-fable-5 fields: [intent]---$ manni meta validate page.md --no-config -s manni:core:1.0.0 -s manni:ai-context:1.2.0✗ page.md /meta-provenance/0/fields/0 must match pattern "^/" (line 6) [manni:ai-context:1.2.0] manni:ai-context:1.2.0 meta-provenance/fields Guide: https://hawkeyexl.github.io/manni/meta/reference/schemas/manni-ai-context/ /meta-provenance warning "meta-provenance" is stored in the page; manni:ai-context:1.2.0 prefers external metadata, and --no-config leaves it no manifest. (line 4) [location:external]
1 file checked, 0 passed, 1 failed, 1 error, 1 warningThe exit code is 1, and /intent fixes it. The warning is the external
mark, which fires because --no-config gives the page no manifest.
Design decisions
Section titled “Design decisions”- Machines propose, and humans retire the record. A
meta-provenanceentry is the review trail for machine-filled metadata. A human deletes the entry once its fields are reviewed, so a surviving entry means machine metadata nobody has checked. The same key serves the graph block and both eval vocabularies, evals and artifact-evals. So the whole family has one answer to “which of this metadata did a machine write, and has anyone checked?”manni meta fillwrites an entry for the fields it fills. provenanceattributes the prose, andmeta-provenanceattributes the metadata. They record different facts.provenancepins body lines by hash, andmanni meta derivestamps it from git.linesis where the pin was last seen, so a range that moves keeps its entry. A range whose text changes loses it.- The machines that wrote a page are derived. They are the distinct
generated-byvalues across itsprovenanceentries, and there is no page-levelgenerated-by. Consumers use them for self-preference-bias checks. A judge should know when it is grading its own author. - Humans never appear in
provenance.authorsin stewardship carries them. risksis an open list. Seven flags are recommended.cost-incurring,destructive,irreversible, andprivilegedcover operations.open-world,read-only, andidempotentmirror MCP’s tool annotations, the published prior art for agent-facing hints. Any other non-empty string is valid. The assurances are worth stating, because an unannotated page has not been assessed, which is different from being safe. For the same reason, a consumer that branches on a flag treats an unknown value as a caution.sample-questionscloses the retrieval loop.manni graph checkasks each one through the retrievalmanni graph searchuses. It reports a page outside the top results for its own question. It measures finding, not answering. Per-page assertions belong to the evals vocabulary instead.- A pinned answer holds the question to the passage, not the page. A long page can rank first for every question and prove nothing about the paragraph that answers one. A pin names those lines by hash, the way a citation does. So a rewrite that moves or changes the answer is reported, where an unpinned question would still find the page.
- Review state travels with the question.
reviewed: falsemarks a draft, and a missing key means a person wrote or confirmed it. A pointer intometa-provenancewould name a different question as soon as an earlier one was deleted. A pin has its ownreviewed, so pairing a person’s question with a drafted answer leaves the question confirmed.
Strict overlay
Section titled “Strict overlay”Strict overlay id: manni:ai-context-strict:1.2.0
Published at https://hawkeyexl.github.io/manni/schemas/ai-context-strict/1.2.0.json.
The overlay holds only what strict adds. It narrows the form of a value that is
present and requires no key. A page with none of the vocabulary’s fields
still passes it.
| Field | Strict adds |
|---|---|
meta-provenance[].generated-by | A model id with no spaces, made of letters in either case, digits, ., _, :, /, \, @ and -. GPT-4o and a Windows path to a local model pass |
meta-provenance[].fields | Each pointer is well formed under RFC 6901, so every ~ begins ~0 or ~1 |
meta-provenance[].confidence | Each key is such a pointer or a kebab eval id |
risks | Closed to the seven recommended flags, in the string form and the list form alike |
provenance is the same in both. manni meta derive writes a commit
trailer’s name there as git records it, such as Claude Opus 5.5.
strict: true stacks it right after the vocabulary, with every other
default’s overlay beside its own base:
meta: strict: trueTo adopt this overlay alone, list its id. The default set already carries the vocabulary:
meta: schemas: - manni:ai-context-strict:1.2.0Each schema is checked on its own, and a finding names the one that produced it. A strict-only failure reads as one.
---title: Install the operator on Kubernetesdescription: Deploy the operator with Helm and verify the rollout.risks: [privileged, needs-vpn]---$ manni meta validate page.md --no-config -s manni:core:1.0.0 -s manni:ai-context:1.2.0 -s manni:ai-context-strict:1.2.0✗ page.md /risks/1 must be one of: "cost-incurring", "destructive", "irreversible", "privileged", "open-world", "read-only", "idempotent" (line 4) [manni:ai-context-strict:1.2.0] manni:ai-context-strict:1.2.0 risks: One of the seven named flags. Guide: https://hawkeyexl.github.io/manni/meta/reference/schemas/manni-ai-context/
1 file checked, 0 passed, 1 failed, 1 errorThe open vocabulary accepts needs-vpn, so the overlay alone fails the page.
Version 1.1.0
Section titled “Version 1.1.0”Built-in id: manni:ai-context:1.1.0
Strict overlay id: manni:ai-context-strict:1.1.0
Published at https://hawkeyexl.github.io/manni/schemas/ai-context/1.1.0.json
and https://hawkeyexl.github.io/manni/schemas/ai-context-strict/1.1.0.json.
Version 1.2.0 validates exactly as 1.1.0 does. The two differ in one mark.
Version 1.1.0 leaves answers unmarked, so delivered metadata keeps the pins.
Both ids still resolve, and a page that names one keeps it. A set listing
1.1.0 replaces 1.2.0 in the default set. Under strict: true, 1.1.0 pairs
with the 1.1.0 overlay.
meta: schemas: - manni:ai-context:1.1.0Version 1.0.0
Section titled “Version 1.0.0”Built-in id: manni:ai-context:1.0.0
Strict overlay id: manni:ai-context-strict:1.0.0
Published at https://hawkeyexl.github.io/manni/schemas/ai-context/1.0.0.json
and https://hawkeyexl.github.io/manni/schemas/ai-context-strict/1.0.0.json.
It defines the same four fields, and a sample question is a string only. A
config that lists it replaces 1.2.0 in the default set. Under strict: true,
the 1.0.0 overlay replaces the 1.2.0 overlay too. A page held to it that pins
an answer fails:
$ manni meta validate old.md --no-config -s manni:core:1.0.0 -s manni:ai-context:1.0.0✗ old.md /sample-questions/0 must be string (line 5) [manni:ai-context:1.0.0] manni:ai-context:1.0.0 sample-questions Guide: https://hawkeyexl.github.io/manni/meta/reference/schemas/manni-ai-context/
1 file checked, 0 passed, 1 failed, 1 errorThe same page passes under 1.1.0 and 1.2.0.