Files
model-router/.claude-plugin/plugin.json
T
adminandClaude Opus 5.5 c88884c54a Fix #7: non-dev roles (test-design) are never treated as a dev (0.5.1)
A test-design brief (Pipeline-Role: test-design, Clone: ... (Role: test-design))
that mentioned the dev clone was read as a dev in that clone: it got a T number
and a "no verification: dev ran on Opus" line, also after a resume.

- Role comes from Pipeline-Role:, then (Role: ...) on the Clone: line, then
  the folder name, which must end in -dev, -review or -test. Any other role,
  or a Clone: line the router cannot place, is a non-dev role.
- A non-dev Pipeline-Role never falls back to other clone paths in the brief.
- Non-dev roles and the 0.5.0 gate types (test-designer, release-reviewer):
  named model kept, never Haiku, Opus when none; no hand-back line, no
  verification, no savings record. A gate agent type is never a dev, whatever
  clone paths its brief names.
- T numbers for dev agents only; other agents get A1, A2, ...
- /router log shows the role as written (test-design, test-designer).
- 0.5.0 test updated: a -design clone is now a non-dev role, not "no role".

102 tests; 16 mutations of the new rules, all caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MdqPWvuDpbpRvDEdURoAwo
2026-11-17 21:47:25 +01:00

94 lines
3.9 KiB
JSON

{
"name": "model-router",
"version": "0.5.1",
"description": "Routes each subagent to Haiku, Sonnet or Opus by how well-defined its brief is, verifies dev work below Opus in its own clone on a different model, sends failures back to the same agent then a stronger one, and estimates the savings against Opus.",
"author": {
"name": "Glenn Schrooyen"
},
"userConfig": {
"testCommand": {
"type": "string",
"title": "Test command (run in the agent's clone)",
"description": "The unit-suite command CI runs, from .gitea/workflows/checks.yml. Its output goes to the verifier. Empty: no tests.",
"default": ""
},
"testTimeoutSec": {
"type": "number",
"title": "Test time limit (seconds)",
"description": "How long the test command may run in the clone. A run that times out is reported as NOT VERIFIED, never as a FAIL.",
"default": 1800
},
"testFileCommand": {
"type": "string",
"title": "Command that runs one test file",
"description": "Run in the clone, with {file} replaced by a file the full run reported as TIMEOUT or FAIL. Each such file is rerun alone, and on the base branch if it still fails. Empty: no reruns.",
"default": ""
},
"testFileTimeoutSec": {
"type": "number",
"title": "Time limit per rerun file (seconds)",
"description": "A file still running after this counts as timing out alone.",
"default": 900
},
"testRerunJobs": {
"type": "number",
"title": "Reruns at a time",
"description": "How many reported files are rerun in parallel.",
"default": 6
},
"testRerunMax": {
"type": "number",
"title": "Most files to rerun",
"description": "Reported files beyond this are listed as not rerun.",
"default": 40
},
"testIssuePattern": {
"type": "string",
"title": "Pattern of a reported file line",
"description": "Regular expression: group 1 is TIMEOUT or FAIL, group 2 the file. Empty: ^(TIMEOUT|FAIL)\\s+(\\S+)",
"default": ""
},
"defaultBaseBranch": {
"type": "string",
"title": "Base branch when the brief names none",
"description": "Used after the PR lookup and the brief's own base branch.",
"default": "release/1.0"
},
"prBaseCommand": {
"type": "string",
"title": "Command that prints the PR's base branch",
"description": "Run in the clone; its first output line is the branch. Empty or failing: the brief's base branch, then the default.",
"default": ""
},
"maxRewrites": {
"type": "number",
"title": "Failed verdicts before handing back",
"description": "1st fail: resume the same agent. 2nd: new agent one model up in the same clone. Past this number: handed back to the manager.",
"default": 2
},
"safetyPatterns": {
"type": "string",
"title": "Safety-critical patterns (logged only)",
"description": "Comma-separated. Marks a task as critical in the log. Dev work below Opus is always verified by Opus.",
"default": "control loop,integrator,safety,staleness,watchdog,failsafe,fail-safe,deadlock,rs485,modbus,meter emulat,asyncio,setpoint"
},
"respectExplicitModel": {
"type": "boolean",
"title": "Keep a named model on agents without a role",
"description": "Review and test agents always keep a named model; dev agents never do. This covers everything else.",
"default": false
},
"allowFable": {
"type": "boolean",
"title": "Allow Fable for rewrites",
"description": "A rewrite after Opus fails runs on Fable instead of handing back.",
"default": false
},
"prices": {
"type": "string",
"title": "Price overrides (JSON, USD per MTok)",
"description": "Empty: list prices of 2026-10-08. Else a JSON list of rows, checked before the defaults: [{\"match\":\"sonnet-5-5\",\"price\":{\"in\":2,\"out\":10,\"write\":2.5,\"read\":0.1}}]",
"default": ""
}
}
}