@cat-factory/consensus 0.16.30 → 0.16.32

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.
@@ -26,6 +26,11 @@ export interface PanelToolServerCeiling {
26
26
  * them would resolve credentials for a dispatch that has nowhere to send them. That is also why
27
27
  * this reads the DECLARATIONS rather than calling the container executor's resolution.
28
28
  *
29
+ * What the kind declared is the same union the container dispatch resolves: this build's registry
30
+ * PLUS the deployment-level layer the engine put on the context. A panel that read the registry
31
+ * alone would state a withheld ceiling missing exactly the servers an org assigned, which is the
32
+ * half a mothership-mode node cannot see for itself.
33
+ *
29
34
  * Ids a kind declared with no matching registration are skipped rather than listed: there is no
30
35
  * definition to name a label from, and boot validation already reported the typo as an error, so
31
36
  * inventing a chip for it would put a registry fault in front of the agent as a missing capability.
@@ -1 +1 @@
1
- {"version":3,"file":"toolServers.d.ts","sourceRoot":"","sources":["../src/toolServers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,eAAe,EAAE,MAAM,EAAyB,MAAM,qBAAqB,CAAA;AACpG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAmB5D,8EAA8E;AAC9E,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAA;CAC7B;AAID;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,iBAAiB,EAC3B,MAAM,CAAC,EAAE,MAAM,GACd,sBAAsB,CAsBxB"}
1
+ {"version":3,"file":"toolServers.d.ts","sourceRoot":"","sources":["../src/toolServers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,eAAe,EAAE,MAAM,EAAyB,MAAM,qBAAqB,CAAA;AACpG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAmB5D,8EAA8E;AAC9E,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAA;CAC7B;AAID;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,iBAAiB,EAC3B,MAAM,CAAC,EAAE,MAAM,GACd,sBAAsB,CAyBxB"}
@@ -1,4 +1,4 @@
1
- import { toolServersSection } from '@cat-factory/agents';
1
+ import { mergeDeclaredToolServers, toolServersSection } from '@cat-factory/agents';
2
2
  const NONE = { section: '' };
3
3
  /**
4
4
  * Withhold every tool server the diverted kind declared, and say so.
@@ -8,6 +8,11 @@ const NONE = { section: '' };
8
8
  * them would resolve credentials for a dispatch that has nowhere to send them. That is also why
9
9
  * this reads the DECLARATIONS rather than calling the container executor's resolution.
10
10
  *
11
+ * What the kind declared is the same union the container dispatch resolves: this build's registry
12
+ * PLUS the deployment-level layer the engine put on the context. A panel that read the registry
13
+ * alone would state a withheld ceiling missing exactly the servers an org assigned, which is the
14
+ * half a mothership-mode node cannot see for itself.
15
+ *
11
16
  * Ids a kind declared with no matching registration are skipped rather than listed: there is no
12
17
  * definition to name a label from, and boot validation already reported the typo as an error, so
13
18
  * inventing a chip for it would put a registry fault in front of the agent as a missing capability.
@@ -21,7 +26,7 @@ const NONE = { section: '' };
21
26
  * `maxStatedUnavailable` fold with it.
22
27
  */
23
28
  export function panelToolServerCeiling(context, registry, logger) {
24
- const { servers: declared, unknown } = registry.toolServersFor(context.agentKind);
29
+ const { servers: declared, unknown } = mergeDeclaredToolServers(registry.toolServersFor(context.agentKind), context.orgToolServers);
25
30
  for (const id of unknown) {
26
31
  logger?.warn('agent kind declares an unregistered tool server id; skipping it', {
27
32
  agentKind: context.agentKind,
@@ -1 +1 @@
1
- {"version":3,"file":"toolServers.js","sourceRoot":"","sources":["../src/toolServers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAoCxD,MAAM,IAAI,GAA2B,EAAE,OAAO,EAAE,EAAE,EAAE,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAwB,EACxB,QAA2B,EAC3B,MAAe;IAEf,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,SAAsB,CAAC,CAAA;IAC9F,KAAK,MAAM,EAAE,IAAI,OAAO,EAAE,CAAC;QACzB,MAAM,EAAE,IAAI,CAAC,iEAAiE,EAAE;YAC9E,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,YAAY,EAAE,EAAE;SACjB,CAAC,CAAA;IACJ,CAAC;IACD,IAAI,CAAC,QAAQ,CAAC,MAAM;QAAE,OAAO,IAAI,CAAA;IACjC,MAAM,WAAW,GAA4B,QAAQ,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QACzE,EAAE,EAAE,UAAU,CAAC,EAAE;QACjB,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,EAAE;QACxC,MAAM,EAAE,iBAAiB;KAC1B,CAAC,CAAC,CAAA;IACH,OAAO;QACL,OAAO,EAAE,kBAAkB,CAAC;YAC1B,GAAG,OAAO;YACV,WAAW,EAAE,EAAE;YACf,sBAAsB,EAAE,WAAW;SACpC,CAAC;QACF,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE;KACnC,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"toolServers.js","sourceRoot":"","sources":["../src/toolServers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAoClF,MAAM,IAAI,GAA2B,EAAE,OAAO,EAAE,EAAE,EAAE,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAwB,EACxB,QAA2B,EAC3B,MAAe;IAEf,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,wBAAwB,CAC7D,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,SAAsB,CAAC,EACvD,OAAO,CAAC,cAAc,CACvB,CAAA;IACD,KAAK,MAAM,EAAE,IAAI,OAAO,EAAE,CAAC;QACzB,MAAM,EAAE,IAAI,CAAC,iEAAiE,EAAE;YAC9E,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,YAAY,EAAE,EAAE;SACjB,CAAC,CAAA;IACJ,CAAC;IACD,IAAI,CAAC,QAAQ,CAAC,MAAM;QAAE,OAAO,IAAI,CAAA;IACjC,MAAM,WAAW,GAA4B,QAAQ,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QACzE,EAAE,EAAE,UAAU,CAAC,EAAE;QACjB,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,EAAE;QACxC,MAAM,EAAE,iBAAiB;KAC1B,CAAC,CAAC,CAAA;IACH,OAAO;QACL,OAAO,EAAE,kBAAkB,CAAC;YAC1B,GAAG,OAAO;YACV,WAAW,EAAE,EAAE;YACf,sBAAsB,EAAE,WAAW;SACpC,CAAC;QACF,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE;KACnC,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/consensus",
3
- "version": "0.16.30",
3
+ "version": "0.16.32",
4
4
  "description": "Optional consensus-orchestration mechanism (specialist panel / debate / ranked voting) for cat-factory agent steps, with task-estimate gating.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "ai": "^7.0.64",
28
- "@cat-factory/agents": "0.135.0",
29
- "@cat-factory/contracts": "0.319.0",
30
- "@cat-factory/kernel": "0.309.0"
28
+ "@cat-factory/agents": "0.137.0",
29
+ "@cat-factory/contracts": "0.320.0",
30
+ "@cat-factory/kernel": "0.311.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "typescript": "7.0.2",