@cat-factory/orchestration 0.195.3 → 0.199.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 (49) hide show
  1. package/dist/container/execution-service.d.ts.map +1 -1
  2. package/dist/container/execution-service.js +4 -0
  3. package/dist/container/execution-service.js.map +1 -1
  4. package/dist/modules/board/BoardService.d.ts +5 -0
  5. package/dist/modules/board/BoardService.d.ts.map +1 -1
  6. package/dist/modules/board/BoardService.js +30 -24
  7. package/dist/modules/board/BoardService.js.map +1 -1
  8. package/dist/modules/board/taskTypeCreationDefaults.d.ts +69 -0
  9. package/dist/modules/board/taskTypeCreationDefaults.d.ts.map +1 -0
  10. package/dist/modules/board/taskTypeCreationDefaults.js +63 -0
  11. package/dist/modules/board/taskTypeCreationDefaults.js.map +1 -0
  12. package/dist/modules/execution/AgentContextBuilder.d.ts +20 -1
  13. package/dist/modules/execution/AgentContextBuilder.d.ts.map +1 -1
  14. package/dist/modules/execution/AgentContextBuilder.js +21 -1
  15. package/dist/modules/execution/AgentContextBuilder.js.map +1 -1
  16. package/dist/modules/execution/ExecutionService.d.ts +24 -1
  17. package/dist/modules/execution/ExecutionService.d.ts.map +1 -1
  18. package/dist/modules/execution/ExecutionService.js +58 -66
  19. package/dist/modules/execution/ExecutionService.js.map +1 -1
  20. package/dist/modules/execution/ExecutionServiceDependencies.d.ts +8 -1
  21. package/dist/modules/execution/ExecutionServiceDependencies.d.ts.map +1 -1
  22. package/dist/modules/execution/InputGateController.d.ts +104 -0
  23. package/dist/modules/execution/InputGateController.d.ts.map +1 -0
  24. package/dist/modules/execution/InputGateController.js +202 -0
  25. package/dist/modules/execution/InputGateController.js.map +1 -0
  26. package/dist/modules/execution/StepDecisionController.d.ts +6 -0
  27. package/dist/modules/execution/StepDecisionController.d.ts.map +1 -1
  28. package/dist/modules/execution/StepDecisionController.js +18 -4
  29. package/dist/modules/execution/StepDecisionController.js.map +1 -1
  30. package/dist/modules/execution/gate-window-controllers.d.ts +17 -0
  31. package/dist/modules/execution/gate-window-controllers.d.ts.map +1 -1
  32. package/dist/modules/execution/gate-window-controllers.js +25 -0
  33. package/dist/modules/execution/gate-window-controllers.js.map +1 -1
  34. package/dist/modules/execution/run-context-admission.d.ts +1 -1
  35. package/dist/modules/execution/run-context-admission.d.ts.map +1 -1
  36. package/dist/modules/execution/run-context-admission.js +1 -0
  37. package/dist/modules/execution/run-context-admission.js.map +1 -1
  38. package/dist/modules/execution/stepPreamble.d.ts +52 -0
  39. package/dist/modules/execution/stepPreamble.d.ts.map +1 -0
  40. package/dist/modules/execution/stepPreamble.js +86 -0
  41. package/dist/modules/execution/stepPreamble.js.map +1 -0
  42. package/dist/modules/settings/workspaceSettingsMerge.d.ts.map +1 -1
  43. package/dist/modules/settings/workspaceSettingsMerge.js +1 -0
  44. package/dist/modules/settings/workspaceSettingsMerge.js.map +1 -1
  45. package/dist/validation/validateRegistrations.d.ts +8 -1
  46. package/dist/validation/validateRegistrations.d.ts.map +1 -1
  47. package/dist/validation/validateRegistrations.js +293 -87
  48. package/dist/validation/validateRegistrations.js.map +1 -1
  49. package/package.json +11 -11
@@ -1,5 +1,6 @@
1
- import { INLINE_ENGINE_SYSTEM_PROMPTS } from '@cat-factory/agents';
2
- import { CI_FIXER_AGENT_KIND, CONFLICT_RESOLVER_AGENT_KIND, FIXER_AGENT_KIND, ON_CALL_AGENT_KIND, describeFoundationalProblem, isAllowedMcpHttpUrl, isValidMcpServerId, seedPipelines, stubGateContext, validateFoundationalDefinition, } from '@cat-factory/kernel';
1
+ import { INLINE_ENGINE_SYSTEM_PROMPTS, runsInContainer } from '@cat-factory/agents';
2
+ import { CI_FIXER_AGENT_KIND, CONFLICT_RESOLVER_AGENT_KIND, FIXER_AGENT_KIND, ON_CALL_AGENT_KIND, MCP_SUPPORTED_HARNESSES, TOOL_SERVER_BUDGET, describeFoundationalProblem, isAllowedMcpHttpUrl, isValidMcpServerId, isValidMcpToolName, mcpServableHarnesses, seedPipelines, stubGateContext, toolServerDeclaredBytes, validateFoundationalDefinition, } from '@cat-factory/kernel';
3
+ import { universalFragments } from '@cat-factory/prompt-fragments';
3
4
  import { binaryGeneratorDefinitionIssues, foundationalServiceDefinitionIssues, isEnvVariableName, isNamespacedId, isReservedPlatformEnvKey, isToolchainEnvName, modalitiesOfMediaType, reservedEnvKeyMessage, toolchainEnvNameMessage, isValidResultViewId, RESULT_VIEW_ID_SET, } from '@cat-factory/contracts';
4
5
  // ---------------------------------------------------------------------------
5
6
  // Boot-time validation of the deployment's registered extensions (agent kinds, gates,
@@ -89,8 +90,11 @@ export function collectRegistrationProblems(opts) {
89
90
  problems.push(...checkPipelineRetirements(opts));
90
91
  // 5. Custom task types (only when a task-type registry is supplied).
91
92
  problems.push(...checkCustomTaskTypes(opts));
92
- // 6. Agent capabilities: the skills + tool servers each kind declares.
93
- problems.push(...checkAgentCapabilities(agentKinds, registry));
93
+ // 5b. Initiative presets: the OTHER surface that declares a form over the same vocabulary, held
94
+ // to the same fillability bar by the same checker.
95
+ problems.push(...checkInitiativePresetForms(opts));
96
+ // 6. Agent capabilities: the skills + tool servers declared for each kind.
97
+ problems.push(...checkAgentCapabilities(registry));
94
98
  // 7. Agent-kind VARIANTS: their base kind must exist and they must actually change the prompt.
95
99
  problems.push(...checkAgentKindVariants(opts, registeredKindIds));
96
100
  // 8. Deployment-registered FOUNDATIONAL SERVICES (only when a registry is supplied).
@@ -308,11 +312,20 @@ function checkPipelineVariantSelections(opts) {
308
312
  * REACHABLE and COHERENT. Every check here covers something that otherwise fails invisibly at run
309
313
  * time — the agent just quietly works without the playbook or the tool it was supposed to have,
310
314
  * which is why boot is the right place to be loud. Split per capability; see each helper.
315
+ *
316
+ * Enumerated through `kindsWithCapabilities()` rather than `all()`, so the checks reach capabilities
317
+ * attached BY ASSIGNMENT to a kind that is not a registry entry. That is the recommended path and
318
+ * the heavily-used one (`assignToolServers('coder', …)`, `ci-fixer`, `tester-api`, `merger`,
319
+ * `conflict-resolver`), and walking `all()` skipped every one of them: a cleartext endpoint or a
320
+ * reserved credential key declared that way booted clean, and only the dispatch-time floors caught
321
+ * it, which is a floor holding rather than the "refused at declaration" layer doing its job.
311
322
  */
312
- function checkAgentCapabilities(agentKinds, registry) {
313
- return agentKinds.flatMap((def) => [
314
- ...checkKindSkills(def.kind, registry),
315
- ...checkKindToolServers(def.kind, registry),
323
+ function checkAgentCapabilities(registry) {
324
+ return registry
325
+ .kindsWithCapabilities()
326
+ .flatMap((kind) => [
327
+ ...checkKindSkills(kind, registry),
328
+ ...checkKindToolServers(kind, registry),
316
329
  ]);
317
330
  }
318
331
  /**
@@ -324,6 +337,11 @@ function checkAgentCapabilities(agentKinds, registry) {
324
337
  * declaration can never take effect — and a non-optional `{ catalogSkillId }` there is worse
325
338
  * than inert, since it fails EVERY dispatch of that kind on a deployment with no skill library
326
339
  * while never being able to reach the model.
340
+ *
341
+ * The container question goes through `runsInContainer`, never `registry.requiresContainer`, and
342
+ * that is load-bearing now that assigned capabilities are checked: `requiresContainer` answers false
343
+ * for a kind it has no registration for, so every built-in (`coder` above all) would be warned about
344
+ * as an inline kind the moment a deployment assigned it a playbook.
327
345
  */
328
346
  function checkKindSkills(kind, registry) {
329
347
  const problems = [];
@@ -338,7 +356,7 @@ function checkKindSkills(kind, registry) {
338
356
  });
339
357
  }
340
358
  const declared = skills.bundled.length + skills.catalog.length;
341
- if (declared && !registry.requiresContainer(kind)) {
359
+ if (declared && !runsInContainer(kind, registry)) {
342
360
  problems.push({
343
361
  severity: 'warn',
344
362
  code: 'skills_without_container',
@@ -351,21 +369,20 @@ function checkKindSkills(kind, registry) {
351
369
  return problems;
352
370
  }
353
371
  /**
354
- * A kind's declared TOOL SERVERS:
372
+ * A kind's declared TOOL SERVERS: the whole-list checks (unregistered ids, the per-dispatch budget,
373
+ * the container surface), with each definition's own checks in
374
+ * {@link checkToolServerDefinition}. "Declared for" includes assigned servers, see
375
+ * {@link checkAgentCapabilities}.
355
376
  *
356
377
  * - an unregistered id is an ERROR, like an unregistered skill;
357
- * - a malformed MCP server id is an ERROR, because it becomes both a tool-name fragment and a
358
- * Codex TOML table key, so the CLI fails on it far from the registration that caused it;
359
- * - a cleartext `http://` endpoint off loopback is an ERROR: a resolved credential rides that
360
- * request as a header, and the harness refuses the same URL at the job boundary — so allowing
361
- * it here only moves the failure to a place with no registration to point at;
362
- * - a credential naming a PLATFORM CONFIGURATION VARIABLE is an ERROR, and it is the sharpest of
363
- * these: a definition names both the key it wants and the endpoint that key is sent to, so
364
- * `{ key: 'ENCRYPTION_KEY', header: 'Authorization' }` is a registration that boots clean and
365
- * ships the deployment's master sealing key to a third party. The generative-integration half
366
- * of the same rule is enforced by its credential SCHEMA (there is no schema here — a tool
367
- * server is a TypeScript registration), and dispatch refuses both again for the mothership
368
- * case;
378
+ * - past EITHER dimension of the per-dispatch budget is a WARNING, because the dispatch drops the
379
+ * excess under `over_budget` rather than failing: the run still works, with fewer tools than the
380
+ * deployment believes it wired, and boot is the only place the DECLARATIONS past the line can be
381
+ * named. A warning also keeps the accretion case honest, a kind going over budget through
382
+ * `assignToolServers` calls in several packages none of which is individually wrong. Both
383
+ * dimensions are checked because the dispatch enforces both, and a byte-driven drop is the one
384
+ * that surprises: a handful of servers with fat `env`/`args`/`headers` blocks is under the count
385
+ * and over the payload;
369
386
  * - tool servers on a NON-container kind is a WARNING: an inline LLM call has no CLI to wire them
370
387
  * into, so they can never take effect. A warning rather than an error because a deployment may
371
388
  * deliberately declare them ahead of moving the kind onto a container surface.
@@ -382,69 +399,10 @@ function checkKindToolServers(kind, registry) {
382
399
  `declare the server inline.`,
383
400
  });
384
401
  }
385
- for (const server of tools.servers) {
386
- if (!isValidMcpServerId(server.id)) {
387
- problems.push({
388
- severity: 'error',
389
- code: 'invalid_tool_server_id',
390
- message: `Tool server "${server.id}" (on agent kind "${kind}") has an invalid id. It ` +
391
- `becomes part of the tool names the CLI exposes (mcp__<id>__<tool>) and a Codex ` +
392
- `config key, so it must match [a-z0-9][a-z0-9_-]*.`,
393
- });
394
- }
395
- for (const secret of server.secretKeys ?? []) {
396
- if (isReservedPlatformEnvKey(secret.key)) {
397
- problems.push({
398
- severity: 'error',
399
- code: 'reserved_credential_key',
400
- message: `Tool server "${server.id}" (on agent kind "${kind}") declares credential ` +
401
- `${reservedEnvKeyMessage(secret.key)}`,
402
- });
403
- }
404
- // The injection name is NOT held to the reserved floor (it reads nothing), so it carries its
405
- // own rule: a value set as `PATH` or `npm_config_registry` reconfigures the server's process
406
- // instead of authenticating a call. Dispatch drops one too, for the mothership case.
407
- if (secret.envName !== undefined && !isEnvVariableName(secret.envName)) {
408
- problems.push({
409
- severity: 'error',
410
- code: 'invalid_credential_env_name',
411
- message: `Tool server "${server.id}" (on agent kind "${kind}") declares credential envName ` +
412
- `"${secret.envName}", which is not a valid environment variable name. It becomes a ` +
413
- `variable of the server's process, and the harness drops anything else.`,
414
- });
415
- }
416
- if (secret.envName !== undefined && isToolchainEnvName(secret.envName)) {
417
- problems.push({
418
- severity: 'error',
419
- code: 'toolchain_credential_env_name',
420
- message: `Tool server "${server.id}" (on agent kind "${kind}") declares credential ` +
421
- `${toolchainEnvNameMessage(secret.envName)}`,
422
- });
423
- }
424
- // An `http` server sends its value as a HEADER, so an injection name would be read by
425
- // nothing. A warning rather than an error: the declaration still works, it just says
426
- // something that cannot take effect, and failing boot over it would be out of proportion.
427
- if (secret.envName !== undefined && server.transport.kind === 'http' && secret.header) {
428
- problems.push({
429
- severity: 'warn',
430
- code: 'unused_credential_env_name',
431
- message: `Tool server "${server.id}" (on agent kind "${kind}") declares credential envName ` +
432
- `"${secret.envName}" on a key that names a header. An http server's value is sent as ` +
433
- `that header, so the injection name is never used.`,
434
- });
435
- }
436
- }
437
- if (server.transport.kind === 'http' && !isAllowedMcpHttpUrl(server.transport.url)) {
438
- problems.push({
439
- severity: 'error',
440
- code: 'insecure_tool_server_url',
441
- message: `Tool server "${server.id}" (on agent kind "${kind}") has url ` +
442
- `"${server.transport.url}". An HTTP tool server carries its resolved credential in a ` +
443
- `request header, so the url must be https (plain http is accepted only on loopback).`,
444
- });
445
- }
446
- }
447
- if (tools.servers.length && !registry.requiresContainer(kind)) {
402
+ for (const server of tools.servers)
403
+ problems.push(...checkToolServerDefinition(kind, server));
404
+ problems.push(...checkToolServerBudget(kind, tools.servers));
405
+ if (tools.servers.length && !runsInContainer(kind, registry)) {
448
406
  problems.push({
449
407
  severity: 'warn',
450
408
  code: 'tool_servers_without_container',
@@ -456,6 +414,167 @@ function checkKindToolServers(kind, registry) {
456
414
  }
457
415
  return problems;
458
416
  }
417
+ /**
418
+ * The per-dispatch budget, BOTH dimensions, as warnings: the dispatch drops the excess under
419
+ * `over_budget` and the run works with fewer tools, so a registration fault belongs at boot rather
420
+ * than in a refusal that takes the deployment down.
421
+ *
422
+ * The byte check measures {@link toolServerDeclaredBytes}, which is a FLOOR (a resolved credential
423
+ * only adds to it), so a declaration already past the budget here is certainly past it at dispatch.
424
+ * What boot deliberately does NOT claim is WHICH servers a run will lose: the dispatch keeps every
425
+ * server that still fits, so once bytes are what bind the survivors are not a prefix of the
426
+ * declaration. The count and the budget are what the author acts on, and the run itself names each
427
+ * server it dropped.
428
+ */
429
+ function checkToolServerBudget(kind, servers) {
430
+ const problems = [];
431
+ if (servers.length > TOOL_SERVER_BUDGET.maxServers) {
432
+ problems.push({
433
+ severity: 'warn',
434
+ code: 'too_many_tool_servers',
435
+ message: `Agent kind "${kind}" has ${servers.length} tool servers declared for it, past the ` +
436
+ `per-dispatch budget of ${TOOL_SERVER_BUDGET.maxServers}. A dispatch wires the first ` +
437
+ `${TOOL_SERVER_BUDGET.maxServers} in declaration order and states the rest to the agent as ` +
438
+ `unavailable (over_budget). Drop some, or split the work across kinds.`,
439
+ });
440
+ }
441
+ const bytes = servers.reduce((total, server) => total + toolServerDeclaredBytes(server), 0);
442
+ if (bytes > TOOL_SERVER_BUDGET.maxTotalBytes) {
443
+ problems.push({
444
+ severity: 'warn',
445
+ code: 'tool_servers_over_byte_budget',
446
+ message: `Agent kind "${kind}" declares tool servers whose transport config alone measures ${bytes} ` +
447
+ `bytes, past the per-dispatch budget of ${TOOL_SERVER_BUDGET.maxTotalBytes}. A dispatch ` +
448
+ `wires servers until that budget is spent and states the rest to the agent as unavailable ` +
449
+ `(over_budget); resolved credentials only add to this figure, and which servers lose out ` +
450
+ `depends on their sizes. Trim the env/args/headers blocks, or split the work across kinds.`,
451
+ });
452
+ }
453
+ return problems;
454
+ }
455
+ /**
456
+ * ONE tool server definition:
457
+ *
458
+ * - a malformed MCP server id is an ERROR, because it becomes both a tool-name fragment and a
459
+ * Codex TOML table key, so the CLI fails on it far from the registration that caused it;
460
+ * - an `allowedTools` entry that is not a valid tool NAME is an ERROR, the comma case above all:
461
+ * the harness joins the whole list into one `--allowedTools` argument with commas, so an entry
462
+ * carrying one splits into two patterns and the second matches nothing, while the prompt goes on
463
+ * advertising the name verbatim. That is the "told about a tool it cannot call" failure the
464
+ * unavailability vocabulary exists to prevent;
465
+ * - a definition NO harness could ever serve is a WARNING, and it is the only check here a run
466
+ * structurally cannot report: an `http` server narrowed to `harnesses: ['codex']` (whose client
467
+ * is stdio-only), or anything narrowed to `['pi']` (which has no MCP client), is never dropped
468
+ * FOR A REASON on any run. It simply never applies, so no prompt and no log line ever mentions
469
+ * it. A warning rather than an error because the declaration is inert rather than dangerous;
470
+ * - a cleartext `http://` endpoint off loopback is an ERROR: a resolved credential rides that
471
+ * request as a header, and the harness refuses the same URL at the job boundary — so allowing
472
+ * it here only moves the failure to a place with no registration to point at.
473
+ */
474
+ function checkToolServerDefinition(kind, server) {
475
+ const problems = [];
476
+ const on = `(on agent kind "${kind}")`;
477
+ if (!isValidMcpServerId(server.id)) {
478
+ problems.push({
479
+ severity: 'error',
480
+ code: 'invalid_tool_server_id',
481
+ message: `Tool server "${server.id}" ${on} has an invalid id. It becomes part of the tool names ` +
482
+ `the CLI exposes (mcp__<id>__<tool>) and a Codex config key, so it must match ` +
483
+ `[a-z0-9][a-z0-9_-]*.`,
484
+ });
485
+ }
486
+ for (const tool of server.allowedTools ?? []) {
487
+ if (isValidMcpToolName(tool))
488
+ continue;
489
+ problems.push({
490
+ severity: 'error',
491
+ code: 'invalid_tool_server_tool_name',
492
+ message: `Tool server "${server.id}" ${on} restricts allowedTools to "${tool}", which is not a ` +
493
+ `single tool name (letters, digits, "_", "." and "-"). The harness joins the list into ` +
494
+ `one --allowedTools argument with commas, so an entry with a comma or whitespace becomes ` +
495
+ `patterns that match nothing while the prompt still advertises the name. List each tool ` +
496
+ `as its own entry.`,
497
+ });
498
+ }
499
+ const servable = mcpServableHarnesses(server);
500
+ if (servable.length === 0) {
501
+ problems.push({
502
+ severity: 'warn',
503
+ code: 'tool_server_unservable',
504
+ message: `Tool server "${server.id}" ${on} declares transport "${server.transport.kind}" for ` +
505
+ `harnesses [${(server.harnesses ?? MCP_SUPPORTED_HARNESSES).join(', ')}], and no harness ` +
506
+ `can serve that combination, so the server never applies to any run and no prompt or log ` +
507
+ `line will say why. Codex's MCP client is stdio-only and Pi has none at all. Widen the ` +
508
+ `harnesses, change the transport, or drop the declaration.`,
509
+ });
510
+ }
511
+ if (server.transport.kind === 'http' && !isAllowedMcpHttpUrl(server.transport.url)) {
512
+ problems.push({
513
+ severity: 'error',
514
+ code: 'insecure_tool_server_url',
515
+ message: `Tool server "${server.id}" ${on} has url "${server.transport.url}". An HTTP tool server ` +
516
+ `carries its resolved credential in a request header, so the url must be https (plain ` +
517
+ `http is accepted only on loopback).`,
518
+ });
519
+ }
520
+ for (const secret of server.secretKeys ?? []) {
521
+ problems.push(...checkToolServerSecret(kind, server, secret));
522
+ }
523
+ return problems;
524
+ }
525
+ /**
526
+ * ONE credential a tool server declares. The reserved-key check is the sharpest rule in this file:
527
+ * a definition names both the key it wants and the endpoint that key is sent to, so
528
+ * `{ key: 'ENCRYPTION_KEY', header: 'Authorization' }` is a registration that boots clean and ships
529
+ * the deployment's master sealing key to a third party. The generative-integration half of the same
530
+ * rule is enforced by its credential SCHEMA (there is no schema here — a tool server is a TypeScript
531
+ * registration), and dispatch refuses both again for the mothership case.
532
+ */
533
+ function checkToolServerSecret(kind, server, secret) {
534
+ const problems = [];
535
+ const on = `(on agent kind "${kind}")`;
536
+ if (isReservedPlatformEnvKey(secret.key)) {
537
+ problems.push({
538
+ severity: 'error',
539
+ code: 'reserved_credential_key',
540
+ message: `Tool server "${server.id}" ${on} declares credential ${reservedEnvKeyMessage(secret.key)}`,
541
+ });
542
+ }
543
+ if (secret.envName === undefined)
544
+ return problems;
545
+ // The injection name is NOT held to the reserved floor (it reads nothing), so it carries its own
546
+ // rule: a value set as `PATH` or `npm_config_registry` reconfigures the server's process instead
547
+ // of authenticating a call. Dispatch drops one too, for the mothership case.
548
+ if (!isEnvVariableName(secret.envName)) {
549
+ problems.push({
550
+ severity: 'error',
551
+ code: 'invalid_credential_env_name',
552
+ message: `Tool server "${server.id}" ${on} declares credential envName "${secret.envName}", which ` +
553
+ `is not a valid environment variable name. It becomes a variable of the server's process, ` +
554
+ `and the harness drops anything else.`,
555
+ });
556
+ }
557
+ if (isToolchainEnvName(secret.envName)) {
558
+ problems.push({
559
+ severity: 'error',
560
+ code: 'toolchain_credential_env_name',
561
+ message: `Tool server "${server.id}" ${on} declares credential ${toolchainEnvNameMessage(secret.envName)}`,
562
+ });
563
+ }
564
+ // An `http` server sends its value as a HEADER, so an injection name would be read by nothing.
565
+ // A warning rather than an error: the declaration still works, it just says something that cannot
566
+ // take effect, and failing boot over it would be out of proportion.
567
+ if (server.transport.kind === 'http' && secret.header) {
568
+ problems.push({
569
+ severity: 'warn',
570
+ code: 'unused_credential_env_name',
571
+ message: `Tool server "${server.id}" ${on} declares credential envName "${secret.envName}" on a ` +
572
+ `key that names a header. An http server's value is sent as that header, so the injection ` +
573
+ `name is never used.`,
574
+ });
575
+ }
576
+ return problems;
577
+ }
459
578
  /**
460
579
  * Section 3 of {@link collectRegistrationProblems}: a coherence WARNING for a kind that declares
461
580
  * postOps but whose agent step is not structured output — those post-ops read `result.custom` and
@@ -545,19 +664,106 @@ function checkPipelineRetirements(opts) {
545
664
  `the definition that keeps it live.`,
546
665
  }));
547
666
  }
667
+ /**
668
+ * A registered task type's `defaultFragmentIds` that the CODE pool cannot resolve, reported as a
669
+ * WARN rather than an error, and the severity is the whole point. The pool visible at boot is the
670
+ * built-in catalog plus whatever `registerPromptFragments` added; an account- or workspace-tier
671
+ * fragment row merges per WORKSPACE at run time, so boot structurally cannot see one and refusing
672
+ * would reject a legitimate tenant-tier reference. The message therefore names both causes rather
673
+ * than asserting the typo it cannot distinguish. Run-time behaviour is unchanged either way: an
674
+ * id that resolves against nothing is skipped when bodies are composed.
675
+ */
676
+ function checkTaskTypeFragments(taskType, pool) {
677
+ const unresolved = (taskType.defaultFragmentIds ?? []).filter((id) => !pool.has(id));
678
+ if (unresolved.length === 0)
679
+ return [];
680
+ return [
681
+ {
682
+ severity: 'warn',
683
+ code: 'task_type_unknown_fragment',
684
+ message: `Custom task type "${taskType.taskType}" declares defaultFragmentIds ` +
685
+ `${unresolved.map((id) => `"${id}"`).join(', ')}, which the code fragment pool (built-in ` +
686
+ `catalog + registerPromptFragments) does not resolve. Either the id is a typo (a task of ` +
687
+ `this type would then be seeded with a fragment that folds nothing), or it names an ` +
688
+ `account/workspace-tier fragment, which merges per workspace at run time and is invisible ` +
689
+ `here. Check the id if you meant a code-registered fragment.`,
690
+ },
691
+ ];
692
+ }
693
+ /**
694
+ * A descriptor-driven create FORM that structurally cannot be filled. Each of these is a typo in the
695
+ * deployment's own descriptor with no run-time recovery, and each fails SILENTLY without this check:
696
+ * a duplicate key means the later declaration wins wherever the fields are indexed, an optionless
697
+ * picker renders an empty control (and, if required, makes the subject un-creatable), and a
698
+ * `showWhen` naming no declared field hides its own field forever, so the value can never be
699
+ * collected.
700
+ *
701
+ * Errors rather than warnings, because unlike a `defaultFragmentIds` id (which may legitimately name
702
+ * a tenant-tier fragment invisible at boot) every input here is fully known from the registration.
703
+ *
704
+ * Takes a plain FIELD LIST, because both surfaces that declare a form draw on one vocabulary
705
+ * (`contracts/src/form-fields.ts`): a custom task type's per-case form and an initiative preset's
706
+ * create form fail these three ways identically, so they are checked by one function under their
707
+ * own code prefixes rather than by a copy each.
708
+ */
709
+ function descriptorFormProblems(fields, codePrefix, subject) {
710
+ const problems = [];
711
+ const seen = new Set();
712
+ const declared = new Set(fields.map((field) => field.key));
713
+ const bad = (code, message) => {
714
+ problems.push({
715
+ severity: 'error',
716
+ code: `${codePrefix}_${code}`,
717
+ message: `${subject} ${message}`,
718
+ });
719
+ };
720
+ for (const field of fields) {
721
+ if (seen.has(field.key))
722
+ bad('field_duplicate', `declares field "${field.key}" twice.`);
723
+ seen.add(field.key);
724
+ if ((field.type === 'select' || field.type === 'checkbox-group') && !field.options?.length) {
725
+ bad('field_no_options', `declares "${field.key}" as a ${field.type} with no options, so the form renders an empty picker.`);
726
+ }
727
+ if (field.showWhen && !declared.has(field.showWhen.key)) {
728
+ bad('field_unknown_condition', `gates field "${field.key}" on "${field.showWhen.key}", which it does not declare, so the field never shows.`);
729
+ }
730
+ }
731
+ return problems;
732
+ }
733
+ /**
734
+ * Section 5b of {@link collectRegistrationProblems}: every registered initiative PRESET's create
735
+ * form must be fillable, on the same bar and through the same checker as a custom task type's (see
736
+ * {@link descriptorFormProblems}). Only run when a preset registry is supplied.
737
+ *
738
+ * The built-in presets ride along rather than being exempted: they are registrations like any
739
+ * other, and a shipped descriptor that broke its own form should fail this deployment's boot
740
+ * exactly as a deployment-authored one does.
741
+ */
742
+ function checkInitiativePresetForms(opts) {
743
+ if (!opts.initiativePresetRegistry)
744
+ return [];
745
+ return opts.initiativePresetRegistry
746
+ .descriptors()
747
+ .flatMap((descriptor) => descriptorFormProblems(descriptor.fields, 'initiative_preset', `Initiative preset "${descriptor.id}"`));
748
+ }
548
749
  /**
549
750
  * Section 5 of {@link collectRegistrationProblems}: each custom task type must carry a NAMESPACED
550
751
  * id (`<ns>:<name>`) and, if set, a well-formed namespaced `formPanel` id; a `defaultPipelineId`
551
752
  * must resolve against the built-in + registered pipeline catalog (else the created task would
552
- * silently fall back to the positional default). Only run when a task-type registry is supplied.
553
- * Split out to keep the collector under the complexity ceiling.
753
+ * silently fall back to the positional default); its `defaultFragmentIds` are checked against the
754
+ * code fragment pool (see {@link checkTaskTypeFragments}); and its create form must be fillable (see
755
+ * {@link descriptorFormProblems}). Only run when a task-type registry is supplied. Split out to keep
756
+ * the collector under the complexity ceiling.
554
757
  */
555
758
  function checkCustomTaskTypes(opts) {
556
759
  const problems = [];
557
760
  if (!opts.taskTypeRegistry)
558
761
  return problems;
559
762
  const knownPipelineIds = new Set(seedPipelines(opts.pipelineRegistry).map((p) => p.id));
763
+ const fragmentPool = new Set(universalFragments().map((fragment) => fragment.id));
560
764
  for (const taskType of opts.taskTypeRegistry.all()) {
765
+ problems.push(...checkTaskTypeFragments(taskType, fragmentPool));
766
+ problems.push(...descriptorFormProblems(taskType.fields ?? [], 'task_type', `Custom task type "${taskType.taskType}"`));
561
767
  if (!isNamespacedId(taskType.taskType)) {
562
768
  problems.push({
563
769
  severity: 'error',
@@ -1 +1 @@
1
- {"version":3,"file":"validateRegistrations.js","sourceRoot":"","sources":["../../src/validation/validateRegistrations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAA;AASlE,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,8BAA8B,GAC/B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAEL,+BAA+B,EAC/B,mCAAmC,EACnC,iBAAiB,EACjB,cAAc,EACd,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,wBAAwB,CAAA;AAE/B,8EAA8E;AAC9E,sF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IAAI,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAC/D,CAAA;IACH,CAAC;AACH,CAAC;AAED,4FAA4F;AAC5F,0FAA0F;AAC1F,2FAA2F;AAC3F,IAAI,SAAS,GAAG,KAAK,CAAA;AAErB,yGAAyG;AACzG,MAAM,UAAU,yBAAyB,CAAC,IAAkC;IAC1E,IAAI,SAAS;QAAE,OAAM;IACrB,6FAA6F;IAC7F,6FAA6F;IAC7F,gGAAgG;IAChG,gGAAgG;IAChG,kGAAkG;IAClG,qBAAqB,CAAC,IAAI,CAAC,CAAA;IAC3B,SAAS,GAAG,IAAI,CAAA;AAClB,CAAC;AAED,uFAAuF;AACvF,MAAM,UAAU,gCAAgC;IAC9C,SAAS,GAAG,KAAK,CAAA;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/orchestration",
3
- "version": "0.195.3",
3
+ "version": "0.199.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.47",
28
- "@cat-factory/agents": "0.108.3",
29
- "@cat-factory/caching": "0.14.5",
30
- "@cat-factory/contracts": "0.227.0",
31
- "@cat-factory/integrations": "0.123.1",
32
- "@cat-factory/kernel": "0.228.1",
33
- "@cat-factory/prompt-fragments": "0.15.52",
34
- "@cat-factory/sandbox": "0.11.46",
35
- "@cat-factory/spend": "0.14.3",
36
- "@cat-factory/workspaces": "0.21.39"
28
+ "@cat-factory/agents": "0.110.0",
29
+ "@cat-factory/caching": "0.14.9",
30
+ "@cat-factory/contracts": "0.230.1",
31
+ "@cat-factory/integrations": "0.123.5",
32
+ "@cat-factory/kernel": "0.232.0",
33
+ "@cat-factory/prompt-fragments": "0.15.56",
34
+ "@cat-factory/sandbox": "0.11.50",
35
+ "@cat-factory/spend": "0.14.7",
36
+ "@cat-factory/workspaces": "0.21.43"
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "7.0.2",
40
40
  "vitest": "^4.1.10",
41
- "@cat-factory/sandbox-fixtures": "0.7.260"
41
+ "@cat-factory/sandbox-fixtures": "0.7.264"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsc -b tsconfig.build.json",