@wildo-ai/framework-knowledge 1.1.0 → 1.1.2
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.
- package/dist/esm/framework-knowledge.definitions.d.ts +1 -1
- package/dist/esm/framework-knowledge.definitions.d.ts.map +1 -1
- package/dist/esm/framework-knowledge.definitions.js +43 -2
- package/dist/esm/framework-knowledge.definitions.js.map +1 -1
- package/dist/esm/framework-knowledge.loader.d.ts +19 -0
- package/dist/esm/framework-knowledge.loader.d.ts.map +1 -1
- package/dist/esm/framework-knowledge.loader.js +32 -0
- package/dist/esm/framework-knowledge.loader.js.map +1 -1
- package/dist/esm/framework-knowledge.schemas.d.ts +12 -0
- package/dist/esm/framework-knowledge.schemas.d.ts.map +1 -1
- package/dist/esm/framework-knowledge.schemas.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.d.ts +46 -0
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.d.ts.map +1 -0
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js +55 -0
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js.map +1 -0
- package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.d.ts +4 -4
- package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.js +3 -3
- package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.d.ts +0 -3
- package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.js +0 -1
- package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.d.ts +0 -3
- package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.js +0 -1
- package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.d.ts +2 -7
- package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.js +0 -1
- package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts +8 -3
- package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.js +22 -1
- package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.d.ts +0 -3
- package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.js +0 -1
- package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.d.ts +4 -1
- package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.js +4 -1
- package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/refinement.document-facts/playbook.definition.d.ts +1 -1
- package/dist/esm/playbooks/refinement.document-facts/playbook.definition.js +13 -13
- package/dist/esm/playbooks/refinement.document-facts/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.d.ts +3 -4
- package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.js +3 -3
- package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.business-model/playbook.definition.d.ts +2 -7
- package/dist/esm/playbooks/top_down.business-model/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.business-model/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.business-model/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.capability-map/playbook.definition.d.ts +2 -7
- package/dist/esm/playbooks/top_down.capability-map/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.capability-map/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.capability-map/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.d.ts +54 -0
- package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.d.ts.map +1 -0
- package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.js +127 -0
- package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.js.map +1 -0
- package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.d.ts +76 -0
- package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.d.ts.map +1 -0
- package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.js +92 -0
- package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.js.map +1 -0
- package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.d.ts +30 -0
- package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.d.ts.map +1 -0
- package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.js +29 -0
- package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.js.map +1 -0
- package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.d.ts +9 -44
- package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.js +4 -53
- package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.d.ts +31 -0
- package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.d.ts.map +1 -0
- package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.js +26 -0
- package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.js.map +1 -0
- package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.d.ts +2 -7
- package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.d.ts +0 -8
- package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.d.ts +2 -7
- package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.d.ts +2 -7
- package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.d.ts +2 -7
- package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.js +5 -3
- package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.d.ts +0 -3
- package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.d.ts +4 -5
- package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.js +25 -4
- package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.js.map +1 -1
- package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/authority-basis.json +1 -1
- package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/external-framework-mapping.json +1 -0
- package/dist/knowledge/manifest.json +8 -8
- package/dist/knowledge/playbooks/bottom_up.assemble-verify/method.md +51 -0
- package/dist/knowledge/playbooks/bottom_up.assemble-verify/playbook.json +43 -0
- package/dist/knowledge/playbooks/bottom_up.build-decompose/method.md +27 -10
- package/dist/knowledge/playbooks/bottom_up.build-decompose/playbook.json +8 -7
- package/dist/knowledge/playbooks/bottom_up.build-dispatch/method.md +6 -4
- package/dist/knowledge/playbooks/bottom_up.build-dispatch/playbook.json +4 -6
- package/dist/knowledge/playbooks/bottom_up.build-scale/method.md +5 -4
- package/dist/knowledge/playbooks/bottom_up.build-scale/playbook.json +4 -6
- package/dist/knowledge/playbooks/bottom_up.domain-plan/method.md +0 -4
- package/dist/knowledge/playbooks/bottom_up.domain-plan/playbook.json +4 -6
- package/dist/knowledge/playbooks/bottom_up.foundation/method.md +49 -22
- package/dist/knowledge/playbooks/bottom_up.foundation/playbook.json +14 -6
- package/dist/knowledge/playbooks/bottom_up.placement-plan/playbook.json +2 -4
- package/dist/knowledge/playbooks/refinement.compliance-document-candidate/method.md +46 -1
- package/dist/knowledge/playbooks/refinement.compliance-document-candidate/playbook.json +7 -3
- package/dist/knowledge/playbooks/refinement.document-facts/method.md +18 -4
- package/dist/knowledge/playbooks/refinement.document-facts/playbook.json +4 -2
- package/dist/knowledge/playbooks/top_down.brand-identity/method.md +2 -3
- package/dist/knowledge/playbooks/top_down.brand-identity/playbook.json +8 -7
- package/dist/knowledge/playbooks/top_down.business-model/playbook.json +3 -5
- package/dist/knowledge/playbooks/top_down.capability-map/method.md +0 -2
- package/dist/knowledge/playbooks/top_down.capability-map/playbook.json +4 -6
- package/dist/knowledge/playbooks/top_down.compliance-analysis/method.md +41 -0
- package/dist/knowledge/playbooks/top_down.compliance-analysis/playbook.json +100 -0
- package/dist/knowledge/playbooks/top_down.compliance-conception/method.md +117 -0
- package/dist/knowledge/playbooks/top_down.compliance-conception/playbook.json +86 -0
- package/dist/knowledge/playbooks/top_down.compliance-evidence-adequacy/method.md +61 -0
- package/dist/knowledge/playbooks/top_down.compliance-evidence-adequacy/playbook.json +41 -0
- package/dist/knowledge/playbooks/top_down.compliance-posture/method.md +21 -4
- package/dist/knowledge/playbooks/top_down.compliance-posture/playbook.json +14 -57
- package/dist/knowledge/playbooks/top_down.compliance-research/method.md +76 -0
- package/dist/knowledge/playbooks/top_down.compliance-research/playbook.json +42 -0
- package/dist/knowledge/playbooks/top_down.market-analysis/playbook.json +3 -5
- package/dist/knowledge/playbooks/top_down.market-evidence-adequacy/playbook.json +3 -1
- package/dist/knowledge/playbooks/top_down.market-research/playbook.json +3 -1
- package/dist/knowledge/playbooks/top_down.market-snapshot-produce/playbook.json +3 -5
- package/dist/knowledge/playbooks/top_down.phase-gate/method.md +8 -4
- package/dist/knowledge/playbooks/top_down.phase-gate/playbook.json +4 -6
- package/dist/knowledge/playbooks/top_down.requirements-definition/method.md +9 -7
- package/dist/knowledge/playbooks/top_down.requirements-definition/playbook.json +4 -6
- package/dist/knowledge/playbooks/top_down.scope-roadmap/method.md +2 -2
- package/dist/knowledge/playbooks/top_down.scope-roadmap/playbook.json +8 -7
- package/dist/knowledge/playbooks/top_down.value-proposition/method.md +0 -2
- package/dist/knowledge/playbooks/top_down.value-proposition/playbook.json +4 -6
- package/dist/knowledge/playbooks/top_down.vision-elicitation/method.md +2 -2
- package/dist/knowledge/playbooks/top_down.vision-elicitation/playbook.json +8 -7
- package/dist/knowledge/references/companion.technical-doc.service.md +102 -2
- package/dist/knowledge/references/example.config.app-shell.full.md +0 -1
- package/dist/knowledge/references/example.module.companion-exports.full.md +1 -0
- package/dist/knowledge/references/platform.config.saas.md +1 -0
- package/dist/knowledge/references/presets.models.surface-policy.md +19 -10
- package/dist/knowledge/references/saas.frontend.app-level-component.configuration.md +25 -1
- package/dist/knowledge/references/saas.frontend.composite-view.authoring.md +45 -0
- package/dist/knowledge/references/saas.frontend.display-layout.reading-measure.md +34 -0
- package/dist/knowledge/references/saas.frontend.navigation.operation-override.md +45 -0
- package/dist/knowledge/references/saas.frontend.public-shell.identity-mode.md +65 -0
- package/dist/knowledge/references/saas.frontend.resource-operation-frontend-config.md +89 -0
- package/dist/knowledge/references/saas.models.data-mode-read-list.md +31 -4
- package/dist/knowledge/references/saas.models.engine-capabilities.md +26 -6
- package/dist/knowledge/references/saas.models.file-upload-grant.md +179 -0
- package/dist/knowledge/references/saas.models.navigation.surface-vocabulary.md +124 -0
- package/dist/knowledge/references/saas.models.navigation.transition-vocabulary.md +99 -0
- package/dist/knowledge/references/saas.models.navigation.zone-declaration.md +127 -0
- package/dist/knowledge/references/saas.models.provider-capabilities.md +4 -3
- package/dist/knowledge/references/saas.models.resource-config.operation-variant-client-timeout.md +42 -0
- package/dist/knowledge/references/saas.specifications.application-authored-document-fact-specification.contract.md +29 -0
- package/dist/knowledge/references/saas.specifications.application-document-fact-specification.contract.md +11 -31
- package/dist/knowledge/references/saas.specifications.assurance-document-blueprint.contract.md +32 -2
- package/dist/knowledge/references/saas.specifications.assurance-program.contract.md +29 -6
- package/dist/knowledge/references/saas.specifications.companion-exports.contract.md +20 -0
- package/dist/knowledge/references/saas.specifications.resource-spec-config.md +22 -0
- package/dist/knowledge/references/zod.decorators.display-edit-modes.md +6 -0
- package/dist/knowledge/references/zod.decorators.field-spec-params.md +31 -5
- package/dist/knowledge/references/zod.decorators.per-primitive-ui.md +43 -0
- package/dist/knowledge/references/zod.decorators.primitive-ui.md +3 -0
- package/dist/knowledge/references/zod.decorators.shared-structural-params.md +15 -0
- package/dist/knowledge/registries/assurance-authority-bases.json +3 -2
- package/dist/knowledge/registries/framework-topics.json +99 -1
- package/dist/knowledge/registries/playbooks.json +81 -8
- package/dist/knowledge/registries/source-tags.json +757 -588
- package/dist/knowledge/skills/INDEX.md +3 -3
- package/dist/knowledge/skills/brand-logo-authoring/SKILL.md +2 -1
- package/dist/knowledge/skills/compliance-document-authoring/references/document-composition-governance.md +5 -1
- package/dist/knowledge/skills/compliance-document-authoring/references/framework-application-document-fact-specification-contract.md +66 -37
- package/dist/knowledge/skills/compliance-document-authoring/references/framework-assurance-document-blueprint-contract.md +40 -7
- package/dist/knowledge/skills/config-app-shell/SKILL.md +25 -1
- package/dist/knowledge/skills/config-app-shell/references/framework-app-shell-api.md +25 -1
- package/dist/knowledge/skills/config-app-shell/references/framework-public-shell-identity-api.md +124 -0
- package/dist/knowledge/skills/config-design-system/SKILL.md +23 -1
- package/dist/knowledge/skills/config-design-system/references/framework-surface-policy-api.md +19 -10
- package/dist/knowledge/skills/config-design-system/references/loading-placeholder-authoring.md +47 -0
- package/dist/knowledge/skills/config-navigation/SKILL.md +75 -2
- package/dist/knowledge/skills/config-navigation/references/framework-content-width-api.md +98 -0
- package/dist/knowledge/skills/config-navigation/references/framework-navigation-operation-override-api.md +54 -0
- package/dist/knowledge/skills/config-navigation/references/framework-navigation-vocabulary-api.md +232 -0
- package/dist/knowledge/skills/config-navigation/references/framework-navigation-zone-declaration-api.md +149 -0
- package/dist/knowledge/skills/config-navigation/references/how-navigation-resolves.md +114 -0
- package/dist/knowledge/skills/config-navigation/references/navigation-configuration-map.md +133 -0
- package/dist/knowledge/skills/config-saas/SKILL.md +19 -2
- package/dist/knowledge/skills/config-saas/references/compliance-declarations.md +111 -0
- package/dist/knowledge/skills/config-saas/references/framework-provider-capabilities-api.md +30 -9
- package/dist/knowledge/skills/config-saas/references/framework-wildo-saas-config-api.md +1 -0
- package/dist/knowledge/skills/flows-actors-a2a-exposure/SKILL.md +2 -1
- package/dist/knowledge/skills/flows-actors-a2a-exposure/references/framework-flows-actors-a2a-contract.md +4 -3
- package/dist/knowledge/skills/market-companion-prompt-enrichment/SKILL.md +20 -0
- package/dist/knowledge/skills/market-companion-prompt-enrichment/references/framework-companion-behavior-api.md +20 -0
- package/dist/knowledge/skills/module-companion-exports/SKILL.md +1 -0
- package/dist/knowledge/skills/module-companion-exports/references/companion-exports-by-package.md +20 -0
- package/dist/knowledge/skills/resource-add-field/SKILL.md +3 -3
- package/dist/knowledge/skills/resource-add-field/references/framework-field-cross-layer-api.md +104 -0
- package/dist/knowledge/skills/resource-config-wiring/SKILL.md +13 -0
- package/dist/knowledge/skills/resource-config-wiring/references/framework-saas-models-resource-config-api.md +71 -4
- package/dist/knowledge/skills/resource-custom-view/references/custom-view-contracts.md +89 -0
- package/dist/knowledge/skills/resource-mcp-tool-exposure/SKILL.md +22 -1
- package/dist/knowledge/skills/resource-mcp-tool-exposure/references/framework-file-upload-grant-contract.md +192 -0
- package/dist/knowledge/skills/resource-rag-source-fields/references/framework-embeddings-capability-api.md +28 -8
- package/dist/knowledge/skills/resource-schema-authoring/references/framework-shared-structural-params-api.md +15 -0
- package/dist/knowledge/skills/resource-ui-behavior/references/framework-display-edit-modes-api.md +6 -0
- package/dist/knowledge/skills/resource-ui-behavior/references/framework-frontend-resource-ui-contracts-api.md +89 -0
- package/dist/knowledge/skills/resource-ui-behavior/references/framework-per-primitive-ui-api.md +43 -0
- package/dist/knowledge/skills/resource-ui-behavior/references/framework-primitive-ui-api.md +3 -0
- package/dist/knowledge/skills/settings-placement-authoring/SKILL.md +1 -1
- package/dist/knowledge/skills/spec-companion-exports/SKILL.md +1 -0
- package/dist/knowledge/skills/spec-companion-exports/references/framework-companion-exports-contract-api.md +20 -0
- package/dist/knowledge/skills/spec-resource-update/references/framework-field-spec-params-api.md +31 -5
- package/dist/knowledge/skills/spec-resource-update/references/framework-spec-resource-contracts-api.md +22 -0
- package/dist/knowledge/skills/views-composite-authoring/references/framework-composite-view-contracts-api.md +45 -0
- package/dist/knowledge/topic-index.json +504 -156
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/esm/.builder.pid +0 -9
|
@@ -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,kBAAkB,EAAE,EAAE;IACtB,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE;QAC5C,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;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,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 { 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 \"functionalTopics\": [],\n \"preconditions\": [\n { \"kind\": \"phase_is\", \"phase\": \"bottom_up\" },\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,kBAAkB,EAAE,EAAE;IACtB,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,W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,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 \"functionalTopics\": [],\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"]}
|
|
@@ -14,9 +14,6 @@ export declare const playbookDefinition: {
|
|
|
14
14
|
readonly 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.";
|
|
15
15
|
readonly functionalTopics: readonly [];
|
|
16
16
|
readonly preconditions: readonly [{
|
|
17
|
-
readonly kind: "phase_is";
|
|
18
|
-
readonly phase: "bottom_up";
|
|
19
|
-
}, {
|
|
20
17
|
readonly kind: "artifact_exists";
|
|
21
18
|
readonly selector: {
|
|
22
19
|
readonly family: "build-plan";
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;CA4BrB,CAAC"}
|
|
@@ -14,7 +14,6 @@ export const playbookDefinition = {
|
|
|
14
14
|
"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.",
|
|
15
15
|
"functionalTopics": [],
|
|
16
16
|
"preconditions": [
|
|
17
|
-
{ "kind": "phase_is", "phase": "bottom_up" },
|
|
18
17
|
{ "kind": "artifact_exists", "selector": { "family": "build-plan" } }
|
|
19
18
|
],
|
|
20
19
|
"inputs": [
|
|
@@ -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,kBAAkB,EAAE,EAAE;IACtB,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,
|
|
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,kBAAkB,EAAE,EAAE;IACtB,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 \"functionalTopics\": [],\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"]}
|
|
@@ -6,17 +6,12 @@ export declare const playbookDefinition: {
|
|
|
6
6
|
phase: MetaWorkflow_Phase.BOTTOM_UP;
|
|
7
7
|
intent: string;
|
|
8
8
|
functionalTopics: MetaWorkflow_FunctionalTopic.MODEL_DOMAIN_GRAPH[];
|
|
9
|
-
preconditions:
|
|
10
|
-
kind: MetaWorkflow_PredicateKind.PHASE_IS;
|
|
11
|
-
phase: MetaWorkflow_Phase.BOTTOM_UP;
|
|
12
|
-
selector?: undefined;
|
|
13
|
-
} | {
|
|
9
|
+
preconditions: {
|
|
14
10
|
kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS;
|
|
15
11
|
selector: {
|
|
16
12
|
family: string;
|
|
17
13
|
};
|
|
18
|
-
|
|
19
|
-
})[];
|
|
14
|
+
}[];
|
|
20
15
|
inputs: ({
|
|
21
16
|
family: string;
|
|
22
17
|
intent?: undefined;
|
|
@@ -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,EAC1B,4BAA4B,EAC5B,kBAAkB,EAClB,0BAA0B,EAC1B,gCAAgC,EAChC,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,EAEvC,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB
|
|
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,EAC1B,4BAA4B,EAC5B,kBAAkB,EAClB,0BAA0B,EAC1B,gCAAgC,EAChC,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,EAEvC,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuE9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyRW,CAAC"}
|
|
@@ -7,7 +7,6 @@ export const playbookDefinition = {
|
|
|
7
7
|
intent: '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.',
|
|
8
8
|
functionalTopics: [MetaWorkflow_FunctionalTopic.MODEL_DOMAIN_GRAPH],
|
|
9
9
|
preconditions: [
|
|
10
|
-
{ kind: MetaWorkflow_PredicateKind.PHASE_IS, phase: MetaWorkflow_Phase.BOTTOM_UP },
|
|
11
10
|
{ kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'requirements' } },
|
|
12
11
|
{ kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'market-snapshot' } },
|
|
13
12
|
],
|
|
@@ -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,EAC1B,4BAA4B,EAC5B,kBAAkB,EAClB,0BAA0B,EAC1B,gCAAgC,EAChC,6C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E;QACD,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 functionalTopics: [MetaWorkflow_FunctionalTopic.MODEL_DOMAIN_GRAPH],\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.PHASE_IS, phase: MetaWorkflow_Phase.BOTTOM_UP },\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;AAC9C,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,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;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AAE,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 functionalTopics: [MetaWorkflow_FunctionalTopic.MODEL_DOMAIN_GRAPH],\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"]}
|
|
@@ -14,9 +14,6 @@ export declare const playbookDefinition: {
|
|
|
14
14
|
readonly 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.";
|
|
15
15
|
readonly functionalTopics: readonly ["configure_application_foundation"];
|
|
16
16
|
readonly preconditions: readonly [{
|
|
17
|
-
readonly kind: "phase_is";
|
|
18
|
-
readonly phase: "bottom_up";
|
|
19
|
-
}, {
|
|
20
17
|
readonly kind: "artifact_exists";
|
|
21
18
|
readonly selector: {
|
|
22
19
|
readonly family: "domain-plan";
|
|
@@ -49,6 +46,14 @@ export declare const playbookDefinition: {
|
|
|
49
46
|
readonly 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.";
|
|
50
47
|
readonly kind: "choice";
|
|
51
48
|
readonly options: readonly ["organizations", "users"];
|
|
49
|
+
}, {
|
|
50
|
+
readonly ref: "operating-entity";
|
|
51
|
+
readonly 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.";
|
|
52
|
+
readonly kind: "free_text";
|
|
53
|
+
}, {
|
|
54
|
+
readonly ref: "operating-jurisdictions";
|
|
55
|
+
readonly 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\".";
|
|
56
|
+
readonly kind: "free_text";
|
|
52
57
|
}];
|
|
53
58
|
};
|
|
54
59
|
};
|
|
@@ -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
|
|
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"}
|
|
@@ -14,7 +14,6 @@ export const playbookDefinition = {
|
|
|
14
14
|
"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.",
|
|
15
15
|
"functionalTopics": ["configure_application_foundation"],
|
|
16
16
|
"preconditions": [
|
|
17
|
-
{ "kind": "phase_is", "phase": "bottom_up" },
|
|
18
17
|
{ "kind": "artifact_exists", "selector": { "family": "domain-plan" } },
|
|
19
18
|
{ "kind": "artifact_exists", "selector": { "family": "vision-brief" } }
|
|
20
19
|
],
|
|
@@ -52,6 +51,28 @@ export const playbookDefinition = {
|
|
|
52
51
|
"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.",
|
|
53
52
|
"kind": "choice",
|
|
54
53
|
"options": ["organizations", "users"]
|
|
54
|
+
},
|
|
55
|
+
/*
|
|
56
|
+
* The operator's own legal identity (issue #235), asked HERE because this is the playbook that
|
|
57
|
+
* writes `wildo.saas.config.ts` and already carries the `config-saas` skill — an answer
|
|
58
|
+
* elicited anywhere else would have nowhere to land, since a companion-agent playbook produces
|
|
59
|
+
* an artifact and writes no files.
|
|
60
|
+
*
|
|
61
|
+
* Both questions are deliberately ANSWERABLE IN PART. Every part of
|
|
62
|
+
* `operatorComplianceIdentity` is independently declarable (#228), so a creator who knows the
|
|
63
|
+
* registered name and not the lawful bases records the name — and Paul's decision (#225) is
|
|
64
|
+
* explicit that filling the entity must never block. A question that demanded the whole thing
|
|
65
|
+
* would reintroduce the blocking this lane just removed, one layer up.
|
|
66
|
+
*/
|
|
67
|
+
{
|
|
68
|
+
"ref": "operating-entity",
|
|
69
|
+
"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.",
|
|
70
|
+
"kind": "free_text"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"ref": "operating-jurisdictions",
|
|
74
|
+
"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\".",
|
|
75
|
+
"kind": "free_text"
|
|
55
76
|
}
|
|
56
77
|
]
|
|
57
78
|
}
|
|
@@ -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,kBAAkB,EAAE,CAAC,kCAAkC,CAAC;IACxD,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,
|
|
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;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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.0\",\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 \"functionalTopics\": [\"configure_application_foundation\"],\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 ],\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"]}
|
|
@@ -12,9 +12,6 @@ export declare const playbookDefinition: {
|
|
|
12
12
|
readonly intent: "Decide WHERE every settings destination, resource operation and application view sits in the application shell, and WHY. Reads the domain plan (the modules, their resources and what they mean) and the requirements (which tasks matter), and produces a PLACEMENT PLAN: for each subject, either a PLACED decision naming one surface (the settings hub rail, the sidebar, the user menu, the command palette) and its address on that surface, or an explicit DECLINED decision with a reason. Both carry a rationale. It also declares the GROUPS that should exist on the grouped surfaces (settings rail categories, sidebar sections) with the product purpose behind each, which is what grounds their generated labels in authored intent instead of filler. This playbook DECIDES placement; it does NOT author configuration — turning a decision into `frontend/src/config/settings-hub.config.ts` and `app-shell.config.ts` is a coding task the build lane dispatches through the `settings-placement-authoring` skill. It runs BEFORE build-decompose, which consumes the plan and emits those tasks — the reverse order would be a cycle, since build-decompose is what produces the build plan. It writes no TypeScript, invents no destination refs, and authors no labels. It exists because the alternative is the framework defaulting placement, which is what made an application's settings rail unauthorable: nothing is placed implicitly, so a subject nobody decided about is a visible coverage gap rather than a silent framework default.";
|
|
13
13
|
readonly functionalTopics: readonly ["shape_user_experience"];
|
|
14
14
|
readonly preconditions: readonly [{
|
|
15
|
-
readonly kind: "phase_is";
|
|
16
|
-
readonly phase: "bottom_up";
|
|
17
|
-
}, {
|
|
18
15
|
readonly kind: "artifact_exists";
|
|
19
16
|
readonly selector: {
|
|
20
17
|
readonly family: "domain-plan";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.placement-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.placement-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CrB,CAAC"}
|
|
@@ -12,7 +12,6 @@ export const playbookDefinition = {
|
|
|
12
12
|
"intent": "Decide WHERE every settings destination, resource operation and application view sits in the application shell, and WHY. Reads the domain plan (the modules, their resources and what they mean) and the requirements (which tasks matter), and produces a PLACEMENT PLAN: for each subject, either a PLACED decision naming one surface (the settings hub rail, the sidebar, the user menu, the command palette) and its address on that surface, or an explicit DECLINED decision with a reason. Both carry a rationale. It also declares the GROUPS that should exist on the grouped surfaces (settings rail categories, sidebar sections) with the product purpose behind each, which is what grounds their generated labels in authored intent instead of filler. This playbook DECIDES placement; it does NOT author configuration — turning a decision into `frontend/src/config/settings-hub.config.ts` and `app-shell.config.ts` is a coding task the build lane dispatches through the `settings-placement-authoring` skill. It runs BEFORE build-decompose, which consumes the plan and emits those tasks — the reverse order would be a cycle, since build-decompose is what produces the build plan. It writes no TypeScript, invents no destination refs, and authors no labels. It exists because the alternative is the framework defaulting placement, which is what made an application's settings rail unauthorable: nothing is placed implicitly, so a subject nobody decided about is a visible coverage gap rather than a silent framework default.",
|
|
13
13
|
"functionalTopics": ["shape_user_experience"],
|
|
14
14
|
"preconditions": [
|
|
15
|
-
{ "kind": "phase_is", "phase": "bottom_up" },
|
|
16
15
|
{ "kind": "artifact_exists", "selector": { "family": "domain-plan" } }
|
|
17
16
|
],
|
|
18
17
|
"inputs": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.placement-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,2+CAA2+C;IACr/C,kBAAkB,EAAE,CAAC,uBAAuB,CAAC;IAC7C,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.placement-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,2+CAA2+C;IACr/C,kBAAkB,EAAE,CAAC,uBAAuB,CAAC;IAC7C,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,cAAc,EAAE;KAC7B;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,mCAAmC;YAChD,aAAa,EAAE,0mDAA0mD;SAC1nD;KACF;IACD,QAAQ,EAAE;QACR,kBAAkB,EAAE,qVAAqV;QACzW,gBAAgB,EAAE,CAAC,iBAAiB,CAAC;QACrC,WAAW,EAAE;YACX,8BAA8B;YAC9B,kBAAkB;YAClB,mBAAmB;YACnB,gBAAgB;SACjB;QACD,gBAAgB,EAAE,4pBAA4pB;QAC9qB,cAAc,EAAE;YACd,YAAY,EAAE,0BAA0B;YACxC,kBAAkB,EAAE,CAAC,uBAAuB,EAAE,wBAAwB,CAAC;YACvE,oBAAoB,EAAE,wBAAwB;YAC9C,sBAAsB,EAAE,uBAAuB;YAC/C,gBAAgB,EAAE,CAAC;SACpB;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 * Placement is a DECISION the creator should not have to make. This playbook\n * produces it as an artifact, with a per-decision rationale, so a later reader\n * can ask \"why is this here?\" without re-deriving the answer.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.placement-plan\",\n \"version\": \"0.1.0\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Decide WHERE every settings destination, resource operation and application view sits in the application shell, and WHY. Reads the domain plan (the modules, their resources and what they mean) and the requirements (which tasks matter), and produces a PLACEMENT PLAN: for each subject, either a PLACED decision naming one surface (the settings hub rail, the sidebar, the user menu, the command palette) and its address on that surface, or an explicit DECLINED decision with a reason. Both carry a rationale. It also declares the GROUPS that should exist on the grouped surfaces (settings rail categories, sidebar sections) with the product purpose behind each, which is what grounds their generated labels in authored intent instead of filler. This playbook DECIDES placement; it does NOT author configuration — turning a decision into `frontend/src/config/settings-hub.config.ts` and `app-shell.config.ts` is a coding task the build lane dispatches through the `settings-placement-authoring` skill. It runs BEFORE build-decompose, which consumes the plan and emits those tasks — the reverse order would be a cycle, since build-decompose is what produces the build plan. It writes no TypeScript, invents no destination refs, and authors no labels. It exists because the alternative is the framework defaulting placement, which is what made an application's settings rail unauthorable: nothing is placed implicitly, so a subject nobody decided about is a visible coverage gap rather than a silent framework default.\",\n \"functionalTopics\": [\"shape_user_experience\"],\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"domain-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"domain-plan\" },\n { \"family\": \"requirements\" }\n ],\n \"outputs\": [\n {\n \"family\": \"placement-plan\",\n \"schemaRef\": \"saas-specifications:PlacementPlan\",\n \"description\": \"The placement decision — `groups[]` (the containers that should exist on the grouped surfaces, each with the product purpose behind it) plus `decisions[]` (one per subject PER SURFACE: a stable `decisionRef`, the `PlacementSubject` being placed — an engine settings destination by ref, a resource operation, or an app view — a `PlacementDisposition` of PLACED or DECLINED, the surface-discriminated `PlacementAddress` when placed, and a REQUIRED `rationale` on both arms). Each decision also carries a REQUIRED `origin` — `DELIBERATED` or `REVISED` — which the trusted runtime stamps `DELIBERATED`; it is not representable in the provider-facing generation shape, because a panel run IS the panel's judgement and a model cannot declare its own output a human revision. A later edit that changes a decision sets `origin: REVISED` and records the panel's own reasoning in `supersedes.rationale`, so the artifact stops asserting panel reasoning for a decision the panel never took. Typed by the `_core` `placement-plan` family (`PlacementPlan`); the provider answers the strict `PlacementPlanGeneration` shape and the trusted runtime stamps refs and version. `validatePlacementPlan` is the deterministic validator: one subject placed twice on the SAME surface is a hard floor (the plan contradicts itself), while an empty group and an order collision are authoring warnings. Its coverage checks run only when the caller supplies the destination catalog, so a run without one reports no coverage result rather than a clean one. The plan carries no file path, config key or label string — those belong to the coding task that authors the config.\"\n }\n ],\n \"method\": {\n \"//contextSources\": \"WORKSPACE_TRUTH — placement is decided against what EXISTS: the real engine settings destinations, the real resources and their operations, and the shell surfaces the application already has. A planner working from the definition artifacts alone invents destination refs that resolve to nothing, and every decision it emits is unplaceable.\",\n \"contextSources\": [\"workspace_truth\"],\n \"skillRefs\": [\n \"settings-placement-authoring\",\n \"config-app-shell\",\n \"config-navigation\",\n \"journey-status\"\n ],\n \"//deliberation\": \"Placement is DECIDED BY A PANEL, not elicited from the creator: the arrangement that is right for an application has several defensible answers, and the creator is the person least equipped to choose between them before the app exists. The information-architect OWNS the domain (so it derives the rubric); the design-system-guardian sits as the coherence memory, because where a thing goes must not fork the pattern the shipped surfaces already taught users. Three candidates, because the criteria trade off against each other — first-run discoverability, the daily-use path, and category convention pull in different directions and a single pass silently picks one.\",\n \"deliberation\": {\n \"workDomain\": \"information_architecture\",\n \"reviewerRoleRefs\": [\"information-architect\", \"design-system-guardian\"],\n \"coordinatorRoleRef\": \"design-system-guardian\",\n \"rubricDeriverRoleRef\": \"information-architect\",\n \"candidateCount\": 3\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"]}
|