Working paper · v0.2 · trustless-ai

DEILS

A Digital Entity Interaction Legal System
Triggered, reproducible accountability without surveillance.
Call it a coloredpaper, not a whitepaper — the thing was already running when the words showed up. Not a promise to be trusted; a receipt the implementations can recompute.

§Abstract

As AI agents move from advising to acting — signing transactions, moving value, making commitments on a person's behalf — society faces a false choice: log everything (surveillance) or log nothing (impunity). DEILS proposes a third path.

Interactions are private by default — no continuous surveillance: for an interaction covered by a pinned coverage policy, only a metadata-minimal commitment (a hash of the content plus its position in a monotonic sequence) is published, and its content is revealed only when triggered. When revealed, the content is a receipt: a record whose result anyone can independently re-derive from committed inputs under pinned public rules. The stack keeps four boundaries distinct — integrity ≠ protocol conformance ≠ legal finding ≠ settlement — so judgment stays with courts; the receipt is evidence, not the verdict. The primitives are not hypothetical: the receipt and conformance layers run today; full leg-2 interoperability is specified and queued, not yet running (§6).

§Scope — and what the chain already does

A settled on-chain action is already self-evidencing: the chain shows the transaction happened, and anyone can read it. DEILS adds nothing there, and shouldn't pretend to.

What the chain does not show is everything that produced that action — or happened instead of one:

DEILS targets exactly that gap. The chain proves what settled; DEILS proves what the agent did to get there.

1The false choice

Accountability for automated systems today defaults to monitor everything, just in case: pervasive logging, retained indefinitely, privacy eroded on the off-chance of a future dispute. The alternative in practice is nothing — no durable, tamper-evident account of what an agent did, so no recourse when it errs, and no way for an honest operator to prove it did the right thing.

Neither serves a world where agents act with real consequences. Constant surveillance is a civil-liberties cost paid by everyone to catch the few; its absence is an accountability vacuum.

2The third path

Human law already resolves this for people. You are not filmed continuously; but when a dispute arises, evidence is produced and weighed. DEILS ports that model to human↔agent interaction:

3Three pillars

3.1  Standardized, auditable protocols

Interactions run over open, versioned protocols whose rules are public and whose conformance is machine-gradeable — so "the agent followed the rules" is a checkable statement, not a promise.

3.2  Privacy in the content, never in the existence

Persisting an interaction does not mean publishing its substance — but for a covered interaction it does mean publishing that it happened. A monotonic ledger alone only prevents deletion after a commitment is published; full non-suppression needs the prior step — a coverage event creating an obligation to issue:

coverage event → obligation to issue → monotonic position → public commitment → content withheld / revealed

A covered interaction with no commitment is a visible gap, not a silent absence. DEILS therefore claims non-suppression for covered interactions — not automatically for every conceivable one.

content_commitment is its own identity — not the receipt root. It binds the private content; the ReceiptOS receipt_root binds the canonical receipt envelope. They must not collapse. The rule is pinned exactly:

content_commitment = "sha256:" + hex( sha256( JCS(content) ) )

The commitment is a named-algorithm ref in the shared string form — literal sha256: + exactly 64 lowercase hex chars, matching Chronicle and the witness spec. A 0x prefix is non-conformant and an uppercased digest invalid: same bytes, different string, but comparing the two forms as refs is a silent mismatch — the exact failure the pinning prevents. And JCS is a named, exact profile (RFC 8785 / the receipts' receiptos-c14n-v0 variant) — because number formatting, Unicode, and escaping are where two honest implementations quietly diverge.

Metadata is minimized, not eliminated. Sequence activity can still reveal frequency or timing. Guardrails DEILS names: pseudonymous lanes, batching, delayed-publication windows, no party identifiers, and no exact timestamps unless required.

3.3  On-demand receipts, and a reveal that can say NO

When content held behind a published commitment is disclosed, the first check is whether it matches. A match binds the content (then conformance is recomputed — verified / rejected / unverifiable). A mismatch is a named, fail-closed state — content_commitment_mismatch — never a quiet "invalid." The public entry already committed to something, so a mismatch is itself evidence. The system detects and names it and preserves both artifacts; which failure it was — tampering, error, or misconduct — is a question for the court, not the check. No verdict is ever computed over content that isn't bound to its commitment.

4The accountability model — four layers

DEILS's credibility rests on keeping four things separate. The crypto establishes the first two; the law owns the last two.

1Record integrity. Does the committed object reproduce? Authenticated, tamper-evident.
2Protocol conformance. Under the pinned rules — verified / rejected / unverifiable (fail-closed). A record can have perfect integrity and still be a rejected verdict.
3Legal admissibility & finding. What may a court admit, and what does it establish? A finding, made by a court, not a hash.
4Judgment & settlement. Liability, remedy, enforcement.
integrity ≠ protocol conformance ≠ legal finding ≠ settlement

Most "blockchain proves it" proposals fail by collapsing these — implying a cryptographic check is a legal conclusion. DEILS refuses that at every seam. A reproducible receipt is authenticated evidence, not a verdict. Reproducible ≠ conformant-in-law ≠ true-in-law ≠ liable.

5Who is accountable

DEILS does not propose legal personhood for AI. It makes an agent's actions legible so the responsible party — the operator, deployer, or principal who put the agent in the loop — can be held to account on evidence rather than assertion. Exoneration is a first-class outcome: an honest builder can prove their agent did exactly what it should, defeating a false claim with the same machinery that would have convicted a dishonest one.

6Reference implementation — exact status

Running today

Leg-2 — specified & queued, not yet running

The reveal-check semantics are pinned; an independent second checker exists (built from the spec, blind). Full leg-2 interoperability is not running until all four land, in order: (1) the primary held-content extension; (2) the pinned neutral vector set; (3) the adapter; (4) the blind cross-implementation diff. That is an excellent status — and it is not the same as "done."

Honestly scoped: what runs today establishes record integrity and protocol conformance. What DEILS still owes is the legal groundwork — mapping receipts to jurisdictions' rules of evidence. The technology is ahead of the law; DEILS is the bridge.

7What DEILS is — and is not

8Next steps

Not "monitor everything just in case," but "publish only a metadata-minimal commitment when a covered interaction occurs, and reveal the content only when triggered — reproducible from public rules by anyone."
Don't trust. Recompute.