@mmerterden/multi-agent-pipeline 20.41.0 → 20.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +8 -6
  3. package/README.tr.md +8 -6
  4. package/docs/architecture.md +3 -3
  5. package/docs/ecosystem.md +50 -13
  6. package/docs/facts.json +9 -9
  7. package/docs/features.md +9 -4
  8. package/install/claude.mjs +34 -1
  9. package/install/templates/claude-hooks.json +12 -1
  10. package/manifest.json +117 -90
  11. package/package.json +3 -2
  12. package/pipeline/commands/multi-agent/autopilot/SKILL.md +11 -0
  13. package/pipeline/commands/multi-agent/clean-disk/SKILL.md +134 -0
  14. package/pipeline/commands/multi-agent/review-priority/SKILL.md +143 -0
  15. package/pipeline/commands/multi-agent/setup/SKILL.md +1 -1
  16. package/pipeline/commands/multi-agent/sync/SKILL.md +4 -4
  17. package/pipeline/lib/args.mjs +131 -4
  18. package/pipeline/lib/bg-launch.mjs +5 -2
  19. package/pipeline/lib/credential-store.sh +11 -1
  20. package/pipeline/lib/hook-once.mjs +134 -0
  21. package/pipeline/lib/isotonic.mjs +73 -0
  22. package/pipeline/lib/low-disk.mjs +154 -0
  23. package/pipeline/lib/mcp-schema-load.mjs +90 -0
  24. package/pipeline/lib/md2confluence-v3.py +8 -7
  25. package/pipeline/lib/model-dispatch.sh +26 -2
  26. package/pipeline/lib/normalize-text.mjs +135 -0
  27. package/pipeline/lib/outbound-gate.mjs +21 -3
  28. package/pipeline/lib/plan-todos.sh +17 -4
  29. package/pipeline/lib/redact.mjs +12 -3
  30. package/pipeline/lib/risky-settings.mjs +198 -0
  31. package/pipeline/lib/route-state.sh +1 -0
  32. package/pipeline/lib/secret-patterns.generated.mjs +6 -2
  33. package/pipeline/lib/session-usage.mjs +232 -0
  34. package/pipeline/lib/source-digest.mjs +211 -0
  35. package/pipeline/lib/tdd-evidence.mjs +250 -17
  36. package/pipeline/lib/untrusted-fence.mjs +132 -1
  37. package/pipeline/multi-agent-refs/analysis/locked.md +1 -1
  38. package/pipeline/multi-agent-refs/cross-cli-contract.md +5 -5
  39. package/pipeline/multi-agent-refs/features/cost-analysis.md +37 -2
  40. package/pipeline/multi-agent-refs/features/doctor.md +66 -4
  41. package/pipeline/multi-agent-refs/features/model-fallback.md +25 -0
  42. package/pipeline/multi-agent-refs/features/plan-todos.md +4 -0
  43. package/pipeline/multi-agent-refs/features/review-priority.md +123 -0
  44. package/pipeline/multi-agent-refs/features/unattended-gates.md +5 -3
  45. package/pipeline/multi-agent-refs/features/usage-reporting.md +4 -2
  46. package/pipeline/multi-agent-refs/help/en.md +3 -1
  47. package/pipeline/multi-agent-refs/help/tr.md +3 -1
  48. package/pipeline/multi-agent-refs/outside-the-pipeline.md +6 -0
  49. package/pipeline/multi-agent-refs/phases/phase-1-plan.md +1 -1
  50. package/pipeline/multi-agent-refs/phases/phase-2-dev.md +4 -4
  51. package/pipeline/multi-agent-refs/phases/phase-3-review.md +2 -2
  52. package/pipeline/multi-agent-refs/phases/phase-5-report.md +2 -0
  53. package/pipeline/multi-agent-refs/progress-contract.md +3 -1
  54. package/pipeline/multi-agent-refs/review-priority/rules/example.md +137 -0
  55. package/pipeline/office/toolkit.json +1 -1
  56. package/pipeline/rules/outside-the-pipeline.md +1 -1
  57. package/pipeline/schemas/doctor-report.schema.json +47 -0
  58. package/pipeline/schemas/plan-todos.schema.json +29 -1
  59. package/pipeline/schemas/prefs.schema.json +81 -0
  60. package/pipeline/schemas/route-config.schema.json +51 -0
  61. package/pipeline/schemas/secret-patterns.json +17 -1
  62. package/pipeline/schemas/toolkit-path-params.json +15 -1
  63. package/pipeline/scripts/_cost-advise.mjs +357 -0
  64. package/pipeline/scripts/_cost-budget.mjs +78 -0
  65. package/pipeline/scripts/_cost.mjs +29 -0
  66. package/pipeline/scripts/_decode_text.py +107 -0
  67. package/pipeline/scripts/_guard-probe.mjs +406 -0
  68. package/pipeline/scripts/_guard_rules.py +206 -0
  69. package/pipeline/scripts/_memory-policy.mjs +1 -25
  70. package/pipeline/scripts/_retrieval.mjs +148 -2
  71. package/pipeline/scripts/_secret-scan.mjs +6 -1
  72. package/pipeline/scripts/_stack-routing.mjs +1 -0
  73. package/pipeline/scripts/_test-gaming.mjs +346 -0
  74. package/pipeline/scripts/agent-guard.py +8 -1
  75. package/pipeline/scripts/argv-secret-scan.mjs +2 -1
  76. package/pipeline/scripts/autopilot-loop.mjs +407 -0
  77. package/pipeline/scripts/autopilot-runner.mjs +38 -25
  78. package/pipeline/scripts/capture-resume.sh +9 -1
  79. package/pipeline/scripts/cost-analyze.mjs +66 -4
  80. package/pipeline/scripts/cost-budget-check.mjs +5 -13
  81. package/pipeline/scripts/disk-cleaner.mjs +1432 -0
  82. package/pipeline/scripts/doctor.mjs +302 -47
  83. package/pipeline/scripts/evidence-gate.mjs +90 -0
  84. package/pipeline/scripts/gate-ledger.mjs +76 -21
  85. package/pipeline/scripts/gc-tmp.sh +5 -0
  86. package/pipeline/scripts/guard-probe-known-holes.json +3 -0
  87. package/pipeline/scripts/learnings-ledger.mjs +16 -12
  88. package/pipeline/scripts/note-agent-event.mjs +2 -0
  89. package/pipeline/scripts/note-mcp-failure.mjs +9 -2
  90. package/pipeline/scripts/note-skill-use.mjs +4 -1
  91. package/pipeline/scripts/pre-commit-check.sh +2 -2
  92. package/pipeline/scripts/pre-push-check.sh +8 -1
  93. package/pipeline/scripts/priority-review.mjs +912 -0
  94. package/pipeline/scripts/publish-staged.mjs +324 -0
  95. package/pipeline/scripts/route-learn.mjs +628 -0
  96. package/pipeline/scripts/run-scope-guard.mjs +55 -1
  97. package/pipeline/scripts/scan-agent-config.sh +1 -1
  98. package/pipeline/scripts/statusline.mjs +309 -0
  99. package/pipeline/scripts/test-integrity-gate.mjs +97 -2
  100. package/pipeline/scripts/triage-memory.mjs +12 -4
  101. package/pipeline/scripts/uninstall.mjs +1 -0
  102. package/pipeline/skills/.skill-manifest.json +17 -5
  103. package/pipeline/skills/.skills-index.json +36 -3
  104. package/pipeline/skills/shared/README.md +9 -6
  105. package/pipeline/skills/shared/core/multi-agent-clean-disk/SKILL.md +34 -0
  106. package/pipeline/skills/shared/core/multi-agent-review-priority/SKILL.md +36 -0
  107. package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +4 -4
  108. package/pipeline/skills/shared/external/backlog/SKILL.md +1 -1
  109. package/pipeline/skills/shared/external/disk-cleaner/SKILL.md +111 -0
  110. package/pipeline/skills/shared/external/disk-cleaner/evals/evals.json +62 -0
  111. package/pipeline/skills/shared/external/disk-cleaner/scripts/disk-cleaner.mjs +1432 -0
  112. package/pipeline/skills/shared/external/localization-reuse-map/SKILL.md +1 -1
  113. package/pipeline/skills/skill-copies.json +4 -0
  114. package/pipeline/skills/skills-index.md +5 -2
@@ -0,0 +1,137 @@
1
+ ---
2
+ team: Example Team
3
+ slug: example
4
+ ---
5
+
6
+ # Example Team - priority rules
7
+
8
+ <!-- toc -->
9
+ - [Jira selection](#jira-selection)
10
+ - [Priority scale](#priority-scale)
11
+ - [Rules](#rules)
12
+ <!-- /toc -->
13
+
14
+ A starting point for `/multi-agent:review-priority`. Copy this file into the
15
+ rules directory as `<your-slug>.md`, set `team` and `slug`, and replace the
16
+ Jira selection with your own. The rules below describe an impact-based
17
+ priority model and can be kept as they are. The file format is described in
18
+ `multi-agent-refs/features/review-priority.md`.
19
+
20
+ ## Jira selection
21
+
22
+ The presets below use placeholder values: a project key `EXAMPLE` and a
23
+ component `Example Component`. `environment` is a standard Jira field; add the
24
+ fields your team records evidence in (environment, root cause, application)
25
+ to `evidenceFields`, keyed by field id.
26
+
27
+ ```json jira-selection
28
+ {
29
+ "base": "issuetype = Bug",
30
+ "default": "open",
31
+ "presets": [
32
+ {"id": "open", "label": "Example Team, open bugs",
33
+ "jql": "project = EXAMPLE AND statusCategory != Done"},
34
+ {"id": "component-open", "label": "Example Component only, open bugs",
35
+ "jql": "project = EXAMPLE AND component = \"Example Component\" AND statusCategory != Done"}
36
+ ],
37
+ "order": "priority DESC, created DESC",
38
+ "evidenceFields": {
39
+ "environment": "Environment"
40
+ }
41
+ }
42
+ ```
43
+
44
+ ## Priority scale
45
+
46
+ Critical > High > Medium > Low. Priority states how much damage the defect
47
+ does to the system, a workflow, the integrity of data and the people using
48
+ it. How soon it must be fixed is urgency, a separate question answered in the
49
+ description, a label or the release plan. A value outside these four is
50
+ reported as off the scale.
51
+
52
+ ## Rules
53
+
54
+ Each row: a rule id, what it implies for the level, what to look for in the
55
+ issue, and why.
56
+
57
+ ### Principles
58
+
59
+ | Id | Implies | Look for | Why |
60
+ |---|---|---|---|
61
+ | PRI-001 | Judge technical impact only | How badly the defect hurts the system, a workflow, data or users | Impact and urgency are separate axes |
62
+ | PRI-002 | Out of scope -> `insufficient` | The record is a task, a change request, an incident or a question rather than a defect found in testing | The model grades defects, nothing else |
63
+ | PRI-003 | Never raises the level | The text argues from a close release date, management attention, visibility to end users, a large fix, a team asking to go first, or a sprint goal | These change the order of work, not the damage |
64
+ | PRI-004 | Never raises the level | A release-blocker label or the words "release blocker" | Blocking a release is recorded separately; a Medium may block a release |
65
+ | PRI-005 | Never raises the level alone | The defect was seen in production | Where it was seen does not measure how much it hurts |
66
+ | PRI-006 | High or Critical possible | A single user is affected and cannot finish the action at all | Spread is one input; a complete stop for one user still counts |
67
+ | PRI-007 | One band lower | A workaround that people can actually keep using | A workaround that only works on paper does not lower the level |
68
+ | PRI-008 | Medium or High possible | A UI defect that misleads the user into a wrong action or breaks the main flow | A visual defect is not Low by default |
69
+ | PRI-009 | Judge by the data | A small symptom on screen while the data written, shown or sent is wrong | The data impact decides, not the size of the symptom |
70
+
71
+ ### Critical
72
+
73
+ | Id | Implies | Look for | Why |
74
+ |---|---|---|---|
75
+ | PRI-010 | Critical | The system or a core flow cannot be used; the main path stops or keeps failing | Nothing of value can be done |
76
+ | PRI-011 | Critical | A core business function cannot complete: taking a payment, signing in or authenticating, creating an order or a booking | These functions are what the product exists for |
77
+ | PRI-012 | Critical | A crash, errors that do not stop, or corrupted data (wrong amounts, wrong records) | Damage spreads beyond the screen |
78
+ | PRI-013 | Critical | A security, legal or reputational exposure (a required check skipped, personal data visible) | The risk is outside the product's own walls |
79
+ | PRI-014 | Needed for Critical | No workaround that is workable and lasting, and no other way through | With a workable route the damage is contained |
80
+ | PRI-015 | Not Critical on its own | One secondary area is wrong while the product works; the user can finish another way; a narrow group with little spread | Real, but contained |
81
+
82
+ ### High
83
+
84
+ | Id | Implies | Look for | Why |
85
+ |---|---|---|---|
86
+ | PRI-020 | High | The main function can be reached but works badly; a step inside the main flow is seriously broken | The flow exists but cannot be relied on |
87
+ | PRI-021 | High | The flow completes but adds operational work, delay or a clearly worse experience | The cost is paid on every use |
88
+ | PRI-022 | High | It happens often and to many people | Frequency and reach multiply the impact |
89
+ | PRI-023 | High | A workaround exists but it is manual, complicated or cannot be kept up; an action succeeds only on a retry or by another route | The user carries the cost of the defect |
90
+ | PRI-024 | Not High on its own | Only a text or an icon is wrong; a rare validation mismatch with little effect | Too small to degrade the function |
91
+
92
+ ### Medium
93
+
94
+ | Id | Implies | Look for | Why |
95
+ |---|---|---|---|
96
+ | PRI-030 | Medium | The function works but departs from the business rules in a way that matters (a wrong message while the action continues, results in the wrong order) | Correctness suffers while the work gets done |
97
+ | PRI-031 | Medium | The flow continues with a workaround (an action that fails once and succeeds when repeated) | Annoying, recoverable |
98
+ | PRI-032 | Medium | Only under specific conditions (a region, a device, a sequence of steps) and with limited effect | Narrow and contained |
99
+ | PRI-033 | Medium | A functional effect while the system as a whole keeps working | Real impact, no breakdown |
100
+ | PRI-034 | Not Medium on its own | A spelling mistake with no functional effect | Cosmetic |
101
+
102
+ ### Low
103
+
104
+ | Id | Implies | Look for | Why |
105
+ |---|---|---|---|
106
+ | PRI-040 | Low | A visual, wording or usability finding while the action completes | The outcome is right |
107
+ | PRI-041 | Low | Design, alignment or labelling work that does not change the functional result | An improvement, not a failure |
108
+ | PRI-042 | Never Low | The user cannot complete the action, or needs a workaround to do so | That is a functional failure |
109
+
110
+ ### Decision order and evidence
111
+
112
+ | Id | Implies | Look for | Why |
113
+ |---|---|---|---|
114
+ | PRI-050 | Order of evaluation | 1. Is it really a defect, not missing data, misuse or the environment? 2. Which flow: the main one, a side one, one segment? 3. Can the flow complete? 4. Is there a workaround, and does it hold up in practice? 5. Is there data loss, money, security, regulatory or operational risk? 6. Choose the level; note urgency and release impact separately | Each answer narrows the next |
115
+ | PRI-060 | Missing items -> `insufficient` | The record should state the affected flow, the spread (everyone, a segment, a device, a channel), the real impact, the workaround if any, and the release or production risk as its own note | Without them the steps above cannot run |
116
+ | PRI-061 | Consistency | Similar earlier records were given the same level | One defect, one level, whoever files it |
117
+
118
+ ### Triage checklist
119
+
120
+ | Id | Implies | Look for | Why |
121
+ |---|---|---|---|
122
+ | PRI-080 | Ask before settling | Is it a defect? Which flow? Does it complete? Is the workaround real? What is at risk? Does a similar record exist? Is urgency written apart from the level? | The same questions every time keep levels comparable |
123
+
124
+ ### Decision matrix
125
+
126
+ | Id | Situation | Spread | Workaround | Implies |
127
+ |---|---|---|---|---|
128
+ | PRI-070 | Nobody can sign in | Everyone | None | Critical |
129
+ | PRI-071 | A payment fails on the first attempt and goes through on a retry | Wide | Yes | High |
130
+ | PRI-072 | A field is validated wrongly on some devices; the flow still completes | Limited | Not needed | Medium |
131
+ | PRI-073 | A typo or an alignment problem; the flow completes | Any | Not needed | Low |
132
+
133
+ ### Roles
134
+
135
+ | Id | Implies | Why |
136
+ |---|---|---|
137
+ | PRI-090 | The review proposes; people decide | The tester sets the first level from impact, a developer does not change it alone, product and analysis add business context, and triage keeps levels consistent. The review is input to that triage |
@@ -1,3 +1,3 @@
1
1
  {
2
- "toolkitVersion": "3.31.0"
2
+ "toolkitVersion": "3.32.1"
3
3
  }
@@ -26,7 +26,7 @@ the file first; never inline it). The repo's own `.claude/skills` come first.
26
26
  `ai-common-toolkit` and `ai-analyst-toolkit` are on everywhere. Nothing enabled
27
27
  is a normal state.
28
28
 
29
- **multi-agent-toolkit MCP.** <!-- fact:toolCount -->228<!-- /fact --> tools, most for a running app: `ios_get_ui_tree` /
29
+ **multi-agent-toolkit MCP.** <!-- fact:toolCount -->230<!-- /fact --> tools, most for a running app: `ios_get_ui_tree` /
30
30
  `android_get_ui_tree`, `ios_list_crashes` / `android_list_crashes`, `design_*`,
31
31
  `ios_app_store_audit`, `ios_testflight_validate`. Use them instead of guessing
32
32
  about on-screen state. Not registered is a silent no-op.
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/mmerterden/multi-agent-pipeline/pipeline/schemas/doctor-report.schema.json",
4
+ "title": "Doctor report",
5
+ "description": "What `doctor.mjs --json` prints. schemaVersion changes only when an existing field changes meaning or shape; a new check id or a new optional field does not change it. Every check id is listed by `doctor.mjs --list-checks` and documented in multi-agent-refs/features/doctor.md. `exit` is the process exit code: 0 healthy, 1 at least one WARN, 2 at least one BLOCK, 4 indeterminate (the layout did not resolve).",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schemaVersion", "exit", "selection", "checks"],
9
+ "properties": {
10
+ "schemaVersion": { "const": 1, "x-sensitivity": "none" },
11
+ "exit": { "type": "integer", "enum": [0, 1, 2, 4], "x-sensitivity": "none" },
12
+ "selection": {
13
+ "description": "The check ids --only asked for, in the order given, or null for a full run.",
14
+ "anyOf": [
15
+ { "type": "null" },
16
+ { "type": "array", "items": { "type": "string", "pattern": "^[a-z0-9-]+$" } }
17
+ ],
18
+ "x-sensitivity": "none"
19
+ },
20
+ "checks": {
21
+ "description": "One entry per check that ran, in registry order.",
22
+ "type": "array",
23
+ "x-sensitivity": "local",
24
+ "items": {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "required": ["id", "severity", "problem", "step", "detail"],
28
+ "properties": {
29
+ "id": { "type": "string", "pattern": "^[a-z0-9-]+$" },
30
+ "severity": { "type": "string", "enum": ["OK", "INFO", "WARN", "BLOCK", "SKIP"] },
31
+ "problem": {
32
+ "description": "What is wrong (WARN, BLOCK, INFO) or why it was not checked (SKIP); null for OK.",
33
+ "type": ["string", "null"]
34
+ },
35
+ "step": {
36
+ "description": "The single step that fixes it, starting with a verb from the closed list; null for OK and SKIP.",
37
+ "type": ["string", "null"]
38
+ },
39
+ "detail": {
40
+ "description": "What --explain prints: a string, a list, or null. Free-form per check.",
41
+ "type": ["string", "array", "object", "null"]
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
@@ -85,6 +85,20 @@
85
85
  "testsUnverifiable": {
86
86
  "type": "boolean",
87
87
  "description": "The todo named tests (--tests) but the results name no failing test, so the names went unchecked. Recorded in warn and off mode; enforce refuses the run instead."
88
+ },
89
+ "testFiles": {
90
+ "type": "array",
91
+ "maxItems": 200,
92
+ "description": "The worktree's new and changed test files at RED, each with the blob id its bytes were written to in the repository's object store. tdd-green refuses when one of them changed without --test-edit-reason; tdd-restore writes them back.",
93
+ "items": {
94
+ "type": "object",
95
+ "additionalProperties": false,
96
+ "required": ["path", "blob"],
97
+ "properties": {
98
+ "path": { "type": "string", "minLength": 1 },
99
+ "blob": { "type": "string", "pattern": "^[0-9a-f]{40,64}$" }
100
+ }
101
+ }
88
102
  }
89
103
  }
90
104
  },
@@ -96,7 +110,21 @@
96
110
  "properties": {
97
111
  "at": { "type": "string", "format": "date-time" },
98
112
  "failed": { "const": 0 },
99
- "total": { "type": "integer", "minimum": 1 }
113
+ "total": { "type": "integer", "minimum": 1 },
114
+ "testEdits": {
115
+ "type": "array",
116
+ "description": "Test files RED kept that GREEN found changed, accepted with the reason given to --test-edit-reason. test-integrity-gate --state reports them for review.",
117
+ "items": {
118
+ "type": "object",
119
+ "additionalProperties": false,
120
+ "required": ["path", "change", "reason"],
121
+ "properties": {
122
+ "path": { "type": "string", "minLength": 1 },
123
+ "change": { "type": "string", "enum": ["modified", "deleted"] },
124
+ "reason": { "type": "string", "minLength": 1 }
125
+ }
126
+ }
127
+ }
100
128
  }
101
129
  },
102
130
  "outcome": {
@@ -674,6 +674,26 @@
674
674
  "recordDecisions": {
675
675
  "type": "boolean",
676
676
  "default": true
677
+ },
678
+ "learned": {
679
+ "type": "object",
680
+ "additionalProperties": false,
681
+ "description": "Learned rung order (route-learn.mjs), ships disabled. Contract: route-config.schema.json.",
682
+ "properties": {
683
+ "enabled": { "type": "boolean", "default": false },
684
+ "minSamples": { "type": "integer", "minimum": 1, "default": 20 },
685
+ "target": { "type": "number", "minimum": 0, "maximum": 1, "default": 0.8 },
686
+ "halfLifeDays": { "type": "integer", "minimum": 1, "default": 60 },
687
+ "explore": { "type": "boolean", "default": false },
688
+ "holdout": {
689
+ "type": "number",
690
+ "exclusiveMinimum": 0,
691
+ "exclusiveMaximum": 1,
692
+ "default": 0.25
693
+ },
694
+ "minRows": { "type": "integer", "minimum": 1, "default": 10 },
695
+ "margin": { "type": "number", "minimum": 0, "default": 0.005 }
696
+ }
677
697
  }
678
698
  }
679
699
  },
@@ -1495,6 +1515,49 @@
1495
1515
  }
1496
1516
  }
1497
1517
  },
1518
+ "diskCleaner": {
1519
+ "type": "object",
1520
+ "additionalProperties": false,
1521
+ "description": "When the ecosystem suggests /multi-agent:clean-disk. lib/low-disk.mjs reads these with one statfs call from doctor's disk-space check, the SessionStart banner and the pre-push gate's failure path, and prints one line naming the command. The suggestion never deletes anything.",
1522
+ "properties": {
1523
+ "lowDiskGb": {
1524
+ "type": "number",
1525
+ "minimum": 0,
1526
+ "default": 10,
1527
+ "description": "Suggest the cleaner when less than this many gigabytes are free on the volume holding $HOME."
1528
+ },
1529
+ "lowDiskPercent": {
1530
+ "type": "number",
1531
+ "minimum": 0,
1532
+ "maximum": 100,
1533
+ "default": 5,
1534
+ "description": "Suggest the cleaner when less than this share of the volume is free. Either floor is enough."
1535
+ },
1536
+ "suggest": {
1537
+ "type": "boolean",
1538
+ "default": true,
1539
+ "description": "false silences the suggestion everywhere, including after a disk-full failure."
1540
+ },
1541
+ "reclaimableGb": {
1542
+ "type": "number",
1543
+ "minimum": 0,
1544
+ "default": 10,
1545
+ "description": "doctor's disk-space check names /multi-agent:clean-disk when the newest disk-cleaner dry run (under a day old) found at least this many gigabytes to free, even with enough free space."
1546
+ }
1547
+ }
1548
+ },
1549
+ "reviewPriority": {
1550
+ "type": "object",
1551
+ "additionalProperties": false,
1552
+ "description": "Where /multi-agent:review-priority reads team rule files. scripts/priority-review.mjs reads it; run data goes to runs/ beside the rules directory.",
1553
+ "properties": {
1554
+ "rulesDir": {
1555
+ "type": "string",
1556
+ "default": "~/.claude/routine-assets/review-priority/rules",
1557
+ "description": "Directory holding one <slug>.md rule file per team. A leading ~ is the home directory. Unset means the default."
1558
+ }
1559
+ }
1560
+ },
1498
1561
  "analysisPhase": {
1499
1562
  "type": "object",
1500
1563
  "additionalProperties": false,
@@ -1901,6 +1964,18 @@
1901
1964
  "maximum": 3650,
1902
1965
  "default": 30,
1903
1966
  "description": "Recency half-life. Recency only separates entries of comparable relevance; it never promotes an unrelated entry."
1967
+ },
1968
+ "mmrLambda": {
1969
+ "type": "number",
1970
+ "minimum": 0,
1971
+ "maximum": 1,
1972
+ "default": 0.7,
1973
+ "description": "Maximal Marginal Relevance weight for the head of a recall answer: lambda * relevance - (1 - lambda) * similarity to what is already picked (TF-IDF cosine). Keeps near-duplicate rows from filling every place. 1 turns the re-pick off."
1974
+ },
1975
+ "multiQuery": {
1976
+ "type": "boolean",
1977
+ "default": true,
1978
+ "description": "Rank each clause of a multi-part task as its own query and fuse the rankings, so the second thing a task asks about is not crowded out by the first. false ranks the whole text as one query."
1904
1979
  }
1905
1980
  },
1906
1981
  "default": {
@@ -2640,6 +2715,12 @@
2640
2715
  "minimum": 0,
2641
2716
  "default": 8,
2642
2717
  "description": "Report the registered-server count once it exceeds this. The number is JUDGEMENT, not a measurement - it exists so the threshold is visible and adjustable instead of hidden in the script. 0 reports the count always."
2718
+ },
2719
+ "schemaInfoAboveTokens": {
2720
+ "type": "integer",
2721
+ "minimum": 0,
2722
+ "default": 8000,
2723
+ "description": "doctor --probe reports the toolkit's tool-list load per family (an estimate, bytes / 4) once the total reaches this many tokens, with the MCP_TOOLKIT_CAPS families that would cut it. Judgement, like infoAbove. 0 reports it always."
2643
2724
  }
2644
2725
  }
2645
2726
  }
@@ -94,6 +94,57 @@
94
94
  "type": "boolean",
95
95
  "default": true,
96
96
  "description": "Write every routing decision to the cost ledger: which rule matched, which rung it chose, and why. On by default because a router whose choices are not recorded cannot be audited after the fact - and the question that always arrives later is 'why did this run cost that'."
97
+ },
98
+ "learned": {
99
+ "type": "object",
100
+ "additionalProperties": false,
101
+ "description": "Learned rung order (route-learn.mjs). Ships disabled. While enabled, model-dispatch.sh hands the strategy's order to route-learn.mjs choose, which reorders the rule's own candidates from the PROMOTED policy: per call site, task kind and complexity band, a Beta posterior over a reward taken from gate verdicts and review findings, never from a model's report on itself, sampled by seeded Thompson sampling. A policy changes only through route-learn.mjs promote, after it beats the current one on a time-ordered holdout. Too few outcomes, no promoted policy or any failure leaves the order unchanged.",
102
+ "properties": {
103
+ "enabled": { "type": "boolean", "default": false, "description": "Ships false." },
104
+ "minSamples": {
105
+ "type": "integer",
106
+ "minimum": 1,
107
+ "default": 20,
108
+ "description": "Outcomes a rung needs in a bucket before its posterior is used; with fewer than two such rungs the rule's order stands."
109
+ },
110
+ "target": {
111
+ "type": "number",
112
+ "minimum": 0,
113
+ "maximum": 1,
114
+ "default": 0.8,
115
+ "description": "A rung whose sampled reward clears this is good enough; the cheapest such rung is tried first."
116
+ },
117
+ "halfLifeDays": {
118
+ "type": "integer",
119
+ "minimum": 1,
120
+ "default": 60,
121
+ "description": "An outcome's weight halves every this many days."
122
+ },
123
+ "explore": {
124
+ "type": "boolean",
125
+ "default": false,
126
+ "description": "Draw a rung with too few outcomes from its prior instead of leaving it after the known ones. Off by default: exploring means sometimes trying a rung with no record."
127
+ },
128
+ "holdout": {
129
+ "type": "number",
130
+ "exclusiveMinimum": 0,
131
+ "exclusiveMaximum": 1,
132
+ "default": 0.25,
133
+ "description": "Newest fraction of the outcomes promote scores a candidate on."
134
+ },
135
+ "minRows": {
136
+ "type": "integer",
137
+ "minimum": 1,
138
+ "default": 10,
139
+ "description": "Holdout rows promote requires."
140
+ },
141
+ "margin": {
142
+ "type": "number",
143
+ "minimum": 0,
144
+ "default": 0.005,
145
+ "description": "Brier-score improvement over the current policy promote requires."
146
+ }
147
+ }
97
148
  }
98
149
  }
99
150
  }
@@ -202,7 +202,7 @@
202
202
  "id": "url-with-credentials",
203
203
  "label": "URL with embedded credentials",
204
204
  "kind": "context",
205
- "ere": "[a-z][a-z0-9+.-]*://[^[:space:]/:@]+:[^[:space:]/@]+@",
205
+ "ere": "[a-z][a-z0-9+.-]{0,31}://[^[:space:]/:@]{1,255}:[^[:space:]/@]+@",
206
206
  "left": "word"
207
207
  },
208
208
  {
@@ -423,6 +423,22 @@
423
423
  "len": 12,
424
424
  "suffix": "@example.com/x.git"
425
425
  },
426
+ {
427
+ "id": "url-with-credentials-300",
428
+ "rule": "url-with-credentials",
429
+ "prefix": "https://user:",
430
+ "fill": "s",
431
+ "len": 300,
432
+ "suffix": "@example.com/x.git"
433
+ },
434
+ {
435
+ "id": "url-with-credentials-2000",
436
+ "rule": "url-with-credentials",
437
+ "prefix": "https://user:",
438
+ "fill": "s",
439
+ "len": 2000,
440
+ "suffix": "@example.com/x.git"
441
+ },
426
442
  {
427
443
  "id": "bearer-header",
428
444
  "rule": "bearer-header",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$comment": "Generated by pipeline/scripts/gen-toolkit-path-params.mjs from multi-agent-toolkit-mcp tool-manifest.json; do not edit. Per toolkit tool: the parameters it writes to and the filesystem paths it reads, both confined by scripts/unattended_policy.py.",
3
- "toolkitVersion": "3.31.0",
3
+ "toolkitVersion": "3.32.1",
4
4
  "tools": {
5
5
  "agent_query_output": {
6
6
  "writes": [],
@@ -577,6 +577,20 @@
577
577
  "writes": [],
578
578
  "reads": []
579
579
  },
580
+ "media_video_plan": {
581
+ "writes": [],
582
+ "reads": []
583
+ },
584
+ "media_video_render": {
585
+ "writes": [
586
+ "out_dir"
587
+ ],
588
+ "reads": [
589
+ "footage_dir",
590
+ "voice_dir",
591
+ "music"
592
+ ]
593
+ },
580
594
  "pass_build": {
581
595
  "writes": [
582
596
  "output"