@aiwg/cli 2026.10.16 → 2026.10.19

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 (155) hide show
  1. package/agentic/code/providers/capability-matrix.yaml +51 -0
  2. package/agentic/code/providers/flue/README.md +62 -0
  3. package/agentic/code/providers/flue/templates/aiwg/tools.ts +120 -0
  4. package/agentic/code/providers/model-capabilities.v1.json +23 -0
  5. package/agentic/code/providers/model-catalog.v1.json +9 -0
  6. package/dist/src/artifacts/corpus-tools/resolve.js +28 -6
  7. package/dist/src/artifacts/query-engine-corpus.js +217 -0
  8. package/dist/src/artifacts/query-engine-discover-output.js +229 -0
  9. package/dist/src/artifacts/query-engine-discover.js +285 -0
  10. package/dist/src/artifacts/query-engine-entries.js +188 -0
  11. package/dist/src/artifacts/query-engine-index.js +249 -0
  12. package/dist/src/artifacts/query-engine-matching.js +143 -0
  13. package/dist/src/artifacts/query-engine-options.js +2 -0
  14. package/dist/src/artifacts/query-engine-rules.js +202 -0
  15. package/dist/src/artifacts/query-engine-scoring.js +436 -0
  16. package/dist/src/artifacts/query-engine-show-card.js +194 -0
  17. package/dist/src/artifacts/query-engine-show-load.js +211 -0
  18. package/dist/src/artifacts/query-engine-show.js +300 -0
  19. package/dist/src/artifacts/query-engine.js +7 -2576
  20. package/dist/src/cli/handlers/help.js +1 -1
  21. package/dist/src/cli/handlers/init.js +1 -0
  22. package/dist/src/cli/handlers/mc-agents.js +111 -0
  23. package/dist/src/cli/handlers/mc-args.js +54 -0
  24. package/dist/src/cli/handlers/mc-control.js +227 -0
  25. package/dist/src/cli/handlers/mc-dispatch.js +203 -0
  26. package/dist/src/cli/handlers/mc-help.js +171 -0
  27. package/dist/src/cli/handlers/mc-run.js +343 -0
  28. package/dist/src/cli/handlers/mc-session.js +138 -0
  29. package/dist/src/cli/handlers/mc-status.js +258 -0
  30. package/dist/src/cli/handlers/mc-summary.js +43 -0
  31. package/dist/src/cli/handlers/mc-types.js +3 -0
  32. package/dist/src/cli/handlers/mc-worker.js +205 -0
  33. package/dist/src/cli/handlers/mc.js +12 -1665
  34. package/dist/src/cli/handlers/models-refusal.js +13 -0
  35. package/dist/src/cli/handlers/models.js +2 -1
  36. package/dist/src/cli/handlers/remove-bundled.js +133 -0
  37. package/dist/src/cli/handlers/remove-options.js +31 -0
  38. package/dist/src/cli/handlers/remove-user.js +174 -0
  39. package/dist/src/cli/handlers/remove.js +201 -0
  40. package/dist/src/cli/handlers/subcommands-bundles.js +257 -0
  41. package/dist/src/cli/handlers/subcommands-discovery.js +165 -0
  42. package/dist/src/cli/handlers/subcommands-list-format.js +129 -0
  43. package/dist/src/cli/handlers/subcommands-list.js +250 -0
  44. package/dist/src/cli/handlers/subcommands-plugins.js +213 -0
  45. package/dist/src/cli/handlers/subcommands-quickref.js +58 -0
  46. package/dist/src/cli/handlers/subcommands-rlm.js +113 -0
  47. package/dist/src/cli/handlers/subcommands-services.js +66 -0
  48. package/dist/src/cli/handlers/subcommands-storage.js +259 -0
  49. package/dist/src/cli/handlers/subcommands.js +18 -1984
  50. package/dist/src/cli/handlers/use.js +11 -5
  51. package/dist/src/cli/scope-resolver.js +1 -142
  52. package/dist/src/cli/services/deployment-verification.js +3 -0
  53. package/dist/src/cli/user-scope-mirror.js +173 -0
  54. package/dist/src/config/dispatch-host-thresholds.js +2 -0
  55. package/dist/src/config/dispatch-thresholds-runtime.mjs +4 -0
  56. package/dist/src/config/host-resource-report.d.mts +5 -0
  57. package/dist/src/config/host-resource-report.mjs +36 -6
  58. package/dist/src/config/host-resource-runtime.d.mts +3 -0
  59. package/dist/src/config/host-resource-runtime.mjs +9 -6
  60. package/dist/src/decision/ensemble-study/artifacts.js +7 -0
  61. package/dist/src/decision/ensemble-study/gate-policy.js +58 -0
  62. package/dist/src/decision/ensemble-study/gates.js +78 -0
  63. package/dist/src/decision/ensemble-study/protocol.js +18 -21
  64. package/dist/src/decision/ensemble-study/score.js +3 -2
  65. package/dist/src/decision/ensemble-study/statistics.js +7 -26
  66. package/dist/src/decision/sensitivity/comparative-gates.js +135 -0
  67. package/dist/src/decision/sensitivity/comparative.js +18 -41
  68. package/dist/src/extensions/claude-hooks-installer.js +18 -0
  69. package/dist/src/gates/evaluate.js +2 -358
  70. package/dist/src/gates/observations.js +363 -0
  71. package/dist/src/gates/pack-composition.js +270 -0
  72. package/dist/src/gates/pack-tightening.js +197 -0
  73. package/dist/src/gates/pack-validation.js +262 -0
  74. package/dist/src/gates/registry-error.js +5 -0
  75. package/dist/src/gates/registry.js +13 -685
  76. package/dist/src/mcp/json-document.mjs +29 -0
  77. package/dist/src/mcp/muse-native-config.mjs +1 -28
  78. package/dist/src/memory/provider-memory-adapter.js +1 -0
  79. package/dist/src/mission-protocol/worker-review-gate.js +7 -0
  80. package/dist/src/models/model-capabilities.v1.json +23 -0
  81. package/dist/src/models/model-catalog.v1.json +9 -0
  82. package/dist/src/models/policy-resources.js +1 -1
  83. package/dist/src/models/worker-plan.js +5 -5
  84. package/dist/src/plugin/command-ownership.js +34 -0
  85. package/dist/src/plugin/skill-command-frontmatter.js +197 -0
  86. package/dist/src/plugin/skill-command-translator.js +6 -232
  87. package/dist/src/providers/capability-matrix.yaml +51 -0
  88. package/dist/src/providers/context-output-ownership.js +26 -0
  89. package/dist/src/providers/deployment-ownership.d.mts +20 -0
  90. package/dist/src/providers/deployment-ownership.mjs +236 -0
  91. package/dist/src/providers/deployment-removal.js +222 -0
  92. package/dist/src/providers/provider-context-contracts.js +8 -0
  93. package/dist/src/providers/provider-definition-schema.js +1 -0
  94. package/dist/src/providers/provider-definitions.js +1 -0
  95. package/dist/src/providers/provider-seeds-3.js +18 -0
  96. package/dist/src/providers/removal-transaction.js +86 -0
  97. package/dist/src/providers/settings-document.d.mts +3 -0
  98. package/dist/src/providers/settings-document.mjs +47 -0
  99. package/dist/src/providers/settings-removal.js +190 -0
  100. package/dist/src/providers/skill-ownership.d.mts +20 -2
  101. package/dist/src/providers/skill-ownership.mjs +12 -4
  102. package/dist/src/providers/transformation-receipt-integration.js +15 -271
  103. package/dist/src/providers/transformation-receipt-outputs.js +99 -0
  104. package/dist/src/providers/transformation-receipt-source.js +194 -0
  105. package/dist/src/research/identity.js +8 -2
  106. package/dist/src/research/reference-match.js +66 -8
  107. package/dist/src/rules/activation.mjs +15 -6
  108. package/dist/src/rules/core-startup.mjs +2 -2
  109. package/dist/src/serve/mission-conductor.js +4 -0
  110. package/dist/src/serve/mission-summary.js +56 -0
  111. package/dist/src/skills/deployment-ownership.js +2 -2
  112. package/dist/src/skills/deployment-policy.js +9 -0
  113. package/dist/src/smiths/context-pipeline/aiwg-md.js +23 -0
  114. package/dist/src/smiths/context-pipeline/context-file-safety.js +3 -0
  115. package/dist/src/smiths/context-pipeline/flue-context.js +25 -0
  116. package/dist/src/smiths/context-pipeline/generator.js +7 -2
  117. package/dist/src/smiths/context-pipeline/workspace-bootstrap.js +9 -7
  118. package/dist/src/smiths/hook-bridge/index.js +9 -0
  119. package/package.json +5 -1
  120. package/schemas/decision/D17StudyProtocol.v1.schema.json +39 -67
  121. package/tools/agents/deploy-agents.mjs +21 -680
  122. package/tools/agents/deploy-command-mirrors.mjs +229 -0
  123. package/tools/agents/deploy-options.mjs +267 -0
  124. package/tools/agents/deploy-support.mjs +165 -0
  125. package/tools/agents/providers/base-addon-discovery.mjs +139 -0
  126. package/tools/agents/providers/base-behaviors.mjs +168 -0
  127. package/tools/agents/providers/base-context.mjs +205 -0
  128. package/tools/agents/providers/base-contract.mjs +116 -0
  129. package/tools/agents/providers/base-files.mjs +252 -0
  130. package/tools/agents/providers/base-flat-artifacts.mjs +233 -0
  131. package/tools/agents/providers/base-framework-discovery.mjs +309 -0
  132. package/tools/agents/providers/base-frontmatter.mjs +196 -0
  133. package/tools/agents/providers/base-inventory.mjs +269 -0
  134. package/tools/agents/providers/base-kernel-skills.mjs +354 -0
  135. package/tools/agents/providers/base-migrations.mjs +258 -0
  136. package/tools/agents/providers/base-models-platforms.mjs +273 -0
  137. package/tools/agents/providers/base-rule-index.mjs +450 -0
  138. package/tools/agents/providers/base-runtime.mjs +60 -0
  139. package/tools/agents/providers/base-skill-copy.mjs +273 -0
  140. package/tools/agents/providers/base.mjs +16 -3364
  141. package/tools/agents/providers/claude-post-deploy.mjs +10 -2
  142. package/tools/agents/providers/flue-project.mjs +79 -0
  143. package/tools/agents/providers/flue-specialists.mjs +64 -0
  144. package/tools/agents/providers/flue.mjs +50 -0
  145. package/tools/agents/providers/hermes-startup.mjs +0 -5
  146. package/tools/agents/providers/muse.mjs +7 -2
  147. package/tools/agents/providers/rule-delivery-surface.mjs +33 -5
  148. package/tools/agents/providers/rule-deployment-commit.mjs +19 -15
  149. package/tools/agents/providers/rule-deployment-prepare.mjs +13 -3
  150. package/tools/agents/providers/rule-projection.mjs +3 -0
  151. package/tools/agents/providers/rule-startup.mjs +3 -3
  152. package/tools/agents/use-rule-selection.mjs +17 -0
  153. package/tools/ralph-external/lib/worker-invocation-processes.mjs +4 -2
  154. package/tools/ralph-external/lib/worker-termination.mjs +15 -8
  155. package/vscode-extension/schemas/aiwg.config.v1.json +2 -4
@@ -23,7 +23,7 @@
23
23
  "const": "decision-d17-protocol/v1"
24
24
  },
25
25
  "minimumPairs": {
26
- "const": 1200
26
+ "type": "integer"
27
27
  },
28
28
  "slices": {
29
29
  "type": "array",
@@ -35,7 +35,7 @@
35
35
  ]
36
36
  },
37
37
  "minimumPerSlice": {
38
- "const": 300
38
+ "type": "integer"
39
39
  },
40
40
  "interval": {
41
41
  "type": "object",
@@ -51,13 +51,13 @@
51
51
  "const": "newcombe-10"
52
52
  },
53
53
  "levelBps": {
54
- "const": 9500
54
+ "type": "integer"
55
55
  },
56
56
  "nonInferiorityMarginBps": {
57
- "const": -300
57
+ "type": "integer"
58
58
  },
59
59
  "benefitLowerExclusiveBps": {
60
- "const": 0
60
+ "type": "integer"
61
61
  }
62
62
  }
63
63
  },
@@ -76,16 +76,16 @@
76
76
  "const": "percentile-bootstrap"
77
77
  },
78
78
  "levelBps": {
79
- "const": 9500
79
+ "type": "integer"
80
80
  },
81
81
  "seed": {
82
- "const": 2611
82
+ "type": "integer"
83
83
  },
84
84
  "resamples": {
85
- "const": 20000
85
+ "type": "integer"
86
86
  },
87
87
  "maximumUpperBps": {
88
- "const": 200
88
+ "type": "integer"
89
89
  }
90
90
  }
91
91
  },
@@ -103,13 +103,13 @@
103
103
  "const": "wilson"
104
104
  },
105
105
  "levelBps": {
106
- "const": 9500
106
+ "type": "integer"
107
107
  },
108
108
  "maximumAcceptedErrorUpperBps": {
109
- "const": 500
109
+ "type": "integer"
110
110
  },
111
111
  "minimumCoverageLowerBps": {
112
- "const": 6000
112
+ "type": "integer"
113
113
  }
114
114
  }
115
115
  },
@@ -126,15 +126,15 @@
126
126
  "const": "newcombe-10"
127
127
  },
128
128
  "levelBps": {
129
- "const": 9500
129
+ "type": "integer"
130
130
  },
131
131
  "maximumUpperBps": {
132
- "const": 500
132
+ "type": "integer"
133
133
  }
134
134
  }
135
135
  },
136
136
  "maximumP95LatencyIncreaseMs": {
137
- "const": 15000
137
+ "type": "integer"
138
138
  },
139
139
  "acceptance": {
140
140
  "type": "object",
@@ -154,13 +154,13 @@
154
154
  "const": "jensen-shannon-v1"
155
155
  },
156
156
  "maximumDisagreementBps": {
157
- "const": 1000
157
+ "type": "integer"
158
158
  },
159
159
  "minimumSuccessfulMembers": {
160
- "const": 3
160
+ "type": "integer"
161
161
  },
162
162
  "highAgreementWarningBps": {
163
- "const": 100
163
+ "type": "integer"
164
164
  }
165
165
  }
166
166
  },
@@ -186,56 +186,28 @@
186
186
  },
187
187
  "native": {
188
188
  "type": "array",
189
- "const": [
190
- {
191
- "metric": "quality",
192
- "comparison": "delta-at-least",
193
- "bound": -0.03,
194
- "minimumPairs": 1200
195
- },
196
- {
197
- "metric": "calibration",
198
- "comparison": "delta-at-most",
199
- "bound": 0.02,
200
- "minimumPairs": 1200
201
- },
202
- {
203
- "metric": "risk-coverage",
204
- "comparison": "delta-at-most",
205
- "bound": 0.01,
206
- "minimumPairs": 1200
207
- },
208
- {
209
- "metric": "abstention",
210
- "comparison": "delta-at-most",
211
- "bound": 0.05,
212
- "minimumPairs": 1200
213
- },
214
- {
215
- "metric": "latency",
216
- "comparison": "delta-at-most",
217
- "bound": 10000,
218
- "minimumPairs": 1200
219
- },
220
- {
221
- "metric": "tokens",
222
- "comparison": "delta-at-most",
223
- "bound": 8000,
224
- "minimumPairs": 1200
225
- },
226
- {
227
- "metric": "cost",
228
- "comparison": "delta-at-most",
229
- "bound": 800,
230
- "minimumPairs": 1200
231
- },
232
- {
233
- "metric": "slice",
234
- "comparison": "delta-at-least",
235
- "bound": -0.03,
236
- "minimumPairs": 1200
189
+ "minItems": 1,
190
+ "maxItems": 32,
191
+ "items": {
192
+ "type": "object",
193
+ "additionalProperties": false,
194
+ "required": ["metric", "comparison", "bound", "minimumPairs"],
195
+ "properties": {
196
+ "metric": {
197
+ "enum": ["quality", "calibration", "risk-coverage", "abstention", "latency", "tokens", "cost", "slice"]
198
+ },
199
+ "comparison": {
200
+ "enum": ["delta-at-least", "delta-at-most"]
201
+ },
202
+ "bound": {
203
+ "type": "number"
204
+ },
205
+ "minimumPairs": {
206
+ "type": "integer",
207
+ "minimum": 1
208
+ }
237
209
  }
238
- ]
210
+ }
239
211
  }
240
212
  }
241
213
  }