Integration 1 and 2: one approval path for changes, learned drivers and allowance probes (typed word at the terminal, hook refuses any id, every decision recorded); one description of a host's tools (canon/orchestration-tools.json read by orchestration and discovery). done / next: 3 (a learned worker is a worker everywhere), tests per point

This commit is contained in:
swaits committed 2026-11-23 16:35:47 -07:00
1 parent 29101c63e7
commit 3c2aa9b395
10 files changed
+190 -116

No files matched your search

+1 -24
View File
@@ -1,28 +1,5 @@
{
"comment": "Data for sisi/discovery.py: what a host's capability listing and delegation tool look like, which flags switch off approvals, which names are never tools, and which names hint at an agent tool. Names of tools and hosts live here, never in code. Paths are dotted keys into the tool's JSON.",
"hosts": [
{
"host": "t3-code",
"capability_tool": "^mcp__t3-code__orchestrator_capabilities$",
"delegation_tool": "^mcp__t3-code__delegate_task$",
"capability": {
"providers": "providers",
"provider": "providerInstanceId",
"kind": "driverKind",
"name": "displayName",
"models": "models",
"model": "id",
"label": "label",
"usable": "canRunChildTask",
"constraints": "constraints"
},
"delegation": {
"tool_name": "delegate_task",
"provider": "target.providerInstanceId",
"model": "target.model"
}
}
],
"comment": "Data for sisi/discovery.py: which flags switch off approvals, which names are never tools, and which names hint at an agent tool. A host's own tools (its capability listing and delegation tool, and where the provider and model sit in them) are in canon/orchestration-tools.json, the one description of a host's tools. Names of tools and hosts live in data, never in code. Paths are dotted keys into the tool's JSON.",
"blocking_constraint_words": ["disabled", "unavailable", "not installed", "not authenticated", "not signed in", "unsupported"],
"approval_bypass_patterns": [
"^--?dangerous",
+18 -2
View File
@@ -1,5 +1,5 @@
{
"_about": "Host tool names the orchestration meter needs (sisi/orchestration.py). Per host: `delegation` tools start a worker (where the call carries the model and the brief text, as dotted paths into the tool's input); `exempt` tools are never counted as direct work (the question dialog, planning and to-do tools, messaging tools). Any other tool, including one named nowhere here, counts. `refuse` says how the host's before-tool hook refuses a call: `json-deny` prints the host's permission-deny JSON, `exit-2` exits with status 2 and the reason on standard error, `none` means the meter only counts there. `evidence` says how sure this entry is.",
"_about": "Host tool names the orchestration meter needs (sisi/orchestration.py). Per host: `delegation` tools start a worker (where the call carries the model and the brief text, as dotted paths into the tool's input); `exempt` tools are never counted as direct work (the question dialog, planning and to-do tools, messaging tools). Any other tool, including one named nowhere here, counts. `refuse` says how the host's before-tool hook refuses a call: `json-deny` prints the host's permission-deny JSON, `exit-2` exits with status 2 and the reason on standard error, `none` means the meter only counts there. `evidence` says how sure this entry is. `capability` tools list what the host can reach (providers and models, as dotted paths into the tool's result), and a delegation entry that names a `provider` path says where the call carries the provider; both carry `reach`, the label under which what they learn is stored (sisi/discovery.py, read through orchestration.reach_specs). A tool name here may be an exact name or, when it starts with `^`, a pattern. This file is the one description of a host's tools: sisi/orchestration.py and sisi/discovery.py both read it.",
"claude-code": {
"refuse": "json-deny",
"evidence": "observed live (tools/live_orchestration_check.py)",
@@ -14,7 +14,23 @@
},
"mcp__t3-code__delegate_task": {
"model": "target.model",
"brief": "task"
"brief": "task",
"provider": "target.providerInstanceId",
"reach": "t3-code"
}
},
"capability": {
"mcp__t3-code__orchestrator_capabilities": {
"reach": "t3-code",
"providers": "providers",
"provider": "providerInstanceId",
"kind": "driverKind",
"name": "displayName",
"models": "models",
"model": "id",
"label": "label",
"usable": "canRunChildTask",
"constraints": "constraints"
}
},
"exempt": {