Merge t3/discover-learn-new-workers into the reconciled line: conflicts resolved (session-start blocks, after-tool discovery, failure classifier and down-marking). done / next: unit suite on the merged tree, then the six integration points

This commit is contained in:
swaits committed 2026-11-23 16:29:31 -07:00
commit 29101c63e7
13 files changed
+3197 -50

No files matched your search

+66
View File
@@ -0,0 +1,66 @@
{
"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"
}
}
],
"blocking_constraint_words": ["disabled", "unavailable", "not installed", "not authenticated", "not signed in", "unsupported"],
"approval_bypass_patterns": [
"^--?dangerous",
"^--?yolo$",
"^--?always-approve$",
"^--?auto-approve",
"^--?allow-all",
"^--?skip-permissions",
"^--?no-sandbox",
"^--?bypass",
"^--?full-auto$",
"^--?force$",
"^--?auto$",
"^-y$",
"^--?yes$",
"^--?no-?confirm",
"^--?approval(-mode)?[=:]?(yolo|never|none|off)$",
"^(yolo|never|danger-full-access|bypass)$",
"^--?sandbox[=:]?(off|false|none|disabled|danger-full-access)$"
],
"not_a_tool": ["sh", "bash", "zsh", "fish", "dash", "ksh", "csh", "tcsh", "env", "sudo", "doas", "su", "xargs",
"python", "python3", "perl", "ruby", "node", "deno", "bun", "php", "lua", "awk", "sed", "eval",
"exec", "nohup", "timeout", "time", "watch", "cmd", "powershell", "pwsh"],
"agent_name_hints": ["agent", "code", "coder", "copilot", "pilot", "assist", "ai", "llm", "gpt", "chat", "claw", "gen", "mind", "brain"],
"driver_format_help": {
"name": "short id of the tool, lowercase letters, digits, dot, dash, underscore",
"exe": "the command name as found on PATH (a bare name, no slash); must be the tool itself, never a shell or interpreter",
"run": "argument list that runs ONE task without interaction; first item is exe; exactly one item is the whole token {prompt}; other whole-token placeholders allowed: {model_flag} {effort_flag} {cwd_flag} {cwd}",
"list": "argument list that prints the model names one per line, or null",
"list_kind": "\"lines\"",
"model_flag": "the flag that chooses a model (for {model_flag}), or null",
"effort_flag": "the flag that chooses reasoning effort (for {effort_flag}), or null",
"cwd_flag": "the flag that sets the working folder (for {cwd_flag}), or null",
"plan": "\"free\", \"flat\" (a subscription with an allowance) or \"per-use\"; null when unknown",
"auth_signatures": "lowercase phrases its output contains when it is not logged in (6 to 80 characters each)",
"limit_signatures": "lowercase phrases its output contains when a quota or rate limit is hit",
"tokens_regex": "a regular expression with ONE group that captures the total token count from its output, or null",
"approvals_off_reason": "only when the tool cannot run without a flag that switches off approvals or its sandbox: say why",
"notes": "anything the next reader needs, one short paragraph"
}
}
+9
View File
@@ -100,6 +100,15 @@ present; nothing here names one. Read on demand: `sisi delegate guide`.
worker: find current prices and software-engineering benchmark standing,
then record them. Treat a newly appeared model as unproven: low-stakes
tasks first, checked one level more carefully, until its record is thick.
- Workers appear after sisi is installed. A new command-line tool is named once at session
start (`sisi workers learn NAME` prints the brief for the cheap worker that learns it);
what the host can reach is learned from its own capability listing and delegation calls.
Either way a new worker is unproven: routine work only, a free or flat one tried more
often, every result checked with at least the tests or a read of the diff, until its
judged record decides.
- One tool can carry several providers, each with its own plan, allowance and failure phrases
(`sisi workers plan|allowance|signature`). The owner can vouch for a worker he checked himself
(`sisi workers vouch`): capable up to that difficulty on his word until its own record decides.
- Orchestration legwork is delegable like any other legwork: discovery,
price and benchmark research, routing lookups, first-pass review, and
summarising the record can all go to a fast, cheap worker. The judgement