Files
microdao-daarion/schemas/aletheia/action.schema.json
Apple ef3473db21 snapshot: NODE1 production state 2026-02-09
Complete snapshot of /opt/microdao-daarion/ from NODE1 (144.76.224.179).
This represents the actual running production code that has diverged
significantly from the previous main branch.

Key changes from old main:
- Gateway (http_api.py): expanded from ~40KB to 164KB with full agent support
- Router: new /v1/agents/{id}/infer endpoint with vision + DeepSeek routing
- Behavior Policy: SOWA v2.2 (3-level: FULL/ACK/SILENT)
- Agent Registry: config/agent_registry.yml as single source of truth
- 13 agents configured (was 3)
- Memory service integration
- CrewAI teams and roles

Excluded from snapshot: venv/, .env, data/, backups, .tgz archives

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 08:46:46 -08:00

51 lines
1.9 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://aletheia.lab/schemas/action.schema.json",
"title": "Action",
"type": "object",
"required": ["id", "intent_id", "type", "channel", "operation", "payload", "policy_gate"],
"properties": {
"id": { "type": "string", "pattern": "^act_[a-zA-Z0-9_-]+$" },
"intent_id": { "type": "string", "pattern": "^intent_[a-zA-Z0-9_-]+$" },
"type": {
"type": "string",
"enum": ["read", "write", "compute", "store", "transfer_value", "publish", "admin"]
},
"channel": {
"type": "string",
"enum": ["matrix", "telegram", "discord", "email", "web", "filesystem", "db", "wallet", "internal"]
},
"operation": { "type": "string", "minLength": 1 },
"payload": { "type": "object" },
"policy_gate": {
"type": "object",
"required": ["mode", "requires_confirmation", "checks"],
"properties": {
"mode": { "type": "string", "enum": ["A0", "A1", "A2"] },
"requires_confirmation": { "type": "boolean" },
"checks": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["name", "result"],
"properties": {
"name": {
"type": "string",
"enum": ["clarity_ok", "risk_ok", "budget_ok", "permission_ok", "target_ok", "privacy_ok", "rate_limit_ok", "logging_ok"]
},
"result": { "type": "string", "enum": ["pass", "fail", "needs_user_input"] },
"details": { "type": "string" }
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"expected_effect": { "type": "string", "default": "" },
"reversibility": { "type": "string", "enum": ["reversible", "partially_reversible", "irreversible"], "default": "reversible" }
},
"additionalProperties": false
}