Draft v1.3

DIAP spec

The protocol surface: consent, tokens, receipts, revocation, verification.

Problem

Digital identity needs a consent layer.

DIAP makes consent a machine check, not a manual review.

Identity use has no runtime gate

Contracts and policies do not stop an app, editor, model, or platform at execution time.

Discovery is exposure

Listing a person, voice, likeness, or style inside a product can require consent before any output exists.

Proof is fragmented

A platform needs one answer: was this use authorized, under what scope, and is that grant still valid?

Architecture

Protocol Components

A modular, build-ready architecture designed for security, interoperability, and enterprise-grade deployment.

DIAP Identity Vault secure digital storage with biometric data visualization

Identity Vault

Stores identity modules (voice, face, expression, motion) with KMS/HSM integration and secure enclave support. Assets never leave the vault without authorization.

Platform Visibility Service

Evaluates PVA policies in real-time. Returns allow/deny decisions with listing constraints (discoverable, invite-only, hidden).

Policy / Consent Engine

Evaluates LicenseRequests against compliance profiles. Manages approval workflows including per-render, per-project, and quota-based modes.

License Authority (Issuer)

Issues signed, PoP-bound license tokens. Manages quotas, audit logs, and delegation from the DIAP Central Authority.

Revocation Registry

Low-latency revocation checks with push-based updates and webhooks. Supports license, app, and campaign-level revocation with emergency kill switches.

Execution Gateway

The enforcement point. Verifies tokens, enforces policy, routes generation through adapters, and emits events for provenance tracking.

Provenance Service

Watermarking and receipt generation. Verification endpoints enable downstream platforms to confirm authorization of any synthetic output.

Trust Registry Service

Central directory of certified issuers, apps, keys, and revocation endpoints. The root of trust for DIAP.

Developer Portal & SDKs

Registration, key management, conformance tests, and integration examples. Integrate once, be compliant everywhere.

App Compliance Suite

Approvals dashboard, audit exports, role-based controls, and campaign management for enterprise app workflows.

Identity Modules

Identity is represented as independent modules with explicit purpose limitation and sensitivity metadata. Each module can be licensed independently.

VoiceModule

Voice embeddings and synthesis parameters

VOICE_RENDER
FaceModule

Facial geometry, texture, and appearance

FACE_RENDER
ExpressionModule

Facial expression mapping and control

EXPRESSION_RENDER
MotionModule

Body motion capture and kinematics

MOTION_RENDER
FootprintModule

Optional persona metadata (not required for core auth)

Rights Taxonomy & Scope

Rights

VOICE_RENDERFACE_RENDEREXPRESSION_RENDERMOTION_RENDERTRAINING_USEDISTRIBUTION_USE

TRAINING_USE is explicitly separate from render/inference rights.

Scope Dimensions

app_idissuer_idproject_idcampaign_idmediumratingterritorytime_windowmax_rendersmax_seconds

Approval Modes

PER_RENDERPER_PROJECTQUOTAAUTO_APPROVE_UNDER_LIMITS
Technical Specification

Protocol Mechanics

Certificates, tokens, receipts, and verification endpoints — the building blocks of machine-enforceable consent.

Proof-of-Consent Certificate

VERIFIED

Every protected output carrying a human likeness can embed a DIAP Proof-of-Consent certificate in its metadata. This proves consent existed before use.

DIAP PoC Certificate
cert_7f3a9b2e-d1c4-4e8f-a6b2-9f0e3c7d1a5b
Identity Subject
Subject IDusr_person_a8f2d1
Modules UsedFACE · EXPRESSION · VOICE
KYA StatusVerified — Tier 2
Authorization Chain
License JTIlic_9f2e4b71
Policy ProfileDIAP-Brand-Safe:v1
Expires2026-03-16T14:32:00Z (24h)
Authorized Scope
Campaigncmp_poster_global_2026
TerritoryGLOBAL
Max Renders500 (127 used)
Provenance
Output Hashsha256:e3b0c44298fc...
Watermarkdiap-v1 embedded
SignatureES256 — Valid
Signed by DIAP License Authority · Issuer: issuer_01
Consent GrantedToken IssuedRender ExecutedPoC Certificate Embedded

Verification Semantics

Token Verification

Signature chain to certified issuer in Trust Registry + PoP binding + scope checks + revocation status

Receipt Verification

Signature chain + output hash match + watermark payload validation for downstream proof

Platform Verification

Distribution platforms can require valid receipts for any monetized synthetic human content

Revocation & Threat Model

Short-lived tokens reduce blast radius by limiting exposure window

Revocation Registry: revoke by license_jti, app_id, or campaign

Push-based revocation for emergency kill-switch behavior

Gateway enforcement: registry check required at render time

Threat Model

ImpersonationAttacker pretends to be a legitimate app or platform
Token TheftStolen tokens used for unauthorized renders
Replay AttacksReuse of old approvals beyond scope/time
Insider AbuseExporting identity modules or misusing privileged access
Model InversionReconstruct identity from embeddings/outputs
Watermark RemovalAttempts to strip provenance markers
Fraudulent ReportingUnder-reporting events to reduce payouts

Trust Registry (Root of Trust)

The DIAP Central Authority anchors global verification through the Trust Registry. It maintains certification status and root trust keys that allow any participant to validate whether a token/receipt is authentic and whether an issuer/app is compliant.

Root Keyset

Signs Trust Registry snapshots and updates

Issuer Registry

Approved License Authorities with public keys

App Registry

DIAP-Certified apps, versions, and status

Revocation Endpoints

Per-issuer revocation check endpoints

Policy Profiles

Canonical IDs for compliance conformance tests

Key Rotation

Documented procedures for compromise response

Provenance Layer

Watermark & Modification Tracking

Every authorized output rendered under DIAP authorization carries an invisible cryptographic watermark. A separate per-pixel modification mask records exactly what AI changed — and what it didn't.

Layer 1: Authorization Watermark

Embedded in the pixels — travels with the file

A steganographic watermark encoded into the least-significant bits of the pixel data. Invisible to the human eye but machine-readable. Survives compression, re-encoding, and social media upload.

Encodes

DIAP License Token ID
Identity owner ID(s) present in frame
App ID + certification status
Timestamp of render
Frame sequence position

Purpose: Public proof of authorization. Any platform, moderator, or verification tool can read this to confirm content was produced under a valid DIAP license.

Layer 2: Modification Mask

Stored in DIAP's audit trail — never in the file

A per-pixel binary map that records exactly which pixels are original and which were synthetic or modified. Stored securely in the DIAP vault, linked to the render receipt by Token ID.

Records

Per-pixel binary: 0 = original, 1 = AI-modified
model/tool fingerprint per modification region
Exact parameters and modification ratio
Integrity hash linking mask to render receipt
Frame-level and session-level aggregation

Purpose: Forensic audit. Proves exactly what AI did, where, and with which model. Only visible to the identity owner, their delegates, and authorized auditors.

Why Two Separate Layers?

File Size

A per-pixel modification mask for a 4K frame is ~8MB uncompressed. For a 120-minute film at 24fps, that's ~1.3TB of mask data. This cannot live in the pixels.

Quality Preservation

The more data you hide in pixels, the more artifacts you introduce. The authorization watermark is small enough to be invisible. A full modification map would degrade image quality.

Security

If the modification mask were in the file, anyone with the file could see exactly which pixels are synthetic — giving attackers a roadmap. Keeping it in the vault protects this intelligence.

Three Levels of Verification

Different participants see different depths of information. Public verification is open to everyone. Detailed modification data is restricted to the people it belongs to.

Public Verification

Anyone — platforms, moderators, audiences

Free API call, no authentication required

Returns
Authorized or not (✅ / ❌)
Identity owner name (public portion)
App name
Date of authorization
Whether the license is still valid
Does Not Return
Which pixels were modified
Which AI model was used
Full license terms
The modification mask

Watermark Survival: Downloads & Distribution

The authorization watermark is embedded in the pixel data itself — not in file metadata. It travels with the content regardless of how the file is transferred, compressed, or shared.

ActionSurvives?Notes
Download as original file
Yes
Fully intact — embedded in pixel data
Screenshot / screen recording
Yes
Survives — encoded in visible pixels
JPEG compression
Yes
Robust encoding survives down to ~70% quality
H.264 / H.265 video compression
Yes
Designed to survive codec re-encoding
Social media upload (Instagram, TikTok, YouTube)
Yes
Survives platform re-encoding
Resize / crop
Partial
Depends on how much is cropped — partial recovery
Print and re-scan
Partial
Degrades but still detectable
Intentional watermark-stripping attack
Partial
Absence of watermark is itself a red flag

How Verification Works in Practice

1

Platform verifies content

Public verification

A streaming platform receives content containing a identity owner's likeness.

Their content pipeline scans the file with DIAP's public Verification API.

The watermark is extracted → Token ID found → DIAP returns:

✅ Authorized · Identity owner: Marcus Rivera · App: Paramount · Project: Meridian · License valid until Dec 2026
2

Deepfake detected

No watermark found

Someone creates a deepfake of Marcus Rivera without going through DIAP.

The same platform scans the content. No DIAP watermark found.

❌ No DIAP authorization → Content flagged for moderation
3

Identity owner reviews what AI actually did

Owner verification

Marcus logs into his Identity Vault on diap.my.id.

He opens the Meridian render receipt and views the modification mask:

Modification Report — Meridian, Episode 3

Frames 4200–4847: 23% of pixels AI-modified

Model used: Nuke AI Face Enhance v3.2

Rights verified: FACE_RENDER authorized

Heatmap available: View pixel-level modification map →

Summary: What Lives Where

DataStored InVisible ToSurvives Download
Authorization watermarkIn the pixels (steganographic)Anyone (public API) Yes — travels with the file
Modification mask (pixel-level)DIAP audit trailIdentity owner + delegates + auditorsN/A — not in the file
Render receiptsDIAP audit trailIdentity owner + delegates + auditorsN/A — not in the file
License statusDIAP registry (live)Anyone (public API)N/A — live check per request

The watermark is the public proof that travels with every file. The modification mask is the private forensic detail secured in DIAP's vault. Together, they cover both distribution verification and detailed audit.

DIAP v1.3 Addendum

ScriptModule

Writer & authorship protection. A first-class protected asset type for authored writing and project literary materials — extending DIAP with consent-first script governance.

Consent-First
Least Exposure
Separable Training
Auditable Provenance
Revocation

Non-goal: ScriptModule is not a replacement for copyright registration, chain-of-title, or legal guild processes. It is a technical enforcement and audit layer that ensures scripts are handled according to their owner's authorized policies inside connected systems.

Protected Writing Assets

DIAP is primarily an identity authorization protocol (voice / face / expression / motion). However, serious compliance requires protecting writing assets and their authorized downstream use — especially when scripts are used to generate derivative outputs or as training material.

Script Asset

Any authored writing used in development/production — screenplay drafts, outlines, treatments, bibles, pitch decks, scene text, dialogue, alt-lines, script notes, revisions.

Author

The natural person(s) who authored the Script Asset, or an authorized rights holder/representative (estate, production company) acting on their behalf.

Derivative Generation

Any AI-assisted generation using Script Assets as input/context — new scenes, dialogue, scene variants, summaries, character breakdowns.

Training Use

Using Script Assets to train/fine-tune a model, build embeddings for general reuse, or incorporate content into persistent model weights beyond the specific job.

Rights Taxonomy (Writing)

Hard rule: SCRIPT_TRAINING_USE must be explicitly granted and must NOT be implied by any other right.
Compliance Profiles

Policy Presets

Standardized policy templates that define approval modes, category blocks, provenance requirements, and audit exports. Stored as first-class policy objects.

Owner-Strict

Maximum control for public figures

Approval: PER_RENDER
Training Use: DENY
Visibility: HIDDEN — Verified apps only
VOICE_RENDERFACE_RENDEREXPRESSION_RENDERMOTION_RENDER

Brand-Safe

Commercial use with reputational safety

Approval: PER_PROJECT + CREATIVE_LOCK
Training Use: DENY_BY_DEFAULT
Visibility: Discoverable / Invite-Only / Hidden
VOICE_RENDERFACE_RENDEREXPRESSION_RENDER

Union-Ready

Union-style approvals and dispute workflows

Approval: PER_PROJECT + SCRIPT_ROLE + FINAL_OUTPUT_REVIEW
Training Use: SEPARATE_NEGOTIATION_REQUIRED
Visibility: INVITE_ONLY
VOICE_RENDERFACE_RENDEREXPRESSION_RENDERMOTION_RENDER

Indie Creator

Low friction licensing with provenance

Approval: AUTO_APPROVE_UNDER_LIMITS
Training Use: DENY
Visibility: INVITE_ONLY
VOICE_RENDERFACE_RENDER

Enterprise-Verified

High assurance for products and enterprises

Approval: PER_PROJECT
Training Use: Per negotiation
Visibility: VERIFIED_ONLY
All render rights (per negotiation)

Education / Non-Commercial

Learning/research with strict constraints

Approval: PER_PROJECT
Training Use: N/A
Visibility: HIDDEN
Per project scope