Every Document Is Now Classified Before It Ships
The leak that started it
A confidential revenue figure ended up in a public slide deck. Not through malice — through the ordinary gap between "someone produced a document" and "someone checked what was in it." A slide made for an internal update got carried into a customer-facing deck, and nothing in the pipeline stopped it.
The fix isn't "be more careful." The fix is making the check structural: a document can't exist in the system without being classified, and it can't be classified as public unless a verifier says so.
What we built
Every document that enters the AitherOS knowledge base — pasted text, uploaded files, fetched URLs — is now tagged at the door with four classifications:
- Type — deck, blog post, PRD, transcript, report, memo, decision, spec, docs, guide, code, data, email, social post, minutes, contract, research…
- Visibility — public, internal, or confidential
- Audience — who it's for: customers, investors, internal teams, the public
- Topics — what it's actually about
Classification runs in two layers. A deterministic rules pass works offline and is deliberately conservative — it will never emit "public" for a document that lacks an explicit public marker, no matter what the text says. Then an LLM pass adds nuance — type, audience, topics, a confidence score and the reasoning behind the verdict — but its output is validated against the fixed taxonomy before anything is stored.
The contract that makes it trustworthy
The fail-closed rules are the load-bearing part:
- A document is only classified if the verifier accepts the result.
- "Public" requires proof. No marker, no public. An ambiguous or invalid verdict defaults to internal.
- If classification can't run at all — timeout, outage, anything — the
document still enters the knowledge base, but it carries an explicit
classified: falseflag with the reason. A document that couldn't be checked is never silently treated as checked. - Publishing surfaces must require
classifiedandvisibility == "public"before anything ships outward.
That last rule is the whole point: the system is built so the cheapest way to publish is to have a verified public document, and the expensive path — publishing something that was never checked — doesn't exist.
Proven live
We tested it against the shape of the original incident: a document carrying closed revenue numbers, a first customer, a pipeline figure. Through the live system it classifies as confidential — engine-verified, confidence 0.8 — in seconds, across every ingestion door: text, file upload, and URL.
The public CLI: awclassify
The engine is open. awclassify is a zero-dependency CLI that classifies
anything locally — rules-based out of the box, with the same fail-closed
semantics as the platform engine. It runs standalone, or against any
classify-shaped server you point it at.
pip install git+https://github.com/Aitherium/awclassify
awclassify classify confidential-deck.md
# doc_type=deck visibility=confidential audience=investors topics=[funding, revenue]
Same taxonomy, same contract: no marker, no public.
What this changes
Documents were the one asset class with no check between creation and publication. Now classification exists as data before anything ships — so a publish gate can ask a question that used to require a human to read the whole document, and the answer is already attached to the file.
The next time someone carries an internal slide into a public deck, the system doesn't hope someone notices. It tags the slide confidential the moment it lands — and the publish path refuses to carry it. And if the classifier can't run at all, the document is flagged unclassified with the reason attached, never assumed fine — the one thing a publish gate must never do is treat "not checked" as "public".
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.