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>
85 lines
1.9 KiB
JSON
85 lines
1.9 KiB
JSON
{
|
|
"OperationPlan": {
|
|
"plan_id": "string",
|
|
"created_ts": "ISO8601",
|
|
"updated_ts": "ISO8601",
|
|
"trace_id": "string",
|
|
"source": "telegram|excel|api",
|
|
"status": "planned|scheduled|in_progress|done|verified|closed|cancelled",
|
|
"scope": {
|
|
"field_ids": [
|
|
"field_001"
|
|
],
|
|
"crop_ids": [
|
|
"crop_wheat_winter"
|
|
],
|
|
"date_window": {
|
|
"start": "YYYY-MM-DD",
|
|
"end": "YYYY-MM-DD"
|
|
}
|
|
},
|
|
"tasks": [
|
|
{
|
|
"task_id": "task_xxx",
|
|
"operation_id": "op_sowing",
|
|
"planned_date": "YYYY-MM-DD",
|
|
"priority": "low|normal|high|critical",
|
|
"assignee": "string",
|
|
"norms": {
|
|
"labor_hours": 0.0,
|
|
"fuel_l": 0.0,
|
|
"materials": [
|
|
{
|
|
"material_id": "mat_urea",
|
|
"rate": {
|
|
"value": 150,
|
|
"unit": "kg/ha"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"constraints": {
|
|
"weather": [
|
|
"no_rain"
|
|
],
|
|
"window": {
|
|
"start": "YYYY-MM-DD",
|
|
"end": "YYYY-MM-DD"
|
|
}
|
|
},
|
|
"notes": ""
|
|
}
|
|
],
|
|
"fact_events": [
|
|
{
|
|
"fact_id": "fact_xxx",
|
|
"task_id": "task_xxx",
|
|
"ts": "ISO8601",
|
|
"field_id": "field_001",
|
|
"operation_id": "op_sowing",
|
|
"done_date": "YYYY-MM-DD",
|
|
"fact": {
|
|
"labor_hours": 0.0,
|
|
"fuel_l": 0.0,
|
|
"materials": [
|
|
{
|
|
"material_id": "mat_urea",
|
|
"amount": {
|
|
"value": 180,
|
|
"unit": "kg/ha"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"quality": {
|
|
"source": "manual|sensor|import",
|
|
"confidence": "trusted|low_confidence"
|
|
},
|
|
"farmos_write": {
|
|
"status": "pending|ok|failed",
|
|
"ref": ""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |