Skip to content
LITHOEN

Evidence platform and governance

Document

ADR-0065 — The research record is published; the fixtures and the copies are not

Repository path
docs/decisions/ADR-0065-the-research-record-is-published-the-fixtures-and-copies-are-not.md
Size · SHA-256
8.6 KB · 95c1f7003b7d713eb607d932e9ce4371a551e19009475234b5094301b53c8938

Status

Accepted, 2026-11-14, at the owner's direction to make all of Lithoen's work publicly available on the site and to give the site an information architecture that can carry every domain. It amends ADR-0004 (the public/private boundary) and the classification table in docs/data-governance/DATA_CLASSIFICATION.md. It does not delete any gate.

Context

ADR-0004 built the boundary so that apps/web could not ship anything outside data/public and content/. Four mechanisms enforced it: classification by directory, scoped loading through @lithoen/projection, a static scan of web source for non-public paths, and a post-build scan of every output file for canary markers and — in browser-facing files — for any mention of a non-public store path.

By November 2026 almost everything Lithoen had made lived outside those two directories: core-programme phases 0 to 77 and steps 0 to 5 of pre-registered protocols, ledgers, outcomes and gate verdicts in data/internal/; sixty-four ADRs, policies and preregistrations in docs/; and two desk-research programmes (rubber, tyres and recovered carbon black; a mobile hospital bed) in docs/research/. None of it was secret. Most of it was classified INTERNAL — "not secret, but not asserted publicly" — and the owner has now decided that it should be public.

Three kinds of file in those trees are not Lithoen's to publish, or must not be published:

  1. The canary fixtures. Seven files carry a leak-detection marker. Their whole purpose is that the build can prove they are absent from its output.
  2. Third-party copies. Twenty-six retained publications (journal articles, survey bulletins, data sheets, a company presentation) and twenty-nine raw dataset files kept exactly as retrieved (one of them, a USGS metadata file, also carries named contacts). The public source and dataset records already cite them, give their licence and link their origin. Most publishers' terms do not permit redistribution; for the public-domain and CC-BY ones the origin remains the authoritative copy, and Lithoen has no reason to mirror it.
  3. Personal data. Individual e-mail addresses appear only inside third-party copies. One account identifier — the private repository's owner/name — appears in two protocols.

The canon's rules — a claim is PUBLIC and PUBLISHED, it passed review, its chain is publishable — were never designed for a protocol or a ledger, and must not be bent to admit them. A research record is not a claim.

Decision

  1. A second public surface, the research record. The project's own working research is published whole, as research records, at /research. It is never projected as canon: no research file becomes an entity, a claim or an article, and every research page says that it shows a record as it was recorded, not a canon assertion. Records keep the classification they were written under; the classification still decides what may become canon (mayReachPublicWeb is unchanged), not whether the working record may be read.

  2. Publication by rule, with every file accounted for. @lithoen/corpus (packages/corpus/src/research.ts) enumerates every file under data/internal, data/restricted, research and docs and classifies each one exactly once, in this order:

    • contains a canary marker (matched by the marker's shape, so no marker is ever embedded in a package that the web bundles) → held back, CANARY_FIXTURE;
    • under data/restricted/, research/hypotheses/ or research/experiments/ → held back, RESTRICTED_STORE. The RESTRICTED class is not opened by this decision; today it holds only a fixture and a placeholder README;
    • contains an individual's e-mail address (institutional addresses on an explicit list are allowed) → held back, PERSONAL_DATA;
    • under data/internal/publications/ → held back, THIRD_PARTY_PUBLICATION, shown as its public source record's citation, licence statement and origin link;
    • a raw dataset file under data/internal/{geology,geochemistry,spatial}/raw/ or data/internal/deposits/ (their READMEs excepted) → held back, THIRD_PARTY_DATASET, shown as its dataset record's title, licence and origin URL;
    • a .geojson layer under data/internal/features/ → held back, DERIVED_GEOMETRY: the feature definitions and manifests are published; the coordinates are listed with size and checksum, not served as pages;
    • any other binary → held back, UNRENDERABLE_FORMAT;
    • everything else → published.

    A new file is therefore published by default unless a rule holds it back, and a held-back file always carries its reason. /research/held-back lists every held-back file with its rule, size and SHA-256.

  3. Personal identifiers are redacted at projection time. The repository's owner/name form is replaced with "the private Lithoen repository" before rendering, and the page says that a redaction was made. Nothing else in a published file is altered.

  4. Only @lithoen/projection renders research. packages/projection/src/research.ts reads research bytes only through loadResearchPublication, maps files to stable URLs (/research/documents/… for docs/, /research/records/… for data/internal/, /research/workspace/… for research/), renders Markdown with raw HTML escaped and relative links rewritten (to the published page, to the held-back list, or to plain text), and extracts gate verdicts mechanically from the records that state them. It never infers a verdict: a unit with no machine-readable verdict is shown as having none.

  5. The leakage gate changes deliberately, and only where the record now requires it.

    • Canary markers: unchanged. Any marker anywhere in the output fails the build.
    • Web source (scripts/lib/boundaries.ts, ESLint): unchanged. apps/web still may not import the corpus, validators or schemas, and may not name a non-public store path; research reaches it only through the projection.
    • Browser-facing store paths: ADR-0004 failed on any mention of a non-public store path. The research record cites store paths in its own text — a protocol says where its inputs live — so the rule now fails on any link (href, src, action, srcset, or an RSC href/src property) whose target is a non-public store path. The public/ directory is now scanned too.
    • New: held-back bytes. Every output file is compared by SHA-256 against every held-back file, and searched for a fingerprint of each: for a text file, the longest run of plain characters that occurs in no published file and in no canon record (so escaping cannot hide it and a hit can only mean the held-back text was rendered); for a binary, a window from the middle of its bytes.
    • New: personal identifiers. Browser-facing output must not contain the identifiers in scripts/canaries.ts.
    • The route audit now also requires a canonical on / and that every canonical names the configured site host.
  6. Information architecture. /domains joins each domain's canon hubs to its research programmes; /research introduces the record; six programme pages (/research/programmes/…) group files by phase, step, cycle or sub-study with their verdicts; /research/verdicts indexes every machine-readable verdict; search covers research files. Everything is statically generated (generateStaticParams with dynamicParams = false).

Consequences

  • About 1,270 research files become public pages, and the sitemap grows accordingly. A research page can be wrong in the way a working note can be wrong; the label on every page says so, and corrections continue to be made by new records, never by editing frozen ones.
  • The proof that nothing non-public ships now rests on four checks over the output instead of one: canaries, links, checksums and fingerprints, and personal identifiers — each with RED and GREEN tests in tests/research-publication.test.ts and tests/boundaries.test.ts.
  • A future third-party copy must be placed in one of the held-back directories, or a rule must be added for it, in the same change. A copy placed elsewhere would be published by default; the review that adds a source is where this is caught, and the fingerprint scan cannot catch a file that was never held back.
  • Opening the RESTRICTED class, or publishing a canary fixture, remains a separate decision. So does serving the derived geometry layers as downloads.