Skip to content
Duoduo Mediaevidence to decision

Solution

Governance and Operations

Authorization, approval, versioning and incident controls that make AI decisions auditable in production.

Business problem
AI systems retrieve documents the user is not entitled to see, accept instructions hidden in content, and change models or prompts without a record of what changed.
Consequence of failure
A data leak, an injected action or an unexplained regression, with no way to reproduce the run or prove who approved what.
Decision supported
Which controls must hold before a system may retrieve, recommend or act, and how will we know when they stop holding?
Our approach
We enforce authorization before retrieval, classify tool side effects, bind approval to exact actions, version every component and operate trace, replay, drift and incident management with kill switches.

Workflow

How the work flows

  1. Classify data
  2. Authorize before retrieval
  3. Separate instructions from content
  4. Classify side effects
  5. Bind approval to action
  6. Versioned execution
  7. Trace, replay and audit
Feedback and exception paths
  • Separate instructions from contentTrace, replay and auditinjection detected: block and log
  • Trace, replay and auditAuthorize before retrievalincident: kill switch or policy change
Figure 6 · Governance and Operations

Controls are ordered so that a failure is caught before data reaches the model or an action reaches the world. High aggregate scores never compensate for an authorization failure.

  • Agent step
  • Approval or policy gate
  • Side-effecting action

Components

What the solution includes

  • Authorization before retrieval
  • Tenant and document isolation
  • Prompt-injection and poisoned-knowledge defense
  • Tool permissions and side-effect classification
  • Human approval bound to an exact action
  • Dataset, index, prompt, model, workflow and policy versioning
  • Trace, replay and audit
  • Drift and incident management
  • Kill switches and feature flags
  • Retention, deletion and external-provider controls

Assumptions and limitations

  • Data is classified before ingestion, not after an incident.
  • Every external action has an owner and a rollback or compensation path.
  • Medical, legal, financial, employment and safety decisions require human domain review.

Metrics

How quality is measured

Authorization violations
Retrieved items the requester was not entitled to. Target is zero.
Injection block rate
Seeded injection attempts blocked in red-team tests.
Replay fidelity
Runs reproduced with identical outputs from pinned versions.
Time to contain
Time from incident detection to kill switch or rollback.

Depth

Read it at your depth

Architecture

  • Evidence service enforces authorization before retrieval
  • Tool gateway classifies side effects and enforces idempotency
  • Trace store preserves source, dataset, index, prompt, model, workflow, policy and code versions

Schema

Approval {
  id, proposalId, actionFingerprint   # hash(action, params)
  approver, role, decision: "approve" | "revise" | "reject"
  reason, at, expiresAt
}
VersionManifest {
  dataset, index, prompt, model, workflow, policy, code
}

Pseudocode

def retrieve(query, user):
    filters = authz.filters(user.tenant, user.role, user.fields)
    return index.search(query, filters=filters)   # never post-filter

def execute(action, approval):
    fp = fingerprint(action.name, action.params)
    if action.side_effect != "read_only":
        assert approval.fingerprint == fp and not approval.expired
    if flags.disabled(action.name):
        raise KillSwitch(action.name)
    return gateway.call(action, idempotency_key=fp)