corpus.333.eco
An MCP server for an open-licensed corpus — mechanism papers, essays,
institutional positions, white papers and the Letters to Miss Aquarius — served
with verifiable provenance.
155 documents. 147 CC0-1.0 · 8 CC-BY-4.0. 108 carry a DOI; 155 carry an OpenTimestamps proof.
Written by npm run build from the index itself — see scripts/build-index.mjs.
npx @333eco/corpus
Every response carries the document's sha256, its DOI where one exists, and
whether an OpenTimestamps proof is anchored beside the source. A retrieval
server normally asks to be believed. This one hands over the means to check it.
Why that matters
An agent that cites a passage is in a worse position than a human who does: it
cannot walk to the shelf. It takes whatever the transport delivered, and nothing
about a plausible-looking response distinguishes the canonical text from a
paraphrase, a truncation, or a substitution somewhere upstream.
So the check moves into the response:
"provenance": {
"sha256": "91a41c759b1e9fdac3c0da667fe32a906aef98e4edec4832c09ac27b2c7663c0",
"doi": "10.5281/zenodo.22217516",
"opentimestamps": true,
"deposited_matches_current": true,
"hostile_review": null,
"verify": {
"sha256": "printf '%s' \"$(cat <file>)\" | shasum -a 256 # compare to provenance.sha256",
"doi": "https://doi.org/10.5281/zenodo.22217516",
"opentimestamps": "ots verify defensive-publications/zero-point-game.md.ots"
}
}
The verify block is an instruction, not a promise — it tells you exactly what
to run, so you do not have to trust this sentence either.
hostile_review is the date of the latest ruled review by an outside reader chosen as
the one most likely to find the document wrong, whose section structure still matches
the text served — or null, stated rather than omitted. It is derived from the corpus's
public reviews.json (roles only, never names), and a structural revision resets it.
⭐ The demonstration is the contribution. Anyone can propose provenance-carrying
retrieval. Serving it over a corpus where the anchors are already years deep in
the Bitcoin blockchain is a different claim, and it is not one that can be
manufactured on a schedule.
Tools
| Tool |
Returns |
search_corpus |
matching documents, provenance envelope, and an excerpt around each match |
get_document |
one document in full — canonical text, never a summary |
read_documents |
whole documents — a shelf (the list_documents filters) or a list of slugs — one content block each, paged by size |
list_documents |
slugs, titles, genres, licences, provenance summaries, sizes, and the manifest's completeness counts |
check_passage |
whether a passage is served — verbatim, with the same words, or not — and for a near miss, the nearest served passage and exactly how the two differ |
list_predictions |
the research program's pre-registered predictions, with falsifiers and status |
get_prediction |
one prediction, plus the provenance envelope of the paper that registered it |
get_program |
the program's hard core, chapters, stopping rule and count reconciliation, verbatim |
⭐ search_corpus matches the phrase first, then all terms. An exact substring hit
always wins and ranks above everything else — which keeps B-Heart and Re-Tip precise,
since the tokeniser holds hyphenated marks together. If the phrase is absent, a document
matches when it contains every term somewhere (AND, never OR), ranked by how tightly
those terms cluster. Each hit reports match: "phrase" | "terms", because a term match's
excerpt need not contain the words you typed.
⚠️ This replaced a bare indexOf, and a real caller paid for it. The first external
client to reach the hosted endpoint searched "gratitude alignment human wellbeing kindness"
and got zero results — while each of those words alone matches many documents.
Nothing was missing from the corpus; the matcher demanded that exact five-word string appear
verbatim. A zero result was recording the matcher's limits while being read as a gap.
⭐ On a zero result the response now names which terms appear in no document at all
(absent_terms), so a dead end says something instead of nothing.
⭐ Diacritics are optional. metta finds what mettā finds, and Tonle Sap reaches the
text that writes Tonlé Sap — before 2.4.1 a plain-ASCII query found 6 documents where the
marked one found 20. ⛔ Fold to match, serve verbatim: the fold touches only what is
compared, and every excerpt carries the corpus's own spelling, because a Pāli or Sanskrit
spelling is a tradition marker rather than a typo. Only Latin combining diacritics are folded;
Khmer and Burmese vowel signs are marks too, and are left exactly as written.
⭐ Every result says it is an excerpt. The text ends with a line naming how many of the
matches it shows and the read_documents call that reads those documents in full. It sits in
the result rather than only in the server's instructions, because a result reaches the model in
every client, at the moment it decides whether to keep reading.
Reading a whole shelf
⭐ Search answers from excerpts, and a model answers from what it opened. A frontier
model connected to this server gave answers that were accurate but incomplete: it searched,
opened a few documents and stopped. The fix is not a bigger context window — a shelf of this
corpus already fits one — but a way to read the shelf.
list_documents reports bytes and words per document and total_bytes /
total_words for the filtered set, so a caller can see whether a slice fits before reading
it. ⛔ Never tokens: a token count is true for one tokenizer and wrong for every other
model family; bytes and words are checkable.
read_documents takes the same filters as list_documents — or slugs — and returns
every matching document in full, one content block per document, each behind its
provenance header, so each still verifies on its own. ⛔ Never a concatenation and never a
summary.
- Paged by size.
max_bytes defaults to 90,000 (under the 25,000-token point at which
Claude Code moves a tool result into a file) and may go to 400,000. A document is never
split — half a document verifies nothing — so one larger than the page arrives alone and
says so in its [PAGE] line. That last block names the cursor for the next page; a cursor from a
different corpus version is refused rather than serving page 2 of another corpus.
list_documents says how to read what it listed: read_with carries the same filters as
read_documents arguments.
⚠️ The server can point; it cannot make a model read. Its instructions say for a broad
question, read the relevant shelf in full — deliberately conditional, because a whole shelf read
to answer a one-fact question is slower, costlier and often worse. Clients differ in whether they
show server instructions at all, which is why the pointers also live in the results.
⭐ Every document ends with an [END OF DOCUMENT — <slug> · <n> words] line, by every
route. The server never cuts a document, but a client may, and a cut document reads as a
complete one. The end is stated in the text, where a cut removes it — not in a field that would
survive the cut and assert a completeness the text no longer has.
Checking a quotation
⭐ A hash tells a machine reader one bit — matched or not — and that bit is nearly useless in the case that
actually occurs: a quotation that is almost right. check_passage lays a passage beside the corpus and says
where it is served verbatim, where it is served with the same words (differing only in punctuation,
formatting, case or diacritics), or — for a near miss — the nearest served passage and each difference: a
word changed, dropped or added. Every excerpt it returns is the corpus's own bytes; the matching folds, the
answer never does.
⛔ It judges the passage, never the person. No score of the asker, no inference about intent, and the passage
text is not recorded — a quotation someone checks is their business. The idea is old: a disputed reading was laid
beside the collection and judged by where it agreed, explicitly not by who recited it (see The Reciters'
Protocol in the corpus).
Nothing silently missing
The envelope proves each served document authentic; nothing used to prove that none was
dropped. The build now writes a manifest — every file it considered, and what became of
it — and refuses to finish unless candidates = served + excluded + held. Both surfaces refuse
to serve a corpus whose documents do not match its manifest, and two files claiming one slug
fail the build rather than leaving one listed and unreadable. The counts, and the reason for
every exclusion or hold, arrive in list_documents under completeness; the full manifest is at
https://corpus.333.eco/manifest.json. ⚠️ It detects omission, not tampering — each
document's sha256 is the other half.
⭐ The three program tools return the STATING PAPER's envelope, not the register's.
That is the register's own instruction rather than a design flourish: "verify the
stating paper against its stored proof rather than trusting this register — this
file is a convenience index, and the proofs are the evidence." A prediction's
authority is the paper that registered it, so that is the hash, DOI and
OpenTimestamps command a caller gets back. Every field is a verbatim table cell,
and the build refuses to emit one that is not — a field must match a complete
cell of its source, because a fragment of a cell is still a substring of it.
The program tools appear only when the index carries a program block. An index
built over a corpus without one advertises five tools, not eight.
Resources
Every document is also an MCP resource at corpus://<slug> — listed by
resources/list (paged), described by the corpus://{slug} template, and read by
resources/read.
⭐⭐ A resource carries its provenance IN THE TEXT, not beside it. A tool
response wraps a document in an envelope and the caller reads the envelope. A
resource is consumed differently: clients hand its contents straight to a model as
context, and a mimeType field does not travel with a quotation. So every read
returns a [PROVENANCE — corpus.333.eco] header — licence and whom to attribute,
sha256 and what it does not cover, both DOIs, the OpenTimestamps command, and
the one-line curl … | shasum check — followed by the document verbatim and its
[END OF DOCUMENT] line.
This is the letters' rule applied a second time. Voice in the letters is marked
inline rather than in metadata because with a field an agent must LOOK to know;
with a marker it must STRIP not to. The same asymmetry decides this.
subscribe and listChanged are deliberately not declared: the corpus is fixed
for the life of a build, so a subscription would promise notifications that can
never fire.
Prompts
Three worked examples of the API — orient, verify_a_quote(slug),
what_would_falsify(claim) — surfaced as slash commands in clients that support
them, with slug autocompleted by completion/complete.
⛔ A prompt here may describe the API. It may never describe the subject
matter. The moment one says something about the corpus's claims, this server has
begun editorialising on its own documents — which is precisely what the provenance
envelope exists to make unnecessary. There is deliberately no "verify before
citing" prompt: that would be a rule where the server already has a property,
since every document by every route arrives behind a header the reader must
actively strip.
Attribution is a build-time property
Most documents are CC0 and the rest CC-BY (counted in the licence table below). A CC-BY document that names no author
hands every consumer an obligation nobody can discharge, so the build fails
rather than serving it — the same reasoning as the licence gate: a property, not a
rule someone has to remember.
Documents come as text; everything else is structured. get_document and
read_documents return content only — each document behind its provenance header
and ending at its [END OF DOCUMENT] line. The other tools return structuredContent
(the typed object) plus a readable or compact content, and anything a reader needs —
search's reading line included — is in the structured part.
⛔⛔ Why the document tools carry no structuredContent (2.4.2). From 2.0.0 to 2.4.1
they split by role: text in content, the envelope without the body in
structuredContent. A Claude client shown a result that carries structuredContent hands its
model only that part — so for eleven days no document text reached any Claude-based
reader, while every check here passed, because every check read the server's output
directly rather than through a client. The MCP spec assumes the two parts carry the same
information; a server that splits them is at the mercy of whichever part a client picks. The
document is the payload and its provenance already rides in the header, so the document tools
now send the text and nothing else — and check-parity fails if either ever carries
structuredContent again. outputSchema is deliberately not declared: a schema binds the server
on every future change.
Text is returned verbatim and is never summarised. Not a stylistic
preference — a summary cannot be hash-verified, so summarising at the server
would destroy the only property this server has.
Licences, and the gate
| Licence |
Documents |
| CC0-1.0 |
147 |
| CC-BY-4.0 |
8 |
CC-BY documents carry attribute_to inside their licence block, so an agent can
comply without parsing a licence identifier.
⛔ The gate is a property, not a policy. A document reaches the index if and
only if its own source declares a licence this corpus publishes under. There is
no glob and no directory allowlist, because the source repositories are not
uniformly licensed and never were:
TH/publications — CC0, plus the CC-BY author-voice essays
TH/film — rights-reserved, a separate repository by licence. Never served.
333.eco — the namespace policy is commercial and explicitly unpublished.
A glob would have relicensed the author-voice essays by publication. A file with no
declaration is excluded and reported, never assumed CC0 — the default-open
failure is the one nobody can undo after somebody builds on it.
⚠️ The gate lives in scripts/build-index.mjs, not in the request path. A gate a
refactor can route around is a rule; a gate in the artifact is a property. The
server has no filesystem access to the corpus at all — it can only serve what
the index contains.
The letters, and voice marked inline
The five Letters to Miss Aquarius are the one genre only partly in its
author's voice. Each says so in its own banner: the author's articulations are
set as quotations, and the connective prose was drafted for the letter form and
awaits his revision.
They are served whole, with the voice marked inline: