A research project on certified document tagging with concepts from a controlled vocabulary: the system applies a tag automatically only if the error rate among automatic tags is certified under the procedure’s independence and exchangeability assumptions (with probability 1 − δ) not to exceed α, and sends everything else to an expert. These are conditional statistical assumptions, not an unconditional deployment guarantee; the experiments below demonstrate violations under temporal drift and unrecognised copies.
Working paper title: "Copies Are Not Corroboration: Certified Document Tagging under Source
Duplication" — draft in docs/paper/draft.md.
See the evidence review interface
The Studio guide documents the local review workflow. To investigate where the statistical guarantee breaks, compare the duplication and temporal results in Main results.
Corpus: MultiEURLEX (English, 127 EuroVoc concepts) plus 274k act-to-act relations from
EUR-Lex. Every experiment was registered in docs/PROTOCOL.md before it
was run; the held-out test period was opened once, in protocol 3.0 (results).
- The citation graph does not improve accuracy beyond retrieval. LEGAL-BERT + retrieval of similar documents automates 56.3% of tags at α = 10%, LEGAL-BERT + graph 55.4% (protocol 1.0 results).
- Retrieval of similar documents breaks the guarantee when copies enter the collection. With 30 copies of a source, the realised risk on affected documents is 16.3% at a certified 10% (confirmatory run, protocol 2.1 results; first attempt: 2.0).
- Provenance-aware aggregation removes the effect of copies the detector recognises (by
construction for exact copies) at no cost on clean data, but not of edited copies that
MinHash misses; the citation graph is unaffected (−0.1 pp), because a copy with a new
identifier receives no incoming links. An independent critical review of these claims is
in
docs/REVIEW_LOG.md. - Certificates do not transfer in time. On the held-out period (2012–2016, three seeds), policies certified at α = 10% on 2010–2012 acts run at 10.7–12.3% risk; findings 1–3 replicate there (protocol 3.0).
- Re-certification on ~1,000 recent labelled documents restores α = 10%; quarterly re-certification on the last six months keeps α = 5% pooled, though not in every quarter (protocol 4.1). Word containment detects deleted copies at any deletion rate. Moderate token substitution (5–30%) evades every detector tested yet still raises risk (protocol 4.0). LLM paraphrases do the same (11–15% attributed, +5 to +6 pp risk for naive kNN). Grouping identical copies neutralises a few paraphrases mirrored many times, but not a fresh paraphrase per copy (protocol 4.2).
- Strong text is the main lever: at α = 5% automation grows from 4.9% (TF-IDF) to 34.3% (LEGAL-BERT + kNN).
Core/Studio are a trusted local research demonstrator. Keep the API on loopback. Local Host/Origin browser guards do not authenticate remote users or make reviewer labels verified identities; remote deployment requires an authorized IAM/RBAC design and separate acceptance.
services/core turns these results into a service: ingestion with
provenance, suggestions with supporting evidence, expert review with optimistic concurrency,
certified auto-apply per catalog and audit-based monitoring that suspends auto-apply when the
guarantee no longer holds. On MultiEURLEX with 2,000 reviewed documents, it certifies a
threshold at α = 10% and auto-applies tags to later documents with a realised error rate of 6.3%.
docker compose up --build # API on http://localhost:8000/docs| Path | Contents |
|---|---|
docs/PROTOCOL.md |
evaluation protocol: versions 1.0, 2.0, 2.1 and their history |
docs/paper/draft.md |
paper draft |
research/ |
research code, tests, reports |
services/core/ |
EviGraph Core service (FastAPI, PostgreSQL) |
apps/studio/ |
EviGraph Studio IDE (Theia + GLSP) |
docs/IMPLEMENTATION_PLAN.md |
product milestones and status |
research/reports/ |
JSON results and a report per protocol version |
research/reports/figures/ |
paper figures |
cd research && make dev && make allThen, in order: uv run evigraph-research strong-text (LEGAL-BERT fine-tuning, ~6 h on Apple
MPS), uv run evigraph-research compare (protocol 1.0), uv run evigraph-research h2 --version 2.1
(protocol 2.1), and uv run python -m evigraph_research.figures h2_results_v21.json.
The original product idea — an IDE for reviewing a knowledge graph built from documents (Theia + GLSP, a Python core) — is described in the initial architecture document; the research part establishes what such a system can base its quality guarantees on.
Code: Apache License 2.0 (LICENSE); apps/studio is derived from an Eclipse GLSP
template and keeps its EPL-2.0 / GPL-2.0 / MIT terms. Data are not included and keep their own
licenses — notably RusLawOD is CC BY-NC 4.0 (research use only). See NOTICE.
Studio's Monaco sanitizer has a version/hash-bound local backport, checked in Chromium against hostile HTML and actual browser assets. Other transitive advisory matches remain, including CLI archive/tooling dependencies. See the current dependency security boundary. Use trusted local workspaces; remote hosting and untrusted extensions are not qualified.

