Cryptographic Data Attestation · Zero-DB-Call AI Gateway Prevalidator
Your AI gateway can inspect what passes through it — the conversation, and the data in or referenced by the request. What it isn't given is that data's record at the source: who owns it, how it's classified, whether this copy matches the attested bytes, or whether its approval has expired. G1 Docket inspects your storage, issues every file a signed, expiring record, and checks that record before any AI touches the data. No record, no service.
Welcome to G1 Docket. The idea is simple: your data needs papers, not paperwork. Before any record, document, or file from your estate is allowed anywhere near a large language model, Docket's engine classifies it where it sits. It never moves your data. And issues it a signed, expiring attestation record.
The record carries 39 fields, arranged in seven groups, covering what the data is, how sensitive it is, where it came from, and what may be done with it.
Then Docket's prevalidator stands at the door, in front of your existing AI gateway, or directly in front of the model if you do not run a gateway, and checks the papers on every request, in order: Is there a record? Is the signature valid? Has it expired? Is every chunk covered? Does policy allow this use?
Papers in order, the request goes through. Expired record, denied. A restricted chunk, stripped, where policy allows. No papers at all, the whole request stops. Expired means expired.
Think of it as a virtual pod: vetted data separated from unvetted by proof, not by place. The separation of a dedicated AI pod, without the dedicated hardware, the isolated network, or the duplicated copy.
And think of Docket as the thermostat for your data: you set the limits once, and Docket holds them, consistently, on every request.
Rollout is deliberately boring: test one collection, stand the prevalidator in front of one gateway, and expand collection by collection.
And be clear about what Docket is not: it does not screen prompts, it does not move or copy your data, and it does not replace your gateway. It papers your data and checks the papers. Safer, because nothing unpapered ever reaches the model. Faster, because the check is a fingerprint and a signature, not another model call.
Docket is open source under the Apache license. There is no license fee, and it runs on infrastructure you already have. One line installs it: pip install g1-docket-sdk.
Keep your gateway, keep your model. Just make your data show its papers. That is G1 Docket.
Canonical Locator: file://pc-dir/pc_demo_folder/01_public_release_notes.md
Signed · DSSE envelope · in-toto v1 attestation statement
Sample attestation record — demonstration data.
The Problem
Everything your AI can reach sits in storage that was never given papers — and nothing checks papers at the moment of use.
Documents and records carry no owner, no sensitivity level, no expiry. The label that would say whose it is and how it must be handled simply isn't there.
A gateway can inspect what passes through it. It still doesn't know what the data is at the source — who owns it, how it's classified, whether this copy matches the attested bytes, or whether its approval has expired. Docket checks the record before the gateway has to guess.
Where labels do exist, they are unsigned, they never expire, and nothing checks them at the moment of use.
The data never moves. The proof does.
Every request that references data meets the Prevalidator before it meets your gateway. The guard doesn't re-read the document — it checks the record against the signed snapshot it already holds in memory: signature, fingerprint, expiry, clearance, egress. Pick a request below and run it through the door.
POST /v1/chat/completions · references file://pc-dir/pc_demo_folder/01_public_release_notes.md · requester clearance: PUBLIC · egress: public_api
How It Works
An inspector, a passport office, a courier, and a door guard — each doing one job, in that order. Each part carries its own color; no part outranks the others.
The Engine walks your storage in the background — file shares, cloud buckets, document libraries, databases. It fingerprints each item with a hash, where one changed letter changes the fingerprint. It reads the contents and detects categories of sensitive information — types and counts, never the values — then proposes a level. In the code it works through Apache Tika extraction and Microsoft Presidio classification, reads embedded Purview sensitivity labels, and also takes real-time ETL intake webhooks from dbt Cloud and Apache Airflow.
The Registry keeps every record — locator, owner, fingerprint, level, handling rules, expiry — as the authoritative catalog on PostgreSQL. Levels can be raised anytime. Lowering a level takes two people's sign-off. Restricted and low-confidence findings wait in a human-review queue, content-hash drift triggers re-classification, and any record can be revoked on the spot.
Records are packed into one compact signed file and delivered to the door: a short-TTL, DSSE-signed snapshot with monotonic sequence numbers and active, expired, and revoked tombstones. The guard carries a fresh signed copy of the whole stamp book in memory — and never phones the office mid-conversation.
The Prevalidator sits in front of your existing gateway and checks the record for the data a request references. It speaks the standard OpenAI (/v1/chat/completions), Anthropic (/v1/messages), and Google Gemini request formats, including SSE streaming, evaluating records entirely from the in-memory snapshot — zero database calls in the request path. It gives one of three answers:
ALLOW
The record is valid, the requester has clearance, the destination is allowed. Papers in order — the request proceeds to your gateway.
STRIP
Go ahead without this piece — the sensitive part is removed and the rest flows.
DENY
One plain, identical refusal that reveals nothing about which rule fired, so probing can't map your data.
The Record
Every attestation record carries 39 fields across the same seven mandatory groups. No exceptions, no partial papers.
The locator — the address of the data in your storage.
The accountable owner of the data.
A content hash of the item as inspected.
Public, Internal, Confidential, or Restricted.
What kinds of sensitive data were detected — types and counts, never values.
Who may use it, whether AI may use it, where it may travel.
Sensitive data expires fastest — 30 days for Restricted, 90 for Confidential, 180 for Internal, 365 for Public, by default.
Missing any one of them, the data gets no record — and no record means invisible to AI.
Why It's Safer
Unstamped data is invisible to AI. Access is something data earns, not something it starts with.
Records are cryptographically signed in DSSE envelopes and can't be quietly altered — a changed file no longer matches its fingerprint.
Every record expires. The more sensitive the data, the sooner the record runs out.
Kill a record and the next snapshot — minutes later — enforces it everywhere.
Every “no” is identical, so a refusal never explains itself to someone probing.
Every door decision is logged with its reason. After an incident, answer exactly what data went to which AI, under whose authority, and why it was allowed.
Why It's Faster
Other tools re-read the whole document on every request. Docket reads it once, stamps it, and every later request is a glance at the stamp. The published budget for that glance: p99 hot path ≤ 5.0 ms, with zero database calls.
One honest note: if your gateway does no content checking at all today, G1 Docket adds one small lookup to each request. What it removes is every repeated full inspection downstream.
Governance
The governance subsystem runs downstream of the Prevalidator: the audit trail, the exceptions process, and the telemetry feed.
Every decision lands in a write-once ledger: triggers reject any UPDATE or DELETE, and each entry is SHA-256 hash-chained to the one before it, from the genesis block to the tip. A chain-walk verification re-checks the whole ledger and pinpoints any tampering.
Unattested data, forged envelopes, and policy denials are quarantined. Release takes two distinct authorized operators: a requester stages the override with a rationale, and a different approver co-signs an Ed25519 DSSE emergency admission ticket. One person can never let their own exception through.
Consoles authenticate operators by name and role — admin, triage operator, security approver, read-only auditor — with PBKDF2 password derivation, TOTP two-factor for approvers, brute-force lockout, and enterprise SSO/OIDC through Entra ID, Okta, Google Workspace, or Ping. Every auth event is itself written to the WORM ledger.
Rollout
Docket earns its place one area at a time, starting by watching rather than blocking.
Standard containers, started with a single docker compose command. Your keys, your boundary — nothing phones home.
The first walk only looks. It fingerprints, detects, and proposes levels; it changes nothing.
Begin with the data your AI actually reads, not the whole estate at once.
Nothing is blocked. Unstamped requests are logged and jump the scan queue — your own traffic writes the priority list. The Audit Runway monitor tracks coverage, denial stability, and triage disposition until the exit criteria say you're ready.
When an area's papers are in order, its door starts checking them.
The Stack
Each component runs as its own service inside your boundary, with its own API docs — plus a mock gateway used only for testing, listed last.
| Port | Service | Role |
|---|---|---|
| 18080 | Registry Service | Authoritative PostgreSQL catalog of DSSE-signed in-toto attestation records and review queues. |
| 18081 | Snapshot Publisher | Issues short-TTL, monotonic DSSE snapshot contracts for zero-DB gate evaluation. |
| 18082 | Prevalidator Proxy | OpenAI / Anthropic / Gemini gateway proxy, continuous estate scanner, and unified operator dashboard. |
| 18083 | Attestation Engine Service | Enterprise crawler, Purview / Presidio classifier, and cloud / warehouse connector API. |
| 18084 | HITL Governance & SIEM Hub | Cryptographic WORM audit ledger, dual-key quarantine triage, and multi-target SIEM dispatcher. |
| 14000 | LiteLLM Mock Gateway | Upstream OpenAI / Anthropic model router and mock gateway for testing. |
The Wedge
G1 Docket doesn't replace your gateway — it stands in front of it and feeds it verified data. Docket screens and tags the data referenced in each request and speaks the standard OpenAI, Anthropic, and Gemini request formats. Any gateway that speaks those formats can sit behind it — including every gateway on the AI gateway landscape we track:
For applications and agents, the G1-Docket-SDK wraps RAG chunks in canonical <pod:object> tags with RFC-009 Merkle chunk proofs, and ships adapters for the frameworks agents already run on:
Current Release
Checked against the repository at github.com/cgilbert61/G1-Docket. The current release closes out the 2026-11-21 independent assessment of v1.0.1 — all 15 verified findings across three tiers: the trust core, shipped-artifact correctness, and hardening & claims hygiene. The release notes report verification by 173 automated unit, integration, and conformance tests.
Host the full stack with Docker Compose (profiles above) or the Helm chart under deploy/helm/. Application developers who only need to talk to a running gateway install the client SDK alone:
pip install G1-Docket-SDK
The principal sets the limits — tiers, TTLs, egress classes, clearance — and Docket holds them consistently, on every request, at the door. The SDK is client-side only: it queries attestation records and wraps RAG chunks; it does not run the server infrastructure. Licensed under Apache-2.0. Security reports: security@g1163rt.ai.
“Expired means expired.”
The stamp is the wall and the Prevalidator is the only door. Data earns its way to AI — it doesn't start there. No record, no service.
What It's Not
It does not replace your gateway.
It does not make the AI smarter.
It does not move your data anywhere.
It does not inspect values it doesn't need.The initial walk of a very large estate takes real time — it happens off to the side, in audit mode, while your AI keeps working.
The G1163RT Suite
Five open-source modules under Apache 2.0 and one enterprise gateway — nothing acts, nothing is read, nothing changes, nothing is trusted, no grant lives, and no derivative travels without proof.
The Gateway: Binding before the act. Enforces delegate-only agent rights in front of your models.
Remediation: Authorization before the change. Clone-twin proven fixes under dual-signed warrants.
Dependency Graphs: Evidence before the map. Learned, signed, expiring estate dependency graphs.
Agent Authority: No pulse, no authority. Single-use grants bound to live human presence.
Derivation Lineage: Proof through the transformation. Signed DSSE chains & atomic cascading revocation.