This chapter defines sessions, approvals, intent evaluation, PII controls, and audit requirements for agent interaction with Dina.
Agent Safety defines how agents interact with personal data and external systems without collapsing user sovereignty.
A Dina-compatible safety layer MUST provide:
The reference implementation already models:
An interoperable session model SHOULD include:
idnameagent_didstatuscreated_atlast_activity_atended_atAn interoperable access grant SHOULD include:
idclient_didpersona_idsession_idscopeexpires_atgranted_byreasonGrant scopes SHOULD at least distinguish:
An approval request MUST be portable across implementations.
Minimum approval fields SHOULD include:
idtypeclient_didpersona_idsession_idactionscopestatusreasonpreviewgranted_byexpires_atcreated_atupdated_atThe reference implementation already exposes this shape.
A draft machine-readable schema for this contract lives in:
schemas/approval-request.jsonApproval types currently include:
persona_accessaction_intentA Dina-compatible agent safety layer MUST require agents to declare intent.
The current reference intent model is:
agent_didactiontargetpersona_idtrust_levelconstraintsThe current reference decision model is:
allowedreasonauditA draft machine-readable schema for executor intent declaration lives in:
schemas/agent-intent.jsonAt protocol level, Dina safety has four core principles:
The reference gatekeeper already treats actions such as:
send_emailtransfer_moneyshare_dataas risky actions that require explicit user review.
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.
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.