feat(agents): add deploy control plane loop readback

This commit is contained in:
Your Name
2026-06-28 18:50:00 +08:00
parent f4a7c01eef
commit 061adec533
4 changed files with 264 additions and 5 deletions

View File

@@ -1,3 +1,16 @@
## 2026-06-28 — 18:50 AI Agent deploy control plane 內部迴圈
**完成內容**
- `agent-autonomous-runtime-control` 新增 `control_plane_integration` readback將 Gitea run、controlled runner lane、production marker 與 browser smoke 轉成 MCP sensors、RAG context、PlayBook decision class、KM writeback contract 與 log projection contract。
- 新增 `classify_deploy_control_plane_observation()`,把 superseded run、production marker hit、controlled task running、stale Gitea spinner、real failure 與 runner lane guardrail violation 分流成 AI PlayBook action而不是重開 legacy runner 或回到人工判讀。
- API rollups 增加 `mcp_sensor_count``rag_context_query_count``playbook_decision_class_count``deploy_control_classifier_example_count`,讓正式 readback 可直接看出內部控制迴圈資產是否存在。
**驗證結果**
- `DATABASE_URL=sqlite:///test.db PYTHONPATH=apps/api python3.11 -m pytest apps/api/tests/test_ai_agent_autonomous_runtime_control.py apps/api/tests/test_ai_agent_autonomous_runtime_control_api.py -q``8 passed`
- `python3 -m py_compile apps/api/src/services/ai_agent_autonomous_runtime_control.py apps/api/tests/test_ai_agent_autonomous_runtime_control.py apps/api/tests/test_ai_agent_autonomous_runtime_control_api.py`:通過。
**邊界**:沒有讀 raw sessions / secret / runner token沒有開 legacy runner沒有 force push沒有直接寫 runtime只新增 readback 與分類器 contract。
## 2026-06-28 — 18:49 IwoooS Wazuh manager registry accepted 與 controlled apply preflight production readback
**完成內容**