@wildo-ai/framework-knowledge 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 (62) hide show
  1. package/dist/esm/framework-knowledge.definitions.d.ts +1 -1
  2. package/dist/esm/framework-knowledge.definitions.d.ts.map +1 -1
  3. package/dist/esm/framework-knowledge.definitions.js +123 -12
  4. package/dist/esm/framework-knowledge.definitions.js.map +1 -1
  5. package/dist/esm/framework-knowledge.loader.d.ts.map +1 -1
  6. package/dist/esm/framework-knowledge.schemas.d.ts.map +1 -1
  7. package/dist/esm/framework-knowledge.schemas.js.map +1 -1
  8. package/dist/esm/index.d.ts.map +1 -1
  9. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.d.ts.map +1 -1
  10. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js.map +1 -1
  11. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.d.ts.map +1 -1
  12. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.js.map +1 -1
  13. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.d.ts.map +1 -1
  14. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.js.map +1 -1
  15. package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.d.ts.map +1 -1
  16. package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.js.map +1 -1
  17. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.d.ts.map +1 -1
  18. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.js.map +1 -1
  19. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts.map +1 -1
  20. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.js.map +1 -1
  21. package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.d.ts.map +1 -1
  22. package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.js.map +1 -1
  23. package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.d.ts.map +1 -1
  24. package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.js.map +1 -1
  25. package/dist/esm/playbooks/refinement.document-facts/playbook.definition.d.ts.map +1 -1
  26. package/dist/esm/playbooks/refinement.document-facts/playbook.definition.js.map +1 -1
  27. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.d.ts.map +1 -1
  28. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.js.map +1 -1
  29. package/dist/esm/playbooks/top_down.business-model/playbook.definition.d.ts.map +1 -1
  30. package/dist/esm/playbooks/top_down.business-model/playbook.definition.js.map +1 -1
  31. package/dist/esm/playbooks/top_down.capability-map/playbook.definition.d.ts.map +1 -1
  32. package/dist/esm/playbooks/top_down.capability-map/playbook.definition.js.map +1 -1
  33. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.d.ts.map +1 -1
  34. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.js.map +1 -1
  35. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.d.ts.map +1 -1
  36. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.js.map +1 -1
  37. package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.d.ts.map +1 -1
  38. package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.js.map +1 -1
  39. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.d.ts.map +1 -1
  40. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.js.map +1 -1
  41. package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.d.ts.map +1 -1
  42. package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.js.map +1 -1
  43. package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.d.ts.map +1 -1
  44. package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.js.map +1 -1
  45. package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.d.ts.map +1 -1
  46. package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.js.map +1 -1
  47. package/dist/esm/playbooks/top_down.market-research/playbook.definition.d.ts.map +1 -1
  48. package/dist/esm/playbooks/top_down.market-research/playbook.definition.js.map +1 -1
  49. package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.d.ts.map +1 -1
  50. package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.js.map +1 -1
  51. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.d.ts.map +1 -1
  52. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.js.map +1 -1
  53. package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.d.ts.map +1 -1
  54. package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.js.map +1 -1
  55. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.d.ts.map +1 -1
  56. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.js.map +1 -1
  57. package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.d.ts.map +1 -1
  58. package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.js.map +1 -1
  59. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.d.ts.map +1 -1
  60. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.js.map +1 -1
  61. package/dist/tsconfig.build.tsbuildinfo +1 -1
  62. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"framework-knowledge.loader.d.ts","sourceRoot":"","sources":["../../../src/framework-knowledge.loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,yCAAyC,EAEzC,sDAAsD,EACtD,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAE1B,uCAAuC,EACvC,oCAAoC,EACpC,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,iCAAiC,EAClC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAwC,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAoExH,wBAAgB,kCAAkC,CAA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gB,gCAAgC,IAAI,MAAM,GAAG,IAAI,CAQhE"}
1
+ {"version":3,"file":"framework-knowledge.loader.d.ts","sourceRoot":"","sources":["../../src/framework-knowledge.loader.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,yCAAyC,EAEzC,sDAAsD,EACtD,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAE1B,uCAAuC,EACvC,oCAAoC,EACpC,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,iCAAiC,EAClC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAwC,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAoExH,wBAAgB,kCAAkC,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAE/E;AAED,wBAAgB,qCAAqC,IAAI,8BAA8B,CAAC,0BAA0B,CAAC,CAalH;AAED,wBAAgB,6BAA6B,IAAI,0BAA0B,CAE1E;AAED,wBAAgB,gCAAgC,IAAI,oCAAoC,EAAE,CAEzF;AAED,wBAAgB,+BAA+B,IAAI,4BAA4B,CAE9E;AAED,wBAAgB,4BAA4B,IAAI,iCAAiC,EAAE,CAElF;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,uBAAuB,GAAG,IAAI,CAyB1F;AAED,wBAAgB,6BAA6B,CAAC,aAAa,SAAS,8BAA8B,EAChG,YAAY,EAAE,aAAa,GAC1B,6BAA6B,CAAC,aAAa,CAAC,CAE9C;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,IAAI,uCAAuC,EAAE,CAK3F;AAED;;;;;;;;;GASG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,GAAG,0BAA0B,GAAG,IAAI,CAmD5F;AAED,4EAA4E;AAC5E,wBAAgB,6CAA6C,IAAI,sDAAsD,EAAE,CAGxH;AAED;;;;;;GAMG;AACH,wBAAgB,4CAA4C,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,yCAAyC,GAAG,IAAI,CA0B5I;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,sDAAsD,CACpE,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,MAAM,GACf,8BAA8B,CAAC,OAAO,CAAC,GAAG,IAAI,CAWhD;AAED;;;;;GAKG;AACH;;;;;;;GAOG;AACH,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oCAAoC,IAAI,8BAA8B,EAAE,CAsBvF;AAED,wBAAgB,gCAAgC,IAAI,MAAM,GAAG,IAAI,CAQhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"framework-knowledge.schemas.d.ts","sourceRoot":"","sources":["../../../src/framework-knowledge.schemas.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,MAAM,CAAC;AAExD,oBAAY,8BAA8B;IACxC,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,SAAS,cAAc;IACvB,yBAAyB,8BAA8B;CACxD;AAED,oBAAY,qCAAqC;IAC/C,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B;AAED;;;;GAIG;AACH,oBAAY,sCAAsC;IAChD,gCAAgC,qCAAqC;CACtE;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kCAAkC;IACjD,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,6FAA6F;IAC7F,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2DAA2D;IAC3D,2GAA2G;IAC3G,gCAAgC,EAAE,MAAM,CAAC;IACzC;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,eAAe,CAAC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/G;AAED,MAAM,MAAM,0BAA0B,GAAG,6BAA6B,CAAC,8BAA8B,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"framework-knowledge.schemas.js","sourceRoot":"","sources":["../../../src/framework-knowledge.schemas.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,CAAC;AAExD,MAAM,CAAN,IAAY,8BAKX;AALD,WAAY,8BAA8B;IACxC,6DAA2B,CAAA;IAC3B,uEAAqC,CAAA;IACrC,yDAAuB,CAAA;IACvB,yFAAuD,CAAA;AACzD,CAAC,EALW,8BAA8B,KAA9B,8BAA8B,QAKzC;AAED,MAAM,CAAN,IAAY,qCAGX;AAHD,WAAY,qCAAqC;IAC/C,gEAAuB,CAAA;IACvB,kEAAyB,CAAA;AAC3B,CAAC,EAHW,qCAAqC,KAArC,qCAAqC,QAGhD;AAED;;;;GAIG;AACH,MAAM,CAAN,IAAY,sCAEX;AAFD,WAAY,sCAAsC;IAChD,+GAAqE,CAAA;AACvE,CAAC,EAFW,sCAAsC,KAAtC,sCAAsC,QAEjD","sourcesContent":["export const FRAMEWORK_KNOWLEDGE_ARTIFACT_VERSION = '3';\n\nexport enum FrameworkKnowledgeRegistryName {\n SOURCE_TAGS = 'source-tags',\n FRAMEWORK_TOPICS = 'framework-topics',\n PLAYBOOKS = 'playbooks',\n ASSURANCE_AUTHORITY_BASES = 'assurance-authority-bases',\n}\n\nexport enum FrameworkKnowledgeSourceReferenceKind {\n FULL_FILE = 'full-file',\n PART_RANGE = 'part-range',\n}\n\n/**\n * The JSON-v1 authoring format was retired (and its member deleted) at the\n * first-activation hard cut; every authored playbook is an effect-free native\n * TypeScript declaration.\n */\nexport enum FrameworkKnowledgePlaybookSourceFormat {\n EFFECT_FREE_TYPESCRIPT_MODULE_V1 = 'EFFECT_FREE_TYPESCRIPT_MODULE_V1',\n}\n\n/**\n * Directory/file inventory of the compiled payload, mirrored 1:1 by the\n * generator-local `FrameworkKnowledgeManifestShape` in\n * `wildo-cli/src/services/framework/framework-knowledge-generation.service.ts`.\n * The two shapes are deliberately duplicated (the audit/generator must stay\n * buildless w.r.t. this package) — extending one WITHOUT the other silently\n * ships a payload the typed loader cannot see. Keep them in lockstep.\n */\nexport interface FrameworkKnowledgePayloadInventory {\n topicIndexPath: string;\n registriesDirectory: string;\n referencesDirectory: string;\n skillsDirectory: string;\n /** Compiled meta-workflow playbooks home (`playbooks/<ref>/playbook.json` + `method.md`). */\n playbooksDirectory: string;\n /** Compiled application-creation transition route home. */\n /** Compiled, portable assurance-authority bases; published bytes never contain repository source paths. */\n assuranceAuthorityBasesDirectory: string;\n /**\n * Compiled ALWAYS-ON rules home (`rules/*.md`), installed into an application's `.claude/rules/`.\n *\n * Distinct from a skill: a skill is reached when the router matches a request description, which\n * requires the agent to already suspect the topic. A rule is policy that must be present when the\n * agent opens a matching file, without being asked for.\n *\n * OPTIONAL, unlike its siblings: it was introduced by issue #98 after the channel had been\n * documented and never built, so a payload generated before that carries none. A required field\n * would make every previously generated payload unloadable to fix a delivery gap.\n */\n rulesDirectory?: string;\n /**\n * Compiled skills router (`skills/INDEX.md`), rendered from the authored\n * `src/skills/INDEX.md` — the single router truth. Absent when the authored\n * catalog file does not exist (audit Rule 8 warns on that state). It is\n * deliberately NOT attached to any topic entry: the catalog is cross-topic\n * and `getFrameworkKnowledgeTopic` would misfile it.\n */\n skillsIndexPath?: string;\n}\n\nexport interface FrameworkKnowledgeRegistryDescriptor {\n registryName: FrameworkKnowledgeRegistryName;\n filePath: string;\n description: string;\n entryCount: number;\n}\n\nexport interface FrameworkKnowledgeManifest {\n artifactVersion: string;\n frameworkVersion: string;\n generatorVersion: string;\n generatedAt: string;\n packageName: string;\n topicCount: number;\n referenceFileCount: number;\n payload: FrameworkKnowledgePayloadInventory;\n registries: FrameworkKnowledgeRegistryDescriptor[];\n}\n\nexport interface FrameworkKnowledgeSourceReference {\n kind: FrameworkKnowledgeSourceReferenceKind;\n tagName: string;\n filePath: string;\n startLine?: number;\n endLine?: number;\n}\n\nexport interface FrameworkKnowledgeTopicIndexEntry {\n topicId: string;\n title: string;\n tags: string[];\n facets: string[];\n categories: string[];\n sourceReferences: FrameworkKnowledgeSourceReference[];\n referenceFiles: string[];\n skillFiles: string[];\n registryKeys: FrameworkKnowledgeRegistryName[];\n}\n\nexport interface FrameworkKnowledgeTopicIndex {\n topics: FrameworkKnowledgeTopicIndexEntry[];\n}\n\nexport interface FrameworkKnowledgeTopic {\n entry: FrameworkKnowledgeTopicIndexEntry;\n referencesByFile: Record<string, string>;\n skillsByFile: Record<string, string>;\n}\n\nexport interface FrameworkKnowledgeTopicRegistryEntry {\n topicId: string;\n title: string;\n categories: string[];\n referenceFilePath?: string;\n sourceReferenceCount: number;\n}\n\nexport interface FrameworkKnowledgeSourceTagRegistryEntry {\n referenceFilePath: string;\n skillFilePath?: string;\n extractedAt: string;\n facets: string[];\n sourceReferences: FrameworkKnowledgeSourceReference[];\n}\n\n/**\n * One compiled meta-workflow playbook, as listed in the `playbooks` registry.\n *\n * Enum-backed playbook fields (`phase`, `executor`) are\n * surfaced as plain strings here: this package has zero dependencies by\n * design, so it cannot import the `MetaWorkflow_*` enums from\n * `@wildo-ai/saas-specifications`. Consumers that need the typed contract must parse\n * the playbook JSON (see {@link FrameworkKnowledgePlaybook.playbook}) with\n * `MetaWorkflowPlaybookSchema` at their own seam — the generator has already\n * validated it, so the parse is a type-recovery step, not a trust boundary.\n */\nexport interface FrameworkKnowledgePlaybookRegistryEntry {\n ref: string;\n version: string;\n phase: string;\n /** Absent when the playbook runs no single tier — see `MetaWorkflow_Executor` (#115). */\n executor?: string;\n intent: string;\n /** App-knowledge skill ids the playbook's method delegates the technical HOW to. */\n skillRefs: string[];\n /** Payload-relative path of the compiled `playbook.json`. */\n playbookFilePath: string;\n /** Payload-relative path of the rendered `method.md`. */\n methodFilePath: string;\n /** Canonical structured authoring format used to compile this entry. */\n sourceFormat: FrameworkKnowledgePlaybookSourceFormat;\n evaluationProtocol?: {\n protocolRef: string;\n protocolVersion: number;\n filePath: string;\n };\n evaluationTreatment?: {\n definitionRef: string;\n definitionVersion: number;\n filePath: string;\n };\n structuredArtifactAction?: {\n definitionRef: string;\n definitionVersion: number;\n filePath: string;\n };\n}\n\n/**\n * Zero-dependency registry identity for one compiled assurance-authority basis.\n *\n * `ref@version` IS the identity: `version` is the declared compatibility generation. The three\n * content digests this carried (basis, source revision, artifact bytes) were removed 2026-08-27 —\n * they compared the compiled payload against a registry that ships in the same payload, and the\n * basis digest additionally forced every consuming application to re-accept its controls on any\n * engine byte movement (`.claude/rules/one-source-of-truth.md`).\n */\nexport interface FrameworkKnowledgeAssuranceAuthorityBasisRegistryEntry {\n ref: string;\n version: number;\n sourceRevisionRef: string;\n filePath: string;\n /**\n * The rights-classified WILDO-objective → external-source mapping DERIVED from this basis (#266).\n *\n * Beside the basis rather than in its own channel because it is a projection of exactly these\n * bytes: derived in the same pass, from the same value, so it cannot describe a different basis\n * than the one it ships with. A separate channel would be free to disagree, and a mapping is read\n * precisely by people who cannot check it.\n *\n * OPTIONAL for the same reason `rulesDirectory` is: a payload generated before this existed carries\n * none, and a required field would make every one of them unloadable to fix a delivery gap.\n */\n externalFrameworkMappingFilePath?: string;\n}\n\n/** Portable authority-basis bytes; consumers recover the typed assurance contract at their semantic boundary. */\nexport interface FrameworkKnowledgeAssuranceAuthorityBasis {\n entry: FrameworkKnowledgeAssuranceAuthorityBasisRegistryEntry;\n basis: unknown;\n bytes: Uint8Array;\n}\n\n/** Exact JSON artifact bytes plus their parsed zero-dependency projection. */\nexport interface FrameworkKnowledgeJsonArtifact<TValue> {\n value: TValue;\n bytes: Uint8Array;\n}\n\n/**\n * Hydrated playbook returned by `getFrameworkKnowledgePlaybook(ref)`.\n */\nexport interface FrameworkKnowledgePlaybook {\n entry: FrameworkKnowledgePlaybookRegistryEntry;\n /**\n * Parsed compiled `playbook.json` — schema-valid `MetaWorkflowPlaybook`\n * content (with `method.guidance` inlined from the rendered `method.md`).\n * Typed `unknown` because this package cannot depend on\n * `@wildo-ai/saas-specifications`; parse with `MetaWorkflowPlaybookSchema` to\n * recover the typed contract.\n */\n playbook: unknown;\n /** Exact compiled `playbook.json` bytes used for source provenance. */\n playbookBytes: Uint8Array;\n /** Rendered `method.md` prose (same content as `playbook.method.guidance`). */\n methodMarkdown: string;\n /** Exact rendered `method.md` bytes used for source provenance. */\n methodBytes: Uint8Array;\n /** Exact compiled protocol bytes and parsed value, absent for contained JSON-v1 entries. */\n evaluationProtocol: {\n value: unknown;\n bytes: Uint8Array;\n } | null;\n /** Exact compiled treatment bytes and parsed value, absent for contained JSON-v1 entries. */\n evaluationTreatment: {\n value: unknown;\n bytes: Uint8Array;\n } | null;\n /** Exact compiled structured-artifact Action bytes, when the playbook declares one. */\n structuredArtifactAction: {\n value: unknown;\n bytes: Uint8Array;\n } | null;\n}\n\nexport interface FrameworkKnowledgeRegistryBase<TName extends FrameworkKnowledgeRegistryName, TEntry> {\n name: TName;\n metadata?: Record<string, unknown>;\n entries: Record<string, TEntry>;\n}\n\nexport type FrameworkKnowledgeSourceTagRegistry = FrameworkKnowledgeRegistryBase<\n FrameworkKnowledgeRegistryName.SOURCE_TAGS,\n FrameworkKnowledgeSourceTagRegistryEntry\n>;\n\nexport type FrameworkKnowledgeTopicRegistry = FrameworkKnowledgeRegistryBase<\n FrameworkKnowledgeRegistryName.FRAMEWORK_TOPICS,\n FrameworkKnowledgeTopicRegistryEntry\n>;\n\nexport type FrameworkKnowledgePlaybookRegistry = FrameworkKnowledgeRegistryBase<\n FrameworkKnowledgeRegistryName.PLAYBOOKS,\n FrameworkKnowledgePlaybookRegistryEntry\n>;\n\nexport type FrameworkKnowledgeAssuranceAuthorityBasisRegistry = FrameworkKnowledgeRegistryBase<\n FrameworkKnowledgeRegistryName.ASSURANCE_AUTHORITY_BASES,\n FrameworkKnowledgeAssuranceAuthorityBasisRegistryEntry\n>;\n\nexport interface FrameworkKnowledgeRegistryMap {\n [FrameworkKnowledgeRegistryName.SOURCE_TAGS]: FrameworkKnowledgeSourceTagRegistry;\n [FrameworkKnowledgeRegistryName.FRAMEWORK_TOPICS]: FrameworkKnowledgeTopicRegistry;\n [FrameworkKnowledgeRegistryName.PLAYBOOKS]: FrameworkKnowledgePlaybookRegistry;\n [FrameworkKnowledgeRegistryName.ASSURANCE_AUTHORITY_BASES]: FrameworkKnowledgeAssuranceAuthorityBasisRegistry;\n}\n\nexport type FrameworkKnowledgeRegistry = FrameworkKnowledgeRegistryMap[FrameworkKnowledgeRegistryName];\n"]}
1
+ {"version":3,"file":"framework-knowledge.schemas.js","sourceRoot":"","sources":["../../src/framework-knowledge.schemas.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,CAAC;AAExD,MAAM,CAAN,IAAY,8BAKX;AALD,WAAY,8BAA8B;IACxC,6DAA2B,CAAA;IAC3B,uEAAqC,CAAA;IACrC,yDAAuB,CAAA;IACvB,yFAAuD,CAAA;AACzD,CAAC,EALW,8BAA8B,KAA9B,8BAA8B,QAKzC;AAED,MAAM,CAAN,IAAY,qCAGX;AAHD,WAAY,qCAAqC;IAC/C,gEAAuB,CAAA;IACvB,kEAAyB,CAAA;AAC3B,CAAC,EAHW,qCAAqC,KAArC,qCAAqC,QAGhD;AAED;;;;GAIG;AACH,MAAM,CAAN,IAAY,sCAEX;AAFD,WAAY,sCAAsC;IAChD,+GAAqE,CAAA;AACvE,CAAC,EAFW,sCAAsC,KAAtC,sCAAsC,QAEjD","sourcesContent":["export const FRAMEWORK_KNOWLEDGE_ARTIFACT_VERSION = '3';\n\nexport enum FrameworkKnowledgeRegistryName {\n SOURCE_TAGS = 'source-tags',\n FRAMEWORK_TOPICS = 'framework-topics',\n PLAYBOOKS = 'playbooks',\n ASSURANCE_AUTHORITY_BASES = 'assurance-authority-bases',\n}\n\nexport enum FrameworkKnowledgeSourceReferenceKind {\n FULL_FILE = 'full-file',\n PART_RANGE = 'part-range',\n}\n\n/**\n * The JSON-v1 authoring format was retired (and its member deleted) at the\n * first-activation hard cut; every authored playbook is an effect-free native\n * TypeScript declaration.\n */\nexport enum FrameworkKnowledgePlaybookSourceFormat {\n EFFECT_FREE_TYPESCRIPT_MODULE_V1 = 'EFFECT_FREE_TYPESCRIPT_MODULE_V1',\n}\n\n/**\n * Directory/file inventory of the compiled payload, mirrored 1:1 by the\n * generator-local `FrameworkKnowledgeManifestShape` in\n * `wildo-cli/src/services/framework/framework-knowledge-generation.service.ts`.\n * The two shapes are deliberately duplicated (the audit/generator must stay\n * buildless w.r.t. this package) — extending one WITHOUT the other silently\n * ships a payload the typed loader cannot see. Keep them in lockstep.\n */\nexport interface FrameworkKnowledgePayloadInventory {\n topicIndexPath: string;\n registriesDirectory: string;\n referencesDirectory: string;\n skillsDirectory: string;\n /** Compiled meta-workflow playbooks home (`playbooks/<ref>/playbook.json` + `method.md`). */\n playbooksDirectory: string;\n /** Compiled application-creation transition route home. */\n /** Compiled, portable assurance-authority bases; published bytes never contain repository source paths. */\n assuranceAuthorityBasesDirectory: string;\n /**\n * Compiled ALWAYS-ON rules home (`rules/*.md`), installed into an application's `.claude/rules/`.\n *\n * Distinct from a skill: a skill is reached when the router matches a request description, which\n * requires the agent to already suspect the topic. A rule is policy that must be present when the\n * agent opens a matching file, without being asked for.\n *\n * OPTIONAL, unlike its siblings: it was introduced by issue #98 after the channel had been\n * documented and never built, so a payload generated before that carries none. A required field\n * would make every previously generated payload unloadable to fix a delivery gap.\n */\n rulesDirectory?: string;\n /**\n * Compiled skills router (`skills/INDEX.md`), rendered from the authored\n * `src/skills/INDEX.md` — the single router truth. Absent when the authored\n * catalog file does not exist (audit Rule 8 warns on that state). It is\n * deliberately NOT attached to any topic entry: the catalog is cross-topic\n * and `getFrameworkKnowledgeTopic` would misfile it.\n */\n skillsIndexPath?: string;\n}\n\nexport interface FrameworkKnowledgeRegistryDescriptor {\n registryName: FrameworkKnowledgeRegistryName;\n filePath: string;\n description: string;\n entryCount: number;\n}\n\nexport interface FrameworkKnowledgeManifest {\n artifactVersion: string;\n frameworkVersion: string;\n generatorVersion: string;\n generatedAt: string;\n packageName: string;\n topicCount: number;\n referenceFileCount: number;\n payload: FrameworkKnowledgePayloadInventory;\n registries: FrameworkKnowledgeRegistryDescriptor[];\n}\n\nexport interface FrameworkKnowledgeSourceReference {\n kind: FrameworkKnowledgeSourceReferenceKind;\n tagName: string;\n filePath: string;\n startLine?: number;\n endLine?: number;\n}\n\nexport interface FrameworkKnowledgeTopicIndexEntry {\n topicId: string;\n title: string;\n tags: string[];\n facets: string[];\n categories: string[];\n sourceReferences: FrameworkKnowledgeSourceReference[];\n referenceFiles: string[];\n skillFiles: string[];\n registryKeys: FrameworkKnowledgeRegistryName[];\n}\n\nexport interface FrameworkKnowledgeTopicIndex {\n topics: FrameworkKnowledgeTopicIndexEntry[];\n}\n\nexport interface FrameworkKnowledgeTopic {\n entry: FrameworkKnowledgeTopicIndexEntry;\n referencesByFile: Record<string, string>;\n skillsByFile: Record<string, string>;\n}\n\nexport interface FrameworkKnowledgeTopicRegistryEntry {\n topicId: string;\n title: string;\n categories: string[];\n referenceFilePath?: string;\n sourceReferenceCount: number;\n}\n\nexport interface FrameworkKnowledgeSourceTagRegistryEntry {\n referenceFilePath: string;\n skillFilePath?: string;\n extractedAt: string;\n facets: string[];\n sourceReferences: FrameworkKnowledgeSourceReference[];\n}\n\n/**\n * One compiled meta-workflow playbook, as listed in the `playbooks` registry.\n *\n * Enum-backed playbook fields (`phase`, `executor`) are\n * surfaced as plain strings here: this package has zero dependencies by\n * design, so it cannot import the `MetaWorkflow_*` enums from\n * `@wildo-ai/saas-specifications`. Consumers that need the typed contract must parse\n * the playbook JSON (see {@link FrameworkKnowledgePlaybook.playbook}) with\n * `MetaWorkflowPlaybookSchema` at their own seam — the generator has already\n * validated it, so the parse is a type-recovery step, not a trust boundary.\n */\nexport interface FrameworkKnowledgePlaybookRegistryEntry {\n ref: string;\n version: string;\n phase: string;\n /** Absent when the playbook runs no single tier — see `MetaWorkflow_Executor` (#115). */\n executor?: string;\n intent: string;\n /** App-knowledge skill ids the playbook's method delegates the technical HOW to. */\n skillRefs: string[];\n /** Payload-relative path of the compiled `playbook.json`. */\n playbookFilePath: string;\n /** Payload-relative path of the rendered `method.md`. */\n methodFilePath: string;\n /** Canonical structured authoring format used to compile this entry. */\n sourceFormat: FrameworkKnowledgePlaybookSourceFormat;\n evaluationProtocol?: {\n protocolRef: string;\n protocolVersion: number;\n filePath: string;\n };\n evaluationTreatment?: {\n definitionRef: string;\n definitionVersion: number;\n filePath: string;\n };\n structuredArtifactAction?: {\n definitionRef: string;\n definitionVersion: number;\n filePath: string;\n };\n}\n\n/**\n * Zero-dependency registry identity for one compiled assurance-authority basis.\n *\n * `ref@version` IS the identity: `version` is the declared compatibility generation. The three\n * content digests this carried (basis, source revision, artifact bytes) were removed 2026-08-27 —\n * they compared the compiled payload against a registry that ships in the same payload, and the\n * basis digest additionally forced every consuming application to re-accept its controls on any\n * engine byte movement (`.claude/rules/one-source-of-truth.md`).\n */\nexport interface FrameworkKnowledgeAssuranceAuthorityBasisRegistryEntry {\n ref: string;\n version: number;\n sourceRevisionRef: string;\n filePath: string;\n /**\n * The rights-classified WILDO-objective → external-source mapping DERIVED from this basis (#266).\n *\n * Beside the basis rather than in its own channel because it is a projection of exactly these\n * bytes: derived in the same pass, from the same value, so it cannot describe a different basis\n * than the one it ships with. A separate channel would be free to disagree, and a mapping is read\n * precisely by people who cannot check it.\n *\n * OPTIONAL for the same reason `rulesDirectory` is: a payload generated before this existed carries\n * none, and a required field would make every one of them unloadable to fix a delivery gap.\n */\n externalFrameworkMappingFilePath?: string;\n}\n\n/** Portable authority-basis bytes; consumers recover the typed assurance contract at their semantic boundary. */\nexport interface FrameworkKnowledgeAssuranceAuthorityBasis {\n entry: FrameworkKnowledgeAssuranceAuthorityBasisRegistryEntry;\n basis: unknown;\n bytes: Uint8Array;\n}\n\n/** Exact JSON artifact bytes plus their parsed zero-dependency projection. */\nexport interface FrameworkKnowledgeJsonArtifact<TValue> {\n value: TValue;\n bytes: Uint8Array;\n}\n\n/**\n * Hydrated playbook returned by `getFrameworkKnowledgePlaybook(ref)`.\n */\nexport interface FrameworkKnowledgePlaybook {\n entry: FrameworkKnowledgePlaybookRegistryEntry;\n /**\n * Parsed compiled `playbook.json` — schema-valid `MetaWorkflowPlaybook`\n * content (with `method.guidance` inlined from the rendered `method.md`).\n * Typed `unknown` because this package cannot depend on\n * `@wildo-ai/saas-specifications`; parse with `MetaWorkflowPlaybookSchema` to\n * recover the typed contract.\n */\n playbook: unknown;\n /** Exact compiled `playbook.json` bytes used for source provenance. */\n playbookBytes: Uint8Array;\n /** Rendered `method.md` prose (same content as `playbook.method.guidance`). */\n methodMarkdown: string;\n /** Exact rendered `method.md` bytes used for source provenance. */\n methodBytes: Uint8Array;\n /** Exact compiled protocol bytes and parsed value, absent for contained JSON-v1 entries. */\n evaluationProtocol: {\n value: unknown;\n bytes: Uint8Array;\n } | null;\n /** Exact compiled treatment bytes and parsed value, absent for contained JSON-v1 entries. */\n evaluationTreatment: {\n value: unknown;\n bytes: Uint8Array;\n } | null;\n /** Exact compiled structured-artifact Action bytes, when the playbook declares one. */\n structuredArtifactAction: {\n value: unknown;\n bytes: Uint8Array;\n } | null;\n}\n\nexport interface FrameworkKnowledgeRegistryBase<TName extends FrameworkKnowledgeRegistryName, TEntry> {\n name: TName;\n metadata?: Record<string, unknown>;\n entries: Record<string, TEntry>;\n}\n\nexport type FrameworkKnowledgeSourceTagRegistry = FrameworkKnowledgeRegistryBase<\n FrameworkKnowledgeRegistryName.SOURCE_TAGS,\n FrameworkKnowledgeSourceTagRegistryEntry\n>;\n\nexport type FrameworkKnowledgeTopicRegistry = FrameworkKnowledgeRegistryBase<\n FrameworkKnowledgeRegistryName.FRAMEWORK_TOPICS,\n FrameworkKnowledgeTopicRegistryEntry\n>;\n\nexport type FrameworkKnowledgePlaybookRegistry = FrameworkKnowledgeRegistryBase<\n FrameworkKnowledgeRegistryName.PLAYBOOKS,\n FrameworkKnowledgePlaybookRegistryEntry\n>;\n\nexport type FrameworkKnowledgeAssuranceAuthorityBasisRegistry = FrameworkKnowledgeRegistryBase<\n FrameworkKnowledgeRegistryName.ASSURANCE_AUTHORITY_BASES,\n FrameworkKnowledgeAssuranceAuthorityBasisRegistryEntry\n>;\n\nexport interface FrameworkKnowledgeRegistryMap {\n [FrameworkKnowledgeRegistryName.SOURCE_TAGS]: FrameworkKnowledgeSourceTagRegistry;\n [FrameworkKnowledgeRegistryName.FRAMEWORK_TOPICS]: FrameworkKnowledgeTopicRegistry;\n [FrameworkKnowledgeRegistryName.PLAYBOOKS]: FrameworkKnowledgePlaybookRegistry;\n [FrameworkKnowledgeRegistryName.ASSURANCE_AUTHORITY_BASES]: FrameworkKnowledgeAssuranceAuthorityBasisRegistry;\n}\n\nexport type FrameworkKnowledgeRegistry = FrameworkKnowledgeRegistryMap[FrameworkKnowledgeRegistryName];\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.assemble-verify/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;CAoCrB,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.assemble-verify/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;CAoCrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.assemble-verify/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,uoEAAuoE;IACjpE,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE;KACtE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,YAAY,EAAE;KAC3B;IACD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,gBAAgB;YAChB,gBAAgB;YAChB,iBAAiB;YACjB,iCAAiC;SAClC;KACF;IACD,UAAU,EAAE,mBAAmB;IAC/B,UAAU,EAAE,gBAAgB;IAC5B;;;;;;;OAOG;IACH,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE;QACb,eAAe,EAAE,OAAO;KACzB;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for topic 7 — the app-wide assemble/verify step.\n *\n * REBUILT rather than restored (issue #147). A playbook of this ref existed from\n * 2026-07-10 and was deleted on 2026-08-25 with the app-creation digest\n * demolition; the question it asked went with it, even though answering \"does\n * the built application assemble?\" needs no digests. Restoring it verbatim was\n * rejected: it declared the retired `COMPOSITE` executor, depended on two\n * families the demolition removed (`foundation-manifest`, `build-verification`),\n * and its method was explicit that NONE of its checks were actually run by the\n * runner — `// TODO CLI COMMAND:` placeholders and \"companion affordances that\n * do not exist yet\".\n *\n * What is different now is that the checks RUN. `DETERMINISTIC_CLI` is honoured\n * by the runtime as of #147, and the check refs below resolve through the same\n * closed `APPLICATION_CODING_TASK_VERIFICATION_CATALOG` a coding task uses, so\n * an unknown ref is refused rather than silently skipped.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.assemble-verify\",\n \"version\": \"0.3.0\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up assemble & verify — the FINAL bottom-up step and the capstone of the build: the pivot from having BUILT the application (the decompose / dispatch / scale loop authored its modules, resources, config and integrations) to answering ONE mechanical question — does the built application ASSEMBLE? It runs the deterministic verification set over the application's four workspace packages (specifications, shared-lib, backend-api, frontend) OUTSIDE any coding agent, and reports a per-check outcome. It fixes NOTHING: a failure is surfaced for a refinement re-dispatch, which is a different playbook's job, and it authors no schemas and writes no code. Deliberately DISTINCT from the refinement phase's coverage audit, which also binds topic 7 but asks a SEMANTIC question (does the built app match the intent — specs diffed against introspected reality). This playbook never diffs intent against reality; if you are judging coverage you are in the refinement lane. Scope honesty for v0.3: the check set is the whole-application TYPECHECK across the four packages — the question 'does it compile as one program', which no per-task check can answer because the dispatch lane typechecks only the package a task mutated — PLUS the schema-plan drift gate (`check:schema-plan-in-sync`), which asks whether the modelled resources have migrations behind them. The second is not a variant of the first: on a PostgreSQL-backed application a table exists only because a migration built it, so a resource whose migration was never generated compiles green in all four packages and then refuses to boot on `postgresql_table_schema_mismatch` — invisible to a typecheck, because no type in the program knows whether a table exists. It is safe on MongoDB applications and on unbuilt trees because it resolves three outcomes (not adopted / could-not-ask / decided) rather than reading an exit code. A boot probe, the whole test suite, `wildo config validate` and OpenAPI/docs regeneration are NOT in this set: each needs a running stack or a companion affordance that does not exist, and declaring them here without running them is exactly what made the deleted version of this playbook inert.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"build-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"build-plan\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"journey-status\",\n \"journey-report\",\n \"journey-approve\",\n \"application-database-migrations\"\n ]\n },\n \"executor\": \"deterministic_cli\",\n \"approval\": \"approve_result\",\n /*\n * Token and model-call ceilings are OMITTED, not zeroed.\n *\n * Every field here is optional, and this tier makes no model calls at all — it runs typechecks in\n * a subprocess. Declaring `maxModelCalls: 0` is rejected by the schema (positive only), and\n * declaring `1` to satisfy it would state a ceiling nobody chose for a resource that is never\n * consumed. What IS bounded is wall-clock and how many times the step may run.\n */\n \"budget\": {\n \"maxRuns\": 40,\n \"maxDurationMs\": 3600000\n },\n \"onFailure\": \"keep_and_flag\",\n} as const;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.assemble-verify/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,uoEAAuoE;IACjpE,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE;KACtE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,YAAY,EAAE;KAC3B;IACD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,gBAAgB;YAChB,gBAAgB;YAChB,iBAAiB;YACjB,iCAAiC;SAClC;KACF;IACD,UAAU,EAAE,mBAAmB;IAC/B,UAAU,EAAE,gBAAgB;IAC5B;;;;;;;OAOG;IACH,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE;QACb,eAAe,EAAE,OAAO;KACzB;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for topic 7 — the app-wide assemble/verify step.\n *\n * REBUILT rather than restored (issue #147). A playbook of this ref existed from\n * 2026-07-10 and was deleted on 2026-08-25 with the app-creation digest\n * demolition; the question it asked went with it, even though answering \"does\n * the built application assemble?\" needs no digests. Restoring it verbatim was\n * rejected: it declared the retired `COMPOSITE` executor, depended on two\n * families the demolition removed (`foundation-manifest`, `build-verification`),\n * and its method was explicit that NONE of its checks were actually run by the\n * runner — `// TODO CLI COMMAND:` placeholders and \"companion affordances that\n * do not exist yet\".\n *\n * What is different now is that the checks RUN. `DETERMINISTIC_CLI` is honoured\n * by the runtime as of #147, and the check refs below resolve through the same\n * closed `APPLICATION_CODING_TASK_VERIFICATION_CATALOG` a coding task uses, so\n * an unknown ref is refused rather than silently skipped.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.assemble-verify\",\n \"version\": \"0.3.0\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up assemble & verify — the FINAL bottom-up step and the capstone of the build: the pivot from having BUILT the application (the decompose / dispatch / scale loop authored its modules, resources, config and integrations) to answering ONE mechanical question — does the built application ASSEMBLE? It runs the deterministic verification set over the application's four workspace packages (specifications, shared-lib, backend-api, frontend) OUTSIDE any coding agent, and reports a per-check outcome. It fixes NOTHING: a failure is surfaced for a refinement re-dispatch, which is a different playbook's job, and it authors no schemas and writes no code. Deliberately DISTINCT from the refinement phase's coverage audit, which also binds topic 7 but asks a SEMANTIC question (does the built app match the intent — specs diffed against introspected reality). This playbook never diffs intent against reality; if you are judging coverage you are in the refinement lane. Scope honesty for v0.3: the check set is the whole-application TYPECHECK across the four packages — the question 'does it compile as one program', which no per-task check can answer because the dispatch lane typechecks only the package a task mutated — PLUS the schema-plan drift gate (`check:schema-plan-in-sync`), which asks whether the modelled resources have migrations behind them. The second is not a variant of the first: on a PostgreSQL-backed application a table exists only because a migration built it, so a resource whose migration was never generated compiles green in all four packages and then refuses to boot on `postgresql_table_schema_mismatch` — invisible to a typecheck, because no type in the program knows whether a table exists. It is safe on MongoDB applications and on unbuilt trees because it resolves three outcomes (not adopted / could-not-ask / decided) rather than reading an exit code. A boot probe, the whole test suite, `wildo config validate` and OpenAPI/docs regeneration are NOT in this set: each needs a running stack or a companion affordance that does not exist, and declaring them here without running them is exactly what made the deleted version of this playbook inert.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"build-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"build-plan\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"journey-status\",\n \"journey-report\",\n \"journey-approve\",\n \"application-database-migrations\"\n ]\n },\n \"executor\": \"deterministic_cli\",\n \"approval\": \"approve_result\",\n /*\n * Token and model-call ceilings are OMITTED, not zeroed.\n *\n * Every field here is optional, and this tier makes no model calls at all — it runs typechecks in\n * a subprocess. Declaring `maxModelCalls: 0` is rejected by the schema (positive only), and\n * declaring `1` to satisfy it would state a ceiling nobody chose for a resource that is never\n * consumed. What IS bounded is wall-clock and how many times the step may run.\n */\n \"budget\": {\n \"maxRuns\": 40,\n \"maxDurationMs\": 3600000\n },\n \"onFailure\": \"keep_and_flag\",\n} as const;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.build-decompose/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CrB,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.build-decompose/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.build-decompose/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,qvDAAqvD;IAC/vD,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE;KACvE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,aAAa,EAAE;QAC3B,EAAE,QAAQ,EAAE,SAAS,EAAE;QACvB,EAAE,QAAQ,EAAE,cAAc,EAAE;QAC5B,EAAE,QAAQ,EAAE,gBAAgB,EAAE;QAC9B,EAAE,QAAQ,EAAE,gBAAgB,EAAE;QAC9B,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,8SAA8S,EAAE;KACnV;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,YAAY;YACtB,WAAW,EAAE,wCAAwC;YACrD,aAAa,EAAE,+5FAA+5F;SAC/6F;KACF;IACD,QAAQ,EAAE;QACR,kBAAkB,EAAE,gfAAgf;QACpgB,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,eAAe,CAAC;QACtD,WAAW,EAAE;YACX,gBAAgB;YAChB,qBAAqB;YACrB,uBAAuB;YACvB,2BAA2B;YAC3B,wBAAwB;YACxB,sBAAsB;YACtB,sBAAsB;YACtB,sBAAsB;YACtB,qBAAqB;YACrB,iCAAiC;SAClC;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.build-decompose\",\n \"version\": \"0.2.1\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up build decomposition — the FIRST build-execution playbook, the pivot from planning the domain (the domain-plan) to decomposing the BUILD. Reads the approved domain-plan (the ModuleBusinessSemantics module drafts + per-module resource inventory), the relationship drafts inside it (the inter-resource relationship intents), and the definition set (roadmap for phasing, requirements + feature-drafts for task-brief context), and the PLACEMENT PLAN (where each settings destination, resource operation and view sits in the shell, decided upstream), and DECOMPOSES the build work into an ordered set of coding-agent tasks. Each task is bound onto (a) the 7-topic functional taxonomy (configure_application_foundation -> model_domain_graph -> define_interaction_semantics -> shape_user_experience -> extend_application -> connect_runtime_and_external_capabilities -> assemble_verify_and_iterate) and (b) the app-knowledge skill catalog (each task names the skill(s) that carry its technical HOW). The tasks follow the per-resource inner order (schema -> config -> ui-behavior -> spec, then operations / interaction semantics, then UX, then extensions, then integrations), with companion-owned generation steps (labels / i18n, email templates, seeds) interleaved at the points their inputs exist. This playbook PRODUCES the ordered task graph (a build-plan artifact); it does NOT dispatch tasks to coding agents (that is the dispatch-orchestration playbook downstream), does NOT capture change-sets / single-flight-lock / verify, and does NOT solve multi-agent scale or interleaving. It authors no schemas and generates no code. v1 scaffold methodology — a typed build-task-graph contract, a dependency-DAG solver, and a collection validator are a later depth phase, not here.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"domain-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"domain-plan\" },\n { \"family\": \"roadmap\" },\n { \"family\": \"requirements\" },\n { \"family\": \"feature-drafts\" },\n { \"family\": \"placement-plan\" },\n { \"family\": \"vision-brief\", \"//\": \"Carries the landed COMPLIANCE POSTURE and constraints. Measured 2026-09-04 (#309): without this input the decomposer, given a landed GDPR/ePrivacy posture, produced ZERO posture-derived tasks — the obligations lived in a family the brief never carried. No intent slice: the posture must arrive whole.\" }\n ],\n \"outputs\": [\n {\n \"family\": \"build-plan\",\n \"schemaRef\": \"saas-specifications:BuildPlanTaskGraph\",\n \"description\": \"The build decomposition — an ORDERED set of coding-agent build tasks (a task graph) that turns the approved domain plan into a sequence of buildable units. Each task carries: a stable task ref, the target it builds (a module, a resource + one of its build stages, a relationship, a companion-generation step, a shell-surface placement config), the ONE functional topic it belongs to (a real MetaWorkflow_FunctionalTopic value), the skill(s) that carry its technical HOW (real folders from the app-knowledge skill catalog, resolved via the skills router), and its ordering intent (which tasks must precede it — expressed as prose prerequisite references, NOT a solved DAG). The ordering respects two axes: (a) the cross-app topic dependency edges (model_domain_graph before define_interaction_semantics before app-level shape_user_experience before extend_application before connect_runtime_and_external_capabilities; foundation and assemble/verify are owned by sibling playbooks) and (b) the per-resource stage sequence schema -> config -> ui-behavior -> spec — which deliberately CROSSES topics (ui-behavior is shape_user_experience; the spec is a model_domain_graph documentation capstone ordered last) and so is not monotonic on axis (a); a roadmap-driven MVP-first preference breaks ties within a band. TYPED since the flexible-intelligence Block 3: the `_core` build-task-graph contract (`BuildPlanTaskGraph` — `tasks[]` with a stable `taskRef`, a closed `BuildPlanTaskTargetKind` target (MODULE / RESOURCE_STAGE / RELATIONSHIP / COMPANION_GENERATION_STEP / SHELL_PLACEMENT), exactly one `functionalTopic`, `skillRefs`, DECLARED `prerequisiteTaskRefs` the host resolves for readiness, and traceability `servesRefs`) is the family schema; the provider answers the strict `BuildPlanTaskGraphGeneration` shape and the trusted runtime stamps refs and version. The task never carries paths, commands, prompts or runtime controls — the dispatch host derives mutation scope and verification from the target kind. `validateBuildPlanTaskGraph` is the deterministic validator. Two things are HARD FLOORS: a prerequisite cycle, and a resource stage that declares its predecessor stage in the SAME graph without depending on it — dispatch order comes solely from `prerequisiteTaskRefs`, so an undeclared stage edge lets the host author a resources-config for a schema that has not landed. A predecessor stage that is ABSENT from the plan is an authoring WARNING instead, because a plan may legitimately author one stage of a resource the tree already carries; the coherence reviewer checklist (`build-plan-coherent`, in the method) remains the semantic check and the creator's approve_result review the trust floor. Consumed by the bottom-up DISPATCH-ORCHESTRATION playbook (which single-flight-dispatches each task through the coding-agent contract) and the SCALE playbook (which parallelises + interleaves the companion generation steps) — both downstream of this decomposition.\"\n }\n ],\n \"method\": {\n \"//contextSources\": \"WORKSPACE_TRUTH — this playbook plans against CODE, not against definition artifacts: it needs real module ids and per-resource present schema fields, or it invents ids that do not resolve and every task it emits fails at dispatch. SKILL_CATALOG — its method routes THROUGH the skills router and binds every emitted task to a skill folder, so it must choose from the real set; measured 2026-08-27 it was choosing from recall, and a dangling skill ref is a task the dispatch playbook cannot run.\",\n \"contextSources\": [\"workspace_truth\", \"skill_catalog\"],\n \"skillRefs\": [\n \"journey-status\",\n \"resource-add-module\",\n \"resource-add-resource\",\n \"resource-schema-authoring\",\n \"resource-config-wiring\",\n \"resource-ui-behavior\",\n \"spec-resource-update\",\n \"module-relationships\",\n \"module-registration\",\n \"application-database-migrations\"\n ]\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.build-decompose/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,qvDAAqvD;IAC/vD,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE;KACvE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,aAAa,EAAE;QAC3B,EAAE,QAAQ,EAAE,SAAS,EAAE;QACvB,EAAE,QAAQ,EAAE,cAAc,EAAE;QAC5B,EAAE,QAAQ,EAAE,gBAAgB,EAAE;QAC9B,EAAE,QAAQ,EAAE,gBAAgB,EAAE;QAC9B,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,8SAA8S,EAAE;KACnV;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,YAAY;YACtB,WAAW,EAAE,wCAAwC;YACrD,aAAa,EAAE,+5FAA+5F;SAC/6F;KACF;IACD,QAAQ,EAAE;QACR,kBAAkB,EAAE,gfAAgf;QACpgB,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,eAAe,CAAC;QACtD,WAAW,EAAE;YACX,gBAAgB;YAChB,qBAAqB;YACrB,uBAAuB;YACvB,2BAA2B;YAC3B,wBAAwB;YACxB,sBAAsB;YACtB,sBAAsB;YACtB,sBAAsB;YACtB,qBAAqB;YACrB,iCAAiC;SAClC;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.build-decompose\",\n \"version\": \"0.2.1\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up build decomposition — the FIRST build-execution playbook, the pivot from planning the domain (the domain-plan) to decomposing the BUILD. Reads the approved domain-plan (the ModuleBusinessSemantics module drafts + per-module resource inventory), the relationship drafts inside it (the inter-resource relationship intents), and the definition set (roadmap for phasing, requirements + feature-drafts for task-brief context), and the PLACEMENT PLAN (where each settings destination, resource operation and view sits in the shell, decided upstream), and DECOMPOSES the build work into an ordered set of coding-agent tasks. Each task is bound onto (a) the 7-topic functional taxonomy (configure_application_foundation -> model_domain_graph -> define_interaction_semantics -> shape_user_experience -> extend_application -> connect_runtime_and_external_capabilities -> assemble_verify_and_iterate) and (b) the app-knowledge skill catalog (each task names the skill(s) that carry its technical HOW). The tasks follow the per-resource inner order (schema -> config -> ui-behavior -> spec, then operations / interaction semantics, then UX, then extensions, then integrations), with companion-owned generation steps (labels / i18n, email templates, seeds) interleaved at the points their inputs exist. This playbook PRODUCES the ordered task graph (a build-plan artifact); it does NOT dispatch tasks to coding agents (that is the dispatch-orchestration playbook downstream), does NOT capture change-sets / single-flight-lock / verify, and does NOT solve multi-agent scale or interleaving. It authors no schemas and generates no code. v1 scaffold methodology — a typed build-task-graph contract, a dependency-DAG solver, and a collection validator are a later depth phase, not here.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"domain-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"domain-plan\" },\n { \"family\": \"roadmap\" },\n { \"family\": \"requirements\" },\n { \"family\": \"feature-drafts\" },\n { \"family\": \"placement-plan\" },\n { \"family\": \"vision-brief\", \"//\": \"Carries the landed COMPLIANCE POSTURE and constraints. Measured 2026-09-04 (#309): without this input the decomposer, given a landed GDPR/ePrivacy posture, produced ZERO posture-derived tasks — the obligations lived in a family the brief never carried. No intent slice: the posture must arrive whole.\" }\n ],\n \"outputs\": [\n {\n \"family\": \"build-plan\",\n \"schemaRef\": \"saas-specifications:BuildPlanTaskGraph\",\n \"description\": \"The build decomposition — an ORDERED set of coding-agent build tasks (a task graph) that turns the approved domain plan into a sequence of buildable units. Each task carries: a stable task ref, the target it builds (a module, a resource + one of its build stages, a relationship, a companion-generation step, a shell-surface placement config), the ONE functional topic it belongs to (a real MetaWorkflow_FunctionalTopic value), the skill(s) that carry its technical HOW (real folders from the app-knowledge skill catalog, resolved via the skills router), and its ordering intent (which tasks must precede it — expressed as prose prerequisite references, NOT a solved DAG). The ordering respects two axes: (a) the cross-app topic dependency edges (model_domain_graph before define_interaction_semantics before app-level shape_user_experience before extend_application before connect_runtime_and_external_capabilities; foundation and assemble/verify are owned by sibling playbooks) and (b) the per-resource stage sequence schema -> config -> ui-behavior -> spec — which deliberately CROSSES topics (ui-behavior is shape_user_experience; the spec is a model_domain_graph documentation capstone ordered last) and so is not monotonic on axis (a); a roadmap-driven MVP-first preference breaks ties within a band. TYPED since the flexible-intelligence Block 3: the `_core` build-task-graph contract (`BuildPlanTaskGraph` — `tasks[]` with a stable `taskRef`, a closed `BuildPlanTaskTargetKind` target (MODULE / RESOURCE_STAGE / RELATIONSHIP / COMPANION_GENERATION_STEP / SHELL_PLACEMENT), exactly one `functionalTopic`, `skillRefs`, DECLARED `prerequisiteTaskRefs` the host resolves for readiness, and traceability `servesRefs`) is the family schema; the provider answers the strict `BuildPlanTaskGraphGeneration` shape and the trusted runtime stamps refs and version. The task never carries paths, commands, prompts or runtime controls — the dispatch host derives mutation scope and verification from the target kind. `validateBuildPlanTaskGraph` is the deterministic validator. Two things are HARD FLOORS: a prerequisite cycle, and a resource stage that declares its predecessor stage in the SAME graph without depending on it — dispatch order comes solely from `prerequisiteTaskRefs`, so an undeclared stage edge lets the host author a resources-config for a schema that has not landed. A predecessor stage that is ABSENT from the plan is an authoring WARNING instead, because a plan may legitimately author one stage of a resource the tree already carries; the coherence reviewer checklist (`build-plan-coherent`, in the method) remains the semantic check and the creator's approve_result review the trust floor. Consumed by the bottom-up DISPATCH-ORCHESTRATION playbook (which single-flight-dispatches each task through the coding-agent contract) and the SCALE playbook (which parallelises + interleaves the companion generation steps) — both downstream of this decomposition.\"\n }\n ],\n \"method\": {\n \"//contextSources\": \"WORKSPACE_TRUTH — this playbook plans against CODE, not against definition artifacts: it needs real module ids and per-resource present schema fields, or it invents ids that do not resolve and every task it emits fails at dispatch. SKILL_CATALOG — its method routes THROUGH the skills router and binds every emitted task to a skill folder, so it must choose from the real set; measured 2026-08-27 it was choosing from recall, and a dangling skill ref is a task the dispatch playbook cannot run.\",\n \"contextSources\": [\"workspace_truth\", \"skill_catalog\"],\n \"skillRefs\": [\n \"journey-status\",\n \"resource-add-module\",\n \"resource-add-resource\",\n \"resource-schema-authoring\",\n \"resource-config-wiring\",\n \"resource-ui-behavior\",\n \"spec-resource-update\",\n \"module-relationships\",\n \"module-registration\",\n \"application-database-migrations\"\n ]\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.build-dispatch/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCrB,CAAC;AAEX;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsKW,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.build-dispatch/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCrB,CAAC;AAEX;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsKW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.build-dispatch/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,u/EAAu/E;IACjgF,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE;KACtE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,YAAY,EAAE;KAC3B;IACD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,gBAAgB;YAChB,iBAAiB;YACjB,aAAa;YACb,gBAAgB;SACjB;KACF;IACD,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,mFAAmF;IACnF,gFAAgF;IAChF,2EAA2E;IAC3E,mFAAmF;IACnF,qFA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B,EAAE;YACpI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,iBAAiB,EAAE,MAAM,EAAE,+BAA+B,CAAC,iBAAiB,EAAE;YACtI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type { MetaWorkflowEvaluationTreatmentSource } from '@wildo-ai/saas-backend-lib';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_HardFloorPosture,\n} from '@wildo-ai/saas-models/meta-workflows';\n\n/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge the generic assessment loop composes. Since the build\n * vertical joined the private assessment episode, this playbook ALSO declares\n * the assessment policy, episode target, bounds and the semantic evaluation\n * Treatment that judge ONE dispatched build-plan task's worktree change-set\n * (the `dispatch-outcome-sound` rubric below, made operational).\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.build-dispatch\",\n \"version\": \"0.1.0\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up build dispatch — the SECOND build-execution playbook, the pivot from DECOMPOSING the build (the build-plan task graph) to DISPATCHING it: turning one ordered task into an actually-run, verified coding-agent run under the D4 dispatch contract. Reads the approved TYPED build-plan (`BuildPlanTaskGraph` — each task carries a closed target kind, ONE MetaWorkflow_FunctionalTopic, its skill refs, and DECLARED prerequisite task refs) and the current journey state, selects the NEXT READY task (`selectReadyBuildPlanTasks`: every declared prerequisite has landed — resolved by the host, never inferred from prose; SINGLE-FLIGHT — exactly ONE workspace-mutating run at a time), and dispatches exactly that typed task: (1) the runner builds the context pack (task brief + the task's skill pointers + the relevant journey/definition artifacts + introspected app reality + repo paths); (2) it runs ONE prompt turn against the coding agent over the Agent Client Protocol, in a session rooted at the app workspace (cwd = app root, so CLAUDE.md / .claude skills load naturally), answering the agent's permission requests within the execution profile's declared ceiling and refusing anything above it or outside the task's mutation scope; (3) it captures the change-set around the run (git baseline/post-run worktree snapshots → per-file attribution → a structured GitChangeSetCapture recorded on the task row); (4) it runs the VERIFY gate OUTSIDE the coding agent (a deterministic typecheck the runner maps onto the dispatch verification hook — pnpm exec tsc --noEmit — the trust-but-verify floor); (5) it records the result + applies the onFailure disposition (keep_and_flag: a failed/timed-out run keeps its captured change-set flagged for human triage, never a silent half-applied state). Then loop to the next ready task. This playbook PRODUCES the per-task dispatch contract + execution semantics; it authors no schemas and generates no code (the coding agent does that at dispatch time). It does NOT decompose the plan (that is the build-decompose playbook, upstream — it owns the task graph) and does NOT solve multi-agent SCALE — parallelism across several coding agents, the concurrency schedule, and interleaving the companion generation steps at scale are the downstream scale playbook. v1 scaffold: the single-flight dispatch contract; multi-agent parallelism, a run-completion serializer, and a revert_changeset failure path are later phases (revert is a MUTATING git op outside the read-only change-set carve-out, deliberately deferred).\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"build-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"build-plan\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"journey-status\",\n \"journey-approve\",\n \"journey-run\",\n \"journey-report\"\n ]\n },\n \"executor\": \"coding_agent\",\n \"approval\": \"approve_before\",\n // `maxRuns` is the dispatch-orchestration run budget (one task per run, across the\n // whole build); the four explicit ceilings below are the WORKING-episode safety\n // envelope the host turns into the Driver's per-episode resource authority\n // (`createApplicationPlaybookWorkingCeiling` refuses a working episode without all\n // four). Found by the Block-4 integration proof: the playbook had been promoted to a\n // working episode without them, so its live admission failed at `prepare()`.\n // Sized as stops against loops, not as cost control: three iterations, each ONE\n // structured-semantic evaluation; a coding run is not a model call of this ceiling.\n \"budget\": {\n \"maxRuns\": 30,\n \"maxInputTokens\": 15000000,\n \"maxOutputTokens\": 1000000,\n \"maxModelCalls\": 24,\n \"maxDurationMs\": 3600000\n },\n \"onFailure\": \"keep_and_flag\",\n} as const;\n\n/**\n * The `dispatch-outcome-sound` rubric as an operational semantic evaluation\n * Treatment. The hard floor is DETERMINISTIC and host-computed from the sealed\n * change-set evidence (the coding host's disposition, mutation-scope assessment\n * and verification gate), never from model output; the criteria below are the\n * reviewer pass OVER that floor. Evidence requirements bind the accepted\n * current-horizon requirements the task serves; the change-set itself enters\n * the evaluation as the episode's working-revision context source.\n */\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/build-task-dispatch',\n // v2 (2026-08-19): the verified-change-set evidence requirement moved to v2 (its subject changed).\n definitionVersion: 2,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/build-task-dispatch',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [\n MetaWorkflow_EvaluationVerdict.GAP,\n MetaWorkflow_EvaluationVerdict.INDETERMINATE,\n MetaWorkflow_EvaluationVerdict.CONCERN,\n MetaWorkflow_EvaluationVerdict.PASS,\n ],\n aggregationPolicyRef: 'application-creation:aggregation/worst-build-task-dispatch-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/build-task-verified-change-set',\n criterionVersion: 1,\n instruction:\n 'Verify the sealed worktree change-set evidence of the dispatched build task. PASS only when the coding host recorded a working result, the mutation-scope assessment allowed every attributed path, and every required verification check succeeded. Never infer verification from the agent\\'s own narrative, and never treat an absent change-set as a passed task.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/build-task-verified-change-set',\n // v2 (2026-08-19): the evidence subject moved from the retired readiness receipt to the\n // current-horizon requirements the task serves.\n requirementVersion: 2,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n // The accepted current-horizon requirements the dispatched task serves; the change-set itself enters\n // the judgment as the working-subject source (it is not accepted knowledge and cannot be projected).\n subjectRef: 'application-creation:definition-set/requirements-current-horizon',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/current-horizon-requirements',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'A working result was recorded, the change-set stayed inside the declared mutation scope and the verification gate passed.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The gate passed, but the evidence shows a verification check the reviewer cannot independently confirm.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'No change-set was recorded, the run failed, a path escaped the mutation scope, or a required verification check failed.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The change-set evidence is absent, malformed or does not bind the dispatched task.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/build-task-accomplished-in-scope',\n criterionVersion: 1,\n instruction:\n 'Assess whether the attributed change-set actually implements the dispatched task\\'s target and stage (a schema task adds the persisted shape, a ui-behavior task adds field displays, a spec task documents the resource), stays within the task\\'s module/resource/stage, and is cleanly attributable to the run (RUN_EXCLUSIVE / APPEARED_DURING_RUN). Files that were already dirty at the dispatch baseline are review-required and must not be counted against the run. Do not re-decompose the plan, do not author code yourself, and do not reward edits sprawling into unrelated modules.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/build-task-serves-requirements',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/requirements-vision-market',\n minCount: 1,\n maxCount: 2,\n coveragePolicyRef: 'application-creation:evidence-policy/all-current-horizon-requirements',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The change-set advances exactly the dispatched target/stage, inside its scope, with clean attribution.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The task is advanced but the change-set sprawls beyond its module/resource/stage or its attribution is partly ambiguous.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The change-set does not advance the dispatched target, or is empty on a task that should have authored files.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The dispatched task or its change-set cannot be identified from the evidence.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/build-task-dispatch',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: {\n outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate',\n outputContractVersion: 1,\n },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/build-task-dispatch',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/build-task-change-set-recorded'],\n hardFloorRefs: ['application-creation:hard-floor/build-task-verified-change-set'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/application-worktree-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/build-task-dispatch',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-build-task-dispatch-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/build-task-verified-change-set',\n evidenceRequirementRefs: ['application-creation:evidence-requirement/build-task-verified-change-set'],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/build-task-dispatch-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-build-task-change-set',\n riskClassRef: 'application-creation:risk/application-worktree-horizon-acceptance',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: [\n 'application-creation:evidence-requirement/build-task-verified-change-set',\n 'application-creation:evidence-requirement/build-task-serves-requirements',\n ],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/build-task-dispatch',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.build-dispatch/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,u/EAAu/E;IACjgF,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE;KACtE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,YAAY,EAAE;KAC3B;IACD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,gBAAgB;YAChB,iBAAiB;YACjB,aAAa;YACb,gBAAgB;SACjB;KACF;IACD,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,mFAAmF;IACnF,gFAAgF;IAChF,2EAA2E;IAC3E,mFAAmF;IACnF,qFAAqF;IACrF,6EAA6E;IAC7E,gFAAgF;IAChF,oFAAoF;IACpF,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE;QACb,gBAAgB,EAAE,QAAQ;QAC1B,iBAAiB,EAAE,OAAO;QAC1B,eAAe,EAAE,EAAE;QACnB,eAAe,EAAE,OAAO;KACzB;IACD,WAAW,EAAE,eAAe;CACpB,CAAC;AAEX;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,+D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AAC","sourcesContent":["import type { MetaWorkflowEvaluationTreatmentSource } from '@wildo-ai/saas-backend-lib';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_HardFloorPosture,\n} from '@wildo-ai/saas-models/meta-workflows';\n\n/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge the generic assessment loop composes. Since the build\n * vertical joined the private assessment episode, this playbook ALSO declares\n * the assessment policy, episode target, bounds and the semantic evaluation\n * Treatment that judge ONE dispatched build-plan task's worktree change-set\n * (the `dispatch-outcome-sound` rubric below, made operational).\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.build-dispatch\",\n \"version\": \"0.1.0\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up build dispatch — the SECOND build-execution playbook, the pivot from DECOMPOSING the build (the build-plan task graph) to DISPATCHING it: turning one ordered task into an actually-run, verified coding-agent run under the D4 dispatch contract. Reads the approved TYPED build-plan (`BuildPlanTaskGraph` — each task carries a closed target kind, ONE MetaWorkflow_FunctionalTopic, its skill refs, and DECLARED prerequisite task refs) and the current journey state, selects the NEXT READY task (`selectReadyBuildPlanTasks`: every declared prerequisite has landed — resolved by the host, never inferred from prose; SINGLE-FLIGHT — exactly ONE workspace-mutating run at a time), and dispatches exactly that typed task: (1) the runner builds the context pack (task brief + the task's skill pointers + the relevant journey/definition artifacts + introspected app reality + repo paths); (2) it runs ONE prompt turn against the coding agent over the Agent Client Protocol, in a session rooted at the app workspace (cwd = app root, so CLAUDE.md / .claude skills load naturally), answering the agent's permission requests within the execution profile's declared ceiling and refusing anything above it or outside the task's mutation scope; (3) it captures the change-set around the run (git baseline/post-run worktree snapshots → per-file attribution → a structured GitChangeSetCapture recorded on the task row); (4) it runs the VERIFY gate OUTSIDE the coding agent (a deterministic typecheck the runner maps onto the dispatch verification hook — pnpm exec tsc --noEmit — the trust-but-verify floor); (5) it records the result + applies the onFailure disposition (keep_and_flag: a failed/timed-out run keeps its captured change-set flagged for human triage, never a silent half-applied state). Then loop to the next ready task. This playbook PRODUCES the per-task dispatch contract + execution semantics; it authors no schemas and generates no code (the coding agent does that at dispatch time). It does NOT decompose the plan (that is the build-decompose playbook, upstream — it owns the task graph) and does NOT solve multi-agent SCALE — parallelism across several coding agents, the concurrency schedule, and interleaving the companion generation steps at scale are the downstream scale playbook. v1 scaffold: the single-flight dispatch contract; multi-agent parallelism, a run-completion serializer, and a revert_changeset failure path are later phases (revert is a MUTATING git op outside the read-only change-set carve-out, deliberately deferred).\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"build-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"build-plan\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"journey-status\",\n \"journey-approve\",\n \"journey-run\",\n \"journey-report\"\n ]\n },\n \"executor\": \"coding_agent\",\n \"approval\": \"approve_before\",\n // `maxRuns` is the dispatch-orchestration run budget (one task per run, across the\n // whole build); the four explicit ceilings below are the WORKING-episode safety\n // envelope the host turns into the Driver's per-episode resource authority\n // (`createApplicationPlaybookWorkingCeiling` refuses a working episode without all\n // four). Found by the Block-4 integration proof: the playbook had been promoted to a\n // working episode without them, so its live admission failed at `prepare()`.\n // Sized as stops against loops, not as cost control: three iterations, each ONE\n // structured-semantic evaluation; a coding run is not a model call of this ceiling.\n \"budget\": {\n \"maxRuns\": 30,\n \"maxInputTokens\": 15000000,\n \"maxOutputTokens\": 1000000,\n \"maxModelCalls\": 24,\n \"maxDurationMs\": 3600000\n },\n \"onFailure\": \"keep_and_flag\",\n} as const;\n\n/**\n * The `dispatch-outcome-sound` rubric as an operational semantic evaluation\n * Treatment. The hard floor is DETERMINISTIC and host-computed from the sealed\n * change-set evidence (the coding host's disposition, mutation-scope assessment\n * and verification gate), never from model output; the criteria below are the\n * reviewer pass OVER that floor. Evidence requirements bind the accepted\n * current-horizon requirements the task serves; the change-set itself enters\n * the evaluation as the episode's working-revision context source.\n */\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/build-task-dispatch',\n // v2 (2026-08-19): the verified-change-set evidence requirement moved to v2 (its subject changed).\n definitionVersion: 2,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/build-task-dispatch',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [\n MetaWorkflow_EvaluationVerdict.GAP,\n MetaWorkflow_EvaluationVerdict.INDETERMINATE,\n MetaWorkflow_EvaluationVerdict.CONCERN,\n MetaWorkflow_EvaluationVerdict.PASS,\n ],\n aggregationPolicyRef: 'application-creation:aggregation/worst-build-task-dispatch-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/build-task-verified-change-set',\n criterionVersion: 1,\n instruction:\n 'Verify the sealed worktree change-set evidence of the dispatched build task. PASS only when the coding host recorded a working result, the mutation-scope assessment allowed every attributed path, and every required verification check succeeded. Never infer verification from the agent\\'s own narrative, and never treat an absent change-set as a passed task.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/build-task-verified-change-set',\n // v2 (2026-08-19): the evidence subject moved from the retired readiness receipt to the\n // current-horizon requirements the task serves.\n requirementVersion: 2,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n // The accepted current-horizon requirements the dispatched task serves; the change-set itself enters\n // the judgment as the working-subject source (it is not accepted knowledge and cannot be projected).\n subjectRef: 'application-creation:definition-set/requirements-current-horizon',\n minCount: 1,\n maxCount: 1,\n coveragePolicyRef: 'application-creation:evidence-policy/current-horizon-requirements',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'A working result was recorded, the change-set stayed inside the declared mutation scope and the verification gate passed.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The gate passed, but the evidence shows a verification check the reviewer cannot independently confirm.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'No change-set was recorded, the run failed, a path escaped the mutation scope, or a required verification check failed.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The change-set evidence is absent, malformed or does not bind the dispatched task.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/build-task-accomplished-in-scope',\n criterionVersion: 1,\n instruction:\n 'Assess whether the attributed change-set actually implements the dispatched task\\'s target and stage (a schema task adds the persisted shape, a ui-behavior task adds field displays, a spec task documents the resource), stays within the task\\'s module/resource/stage, and is cleanly attributable to the run (RUN_EXCLUSIVE / APPEARED_DURING_RUN). Files that were already dirty at the dispatch baseline are review-required and must not be counted against the run. Do not re-decompose the plan, do not author code yourself, and do not reward edits sprawling into unrelated modules.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/build-task-serves-requirements',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/requirements-vision-market',\n minCount: 1,\n maxCount: 2,\n coveragePolicyRef: 'application-creation:evidence-policy/all-current-horizon-requirements',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The change-set advances exactly the dispatched target/stage, inside its scope, with clean attribution.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The task is advanced but the change-set sprawls beyond its module/resource/stage or its attribution is partly ambiguous.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The change-set does not advance the dispatched target, or is empty on a task that should have authored files.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The dispatched task or its change-set cannot be identified from the evidence.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/build-task-dispatch',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: {\n outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate',\n outputContractVersion: 1,\n },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/build-task-dispatch',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/build-task-change-set-recorded'],\n hardFloorRefs: ['application-creation:hard-floor/build-task-verified-change-set'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/application-worktree-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/build-task-dispatch',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-build-task-dispatch-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/build-task-verified-change-set',\n evidenceRequirementRefs: ['application-creation:evidence-requirement/build-task-verified-change-set'],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/build-task-dispatch-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-build-task-change-set',\n riskClassRef: 'application-creation:risk/application-worktree-horizon-acceptance',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: [\n 'application-creation:evidence-requirement/build-task-verified-change-set',\n 'application-creation:evidence-requirement/build-task-serves-requirements',\n ],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/build-task-dispatch',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.build-scale/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;CA2BrB,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.build-scale/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;CA2BrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.build-scale/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,uvGAAuvG;IACjwG,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE;KACtE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,YAAY,EAAE;KAC3B;IACD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,gBAAgB;YAChB,iBAAiB;YACjB,aAAa;YACb,gBAAgB;SACjB;KACF;IACD,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE;KACd;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.build-scale\",\n \"version\": \"0.1.0\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up build scale — the THIRD and final build-execution playbook, the pivot from dispatching ONE task safely (the single-flight dispatch contract) to running the build at SCALE: parallelism across several coding agents, the concurrency schedule, and interleaving the companion-owned generation steps concurrently with coding runs. Reads the approved build-plan (the ordered coding-agent task graph, each task carrying a target, ONE MetaWorkflow_FunctionalTopic, its skill(s), and prose prerequisite ordering) and the current journey state, and answers the SCALE questions the single-flight dispatch playbook deliberately left open: (1) derive the ready-SET (a wave / frontier of tasks whose prose prerequisites have ALL SUCCEEDED — not merely been attempted); (2) decide the parallelism degree (how many coding agents run at once) and the worktree-isolation model that keeps each concurrent run's change-set cleanly attributable; (3) schedule the waves respecting the DEPENDS_ON ordering the build-plan encodes; (4) interleave the deterministic companion-owned generation steps (labels / i18n, email templates, seeds) concurrently with coding runs at the points their inputs exist — those steps run through their deterministic companion endpoints, NOT the coding-agent single-flight lock, so they genuinely overlap coding runs; (5) reconcile wave completion across the concurrent runs (all tasks in the frontier SUCCEEDED before the next wave opens) and apply onFailure across siblings + downstream. Then advance to the next wave and loop. Each parallel slot INVOKES the single-flight dispatch contract (the build-dispatch playbook, upstream — select-next / context-pack / one ACP prompt turn / change-set capture / verify-outside / record + onFailure); this playbook does NOT re-specify those per-task mechanics and does NOT re-decompose the plan (the build-decompose playbook owns the task graph) and authors no schemas / no code. IMPORTANT HONESTY: the companion runner HARD-ENFORCES single-flight today (a run plan carries at most ONE coding-agent task; a concurrent dispatch is refused; the workspace-mutation lock + the lock-free cursor + the missing run-outcome observation loop all assume one dispatch at a time). So this v1 scale METHOD is the DECLARATIVE TARGET a runner-serializer slice will realize — on the current runner the waves DEGRADE to sequential single-flight dispatch. And even the deterministic companion-generation steps, though they do not take the coding single-flight lock, cannot SAFELY overlap an active coding run today: the coding run's change-set is captured as a whole-worktree time-window diff, so a generation step writing files inside that window is misattributed to the coding run (the same whole-worktree pollution that forbids two concurrent coding agents) — so the generation steps also serialize outside an active coding-capture window today, and genuine concurrency (coding-parallel OR generation-overlap) both arrive only with the git worktree-per-agent isolation runner task. v1 scaffold: a multi-CODING_AGENT run-completion serializer, git worktree-per-agent isolation, a run-outcome reconciler, and a cursor lock are companion-runner mechanism filed as runner tasks, NOT built here; a priority/work-stealing scheduler and cost-optimal packing are a later depth phase.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"build-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"build-plan\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"journey-status\",\n \"journey-approve\",\n \"journey-run\",\n \"journey-report\"\n ]\n },\n \"executor\": \"coding_agent\",\n \"approval\": \"approve_before\",\n \"budget\": {\n \"maxRuns\": 30\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.build-scale/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,uvGAAuvG;IACjwG,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE;KACtE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,YAAY,EAAE;KAC3B;IACD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,gBAAgB;YAChB,iBAAiB;YACjB,aAAa;YACb,gBAAgB;SACjB;KACF;IACD,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,EAAE;KACd;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.build-scale\",\n \"version\": \"0.1.0\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up build scale — the THIRD and final build-execution playbook, the pivot from dispatching ONE task safely (the single-flight dispatch contract) to running the build at SCALE: parallelism across several coding agents, the concurrency schedule, and interleaving the companion-owned generation steps concurrently with coding runs. Reads the approved build-plan (the ordered coding-agent task graph, each task carrying a target, ONE MetaWorkflow_FunctionalTopic, its skill(s), and prose prerequisite ordering) and the current journey state, and answers the SCALE questions the single-flight dispatch playbook deliberately left open: (1) derive the ready-SET (a wave / frontier of tasks whose prose prerequisites have ALL SUCCEEDED — not merely been attempted); (2) decide the parallelism degree (how many coding agents run at once) and the worktree-isolation model that keeps each concurrent run's change-set cleanly attributable; (3) schedule the waves respecting the DEPENDS_ON ordering the build-plan encodes; (4) interleave the deterministic companion-owned generation steps (labels / i18n, email templates, seeds) concurrently with coding runs at the points their inputs exist — those steps run through their deterministic companion endpoints, NOT the coding-agent single-flight lock, so they genuinely overlap coding runs; (5) reconcile wave completion across the concurrent runs (all tasks in the frontier SUCCEEDED before the next wave opens) and apply onFailure across siblings + downstream. Then advance to the next wave and loop. Each parallel slot INVOKES the single-flight dispatch contract (the build-dispatch playbook, upstream — select-next / context-pack / one ACP prompt turn / change-set capture / verify-outside / record + onFailure); this playbook does NOT re-specify those per-task mechanics and does NOT re-decompose the plan (the build-decompose playbook owns the task graph) and authors no schemas / no code. IMPORTANT HONESTY: the companion runner HARD-ENFORCES single-flight today (a run plan carries at most ONE coding-agent task; a concurrent dispatch is refused; the workspace-mutation lock + the lock-free cursor + the missing run-outcome observation loop all assume one dispatch at a time). So this v1 scale METHOD is the DECLARATIVE TARGET a runner-serializer slice will realize — on the current runner the waves DEGRADE to sequential single-flight dispatch. And even the deterministic companion-generation steps, though they do not take the coding single-flight lock, cannot SAFELY overlap an active coding run today: the coding run's change-set is captured as a whole-worktree time-window diff, so a generation step writing files inside that window is misattributed to the coding run (the same whole-worktree pollution that forbids two concurrent coding agents) — so the generation steps also serialize outside an active coding-capture window today, and genuine concurrency (coding-parallel OR generation-overlap) both arrive only with the git worktree-per-agent isolation runner task. v1 scaffold: a multi-CODING_AGENT run-completion serializer, git worktree-per-agent isolation, a run-outcome reconciler, and a cursor lock are companion-runner mechanism filed as runner tasks, NOT built here; a priority/work-stealing scheduler and cost-optimal packing are a later depth phase.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"build-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"build-plan\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"journey-status\",\n \"journey-approve\",\n \"journey-run\",\n \"journey-report\"\n ]\n },\n \"executor\": \"coding_agent\",\n \"approval\": \"approve_before\",\n \"budget\": {\n \"maxRuns\": 30\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.domain-plan/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAE1B,kBAAkB,EAClB,0BAA0B,EAC1B,gCAAgC,EAChC,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,EAEvC,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsE9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyRW,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.domain-plan/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAE1B,kBAAkB,EAClB,0BAA0B,EAC1B,gCAAgC,EAChC,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,EAEvC,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsE9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyRW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.domain-plan/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,GACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAE1B,kBAAkB,EAClB,0BAA0B,EAC1B,gCAAgC,EAChC,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,GAEvC,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,uBAAuB;IAC5B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,SAAS;IACnC,MAAM,EACJ,mTAAmT;IACrT,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,eAAe,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QAC1F,EAAE,IAAI,EAAE,0BAA0B,CAAC,eAAe,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE;KAC9F;IACD,MAAM,EAAE;QACN,EAAE,MAAM,EAAE,cAAc,EAAE;QAC1B,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,2BAA2B,CAAC,QAAQ,EAAE;QAC3E,EAAE,MAAM,EAAE,gBAAgB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1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ElicitationQuestionKind,\n MetaWorkflow_ArtifactIntent,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_FunctionalTopic,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n DomainPlanEvaluationCriterionRef,\n DomainPlanEvaluationEvidenceCoveragePolicyRef,\n DomainPlanEvaluationEvidenceFreshnessPolicyRef,\n DomainPlanEvaluationEvidenceRequirementRef,\n DomainPlanEvaluationEvidenceSubjectRef,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'bottom_up.domain-plan',\n version: '0.2.0',\n phase: MetaWorkflow_Phase.BOTTOM_UP,\n intent:\n 'Turn the approved definition set into one atomic, planning-depth domain output set: module decomposition with per-module resource inventory plus typed inter-resource relationship intents. The output remains staged until deterministic validation, semantic evaluation and distinct result authority complete.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'market-snapshot' } },\n ],\n inputs: [\n { family: 'requirements' },\n { family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.AUDIENCE },\n { family: 'feature-drafts' },\n { family: 'roadmap' },\n { family: 'vision-brief' },\n ],\n outputs: [\n {\n family: 'domain-plan',\n schemaRef: 'saas-specifications:DomainPlanOutputSet',\n description:\n 'THE atomic domain plan: the module decomposition AND the inter-resource relationship drafts, one value, one landed file. (The former separate relationship-drafts family was collapsed into this output 2026-08-24 — the two were never independently meaningful, and the deterministic validator crosses them.) A working edit until a human commits it.',\n },\n ],\n method: {\n /*\n * The mid-run clarification channel, opt-in.\n *\n * This is where the decisions a product owner owns actually live: the tenancy model had to be\n * hard-coded as an interview question by hand, and the plan this playbook produced made\n * `next-step` one-to-one with two different parents — precisely the shape a derivation should\n * have stopped and asked about rather than choosing silently.\n */\n suspendsForClarification: true,\n skillRefs: ['journey-status', 'resource-add-module', 'resource-add-resource', 'module-relationships'],\n /*\n * The tenancy question moved here from `bottom_up.foundation`, which runs AFTER this artifact\n * exists.\n *\n * Foundation's comment described the domain plan as deliberately scope-free, and that is true of\n * its FIELDS and false of its CONTENT: wonder-crm's plan (2026-08-27) modelled tenancy unasked —\n * a `workspace` module owning a `workspace` resource, a `team-membership` module owning\n * `workspace-member`, and `deal` referencing `workspace-member` for owner assignment. The creator\n * was asked \"organizations or users?\" afterwards, and answering `users` would have left two\n * modules and a relationship that nothing reconciles.\n *\n * So it is asked HERE, where the decision is first used, and the answer is carried in the\n * committed plan (`DomainPlanOutputSet.tenancy`) rather than in a run's transient answers.\n * Foundation reads the plan and only falls back to its own question for plans authored before\n * the field existed.\n */\n elicitation: {\n questions: [\n {\n ref: 'tenancy',\n question:\n 'How is this application\\'s data partitioned? Answer `organizations` when users collaborate inside shared workspaces or teams (this enables the ORGANIZATIONS engine capability and scopes every resource to an organization), or `users` when every user\\'s data is their own.',\n kind: MetaWorkflow_ElicitationQuestionKind.CHOICE,\n options: ['organizations', 'users'],\n },\n ],\n },\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n\n/**\n * Portable generation boundary for the atomic domain-plan output set.\n *\n * The generic Driver stops at a validated candidate artifact. The existing\n * application-owned staging, semantic evaluation, result authority and\n * accepted-family mutation path remains the only destination-landing owner.\n */\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/domain-plan-output-set',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/generate-domain-plan-output-set',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-domain-plan-and-relationship-drafts',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-vision-brief',\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-feature-drafts',\n 'application-creation:artifact-selector/accepted-roadmap',\n ],\n outcomeContractRefs: ['application-creation:output-contract/domain-plan-output-set'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifact-before-domain-plan-staging',\n allowedCapabilityClassRefs: ['meta-workflow:capability-class/structured-artifact-generation'],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: null,\n budgetPolicyRef: 'application-creation:budget-policy/domain-plan-output-set-generation',\n continuationPolicyRef: 'application-creation:continuation-policy/domain-plan-output-set-generation',\n decisionPointDefinitionRefs: ['application-creation:decision-point/domain-plan-output-set-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: {\n contractRef: 'application-creation:input-projection/accepted-domain-plan-definition-set',\n contractVersion: 1,\n },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/domain-plan-output-set-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/domain-plan-output-set-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/domain-plan-output-set',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/domain-plan-output-set', schemaVersion: 1 },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: { contractRef: 'saas-specifications:validator/domain-plan-output-set', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-atomic-domain-plan-output-set'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [\n MetaWorkflow_FailureDisposition.FAIL_BINDING,\n MetaWorkflow_FailureDisposition.REQUEST_INPUT,\n MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING,\n ],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/domain-plan-output-set-result',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/domain-plan-output-set-result',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [\n MetaWorkflow_EvaluationVerdict.GAP,\n MetaWorkflow_EvaluationVerdict.INDETERMINATE,\n MetaWorkflow_EvaluationVerdict.CONCERN,\n MetaWorkflow_EvaluationVerdict.PASS,\n ],\n aggregationPolicyRef: 'application-creation:aggregation/worst-domain-plan-coherence-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.REQUIREMENT_COVERAGE,\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon functional requirement is served by at least one module capability and resource inventory. Treat a requirement without a resolvable module home as a material gap.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon functional requirement has a coherent module and resource home.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Coverage is complete but one or more requirement-to-module links are weak or indirect.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one current-horizon functional requirement has no resolvable module home.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish complete requirement coverage.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.FEATURE_COVERAGE,\n criterionVersion: 1,\n instruction:\n 'Determine whether every feature draft and benefit-delivering feature is realizable by the proposed module capabilities and resource inventories. Do not infer a home from naming similarity alone.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every feature and benefit-delivering capability has a resolvable domain home.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'All features have homes, but one or more mappings are weak or insufficiently explained.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one feature or benefit-delivering capability has no resolvable domain home.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish complete feature coverage.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.MODULE_JUSTIFICATION,\n criterionVersion: 1,\n instruction:\n 'Determine whether every proposed module is justified by accepted requirements or features and represents one coherent business capability. Flag speculative or mixed-purpose modules.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every proposed module is justified and capability-coherent.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'One or more modules are weakly justified or combine boundaries that should be reconsidered.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one module is speculative or materially incoherent with the definition set.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish why every module exists.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.INVENTORY_PLAUSIBILITY,\n criterionVersion: 1,\n instruction:\n 'Assess whether main resources form each module semantic center, supporting resources remain genuinely supporting, and ownership boundaries are plausible. Deterministic uniqueness has already passed and must not be reinterpreted.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Each module inventory has a plausible semantic center and supporting boundary.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The inventories are usable but one or more main/supporting classifications are questionable.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one inventory materially contradicts its declared module capability.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish plausible module inventories.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.RELATIONSHIP_INTEGRITY,\n criterionVersion: 1,\n instruction:\n 'Assess whether the typed relationship intents are semantically necessary and coherent with the inventoried resources, conceptual cardinality and ownership direction. Do not resolve them into physical foreign keys.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The relationship intents coherently connect the proposed resource inventory.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The relationships are structurally valid but one or more semantic intents need refinement.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one necessary relationship is missing or one declared relationship is materially incoherent.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish semantic relationship integrity.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.BOUNDARY_DISCIPLINE,\n criterionVersion: 1,\n instruction:\n 'Determine whether the output remains at planning depth: modules, resource inventories and relationship intents only. Treat schema fields, concrete foreign-key placement or generated implementation code as scope leakage.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The output remains within the declared planning-depth boundary.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The output is usable but contains limited premature implementation detail.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The output materially crosses into schema, foreign-key or implementation authoring.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish the output depth boundary.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/domain-plan-output-set-result',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: { outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate', outputContractVersion: 1 },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/domain-plan-output-set-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/domain-plan-output-set-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/domain-plan-output-set-structurally-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/domain-plan-accepted-landing',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/domain-plan-output-set-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-domain-plan-coherence-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/domain-plan-output-set-structurally-valid',\n evidenceRequirementRefs: [\n DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n ],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/domain-plan-output-set-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-domain-plan-output-set',\n riskClassRef: 'application-creation:risk/domain-plan-accepted-family-mutation',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: [\n DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n ],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/domain-plan-output-set-result',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.domain-plan/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,GACnD,MAAM,sCAAsC,CAAC;A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,eAAe,EAAE,iEAAiE;QAClF,cAAc,EAAE,yDAAyD;QACzE,gBAAgB,EAAE,6BAA6B,CAAC,YAAY;QAC5D,wBAAwB,EAAE,KAAK;KAChC;IACD,kBAAkB,EAAE;QAClB,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,wEAAwE;QACnF,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE;YACR,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;YACpH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAAE,+BAA+B,CAAC,MAAM,EAAE;YAChH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,EAAE,+BAA+B,CAAC,gBAAgB,EAAE;YACpI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,iBAAiB,EAAE,MAAM,EAAE,+BAA+B,CAAC,iBAAiB,EAAE;YACtI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ElicitationQuestionKind,\n MetaWorkflow_ArtifactIntent,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_FunctionalTopic,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n DomainPlanEvaluationCriterionRef,\n DomainPlanEvaluationEvidenceCoveragePolicyRef,\n DomainPlanEvaluationEvidenceFreshnessPolicyRef,\n DomainPlanEvaluationEvidenceRequirementRef,\n DomainPlanEvaluationEvidenceSubjectRef,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'bottom_up.domain-plan',\n version: '0.2.0',\n phase: MetaWorkflow_Phase.BOTTOM_UP,\n intent:\n 'Turn the approved definition set into one atomic, planning-depth domain output set: module decomposition with per-module resource inventory plus typed inter-resource relationship intents. The output remains staged until deterministic validation, semantic evaluation and distinct result authority complete.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'market-snapshot' } },\n ],\n inputs: [\n { family: 'requirements' },\n { family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.AUDIENCE },\n { family: 'feature-drafts' },\n { family: 'roadmap' },\n { family: 'vision-brief' },\n ],\n outputs: [\n {\n family: 'domain-plan',\n schemaRef: 'saas-specifications:DomainPlanOutputSet',\n description:\n 'THE atomic domain plan: the module decomposition AND the inter-resource relationship drafts, one value, one landed file. (The former separate relationship-drafts family was collapsed into this output 2026-08-24 — the two were never independently meaningful, and the deterministic validator crosses them.) A working edit until a human commits it.',\n },\n ],\n method: {\n /*\n * The mid-run clarification channel, opt-in.\n *\n * This is where the decisions a product owner owns actually live: the tenancy model had to be\n * hard-coded as an interview question by hand, and the plan this playbook produced made\n * `next-step` one-to-one with two different parents — precisely the shape a derivation should\n * have stopped and asked about rather than choosing silently.\n */\n suspendsForClarification: true,\n skillRefs: ['journey-status', 'resource-add-module', 'resource-add-resource', 'module-relationships'],\n /*\n * The tenancy question moved here from `bottom_up.foundation`, which runs AFTER this artifact\n * exists.\n *\n * Foundation's comment described the domain plan as deliberately scope-free, and that is true of\n * its FIELDS and false of its CONTENT: wonder-crm's plan (2026-08-27) modelled tenancy unasked —\n * a `workspace` module owning a `workspace` resource, a `team-membership` module owning\n * `workspace-member`, and `deal` referencing `workspace-member` for owner assignment. The creator\n * was asked \"organizations or users?\" afterwards, and answering `users` would have left two\n * modules and a relationship that nothing reconciles.\n *\n * So it is asked HERE, where the decision is first used, and the answer is carried in the\n * committed plan (`DomainPlanOutputSet.tenancy`) rather than in a run's transient answers.\n * Foundation reads the plan and only falls back to its own question for plans authored before\n * the field existed.\n */\n elicitation: {\n questions: [\n {\n ref: 'tenancy',\n question:\n 'How is this application\\'s data partitioned? Answer `organizations` when users collaborate inside shared workspaces or teams (this enables the ORGANIZATIONS engine capability and scopes every resource to an organization), or `users` when every user\\'s data is their own.',\n kind: MetaWorkflow_ElicitationQuestionKind.CHOICE,\n options: ['organizations', 'users'],\n },\n ],\n },\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n\n/**\n * Portable generation boundary for the atomic domain-plan output set.\n *\n * The generic Driver stops at a validated candidate artifact. The existing\n * application-owned staging, semantic evaluation, result authority and\n * accepted-family mutation path remains the only destination-landing owner.\n */\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/domain-plan-output-set',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/generate-domain-plan-output-set',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-domain-plan-and-relationship-drafts',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-vision-brief',\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-feature-drafts',\n 'application-creation:artifact-selector/accepted-roadmap',\n ],\n outcomeContractRefs: ['application-creation:output-contract/domain-plan-output-set'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifact-before-domain-plan-staging',\n allowedCapabilityClassRefs: ['meta-workflow:capability-class/structured-artifact-generation'],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: null,\n budgetPolicyRef: 'application-creation:budget-policy/domain-plan-output-set-generation',\n continuationPolicyRef: 'application-creation:continuation-policy/domain-plan-output-set-generation',\n decisionPointDefinitionRefs: ['application-creation:decision-point/domain-plan-output-set-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: {\n contractRef: 'application-creation:input-projection/accepted-domain-plan-definition-set',\n contractVersion: 1,\n },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/domain-plan-output-set-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/domain-plan-output-set-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/domain-plan-output-set',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/domain-plan-output-set', schemaVersion: 1 },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: { contractRef: 'saas-specifications:validator/domain-plan-output-set', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-atomic-domain-plan-output-set'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [\n MetaWorkflow_FailureDisposition.FAIL_BINDING,\n MetaWorkflow_FailureDisposition.REQUEST_INPUT,\n MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING,\n ],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/domain-plan-output-set-result',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/domain-plan-output-set-result',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [\n MetaWorkflow_EvaluationVerdict.GAP,\n MetaWorkflow_EvaluationVerdict.INDETERMINATE,\n MetaWorkflow_EvaluationVerdict.CONCERN,\n MetaWorkflow_EvaluationVerdict.PASS,\n ],\n aggregationPolicyRef: 'application-creation:aggregation/worst-domain-plan-coherence-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.REQUIREMENT_COVERAGE,\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon functional requirement is served by at least one module capability and resource inventory. Treat a requirement without a resolvable module home as a material gap.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon functional requirement has a coherent module and resource home.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Coverage is complete but one or more requirement-to-module links are weak or indirect.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one current-horizon functional requirement has no resolvable module home.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish complete requirement coverage.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.FEATURE_COVERAGE,\n criterionVersion: 1,\n instruction:\n 'Determine whether every feature draft and benefit-delivering feature is realizable by the proposed module capabilities and resource inventories. Do not infer a home from naming similarity alone.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every feature and benefit-delivering capability has a resolvable domain home.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'All features have homes, but one or more mappings are weak or insufficiently explained.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one feature or benefit-delivering capability has no resolvable domain home.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish complete feature coverage.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.MODULE_JUSTIFICATION,\n criterionVersion: 1,\n instruction:\n 'Determine whether every proposed module is justified by accepted requirements or features and represents one coherent business capability. Flag speculative or mixed-purpose modules.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every proposed module is justified and capability-coherent.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'One or more modules are weakly justified or combine boundaries that should be reconsidered.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one module is speculative or materially incoherent with the definition set.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish why every module exists.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.INVENTORY_PLAUSIBILITY,\n criterionVersion: 1,\n instruction:\n 'Assess whether main resources form each module semantic center, supporting resources remain genuinely supporting, and ownership boundaries are plausible. Deterministic uniqueness has already passed and must not be reinterpreted.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Each module inventory has a plausible semantic center and supporting boundary.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The inventories are usable but one or more main/supporting classifications are questionable.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one inventory materially contradicts its declared module capability.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish plausible module inventories.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.RELATIONSHIP_INTEGRITY,\n criterionVersion: 1,\n instruction:\n 'Assess whether the typed relationship intents are semantically necessary and coherent with the inventoried resources, conceptual cardinality and ownership direction. Do not resolve them into physical foreign keys.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The relationship intents coherently connect the proposed resource inventory.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The relationships are structurally valid but one or more semantic intents need refinement.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one necessary relationship is missing or one declared relationship is materially incoherent.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish semantic relationship integrity.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.BOUNDARY_DISCIPLINE,\n criterionVersion: 1,\n instruction:\n 'Determine whether the output remains at planning depth: modules, resource inventories and relationship intents only. Treat schema fields, concrete foreign-key placement or generated implementation code as scope leakage.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The output remains within the declared planning-depth boundary.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The output is usable but contains limited premature implementation detail.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The output materially crosses into schema, foreign-key or implementation authoring.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish the output depth boundary.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/domain-plan-output-set-result',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: { outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate', outputContractVersion: 1 },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/domain-plan-output-set-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/domain-plan-output-set-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/domain-plan-output-set-structurally-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/domain-plan-accepted-landing',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/domain-plan-output-set-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-domain-plan-coherence-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/domain-plan-output-set-structurally-valid',\n evidenceRequirementRefs: [\n DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n ],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/domain-plan-output-set-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-domain-plan-output-set',\n riskClassRef: 'application-creation:risk/domain-plan-accepted-family-mutation',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: [\n DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n ],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/domain-plan-output-set-result',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.foundation/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ErB,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.foundation/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ErB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.foundation/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,87CAA87C;IACx8C,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE;QACtE,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;KACxE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,aAAa,EAAE;QAC3B,EAAE,QAAQ,EAAE,cAAc,EAAE;QAC5B,EAAE,QAAQ,EAAE,iBAAiB,EAAE;QAC/B,EAAE,QAAQ,EAAE,gBAAgB,EAAE;QAC9B,EAAE,QAAQ,EAAE,cAAc,EAAE;QAC5B,EAAE,QAAQ,EAAE,SAAS,EAAE;KACxB;IACD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,gBAAgB;YAChB,aAAa;YACb,qBAAqB;YACrB,0BAA0B;YAC1B,6BAA6B;YAC7B,iCAAiC;SAClC;QACD,aAAa,EAAE;YACb,WAAW,EAAE;gBACX;;;;;;;;;mBASG;gBACH;oBACE,KAAK,EAAE,eAAe;oBACtB,UAAU,EAAE,2NAA2N;oBACvO,MAAM,EAAE,QAAQ;oBAChB,SAAS,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC;iBACtC;gBACD;;;;;;;;;;;mBAWG;gBACH;oBACE,KAAK,EAAE,kBAAkB;oBACzB,UAAU,EAAE,ogBAAogB;oBAChhB,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,yBAAyB;oBAChC,UAAU,EAAE,6XAA6X;oBACzY,MAAM,EAAE,WAAW;iBACpB;aACF;SACF;KACF;IACC,UAAU,EAAE,gBAAgB;IAC9B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.foundation\",\n \"version\": \"0.2.1\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up foundation — turn the approved domain plan + the top-down definition set into a configured, bootable application skeleton. Reads the domain-plan (the module decomposition + per-module resource inventory) and the vision-brief (whose compliance/vision constraints drive which engine capabilities to enable), then: (1) authors ./wildo.saas.config.ts for real — the engine capabilities (derived from compliance/vision), the modules (from the domain plan), and the providers (matched to the declared capabilities); (2) materializes the app skeleton (app/ shared-lib/ backend-api/ specifications/ + the module registries); (3) installs app-knowledge; (4) runs the deterministic bring-up — wildo setup --non-interactive, then wildo local init. This is a v1 SCAFFOLD METHOD describing the foundation SEQUENCE: skeleton materialization and app-knowledge installation remain deferred greenfield tooling, while headless setup and verified local initialization are registered commands once the app structure exists. It emits NO artifact: the deliverable is the app itself (the authored config + materialized skeleton + verified initialization), and the reasons behind each capability/module/provider choice are recorded as comments in the config the next reader opens. The foundation-manifest family it used to emit was retired 2026-08-25 with the app-creation verification/digest aspect. Runs after the domain plan is approved and the journey is in the bottom_up phase.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"domain-plan\" } },\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"vision-brief\" } }\n ],\n \"inputs\": [\n { \"family\": \"domain-plan\" },\n { \"family\": \"vision-brief\" },\n { \"family\": \"market-snapshot\" },\n { \"family\": \"business-model\" },\n { \"family\": \"requirements\" },\n { \"family\": \"roadmap\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"journey-status\",\n \"config-saas\",\n \"module-registration\",\n \"infra-environment-config\",\n \"local-environment-bootstrap\",\n \"application-database-migrations\"\n ],\n \"elicitation\": {\n \"questions\": [\n /*\n * THE FALLBACK, since 2026-08-28. `bottom_up.domain-plan` now asks this and carries the\n * answer in the committed plan (`DomainPlanOutputSet.tenancy`), because the plan MODELS\n * tenancy — wonder-crm's invented a workspace module and a membership before anyone was\n * asked — so asking after the model is shaped lets a second answer contradict it.\n *\n * The executor reads the plan first and reaches this question only for a plan authored\n * before the field existed. Keep it: those plans are real (wonder-crm, wonder-todos) and\n * must stay composable.\n */\n {\n \"ref\": \"primary-scope\",\n \"question\": \"What is the application's tenancy model? Answer `organizations` when users collaborate inside shared workspaces/teams (this enables the ORGANIZATIONS engine capability), or `users` when every user's data is their own.\",\n \"kind\": \"choice\",\n \"options\": [\"organizations\", \"users\"]\n },\n /*\n * The operator's own legal identity (issue #235), asked HERE because this is the playbook that\n * writes `wildo.saas.config.ts` and already carries the `config-saas` skill — an answer\n * elicited anywhere else would have nowhere to land, since a companion-agent playbook produces\n * an artifact and writes no files.\n *\n * Both questions are deliberately ANSWERABLE IN PART. Every part of\n * `operatorComplianceIdentity` is independently declarable (#228), so a creator who knows the\n * registered name and not the lawful bases records the name — and Paul's decision (#225) is\n * explicit that filling the entity must never block. A question that demanded the whole thing\n * would reintroduce the blocking this lane just removed, one layer up.\n */\n {\n \"ref\": \"operating-entity\",\n \"question\": \"Which legal entity operates this service? Give the registered company name, its registered address, and the route a person uses to reach you about privacy (an email, a URL or a postal address). Answer only the parts you actually know today — anything you leave out is recorded as outstanding and nothing is blocked by it. Do NOT supply a placeholder or a plausible-looking value: a produced privacy notice quotes these as fact, and the address is what a person would use to serve a legal request on a real company.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"operating-jurisdictions\",\n \"question\": \"Which jurisdictions does this application operate in, and why does each one reach it — are you established there, do you sell there, or do you hold data about people there? Use country codes (`fr`, `us`), the supranational `eu`, or a subdivision (`us-ca`). Answer \\\"not decided\\\" if the market is genuinely unsettled; an absent answer is read as unanswered, never as \\\"nowhere\\\".\",\n \"kind\": \"free_text\"\n }\n ]\n }\n },\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../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;KACF;IACC,UAAU,EAAE,gBAAgB;IAC9B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.foundation\",\n \"version\": \"0.2.1\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up foundation — turn the approved domain plan + the top-down definition set into a configured, bootable application skeleton. Reads the domain-plan (the module decomposition + per-module resource inventory) and the vision-brief (whose compliance/vision constraints drive which engine capabilities to enable), then: (1) authors ./wildo.saas.config.ts for real — the engine capabilities (derived from compliance/vision), the modules (from the domain plan), and the providers (matched to the declared capabilities); (2) materializes the app skeleton (app/ shared-lib/ backend-api/ specifications/ + the module registries); (3) installs app-knowledge; (4) runs the deterministic bring-up — wildo setup --non-interactive, then wildo local init. This is a v1 SCAFFOLD METHOD describing the foundation SEQUENCE: skeleton materialization and app-knowledge installation remain deferred greenfield tooling, while headless setup and verified local initialization are registered commands once the app structure exists. It emits NO artifact: the deliverable is the app itself (the authored config + materialized skeleton + verified initialization), and the reasons behind each capability/module/provider choice are recorded as comments in the config the next reader opens. The foundation-manifest family it used to emit was retired 2026-08-25 with the app-creation verification/digest aspect. Runs after the domain plan is approved and the journey is in the bottom_up phase.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"domain-plan\" } },\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"vision-brief\" } }\n ],\n \"inputs\": [\n { \"family\": \"domain-plan\" },\n { \"family\": \"vision-brief\" },\n { \"family\": \"market-snapshot\" },\n { \"family\": \"business-model\" },\n { \"family\": \"requirements\" },\n { \"family\": \"roadmap\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"journey-status\",\n \"config-saas\",\n \"module-registration\",\n \"infra-environment-config\",\n \"local-environment-bootstrap\",\n \"application-database-migrations\"\n ],\n \"elicitation\": {\n \"questions\": [\n /*\n * THE FALLBACK, since 2026-08-28. `bottom_up.domain-plan` now asks this and carries the\n * answer in the committed plan (`DomainPlanOutputSet.tenancy`), because the plan MODELS\n * tenancy — wonder-crm's invented a workspace module and a membership before anyone was\n * asked — so asking after the model is shaped lets a second answer contradict it.\n *\n * The executor reads the plan first and reaches this question only for a plan authored\n * before the field existed. Keep it: those plans are real (wonder-crm, wonder-todos) and\n * must stay composable.\n */\n {\n \"ref\": \"primary-scope\",\n \"question\": \"What is the application's tenancy model? Answer `organizations` when users collaborate inside shared workspaces/teams (this enables the ORGANIZATIONS engine capability), or `users` when every user's data is their own.\",\n \"kind\": \"choice\",\n \"options\": [\"organizations\", \"users\"]\n },\n /*\n * The operator's own legal identity (issue #235), asked HERE because this is the playbook that\n * writes `wildo.saas.config.ts` and already carries the `config-saas` skill — an answer\n * elicited anywhere else would have nowhere to land, since a companion-agent playbook produces\n * an artifact and writes no files.\n *\n * Both questions are deliberately ANSWERABLE IN PART. Every part of\n * `operatorComplianceIdentity` is independently declarable (#228), so a creator who knows the\n * registered name and not the lawful bases records the name — and Paul's decision (#225) is\n * explicit that filling the entity must never block. A question that demanded the whole thing\n * would reintroduce the blocking this lane just removed, one layer up.\n */\n {\n \"ref\": \"operating-entity\",\n \"question\": \"Which legal entity operates this service? Give the registered company name, its registered address, and the route a person uses to reach you about privacy (an email, a URL or a postal address). Answer only the parts you actually know today — anything you leave out is recorded as outstanding and nothing is blocked by it. Do NOT supply a placeholder or a plausible-looking value: a produced privacy notice quotes these as fact, and the address is what a person would use to serve a legal request on a real company.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"operating-jurisdictions\",\n \"question\": \"Which jurisdictions does this application operate in, and why does each one reach it — are you established there, do you sell there, or do you hold data about people there? Use country codes (`fr`, `us`), the supranational `eu`, or a subdivision (`us-ca`). Answer \\\"not decided\\\" if the market is genuinely unsettled; an absent answer is read as unanswered, never as \\\"nowhere\\\".\",\n \"kind\": \"free_text\"\n }\n ]\n }\n },\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}