@cat-factory/orchestration 0.167.0 → 0.169.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 (43) hide show
  1. package/dist/container/dependencies.d.ts +9 -1
  2. package/dist/container/dependencies.d.ts.map +1 -1
  3. package/dist/container/module-shapes.d.ts +5 -0
  4. package/dist/container/module-shapes.d.ts.map +1 -1
  5. package/dist/container/modules.d.ts +7 -1
  6. package/dist/container/modules.d.ts.map +1 -1
  7. package/dist/container/modules.js +18 -0
  8. package/dist/container/modules.js.map +1 -1
  9. package/dist/container.d.ts +4 -2
  10. package/dist/container.d.ts.map +1 -1
  11. package/dist/container.js +2 -1
  12. package/dist/container.js.map +1 -1
  13. package/dist/index.d.ts +3 -2
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +2 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/modules/consensusGroups/ConsensusGroupService.d.ts +37 -0
  18. package/dist/modules/consensusGroups/ConsensusGroupService.d.ts.map +1 -0
  19. package/dist/modules/consensusGroups/ConsensusGroupService.js +101 -0
  20. package/dist/modules/consensusGroups/ConsensusGroupService.js.map +1 -0
  21. package/dist/modules/execution/AgentContextBuilder.d.ts +28 -1
  22. package/dist/modules/execution/AgentContextBuilder.d.ts.map +1 -1
  23. package/dist/modules/execution/AgentContextBuilder.js +56 -6
  24. package/dist/modules/execution/AgentContextBuilder.js.map +1 -1
  25. package/dist/modules/execution/ExecutionService.d.ts +1 -1
  26. package/dist/modules/execution/ExecutionService.d.ts.map +1 -1
  27. package/dist/modules/execution/ExecutionService.js +13 -29
  28. package/dist/modules/execution/ExecutionService.js.map +1 -1
  29. package/dist/modules/execution/ExecutionServiceDependencies.d.ts +7 -1
  30. package/dist/modules/execution/ExecutionServiceDependencies.d.ts.map +1 -1
  31. package/dist/modules/execution/RunRepoOpsController.d.ts +11 -0
  32. package/dist/modules/execution/RunRepoOpsController.d.ts.map +1 -1
  33. package/dist/modules/execution/RunRepoOpsController.js +24 -1
  34. package/dist/modules/execution/RunRepoOpsController.js.map +1 -1
  35. package/dist/modules/execution/run-context-admission.d.ts +1 -1
  36. package/dist/modules/execution/run-context-admission.d.ts.map +1 -1
  37. package/dist/modules/execution/run-context-admission.js +1 -0
  38. package/dist/modules/execution/run-context-admission.js.map +1 -1
  39. package/dist/modules/observability/LlmObservabilityService.d.ts +59 -4
  40. package/dist/modules/observability/LlmObservabilityService.d.ts.map +1 -1
  41. package/dist/modules/observability/LlmObservabilityService.js +87 -8
  42. package/dist/modules/observability/LlmObservabilityService.js.map +1 -1
  43. package/package.json +11 -11
@@ -18,6 +18,10 @@ function clampBody(text) {
18
18
  const DEFAULT_LIST_LIMIT = 1000;
19
19
  /** What to store for a call's prompt when prompt recording is turned off: nothing. */
20
20
  const EMPTY_STORED_PROMPT = { promptText: '', promptPrefixCount: 0, promptHash: '' };
21
+ /** Resolve a {@link LlmCallBody}. Only ever called when the body is going to be kept. */
22
+ function resolveBody(body) {
23
+ return typeof body === 'string' ? body : body();
24
+ }
21
25
  /**
22
26
  * The LLM observability sink. The proxy meters every container-agent model call
23
27
  * here; the engine rolls the per-run aggregates onto pipeline steps for the board,
@@ -65,17 +69,27 @@ export class LlmObservabilityService {
65
69
  * still recorded.
66
70
  */
67
71
  async record(rawInput) {
72
+ // Prompt/response BODIES are kept only when recording is on deployment-wide AND (when a
73
+ // settings source is wired) the workspace hasn't opted out via `storeAgentContext` —
74
+ // the same double gate the agent-context snapshot path uses. Numeric telemetry is
75
+ // always recorded regardless.
76
+ //
77
+ // Resolved FIRST, before the bodies are touched at all: a body may be a thunk the
78
+ // producer would rather not run (the inline feeder serialises the whole AI-SDK prompt),
79
+ // and scrubbing a body this gate is about to drop is work nobody reads either way.
80
+ const recordBodies = this.recordPrompts && (await this.bodiesEnabled(rawInput.workspaceId));
68
81
  // Unlike the agent-context snapshot (a structural allow-list), the prompt/response
69
82
  // bodies captured here are free text that can contain a credential the agent read or
70
83
  // echoed. Scrub known secret shapes BEFORE anything is stored, delta-chained, or
71
84
  // fanned out to the external trace sink — the redacted text is what every downstream
72
85
  // consumer sees. Done up front so the delta chain stays consistent (each tip is
73
86
  // already redacted) and Langfuse never receives a raw secret.
87
+ const scrub = (body) => recordBodies ? (redactSecrets(resolveBody(body)) ?? '') : '';
74
88
  const input = {
75
89
  ...rawInput,
76
- promptText: redactSecrets(rawInput.promptText) ?? '',
77
- responseText: redactSecrets(rawInput.responseText) ?? '',
78
- reasoningText: redactSecrets(rawInput.reasoningText) ?? '',
90
+ promptText: scrub(rawInput.promptText),
91
+ responseText: scrub(rawInput.responseText),
92
+ reasoningText: scrub(rawInput.reasoningText),
79
93
  // errorMessage is a free-text upstream/proxy error string that is kept as diagnostic
80
94
  // metadata even when bodies are dropped (like httpStatus/finishReason) AND fanned out
81
95
  // to the trace sink — so it too must be scrubbed. An upstream 4xx/5xx message can
@@ -84,11 +98,6 @@ export class LlmObservabilityService {
84
98
  errorMessage: redactSecrets(rawInput.errorMessage),
85
99
  };
86
100
  const overheadMs = Math.max(0, input.totalMs - input.upstreamMs);
87
- // Prompt/response BODIES are kept only when recording is on deployment-wide AND (when a
88
- // settings source is wired) the workspace hasn't opted out via `storeAgentContext` —
89
- // the same double gate the agent-context snapshot path uses. Numeric telemetry is
90
- // always recorded regardless.
91
- const recordBodies = this.recordPrompts && (await this.bodiesEnabled(input.workspaceId));
92
101
  const stored = recordBodies
93
102
  ? await this.computeStoredPromptForChain(input)
94
103
  : EMPTY_STORED_PROMPT;
@@ -235,4 +244,74 @@ export function makeHarnessCallRecorder(service) {
235
244
  }
236
245
  };
237
246
  }
247
+ /**
248
+ * Build the instrumented model provider's `recordCall` dependency: map an INLINE (non-proxied)
249
+ * LLM call onto the SAME {@link LlmObservabilityService} the proxy and the subscription
250
+ * harnesses feed, so a judge, a consensus round, the requirements writer or an inline agent
251
+ * kind (`doc-researcher`, `doc-outliner`, the document interviewer) lands in `llm_call_metrics`
252
+ * exactly like a container call. Before this, every one of those was invisible to
253
+ * `ObservabilityPanel`, to a step's token rollup and to `/api/v1/debug/*` — a run made entirely
254
+ * of inline steps reported zero model activity no matter how many tokens it spent
255
+ * (`docs/initiatives/observability-logging-gaps.md`, C2 coverage half).
256
+ *
257
+ * The sibling of {@link makeHarnessCallRecorder}, and it fills the store's proxy-shaped fields
258
+ * the same deliberate way — with what an inline call actually knows rather than a plausible
259
+ * guess:
260
+ *
261
+ * - `id` is left to the service to mint. The proxy mints its own so the live activity event and
262
+ * the row share one, and the harness derives one from `(jobId, seq)` so a durable replay is
263
+ * idempotent. An inline call has neither: it is a single awaited SDK call inside one service
264
+ * method, so there is no second channel to reconcile with and nothing to re-record.
265
+ * - `streaming` is false — every inline site calls `generateText`, never `streamText`.
266
+ * - `phase` is left absent ⇒ the unattributed `''` slice. Phases are boundaries the HARNESS
267
+ * owns inside a container run; an inline call sits outside all of them, and stamping one
268
+ * would file it under a loop it never ran in.
269
+ * - `turnIndex` is null, like the proxy's. There is no job-scoped counter here either, so these
270
+ * rows order by `createdAt`.
271
+ * - `httpStatus` is null: the AI SDK owns the transport, so a failure arrives as an exception
272
+ * whose message is already on `errorMessage` (scrubbed by the service) rather than a status.
273
+ * - `upstreamMs` is the whole `durationMs`, which makes the derived overhead 0 — honestly so.
274
+ * Splitting transport from execution is the PROXY's observation; an inline call has no hop
275
+ * between the caller and the model, so any non-zero overhead here would be fabricated.
276
+ *
277
+ * Two consequences of sharing the store with the other two producers, both already safe:
278
+ *
279
+ * - **The delta chain is keyed `(workspace, execution, agentKind)`, which an inline call can
280
+ * share with a proxied or harness one** — an inline judge and a container agent under one
281
+ * run and one kind. Their prompts are different shapes entirely (the AI-SDK prompt array vs
282
+ * the vendor wire messages), but `computeStoredPrompt` HASH-VERIFIES the tip's prefix before
283
+ * eliding it, so a cross-producer tip degrades to storing the full array rather than
284
+ * corrupting a reconstruction. Interleaving costs compression, never correctness.
285
+ * - **The bodies are passed as THUNKS**, so a deployment with `LLM_RECORD_PROMPTS` off (or a
286
+ * workspace that opted out) never pays to serialise a prompt the service is about to drop.
287
+ * The gate stays in ONE place — inside `record`, which resolves it before touching a body.
288
+ */
289
+ export function makeInlineCallRecorder(service) {
290
+ return (call) => service.record({
291
+ workspaceId: call.workspaceId,
292
+ executionId: call.executionId,
293
+ agentKind: call.agentKind,
294
+ provider: call.provider,
295
+ model: call.model,
296
+ streaming: false,
297
+ turnIndex: null,
298
+ messageCount: call.messageCount,
299
+ toolCount: call.toolCount,
300
+ requestMaxTokens: call.requestMaxTokens,
301
+ promptTokens: call.promptTokens,
302
+ cacheReadTokens: call.cacheReadTokens,
303
+ cacheWriteTokens: call.cacheWriteTokens,
304
+ completionTokens: call.completionTokens,
305
+ totalTokens: call.totalTokens,
306
+ finishReason: call.finishReason,
307
+ totalMs: call.durationMs,
308
+ upstreamMs: call.durationMs,
309
+ ok: call.ok,
310
+ httpStatus: null,
311
+ errorMessage: call.errorMessage,
312
+ promptText: call.promptText,
313
+ responseText: call.responseText,
314
+ reasoningText: call.reasoningText,
315
+ });
316
+ }
238
317
  //# sourceMappingURL=LlmObservabilityService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LlmObservabilityService.js","sourceRoot":"","sources":["../../../src/modules/observability/LlmObservabilityService.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,2BAA2B,EAC3B,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,aAAa,GACd,MAAM,qBAAqB,CAAA;AAc5B,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AA2CrF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,CAAA;AAExC,sEAAsE;AACtE,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI,IAAI,CAAC,MAAM,IAAI,cAAc;QAAE,OAAO,IAAI,CAAA;IAC9C,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,iBAAiB,IAAI,CAAC,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G,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,YAAY;gBACrF,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,OAAO,EAAE,CAAC;gBACV,UAAU,EAAE,CAAC;gBACb,EAAE,EAAE,IAAI;gBACR,UAAU,EAAE,IAAI;gBAChB,YAAY,EAAE,IAAI;gBAClB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,aAAa,EAAE,IAAI,CAAC,aAAa;aAClC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"LlmObservabilityService.js","sourceRoot":"","sources":["../../../src/modules/observability/LlmObservabilityService.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,2BAA2B,EAC3B,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,aAAa,GACd,MAAM,qBAAqB,CAAA;AAe5B,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AA2CrF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,CAAA;AAExC,sEAAsE;AACtE,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI,IAAI,CAAC,MAAM,IAAI,cAAc;QAAE,OAAO,IAAI,CAAA;IAC9C,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,iBAAiB,IAAI,CAAC,MAAM,GAAG,cAAc,SAAS,CAAA;AAC/F,CAAC;AAED,oEAAoE;AACpE,MAAM,kBAAkB,GAAG,IAAI,CAAA;AAE/B,sFAAsF;AACtF,MAAM,mBAAmB,GAAiB,EAAE,UAAU,EAAE,EAAE,EAAE,iBAAiB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAA;AAelG,yFAAyF;AACzF,SAAS,WAAW,CAAC,IAAiB;IACpC,OAAO,OAAO,IAAI,KAAK,QAAQ,CA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;QAC3B,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,UAAU,EAAE,IAAI;QAChB,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,aAAa,EAAE,IAAI,CAAC,aAAa;KAClC,CAAC,CAAA;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/orchestration",
3
- "version": "0.167.0",
3
+ "version": "0.169.0",
4
4
  "description": "Delivery-workflow engine for the Agent Architecture Board (execution, bootstrap, pipelines, board, boardScan, requirements, and composition root).",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,20 +25,20 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "ai": "^7.0.37",
28
- "@cat-factory/agents": "0.85.0",
29
- "@cat-factory/caching": "0.11.18",
30
- "@cat-factory/contracts": "0.194.0",
31
- "@cat-factory/integrations": "0.110.2",
32
- "@cat-factory/kernel": "0.189.0",
33
- "@cat-factory/prompt-fragments": "0.15.17",
34
- "@cat-factory/sandbox": "0.11.3",
35
- "@cat-factory/spend": "0.12.119",
36
- "@cat-factory/workspaces": "0.19.18"
28
+ "@cat-factory/agents": "0.87.0",
29
+ "@cat-factory/caching": "0.11.20",
30
+ "@cat-factory/contracts": "0.195.0",
31
+ "@cat-factory/integrations": "0.110.4",
32
+ "@cat-factory/kernel": "0.191.0",
33
+ "@cat-factory/prompt-fragments": "0.15.18",
34
+ "@cat-factory/sandbox": "0.11.5",
35
+ "@cat-factory/spend": "0.12.121",
36
+ "@cat-factory/workspaces": "0.19.20"
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "7.0.2",
40
40
  "vitest": "^4.1.10",
41
- "@cat-factory/sandbox-fixtures": "0.7.225"
41
+ "@cat-factory/sandbox-fixtures": "0.7.226"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsc -b tsconfig.build.json",