feat: add governed chat agent selection

This commit is contained in:
thanhnv
2026-07-08 22:19:51 +09:00
parent 06d8d31b16
commit 004afa73c9
18 changed files with 677 additions and 39 deletions
+7 -4
View File
@@ -56,7 +56,7 @@ Approval inbox / HITL:
- `POST /api/v1/approvals/decide` — approve/reject with SoD and reason; approved
settings proposals apply through `control-plane-settings.py`.
Governed Chat (Plan-18 MVP-0/1):
Governed Chat (Plan-18 MVP-0/1 + MVP-2 Track 4 foundation):
- `POST /api/v1/chat/ask` — Ask CASAN endpoint. The API only wraps harness
`chat-turn.py`; router verdicts, H4 input/output scan, action-gate decisions,
@@ -64,11 +64,14 @@ Governed Chat (Plan-18 MVP-0/1):
execution remain harness-owned.
- `GET /api/v1/chat/actions` — list registered operator actions from
`operator-actions.yaml`; no free-command execution is exposed.
- `GET /api/v1/chat/agents` — list governed agents from `agent-registry.yaml`
with role visibility; selected agent/skill/delegation are bound by harness
`chat-agent-resolver.py`.
- `GET /api/v1/chat/audit/verify` — verifies the chat audit hash chain.
- `/chat` UI shows actor/role scope, `mode/risk/decision` badges, certified answer,
evidence sources, registered operator actions, action-gate status, router details,
and audit hash. Side-effect requests outside registered actions return governed
`BLOCK` or `NOT_SUPPORTED` responses.
evidence sources, registered operator actions, agent binding, action-gate status,
router details, and audit hash. Side-effect requests outside registered actions
return governed `BLOCK` or `NOT_SUPPORTED` responses.
FinOps/SLO: