04 Agent Safety

This chapter defines sessions, approvals, intent evaluation, PII controls, and audit requirements for agent interaction with Dina.

Purpose

Agent Safety defines how agents interact with personal data and external systems without collapsing user sovereignty.

Protocol Requirements

A Dina-compatible safety layer MUST provide:

Session and Grant Model

The reference implementation already models:

An interoperable session model SHOULD include:

An interoperable access grant SHOULD include:

Grant scopes SHOULD at least distinguish:

Approval Model

An approval request MUST be portable across implementations.

Minimum approval fields SHOULD include:

The reference implementation already exposes this shape.

A draft machine-readable schema for this contract lives in:

Approval types currently include:

Intent Evaluation

A Dina-compatible agent safety layer MUST require agents to declare intent.

The current reference intent model is:

The current reference decision model is:

A draft machine-readable schema for executor intent declaration lives in:

Safety Rules

At protocol level, Dina safety has four core principles:

The reference gatekeeper already treats actions such as:

as risky actions that require explicit user review.

PII Scrubbing

A Dina-compatible implementation MUST support PII scrubbing before cloud or third-party egress.

The reference implementation currently provides:

The protocol SHOULD allow additional tiers, but MUST preserve the contract that scrubbed text can be safely passed onward and later rehydrated only within an authorized local context.

Audit

Every approval, denial, sensitive access, or denied egress SHOULD be auditable.

This is already present in the reference implementation and should remain a required interoperability expectation for serious implementations.