Audit and Metadata Policy v0
Scope
Defines the v0 audit/metadata boundary: operational traceability and troubleshooting through metadata while preserving forward-only/no-transcript constraints.Terminology
- Forward-only: content is forwarded but not persisted as transcript.
- Metadata-only persisted: only structured non-body fields are retained.
- Breadcrumb: minimal metadata chain used for troubleshooting.
Normative Spec
Hard Boundary
Platform MUST NOT persist:- dialog full body transcript
- ssh_remote terminal full raw output transcript
Required Metadata Fields
session_idcorrelation_idchannel_typeevent_typetimestampstatus_code
Recommended Metadata Fields
workspace_idagent_idresource_idmessage_idcommand_iderror_coderetry_countlease_epochcausation_idreason
Breadcrumb Minimum Set
Troubleshooting trails SHOULD include at least:session_idcorrelation_idworkspace_idagent_idchannel_typetargetmessage_idcommand_idevent_typetimestamperror_coderetry_count
Multi-target Consistency
Fordialog.target values (codex, claude_code, opencode, wechat, telegram), metadata schema MUST remain consistent.
Examples
Error & Recovery
- Missing required metadata fields: reject event ingestion.
- Any attempt to persist full transcript content: policy violation.
- Recovery processes must emit metadata-only recovery events.
Security & Audit
- Metadata is the canonical audit source.
- Platform-level approvals are auditable via metadata references.
- Tool-internal approvals inside DevBox are not re-implemented by AIOS audit logic.
Status
Current status:draft
Source discussions:
docs/maintainers/conversation-records/agent-platform/2026-03-24-audit-and-metadata-policy-v0-draft.mddocs/maintainers/conversation-records/agent-platform/2026-03-23-forward-only-dialog-policy.md
Changelog
- 2026-03-24: Initial skeleton created.
- 2026-03-24: Added forward-only boundary and required metadata schema.