@wildo-ai/wildo-cli 1.1.3 → 1.1.4

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 (141) hide show
  1. package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts +2 -0
  2. package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts.map +1 -0
  3. package/dist/src/commands/context/__tests__/assurance-basis.command.test.js +63 -0
  4. package/dist/src/commands/context/__tests__/assurance-basis.command.test.js.map +1 -0
  5. package/dist/src/commands/context/assurance-basis.command.d.ts +61 -0
  6. package/dist/src/commands/context/assurance-basis.command.d.ts.map +1 -0
  7. package/dist/src/commands/context/assurance-basis.command.js +166 -0
  8. package/dist/src/commands/context/assurance-basis.command.js.map +1 -0
  9. package/dist/src/commands/dev/charts-audit.command.d.ts +5 -3
  10. package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
  11. package/dist/src/commands/dev/charts-audit.command.js +35 -6
  12. package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
  13. package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -1
  14. package/dist/src/commands/fwk/generate-providers.command.js +18 -2
  15. package/dist/src/commands/fwk/generate-providers.command.js.map +1 -1
  16. package/dist/src/commands/generate/email-preview.command.d.ts +8 -0
  17. package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
  18. package/dist/src/commands/generate/email-preview.command.js +57 -0
  19. package/dist/src/commands/generate/email-preview.command.js.map +1 -1
  20. package/dist/src/commands/init.command.d.ts.map +1 -1
  21. package/dist/src/commands/init.command.js +32 -0
  22. package/dist/src/commands/init.command.js.map +1 -1
  23. package/dist/src/commands/lock/check.command.d.ts.map +1 -1
  24. package/dist/src/commands/lock/check.command.js +3 -2
  25. package/dist/src/commands/lock/check.command.js.map +1 -1
  26. package/dist/src/commands/registry/login.command.d.ts.map +1 -1
  27. package/dist/src/commands/registry/login.command.js +2 -0
  28. package/dist/src/commands/registry/login.command.js.map +1 -1
  29. package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
  30. package/dist/src/commands/registry/publish.command.js +2 -0
  31. package/dist/src/commands/registry/publish.command.js.map +1 -1
  32. package/dist/src/commands/registry/registry-transport.constants.d.ts +33 -0
  33. package/dist/src/commands/registry/registry-transport.constants.d.ts.map +1 -0
  34. package/dist/src/commands/registry/registry-transport.constants.js +33 -0
  35. package/dist/src/commands/registry/registry-transport.constants.js.map +1 -0
  36. package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
  37. package/dist/src/commands/registry/whoami.command.js +2 -0
  38. package/dist/src/commands/registry/whoami.command.js.map +1 -1
  39. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts +2 -0
  40. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts.map +1 -0
  41. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js +146 -0
  42. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js.map +1 -0
  43. package/dist/src/modules/domain/credentials/approver-user.module.d.ts +85 -0
  44. package/dist/src/modules/domain/credentials/approver-user.module.d.ts.map +1 -0
  45. package/dist/src/modules/domain/credentials/approver-user.module.js +92 -0
  46. package/dist/src/modules/domain/credentials/approver-user.module.js.map +1 -0
  47. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts +2 -0
  48. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts.map +1 -0
  49. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js +111 -0
  50. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js.map +1 -0
  51. package/dist/src/services/application/__tests__/provider-package-links.service.test.js +68 -0
  52. package/dist/src/services/application/__tests__/provider-package-links.service.test.js.map +1 -1
  53. package/dist/src/services/application/app-bootstrap.service.d.ts +9 -0
  54. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  55. package/dist/src/services/application/app-bootstrap.service.js +30 -1
  56. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  57. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +6 -0
  58. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
  59. package/dist/src/services/application/application-runtime-bootstrap.service.js +41 -0
  60. package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
  61. package/dist/src/services/application/provider-package-links.service.d.ts +30 -0
  62. package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -1
  63. package/dist/src/services/application/provider-package-links.service.js +35 -3
  64. package/dist/src/services/application/provider-package-links.service.js.map +1 -1
  65. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  66. package/dist/src/services/application/provider-runtime-sync.service.js +4 -3
  67. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  68. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  69. package/dist/src/services/application/saas-skeleton.service.js +22 -2
  70. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  71. package/dist/src/services/companion/workbench-cli.service.js +10 -1
  72. package/dist/src/services/companion/workbench-cli.service.js.map +1 -1
  73. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts +2 -0
  74. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts.map +1 -0
  75. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js +94 -0
  76. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js.map +1 -0
  77. package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
  78. package/dist/src/services/credentials/ci-secrets-adapter.service.js +16 -0
  79. package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
  80. package/dist/src/services/credentials/composed-provider-catalogue.d.ts +34 -0
  81. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  82. package/dist/src/services/credentials/composed-provider-catalogue.js +35 -0
  83. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  84. package/dist/src/services/credentials/credentials.schemas.d.ts +27 -0
  85. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  86. package/dist/src/services/credentials/credentials.schemas.js +50 -0
  87. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  88. package/dist/src/services/credentials/framework-managed-secrets.d.ts +1 -1
  89. package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
  90. package/dist/src/services/credentials/framework-managed-secrets.js +49 -8
  91. package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
  92. package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
  93. package/dist/src/services/deployment/infra-writer.service.js +23 -4
  94. package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
  95. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js +45 -2
  96. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js.map +1 -1
  97. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts +23 -0
  98. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
  99. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +49 -6
  100. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
  101. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  102. package/dist/src/services/environment/env-vars-builder.service.js +19 -0
  103. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  104. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js +8 -0
  105. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js.map +1 -1
  106. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js +17 -0
  107. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +1 -1
  108. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +51 -0
  109. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +1 -1
  110. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +41 -1
  111. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  112. package/dist/src/services/framework/framework-knowledge-audit.service.js +90 -0
  113. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  114. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts +2 -0
  115. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts.map +1 -0
  116. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js +100 -0
  117. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js.map +1 -0
  118. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js +55 -2
  119. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js.map +1 -1
  120. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts +9 -0
  121. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -1
  122. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +139 -19
  123. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -1
  124. package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
  125. package/dist/src/services/frontend/cloudflare-cdn.service.js +33 -2
  126. package/dist/src/services/frontend/cloudflare-cdn.service.js.map +1 -1
  127. package/dist/tsconfig.build.tsbuildinfo +1 -1
  128. package/dist/tsconfig.tsbuildinfo +1 -1
  129. package/package.json +17 -17
  130. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +13 -0
  131. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +64 -16
  132. package/templates/saas/engine-peer-closure.json +12 -0
  133. package/templates/saas/scenarios/add-provider/scenario.json +11 -11
  134. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +34 -0
  135. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/auth/exchange.tsx +24 -1
  136. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/Root.tsx +22 -2
  137. package/templates/saas/skeleton/backend-api/package.json.hbs +1 -1
  138. package/templates/saas/skeleton/backend-api/src/companion-exports.ts +13 -2
  139. package/wildo-framework.info.json +1 -1
  140. package/templates/saas/scenarios/add-backend-provider/scenario.json +0 -17
  141. package/templates/saas/skeleton/backend-api/src/provider-contributions.ts +0 -44
@@ -223,7 +223,27 @@ export declare enum FrameworkKnowledgeAuditRule {
223
223
  * enforces the same predicate fail-closed; this rule is the PR-time copy that fails before anyone
224
224
  * runs `generate-docs`.
225
225
  */
226
- PlaybookContextSourcePlaceholderInvalid = "playbook-context-source-placeholder-invalid"
226
+ PlaybookContextSourcePlaceholderInvalid = "playbook-context-source-placeholder-invalid",
227
+ /**
228
+ * FAIL — a composite's `method.choreography.admits[]` entry names no authored playbook folder.
229
+ *
230
+ * Rule 30 (2026-09-09). Rule 13 has refused a `method.skillRefs` entry naming no authored skill
231
+ * since the catalog existed; `admits` is the same shape one field over and had no rule at all, so a
232
+ * composite could name a child that does not exist and nothing said so until it ran — and then only
233
+ * by omission. `runPlaybookChoreography` FILTERS an unresolvable ref out of the eligible set, so
234
+ * the lane simply does less than it declares, silently, on every iteration.
235
+ *
236
+ * The runtime consequence of a dangling child is already contained: the write-scope resolver treats
237
+ * an unresolvable child as UNKNOWN and fails closed rather than as the empty set, so nothing is
238
+ * granted a scope it should not have. Containment is not the same as detection, though — a
239
+ * fail-closed runtime says the composite is safe, never that it is complete — and the authoring-time
240
+ * answer belongs here, where the author is still present.
241
+ *
242
+ * FAIL rather than WARN, matching rule 13 and for the same reason: nothing is left to decide. A ref
243
+ * naming no folder is not a judgement call about the catalog's shape (which is what put rule 23 in
244
+ * the softer channel), it is a typo or a deletion that nobody swept, and the fix is mechanical.
245
+ */
246
+ PlaybookChoreographyAdmitsUnknownPlaybook = "playbook-choreography-admits-unknown-playbook"
227
247
  }
228
248
  export interface FrameworkKnowledgeAuditFinding {
229
249
  rule: FrameworkKnowledgeAuditRule;
@@ -238,6 +258,15 @@ export interface FrameworkKnowledgeAuditStats {
238
258
  skillCount: number;
239
259
  referenceFileCount: number;
240
260
  playbookCount: number;
261
+ /**
262
+ * Total `method.choreography.admits[]` entries the parser LIFTED across the catalog.
263
+ *
264
+ * Exists because rule 30's clean answer and a blind one are otherwise identical: a parser that
265
+ * lifted nothing reports zero dangling children exactly as a healthy catalog does. This is the
266
+ * number that separates them, and the live contract asserts it is non-zero — the same reason every
267
+ * checker in `scripts/code-conduct/` ships a `--self-test`.
268
+ */
269
+ choreographyChildRefCount: number;
241
270
  }
242
271
  export interface FrameworkKnowledgeAuditReport {
243
272
  failures: FrameworkKnowledgeAuditFinding[];
@@ -575,6 +604,17 @@ export declare class FrameworkKnowledgeAuditService {
575
604
  * why this join exists; the generator enforces the same predicate fail-closed at compile.
576
605
  */
577
606
  private static checkRule28PlaybookContextSourcePlaceholder;
607
+ /**
608
+ * Rule 30 — every `method.choreography.admits[]` entry must name a discovered playbook folder.
609
+ *
610
+ * The population is the CATALOG itself, which is the one thing separating this from rule 13: a
611
+ * composite's children are playbooks, so the set it is checked against is the same set being
612
+ * iterated. That makes the empty-catalog guard load-bearing rather than defensive — a reader that
613
+ * parsed no playbook refs would report every child of every composite as dangling, which reads as a
614
+ * broken catalog instead of a broken reader.
615
+ */
616
+ private static checkRule30PlaybookChoreographyAdmitsUnknownPlaybook;
617
+ private static readPlaybookChoreographyAdmits;
578
618
  private static readPlaybookSkillRefs;
579
619
  private static readPlaybookOutputSchemaRefs;
580
620
  /** Families a playbook WRITES — the producer side of the catalog graph. */
@@ -1 +1 @@
1
- {"version":3,"file":"framework-knowledge-audit.service.d.ts","sourceRoot":"","sources":["../../../../src/services/framework/framework-knowledge-audit.service.ts"],"names":[],"mappings":"AAoaA;;;;;;;;;;;;GAYG;AACH,oBAAY,+BAA+B;IACzC,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED;;;;GAIG;AACH,oBAAY,2BAA2B;IACrC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;IAwF1C,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAIvC;;;;;;;OAOG;IACH;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAWpC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,uCAAuC;IAiBtD,OAAO,CAAC,MAAM,CAAC,qCAAqC;IAoBpD;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,yCAAyC;IAaxD,6FAA6F;IAC7F,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAOzC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,2CAA2C;IAqC1D,OAAO,CAAC,MAAM,CAAC,qBAAqB;IASpC,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAU3C,2EAA2E;IAC3E,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAQzC;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,4BAA4B;IA4B3C,OAAO,CAAC,MAAM,CAAC,0BAA0B;CAO1C"}
1
+ {"version":3,"file":"framework-knowledge-audit.service.d.ts","sourceRoot":"","sources":["../../../../src/services/framework/framework-knowledge-audit.service.ts"],"names":[],"mappings":"AAsbA;;;;;;;;;;;;GAYG;AACH,oBAAY,+BAA+B;IACzC,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED;;;;GAIG;AACH,oBAAY,2BAA2B;IACrC;;;OAGG;IACH,iCAAiC,0CAA0C;IAC3E,qFAAqF;IACrF,+BAA+B,wCAAwC;IACvE,+HAA+H;IAC/H,iCAAiC,yCAAyC;IAC1E,8EAA8E;IAC9E,0BAA0B,kCAAkC;IAC5D,4DAA4D;IAC5D,0BAA0B,iCAAiC;IAC3D,oEAAoE;IACpE,gCAAgC,yCAAyC;IACzE,4DAA4D;IAC5D,0BAA0B,kCAAkC;IAC5D,sFAAsF;IACtF,4BAA4B,sCAAsC;IAClE;;;;;;;;;;OAUG;IACH,8BAA8B,uCAAuC;IACrE,+EAA+E;IAC/E,oBAAoB,2BAA2B;IA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AC7F,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAOzC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,2CAA2C;IAqC1D;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,CAAC,oDAAoD;IA6BnE,OAAO,CAAC,MAAM,CAAC,8BAA8B;IAU7C,OAAO,CAAC,MAAM,CAAC,qBAAqB;IASpC,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAU3C,2EAA2E;IAC3E,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAQzC;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,4BAA4B;IA4B3C,OAAO,CAAC,MAAM,CAAC,0BAA0B;CAO1C"}
@@ -89,6 +89,22 @@ function readStaticStringArray(expression) {
89
89
  .map((entry) => readStaticString(unwrapStaticExpression(entry)))
90
90
  .filter((entry) => entry !== null);
91
91
  }
92
+ /**
93
+ * `method.choreography.admits[]` — the composite's admissible CHILD playbook refs (rule 30).
94
+ *
95
+ * Split out rather than nested inline because `readStaticObjectProperty` takes an object literal and
96
+ * not a nullable expression, and `choreography` is optional on the schema: only a composite declares
97
+ * one, so an absent field is the ordinary case and must read as an empty set, never as a parse
98
+ * failure.
99
+ */
100
+ function readStaticChoreographyAdmits(methodObject) {
101
+ if (methodObject === null)
102
+ return [];
103
+ const choreography = readStaticObjectProperty(methodObject, 'choreography');
104
+ if (choreography === null || !ts.isObjectLiteralExpression(choreography))
105
+ return [];
106
+ return readStaticStringArray(readStaticObjectProperty(choreography, 'admits'));
107
+ }
92
108
  const EMPTY_PLAYBOOK_VOCABULARY = { enumMemberValues: new Map(), contextSourceValues: new Set() };
93
109
  function loadPlaybookVocabulary(engineHome) {
94
110
  const schemaPath = join(engineHome, 'saas-specifications', 'src', 'application-creation', 'playbooks.application-creation.schemas.ts');
@@ -328,6 +344,9 @@ function extractStaticPlaybookAuditShape(sourceFile, vocabulary) {
328
344
  // read would blind rule 28 to every TypeScript-style playbook — the exact under-lift that
329
345
  // once hid eleven playbooks' preconditions from rules 23/24/26 (see readStaticEnumBackedValue).
330
346
  contextSources: methodObject === null ? [] : readStaticEnumBackedArray(readStaticObjectProperty(methodObject, 'contextSources'), enumLocalNames, vocabulary),
347
+ // Lifted for rule 30. `admits` names PLAYBOOK refs, so it is the one field in the projection
348
+ // whose referents are the catalog itself — parse it here or the rule has nothing to read.
349
+ choreography: { admits: readStaticChoreographyAdmits(methodObject) },
331
350
  ...(methodObject !== null && readStaticObjectProperty(methodObject, 'guidance') !== null ? { guidance: true } : {}),
332
351
  },
333
352
  outputs,
@@ -609,6 +628,26 @@ export var FrameworkKnowledgeAuditRule;
609
628
  * runs `generate-docs`.
610
629
  */
611
630
  FrameworkKnowledgeAuditRule["PlaybookContextSourcePlaceholderInvalid"] = "playbook-context-source-placeholder-invalid";
631
+ /**
632
+ * FAIL — a composite's `method.choreography.admits[]` entry names no authored playbook folder.
633
+ *
634
+ * Rule 30 (2026-09-09). Rule 13 has refused a `method.skillRefs` entry naming no authored skill
635
+ * since the catalog existed; `admits` is the same shape one field over and had no rule at all, so a
636
+ * composite could name a child that does not exist and nothing said so until it ran — and then only
637
+ * by omission. `runPlaybookChoreography` FILTERS an unresolvable ref out of the eligible set, so
638
+ * the lane simply does less than it declares, silently, on every iteration.
639
+ *
640
+ * The runtime consequence of a dangling child is already contained: the write-scope resolver treats
641
+ * an unresolvable child as UNKNOWN and fails closed rather than as the empty set, so nothing is
642
+ * granted a scope it should not have. Containment is not the same as detection, though — a
643
+ * fail-closed runtime says the composite is safe, never that it is complete — and the authoring-time
644
+ * answer belongs here, where the author is still present.
645
+ *
646
+ * FAIL rather than WARN, matching rule 13 and for the same reason: nothing is left to decide. A ref
647
+ * naming no folder is not a judgement call about the catalog's shape (which is what put rule 23 in
648
+ * the softer channel), it is a typo or a deletion that nobody swept, and the fix is mechanical.
649
+ */
650
+ FrameworkKnowledgeAuditRule["PlaybookChoreographyAdmitsUnknownPlaybook"] = "playbook-choreography-admits-unknown-playbook";
612
651
  })(FrameworkKnowledgeAuditRule || (FrameworkKnowledgeAuditRule = {}));
613
652
  /**
614
653
  * Static parser + auditor for the framework-knowledge authoring surface.
@@ -701,6 +740,10 @@ export class FrameworkKnowledgeAuditService {
701
740
  playbooks,
702
741
  findings,
703
742
  });
743
+ FrameworkKnowledgeAuditService.checkRule30PlaybookChoreographyAdmitsUnknownPlaybook({
744
+ playbooks,
745
+ findings,
746
+ });
704
747
  // Rule 14 — playbook `{{REFERENCE:<id>}}` coverage — has no dedicated
705
748
  // check method: `collectReferencePlaceholders` above feeds playbook
706
749
  // method bodies into Rules 1/2, so a bad id FAILs at PR time instead of
@@ -736,6 +779,7 @@ export class FrameworkKnowledgeAuditService {
736
779
  skillCount: skills.length,
737
780
  referenceFileCount: Array.from(referenceFilesBySkill.values()).reduce((sum, list) => sum + list.length, 0),
738
781
  playbookCount: playbooks.length,
782
+ choreographyChildRefCount: playbooks.reduce((total, playbook) => total + FrameworkKnowledgeAuditService.readPlaybookChoreographyAdmits(playbook).length, 0),
739
783
  },
740
784
  };
741
785
  }
@@ -2188,6 +2232,52 @@ export class FrameworkKnowledgeAuditService {
2188
2232
  }
2189
2233
  }
2190
2234
  }
2235
+ /**
2236
+ * Rule 30 — every `method.choreography.admits[]` entry must name a discovered playbook folder.
2237
+ *
2238
+ * The population is the CATALOG itself, which is the one thing separating this from rule 13: a
2239
+ * composite's children are playbooks, so the set it is checked against is the same set being
2240
+ * iterated. That makes the empty-catalog guard load-bearing rather than defensive — a reader that
2241
+ * parsed no playbook refs would report every child of every composite as dangling, which reads as a
2242
+ * broken catalog instead of a broken reader.
2243
+ */
2244
+ static checkRule30PlaybookChoreographyAdmitsUnknownPlaybook(params) {
2245
+ const declaredRefs = new Set();
2246
+ for (const playbook of params.playbooks) {
2247
+ const ref = playbook.json?.ref;
2248
+ if (typeof ref === 'string' && ref.length > 0)
2249
+ declaredRefs.add(ref);
2250
+ // The folder name IS the loader address (rule 17 keeps the two equal), so it is admitted as an
2251
+ // identity too. Without it, a playbook whose structured source failed to parse would take every
2252
+ // composite that admits it down with it — one unreadable file reported as N dangling children.
2253
+ declaredRefs.add(playbook.playbookRef);
2254
+ }
2255
+ if (declaredRefs.size === 0)
2256
+ return;
2257
+ for (const playbook of params.playbooks) {
2258
+ for (const childRef of FrameworkKnowledgeAuditService.readPlaybookChoreographyAdmits(playbook)) {
2259
+ if (declaredRefs.has(childRef))
2260
+ continue;
2261
+ params.findings.push({
2262
+ rule: FrameworkKnowledgeAuditRule.PlaybookChoreographyAdmitsUnknownPlaybook,
2263
+ severity: FrameworkKnowledgeAuditSeverity.Fail,
2264
+ message: `Composite playbook "${playbook.playbookRef}" admits child "${childRef}" in method.choreography.admits, but no matching playbook folder exists under src/playbooks/. `
2265
+ + 'The choreography loop filters an unresolvable child out of the eligible set, so the lane would run silently short of what it declares. '
2266
+ + 'Either author the playbook, or remove the ref.',
2267
+ location: playbook.structuredSourceFilePath,
2268
+ });
2269
+ }
2270
+ }
2271
+ }
2272
+ static readPlaybookChoreographyAdmits(playbook) {
2273
+ const method = (playbook.json?.method ?? {});
2274
+ const choreography = method.choreography;
2275
+ const admits = choreography?.admits;
2276
+ if (!Array.isArray(admits)) {
2277
+ return [];
2278
+ }
2279
+ return admits.filter((entry) => typeof entry === 'string');
2280
+ }
2191
2281
  static readPlaybookSkillRefs(playbook) {
2192
2282
  const method = (playbook.json?.method ?? {});
2193
2283
  const skillRefs = method.skillRefs;