@wildo-ai/framework-knowledge 1.1.2 → 1.1.3
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 +228 -6
- package/dist/esm/framework-knowledge.definitions.js.map +1 -1
- package/dist/esm/framework-knowledge.schemas.d.ts +1 -2
- 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 +3 -4
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js +4 -4
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.d.ts +3 -4
- package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.js +4 -4
- 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 -1
- 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 -1
- 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 +1 -2
- 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 +1 -2
- 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 +2 -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 +3 -3
- 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 +1 -2
- 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 +1 -2
- 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 +0 -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 +0 -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 +0 -1
- package/dist/esm/playbooks/refinement.document-facts/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/refinement.document-facts/playbook.definition.js +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -2
- package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.js +2 -2
- package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.d.ts +0 -1
- package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.d.ts +0 -1
- package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.d.ts +0 -1
- 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 +0 -1
- 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 +0 -1
- package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.d.ts +0 -2
- 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 +9 -4
- package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.d.ts +0 -1
- package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.market-research/playbook.definition.d.ts +0 -1
- package/dist/esm/playbooks/top_down.market-research/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.market-research/playbook.definition.js +0 -1
- package/dist/esm/playbooks/top_down.market-research/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.d.ts +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 -1
- 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 +0 -1
- 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 +0 -1
- 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/manifest.json +8 -9
- package/dist/knowledge/playbooks/bottom_up.build-decompose/method.md +13 -70
- package/dist/knowledge/playbooks/bottom_up.build-decompose/playbook.json +11 -19
- package/dist/knowledge/playbooks/bottom_up.build-dispatch/method.md +5 -88
- package/dist/knowledge/playbooks/bottom_up.build-dispatch/playbook.json +15 -8
- package/dist/knowledge/playbooks/bottom_up.build-scale/method.md +4 -5
- package/dist/knowledge/playbooks/bottom_up.build-scale/playbook.json +15 -8
- package/dist/knowledge/playbooks/bottom_up.domain-plan/method.md +4 -0
- package/dist/knowledge/playbooks/bottom_up.domain-plan/playbook.json +8 -7
- package/dist/knowledge/playbooks/bottom_up.foundation/method.md +22 -49
- package/dist/knowledge/playbooks/bottom_up.foundation/playbook.json +8 -17
- package/dist/knowledge/playbooks/refinement.compliance-document-candidate/method.md +15 -780
- package/dist/knowledge/playbooks/refinement.compliance-document-candidate/playbook.json +11 -11
- package/dist/knowledge/playbooks/refinement.document-facts/method.md +20 -141
- package/dist/knowledge/playbooks/refinement.document-facts/playbook.json +15 -10
- package/dist/knowledge/playbooks/top_down.brand-identity/method.md +3 -2
- package/dist/knowledge/playbooks/top_down.brand-identity/playbook.json +16 -11
- package/dist/knowledge/playbooks/top_down.business-model/playbook.json +14 -6
- package/dist/knowledge/playbooks/top_down.capability-map/method.md +4 -2
- package/dist/knowledge/playbooks/top_down.capability-map/playbook.json +16 -7
- package/dist/knowledge/playbooks/top_down.compliance-posture/method.md +4 -21
- package/dist/knowledge/playbooks/top_down.compliance-posture/playbook.json +65 -16
- package/dist/knowledge/playbooks/{top_down.market-snapshot-produce → top_down.market-analysis}/evaluation-protocol.json +1 -1
- package/dist/knowledge/playbooks/{top_down.market-snapshot-produce → top_down.market-analysis}/evaluation-treatment.json +1 -1
- package/dist/knowledge/playbooks/top_down.market-analysis/method.md +165 -51
- package/dist/knowledge/playbooks/top_down.market-analysis/playbook.json +43 -23
- package/dist/knowledge/playbooks/top_down.phase-gate/method.md +4 -8
- package/dist/knowledge/playbooks/top_down.phase-gate/playbook.json +7 -9
- package/dist/knowledge/playbooks/top_down.requirements-definition/method.md +7 -9
- package/dist/knowledge/playbooks/top_down.requirements-definition/playbook.json +15 -7
- package/dist/knowledge/playbooks/top_down.scope-roadmap/method.md +3 -3
- package/dist/knowledge/playbooks/top_down.scope-roadmap/playbook.json +16 -11
- package/dist/knowledge/playbooks/top_down.value-proposition/method.md +4 -2
- package/dist/knowledge/playbooks/top_down.value-proposition/playbook.json +15 -7
- package/dist/knowledge/playbooks/top_down.vision-elicitation/method.md +2 -2
- package/dist/knowledge/playbooks/top_down.vision-elicitation/playbook.json +16 -11
- package/dist/knowledge/references/build-plan.task-graph.config.md +1 -45
- package/dist/knowledge/references/companion.technical-doc.service.md +2 -102
- package/dist/knowledge/references/example.config.app-shell.full.md +5 -0
- package/dist/knowledge/references/example.module.companion-exports.full.md +0 -1
- package/dist/knowledge/references/example.provider.backend-module-shape.md +0 -7
- package/dist/knowledge/references/example.resource.add-resource.module-factory-map.md +1 -0
- package/dist/knowledge/references/platform.config.saas.md +0 -51
- package/dist/knowledge/references/presets.models.surface-policy.md +10 -19
- package/dist/knowledge/references/saas.external-data.admin-endpoints.md +48 -0
- package/dist/knowledge/references/saas.frontend.app-level-component.configuration.md +11 -31
- package/dist/knowledge/references/saas.frontend.app-level-component.vocabulary.md +1 -0
- package/dist/knowledge/references/saas.frontend.composite-view.authoring.md +0 -45
- package/dist/knowledge/references/saas.frontend.resource-operation-frontend-config.md +0 -198
- package/dist/knowledge/references/saas.models.data-mode-read-list.md +0 -164
- package/dist/knowledge/references/saas.models.engine-capabilities.md +6 -26
- package/dist/knowledge/references/saas.models.http-api-binding.md +29 -3
- package/dist/knowledge/references/saas.models.provider-capabilities.md +3 -4
- package/dist/knowledge/references/saas.models.resource-config.builder-parameters.md +2 -4
- package/dist/knowledge/references/saas.models.resource-config.resource-configuration.md +0 -2
- package/dist/knowledge/references/saas.models.resource-config.resources-registry.md +0 -14
- package/dist/knowledge/references/saas.specifications.application-document-fact-specification.contract.md +31 -11
- package/dist/knowledge/references/saas.specifications.assurance-document-blueprint.contract.md +2 -32
- package/dist/knowledge/references/saas.specifications.assurance-program.contract.md +6 -29
- package/dist/knowledge/references/saas.specifications.companion-exports.contract.md +0 -56
- package/dist/knowledge/references/saas.specifications.resource-spec-config.md +0 -22
- package/dist/knowledge/references/zod.decorators.chainable-runtime.md +0 -26
- package/dist/knowledge/references/zod.decorators.decorator-vocabulary.md +0 -45
- package/dist/knowledge/references/zod.decorators.display-edit-modes.md +1 -7
- package/dist/knowledge/references/zod.decorators.field-spec-params.md +5 -31
- package/dist/knowledge/references/zod.decorators.per-primitive-ui.md +1 -44
- package/dist/knowledge/references/zod.decorators.primitive-ui.md +0 -3
- package/dist/knowledge/references/zod.decorators.schema-metadata.md +0 -1
- package/dist/knowledge/references/zod.decorators.shared-structural-params.md +0 -15
- package/dist/knowledge/registries/assurance-authority-bases.json +2 -3
- package/dist/knowledge/registries/framework-topics.json +11 -146
- package/dist/knowledge/registries/playbooks.json +18 -154
- package/dist/knowledge/registries/source-tags.json +630 -883
- package/dist/knowledge/skills/INDEX.md +3 -4
- package/dist/knowledge/skills/brand-logo-authoring/SKILL.md +1 -2
- package/dist/knowledge/skills/compliance-document-authoring/SKILL.md +2 -16
- package/dist/knowledge/skills/compliance-document-authoring/references/document-composition-governance.md +9 -31
- package/dist/knowledge/skills/compliance-document-authoring/references/document-composition-privacy-notice.md +74 -252
- package/dist/knowledge/skills/compliance-document-authoring/references/document-composition-service-terms.md +8 -26
- package/dist/knowledge/skills/compliance-document-authoring/references/framework-application-document-fact-specification-contract.md +53 -97
- package/dist/knowledge/skills/compliance-document-authoring/references/framework-assurance-document-blueprint-contract.md +21 -84
- package/dist/knowledge/skills/config-app-shell/SKILL.md +9 -31
- package/dist/knowledge/skills/config-app-shell/references/framework-app-shell-api.md +12 -31
- package/dist/knowledge/skills/config-design-system/SKILL.md +1 -23
- package/dist/knowledge/skills/config-design-system/references/framework-surface-policy-api.md +10 -19
- package/dist/knowledge/skills/config-navigation/SKILL.md +2 -75
- package/dist/knowledge/skills/config-saas/SKILL.md +2 -19
- package/dist/knowledge/skills/config-saas/references/framework-provider-capabilities-api.md +9 -30
- package/dist/knowledge/skills/config-saas/references/framework-wildo-saas-config-api.md +0 -51
- package/dist/knowledge/skills/configure-billing/references/example-backend-provider-module-shape.md +0 -7
- package/dist/knowledge/skills/flows-actors-a2a-exposure/SKILL.md +1 -2
- package/dist/knowledge/skills/flows-actors-a2a-exposure/references/framework-flows-actors-a2a-contract.md +3 -4
- package/dist/knowledge/skills/market-companion-prompt-enrichment/SKILL.md +0 -56
- package/dist/knowledge/skills/market-companion-prompt-enrichment/references/framework-companion-behavior-api.md +0 -56
- package/dist/knowledge/skills/module-companion-exports/SKILL.md +0 -1
- package/dist/knowledge/skills/module-companion-exports/references/companion-exports-by-package.md +0 -56
- 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 +0 -213
- package/dist/knowledge/skills/resource-add-resource/SKILL.md +1 -2
- package/dist/knowledge/skills/resource-add-resource/references/framework-new-resource-core-config-api.md +2 -4
- package/dist/knowledge/skills/resource-config-wiring/SKILL.md +0 -15
- package/dist/knowledge/skills/resource-config-wiring/references/framework-saas-models-resource-config-api.md +2 -224
- package/dist/knowledge/skills/resource-custom-view/references/custom-view-contracts.md +0 -198
- package/dist/knowledge/skills/resource-external-data/SKILL.md +2 -0
- package/dist/knowledge/skills/resource-external-data/references/framework-http-api-binding-api.md +29 -3
- package/dist/knowledge/skills/resource-external-data/references/framework-pipeline-admin-endpoints-api.md +70 -0
- package/dist/knowledge/skills/resource-mcp-tool-exposure/SKILL.md +1 -22
- package/dist/knowledge/skills/resource-rag-source-fields/references/framework-embeddings-capability-api.md +8 -28
- package/dist/knowledge/skills/resource-schema-authoring/SKILL.md +0 -1
- package/dist/knowledge/skills/resource-schema-authoring/references/decorator-layer-map.md +0 -17
- package/dist/knowledge/skills/resource-schema-authoring/references/framework-decorator-vocabulary-api.md +0 -46
- package/dist/knowledge/skills/resource-schema-authoring/references/framework-shared-structural-params-api.md +0 -15
- package/dist/knowledge/skills/resource-schema-authoring/references/framework-zod-lifecycle-and-chainable-api.md +0 -26
- package/dist/knowledge/skills/resource-ui-behavior/references/framework-display-edit-modes-api.md +1 -7
- package/dist/knowledge/skills/resource-ui-behavior/references/framework-frontend-resource-ui-contracts-api.md +0 -198
- package/dist/knowledge/skills/resource-ui-behavior/references/framework-per-primitive-ui-api.md +1 -44
- package/dist/knowledge/skills/resource-ui-behavior/references/framework-primitive-ui-api.md +0 -3
- package/dist/knowledge/skills/spec-companion-exports/SKILL.md +0 -1
- package/dist/knowledge/skills/spec-companion-exports/references/framework-companion-exports-contract-api.md +0 -56
- package/dist/knowledge/skills/spec-resource-update/references/framework-field-spec-params-api.md +5 -31
- package/dist/knowledge/skills/spec-resource-update/references/framework-spec-resource-contracts-api.md +0 -22
- package/dist/knowledge/skills/views-composite-authoring/references/framework-composite-view-contracts-api.md +0 -45
- package/dist/knowledge/topic-index.json +220 -725
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/external-framework-mapping.json +0 -1
- package/dist/knowledge/playbooks/bottom_up.assemble-verify/method.md +0 -51
- package/dist/knowledge/playbooks/bottom_up.assemble-verify/playbook.json +0 -43
- package/dist/knowledge/playbooks/bottom_up.placement-plan/method.md +0 -185
- package/dist/knowledge/playbooks/bottom_up.placement-plan/playbook.json +0 -64
- package/dist/knowledge/playbooks/top_down.compliance-analysis/method.md +0 -41
- package/dist/knowledge/playbooks/top_down.compliance-analysis/playbook.json +0 -100
- package/dist/knowledge/playbooks/top_down.compliance-conception/method.md +0 -117
- package/dist/knowledge/playbooks/top_down.compliance-conception/playbook.json +0 -86
- package/dist/knowledge/playbooks/top_down.compliance-evidence-adequacy/method.md +0 -61
- package/dist/knowledge/playbooks/top_down.compliance-evidence-adequacy/playbook.json +0 -41
- package/dist/knowledge/playbooks/top_down.compliance-research/method.md +0 -76
- package/dist/knowledge/playbooks/top_down.compliance-research/playbook.json +0 -42
- package/dist/knowledge/playbooks/top_down.market-evidence-adequacy/method.md +0 -56
- package/dist/knowledge/playbooks/top_down.market-evidence-adequacy/playbook.json +0 -42
- package/dist/knowledge/playbooks/top_down.market-research/method.md +0 -68
- package/dist/knowledge/playbooks/top_down.market-research/playbook.json +0 -44
- package/dist/knowledge/playbooks/top_down.market-snapshot-produce/method.md +0 -239
- package/dist/knowledge/playbooks/top_down.market-snapshot-produce/playbook.json +0 -67
- package/dist/knowledge/references/placement-plan.config.md +0 -330
- package/dist/knowledge/references/saas.frontend.display-layout.reading-measure.md +0 -34
- package/dist/knowledge/references/saas.frontend.navigation.operation-override.md +0 -45
- package/dist/knowledge/references/saas.frontend.public-shell.identity-mode.md +0 -65
- package/dist/knowledge/references/saas.frontend.settings-hub.engine-destinations.md +0 -58
- package/dist/knowledge/references/saas.frontend.settings-hub.placement.md +0 -118
- package/dist/knowledge/references/saas.models.file-upload-grant.md +0 -179
- package/dist/knowledge/references/saas.models.navigation.surface-vocabulary.md +0 -124
- package/dist/knowledge/references/saas.models.navigation.transition-vocabulary.md +0 -99
- package/dist/knowledge/references/saas.models.navigation.zone-declaration.md +0 -127
- package/dist/knowledge/references/saas.models.resource-config.operation-variant-client-timeout.md +0 -42
- package/dist/knowledge/references/saas.specifications.application-authored-document-fact-specification.contract.md +0 -29
- package/dist/knowledge/references/zod.decorators.data-categories.md +0 -197
- package/dist/knowledge/rules/resource-schema-awareness.md +0 -77
- package/dist/knowledge/skills/config-app-shell/references/framework-public-shell-identity-api.md +0 -124
- package/dist/knowledge/skills/config-design-system/references/loading-placeholder-authoring.md +0 -47
- package/dist/knowledge/skills/config-navigation/references/framework-content-width-api.md +0 -98
- package/dist/knowledge/skills/config-navigation/references/framework-navigation-operation-override-api.md +0 -54
- package/dist/knowledge/skills/config-navigation/references/framework-navigation-vocabulary-api.md +0 -232
- package/dist/knowledge/skills/config-navigation/references/framework-navigation-zone-declaration-api.md +0 -149
- package/dist/knowledge/skills/config-navigation/references/how-navigation-resolves.md +0 -114
- package/dist/knowledge/skills/config-navigation/references/navigation-configuration-map.md +0 -133
- package/dist/knowledge/skills/config-saas/references/compliance-declarations.md +0 -111
- package/dist/knowledge/skills/resource-config-wiring/references/framework-personal-data-declaration-api.md +0 -622
- package/dist/knowledge/skills/resource-mcp-tool-exposure/references/framework-file-upload-grant-contract.md +0 -192
- package/dist/knowledge/skills/resource-schema-authoring/references/framework-personal-data-category-api.md +0 -245
- package/dist/knowledge/skills/settings-placement-authoring/SKILL.md +0 -134
- package/dist/knowledge/skills/settings-placement-authoring/references/framework-settings-destinations-catalog.md +0 -65
- package/dist/knowledge/skills/settings-placement-authoring/references/framework-settings-placement-api.md +0 -127
- /package/dist/knowledge/playbooks/{top_down.market-snapshot-produce → top_down.market-analysis}/structured-artifact-action.json +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { MetaWorkflow_AuthorityAssuranceClass, MetaWorkflow_AuthorityDecisionMode, MetaWorkflow_AuthorityInteractionChannel, MetaWorkflow_ContinuationAction, MetaWorkflow_DecisionConsequence, MetaWorkflow_DecisionRuleBoundaryClass, MetaWorkflow_EvaluationAggregationStrategy, MetaWorkflow_EvaluationPromptAssemblyStrategy, MetaWorkflow_EvaluationVerdict, MetaWorkflow_EvidenceRequirementKind, MetaWorkflow_FailureDisposition, MetaWorkflow_HardFloorPosture, MetaWorkflow_OutputContentClass, MetaWorkflow_OutputContractCardinality, MetaWorkflow_StructuredArtifactOutputSetCommitment, } from '@wildo-ai/saas-models/meta-workflows';
|
|
2
|
-
import { MetaWorkflow_ApprovalPolicy, MetaWorkflow_ElicitationQuestionKind, MetaWorkflow_ArtifactIntent, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy,
|
|
2
|
+
import { MetaWorkflow_ApprovalPolicy, MetaWorkflow_ElicitationQuestionKind, MetaWorkflow_ArtifactIntent, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_Phase, MetaWorkflow_PredicateKind, DomainPlanEvaluationCriterionRef, DomainPlanEvaluationEvidenceCoveragePolicyRef, DomainPlanEvaluationEvidenceFreshnessPolicyRef, DomainPlanEvaluationEvidenceRequirementRef, DomainPlanEvaluationEvidenceSubjectRef, } from '@wildo-ai/saas-specifications/application-creation';
|
|
3
3
|
export const playbookDefinition = {
|
|
4
4
|
ref: 'bottom_up.domain-plan',
|
|
5
5
|
version: '0.2.0',
|
|
6
6
|
phase: MetaWorkflow_Phase.BOTTOM_UP,
|
|
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
|
-
functionalTopics: [MetaWorkflow_FunctionalTopic.MODEL_DOMAIN_GRAPH],
|
|
9
8
|
preconditions: [
|
|
10
9
|
{ kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'requirements' } },
|
|
11
10
|
{ kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'market-snapshot' } },
|
|
@@ -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,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,GAEvC,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,uBAAuB;IAC5B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,SAAS;IACnC,MAAM,EACJ,mTAAmT;IACrT,gBAAgB,EAAE,CAAC,4BAA4B,CAAC,kBAAkB,CAAC;IACnE,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,eAAe,EAAE,QAAQ,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gC,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"]}
|
|
1
|
+
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.domain-plan/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,GACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAE1B,kBAAkB,EAClB,0BAA0B,EAC1B,gCAAgC,EAChC,6CAA6C,EAC7C,8CAA8C,EAC9C,0CAA0C,EAC1C,sCAAsC,GAEvC,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,uBAAuB;IAC5B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,SAAS;IACnC,MAAM,EACJ,mTAAmT;IACrT,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,eAAe,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QAC1F,EAAE,IAAI,EAAE,0BAA0B,CAAC,eAAe,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE;KAC9F;IACD,MAAM,EAAE;QACN,EAAE,MAAM,EAAE,cAAc,EAAE;QAC1B,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,2BAA2B,CAAC,QAAQ,EAAE;QAC3E,EAAE,MAAM,EAAE,gBAAgB,EAAE;QAC5B,EAAE,MAAM,EAAE,SAAS,EAAE;QACrB,EAAE,MAAM,EAAE,cAAc,EAAE;KAC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ourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ElicitationQuestionKind,\n MetaWorkflow_ArtifactIntent,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_FunctionalTopic,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n DomainPlanEvaluationCriterionRef,\n DomainPlanEvaluationEvidenceCoveragePolicyRef,\n DomainPlanEvaluationEvidenceFreshnessPolicyRef,\n DomainPlanEvaluationEvidenceRequirementRef,\n DomainPlanEvaluationEvidenceSubjectRef,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'bottom_up.domain-plan',\n version: '0.2.0',\n phase: MetaWorkflow_Phase.BOTTOM_UP,\n intent:\n 'Turn the approved definition set into one atomic, planning-depth domain output set: module decomposition with per-module resource inventory plus typed inter-resource relationship intents. The output remains staged until deterministic validation, semantic evaluation and distinct result authority complete.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_EXISTS, selector: { family: 'market-snapshot' } },\n ],\n inputs: [\n { family: 'requirements' },\n { family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.AUDIENCE },\n { family: 'feature-drafts' },\n { family: 'roadmap' },\n { family: 'vision-brief' },\n ],\n outputs: [\n {\n family: 'domain-plan',\n schemaRef: 'saas-specifications:DomainPlanOutputSet',\n description:\n 'THE atomic domain plan: the module decomposition AND the inter-resource relationship drafts, one value, one landed file. (The former separate relationship-drafts family was collapsed into this output 2026-08-24 — the two were never independently meaningful, and the deterministic validator crosses them.) A working edit until a human commits it.',\n },\n ],\n method: {\n /*\n * The mid-run clarification channel, opt-in.\n *\n * This is where the decisions a product owner owns actually live: the tenancy model had to be\n * hard-coded as an interview question by hand, and the plan this playbook produced made\n * `next-step` one-to-one with two different parents — precisely the shape a derivation should\n * have stopped and asked about rather than choosing silently.\n */\n suspendsForClarification: true,\n skillRefs: ['journey-status', 'resource-add-module', 'resource-add-resource', 'module-relationships'],\n /*\n * The tenancy question moved here from `bottom_up.foundation`, which runs AFTER this artifact\n * exists.\n *\n * Foundation's comment described the domain plan as deliberately scope-free, and that is true of\n * its FIELDS and false of its CONTENT: wonder-crm's plan (2026-08-27) modelled tenancy unasked —\n * a `workspace` module owning a `workspace` resource, a `team-membership` module owning\n * `workspace-member`, and `deal` referencing `workspace-member` for owner assignment. The creator\n * was asked \"organizations or users?\" afterwards, and answering `users` would have left two\n * modules and a relationship that nothing reconciles.\n *\n * So it is asked HERE, where the decision is first used, and the answer is carried in the\n * committed plan (`DomainPlanOutputSet.tenancy`) rather than in a run's transient answers.\n * Foundation reads the plan and only falls back to its own question for plans authored before\n * the field existed.\n */\n elicitation: {\n questions: [\n {\n ref: 'tenancy',\n question:\n 'How is this application\\'s data partitioned? Answer `organizations` when users collaborate inside shared workspaces or teams (this enables the ORGANIZATIONS engine capability and scopes every resource to an organization), or `users` when every user\\'s data is their own.',\n kind: MetaWorkflow_ElicitationQuestionKind.CHOICE,\n options: ['organizations', 'users'],\n },\n ],\n },\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n\n/**\n * Portable generation boundary for the atomic domain-plan output set.\n *\n * The generic Driver stops at a validated candidate artifact. The existing\n * application-owned staging, semantic evaluation, result authority and\n * accepted-family mutation path remains the only destination-landing owner.\n */\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/domain-plan-output-set',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/generate-domain-plan-output-set',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-domain-plan-and-relationship-drafts',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-vision-brief',\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-feature-drafts',\n 'application-creation:artifact-selector/accepted-roadmap',\n ],\n outcomeContractRefs: ['application-creation:output-contract/domain-plan-output-set'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifact-before-domain-plan-staging',\n allowedCapabilityClassRefs: ['meta-workflow:capability-class/structured-artifact-generation'],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: null,\n budgetPolicyRef: 'application-creation:budget-policy/domain-plan-output-set-generation',\n continuationPolicyRef: 'application-creation:continuation-policy/domain-plan-output-set-generation',\n decisionPointDefinitionRefs: ['application-creation:decision-point/domain-plan-output-set-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: {\n contractRef: 'application-creation:input-projection/accepted-domain-plan-definition-set',\n contractVersion: 1,\n },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/domain-plan-output-set-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/domain-plan-output-set-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/domain-plan-output-set',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/domain-plan-output-set', schemaVersion: 1 },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: { contractRef: 'saas-specifications:validator/domain-plan-output-set', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-atomic-domain-plan-output-set'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [\n MetaWorkflow_FailureDisposition.FAIL_BINDING,\n MetaWorkflow_FailureDisposition.REQUEST_INPUT,\n MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING,\n ],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/domain-plan-output-set-result',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/domain-plan-output-set-result',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [\n MetaWorkflow_EvaluationVerdict.GAP,\n MetaWorkflow_EvaluationVerdict.INDETERMINATE,\n MetaWorkflow_EvaluationVerdict.CONCERN,\n MetaWorkflow_EvaluationVerdict.PASS,\n ],\n aggregationPolicyRef: 'application-creation:aggregation/worst-domain-plan-coherence-verdict',\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.REQUIREMENT_COVERAGE,\n criterionVersion: 1,\n instruction:\n 'Determine whether every current-horizon functional requirement is served by at least one module capability and resource inventory. Treat a requirement without a resolvable module home as a material gap.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every current-horizon functional requirement has a coherent module and resource home.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Coverage is complete but one or more requirement-to-module links are weak or indirect.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one current-horizon functional requirement has no resolvable module home.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish complete requirement coverage.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.FEATURE_COVERAGE,\n criterionVersion: 1,\n instruction:\n 'Determine whether every feature draft and benefit-delivering feature is realizable by the proposed module capabilities and resource inventories. Do not infer a home from naming similarity alone.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every feature and benefit-delivering capability has a resolvable domain home.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'All features have homes, but one or more mappings are weak or insufficiently explained.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one feature or benefit-delivering capability has no resolvable domain home.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish complete feature coverage.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.MODULE_JUSTIFICATION,\n criterionVersion: 1,\n instruction:\n 'Determine whether every proposed module is justified by accepted requirements or features and represents one coherent business capability. Flag speculative or mixed-purpose modules.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every proposed module is justified and capability-coherent.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'One or more modules are weakly justified or combine boundaries that should be reconsidered.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one module is speculative or materially incoherent with the definition set.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish why every module exists.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.INVENTORY_PLAUSIBILITY,\n criterionVersion: 1,\n instruction:\n 'Assess whether main resources form each module semantic center, supporting resources remain genuinely supporting, and ownership boundaries are plausible. Deterministic uniqueness has already passed and must not be reinterpreted.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Each module inventory has a plausible semantic center and supporting boundary.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The inventories are usable but one or more main/supporting classifications are questionable.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one inventory materially contradicts its declared module capability.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish plausible module inventories.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.RELATIONSHIP_INTEGRITY,\n criterionVersion: 1,\n instruction:\n 'Assess whether the typed relationship intents are semantically necessary and coherent with the inventoried resources, conceptual cardinality and ownership direction. Do not resolve them into physical foreign keys.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The relationship intents coherently connect the proposed resource inventory.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The relationships are structurally valid but one or more semantic intents need refinement.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one necessary relationship is missing or one declared relationship is materially incoherent.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish semantic relationship integrity.',\n },\n },\n {\n schemaVersion: 1,\n criterionRef: DomainPlanEvaluationCriterionRef.BOUNDARY_DISCIPLINE,\n criterionVersion: 1,\n instruction:\n 'Determine whether the output remains at planning depth: modules, resource inventories and relationship intents only. Treat schema fields, concrete foreign-key placement or generated implementation code as scope leakage.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: DomainPlanEvaluationEvidenceSubjectRef.DEFINITION_CONTEXT_AND_STAGED_OUTPUT_SET,\n minCount: 2,\n maxCount: 2,\n coveragePolicyRef: DomainPlanEvaluationEvidenceCoveragePolicyRef.COMPLETE_DEFINITION_CONTEXT_AND_EXACT_OUTPUT_SET,\n freshnessPolicyRef: DomainPlanEvaluationEvidenceFreshnessPolicyRef.CURRENT_ACCEPTED_HEADS_AND_ACTION_RESULT,\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The output remains within the declared planning-depth boundary.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The output is usable but contains limited premature implementation detail.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'The output materially crosses into schema, foreign-key or implementation authoring.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The staged evidence cannot establish the output depth boundary.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/domain-plan-output-set-result',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: { outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate', outputContractVersion: 1 },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/domain-plan-output-set-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/domain-plan-output-set-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/domain-plan-output-set-structurally-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/domain-plan-accepted-landing',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/domain-plan-output-set-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-domain-plan-coherence-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/domain-plan-output-set-structurally-valid',\n evidenceRequirementRefs: [\n DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n ],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/domain-plan-output-set-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-domain-plan-output-set',\n riskClassRef: 'application-creation:risk/domain-plan-accepted-family-mutation',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: [\n DomainPlanEvaluationEvidenceRequirementRef.BOUNDARY_DISCIPLINE,\n DomainPlanEvaluationEvidenceRequirementRef.FEATURE_COVERAGE,\n DomainPlanEvaluationEvidenceRequirementRef.INVENTORY_PLAUSIBILITY,\n DomainPlanEvaluationEvidenceRequirementRef.MODULE_JUSTIFICATION,\n DomainPlanEvaluationEvidenceRequirementRef.RELATIONSHIP_INTEGRITY,\n DomainPlanEvaluationEvidenceRequirementRef.REQUIREMENT_COVERAGE,\n ],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/domain-plan-output-set-result',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
|
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const playbookDefinition: {
|
|
11
11
|
readonly ref: "bottom_up.foundation";
|
|
12
|
-
readonly version: "0.2.
|
|
12
|
+
readonly version: "0.2.1";
|
|
13
13
|
readonly phase: "bottom_up";
|
|
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
|
-
readonly functionalTopics: readonly ["configure_application_foundation"];
|
|
16
15
|
readonly preconditions: readonly [{
|
|
17
16
|
readonly kind: "artifact_exists";
|
|
18
17
|
readonly selector: {
|
|
@@ -39,7 +38,7 @@ export declare const playbookDefinition: {
|
|
|
39
38
|
}];
|
|
40
39
|
readonly outputs: readonly [];
|
|
41
40
|
readonly method: {
|
|
42
|
-
readonly skillRefs: readonly ["journey-status", "config-saas", "module-registration", "infra-environment-config", "local-environment-bootstrap"];
|
|
41
|
+
readonly skillRefs: readonly ["journey-status", "config-saas", "module-registration", "infra-environment-config", "local-environment-bootstrap", "application-database-migrations"];
|
|
43
42
|
readonly elicitation: {
|
|
44
43
|
readonly questions: readonly [{
|
|
45
44
|
readonly ref: "primary-scope";
|
|
@@ -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"}
|
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export const playbookDefinition = {
|
|
11
11
|
"ref": "bottom_up.foundation",
|
|
12
|
-
"version": "0.2.
|
|
12
|
+
"version": "0.2.1",
|
|
13
13
|
"phase": "bottom_up",
|
|
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
|
-
"functionalTopics": ["configure_application_foundation"],
|
|
16
15
|
"preconditions": [
|
|
17
16
|
{ "kind": "artifact_exists", "selector": { "family": "domain-plan" } },
|
|
18
17
|
{ "kind": "artifact_exists", "selector": { "family": "vision-brief" } }
|
|
@@ -32,7 +31,8 @@ export const playbookDefinition = {
|
|
|
32
31
|
"config-saas",
|
|
33
32
|
"module-registration",
|
|
34
33
|
"infra-environment-config",
|
|
35
|
-
"local-environment-bootstrap"
|
|
34
|
+
"local-environment-bootstrap",
|
|
35
|
+
"application-database-migrations"
|
|
36
36
|
],
|
|
37
37
|
"elicitation": {
|
|
38
38
|
"questions": [
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.foundation/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,87CAA87C;IACx8C,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE;QACtE,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;KACxE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,aAAa,EAAE;QAC3B,EAAE,QAAQ,EAAE,cAAc,EAAE;QAC5B,EAAE,QAAQ,EAAE,iBAAiB,EAAE;QAC/B,EAAE,QAAQ,EAAE,gBAAgB,EAAE;QAC9B,EAAE,QAAQ,EAAE,cAAc,EAAE;QAC5B,EAAE,QAAQ,EAAE,SAAS,EAAE;KACxB;IACD,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,gBAAgB;YAChB,aAAa;YACb,qBAAqB;YACrB,0BAA0B;YAC1B,6BAA6B;YAC7B,iCAAiC;SAClC;QACD,aAAa,EAAE;YACb,WAAW,EAAE;gBACX;;;;;;;;;mBASG;gBACH;oBACE,KAAK,EAAE,eAAe;oBACtB,UAAU,EAAE,2NAA2N;oBACvO,MAAM,EAAE,QAAQ;oBAChB,SAAS,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC;iBACtC;gBACD;;;;;;;;;;;mBAWG;gBACH;oBACE,KAAK,EAAE,kBAAkB;oBACzB,UAAU,EAAE,ogBAAogB;oBAChhB,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,yBAAyB;oBAChC,UAAU,EAAE,6XAA6X;oBACzY,MAAM,EAAE,WAAW;iBACpB;aACF;SACF;KACF;IACC,UAAU,EAAE,gBAAgB;IAC9B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.foundation\",\n \"version\": \"0.2.1\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Bottom-up foundation — turn the approved domain plan + the top-down definition set into a configured, bootable application skeleton. Reads the domain-plan (the module decomposition + per-module resource inventory) and the vision-brief (whose compliance/vision constraints drive which engine capabilities to enable), then: (1) authors ./wildo.saas.config.ts for real — the engine capabilities (derived from compliance/vision), the modules (from the domain plan), and the providers (matched to the declared capabilities); (2) materializes the app skeleton (app/ shared-lib/ backend-api/ specifications/ + the module registries); (3) installs app-knowledge; (4) runs the deterministic bring-up — wildo setup --non-interactive, then wildo local init. This is a v1 SCAFFOLD METHOD describing the foundation SEQUENCE: skeleton materialization and app-knowledge installation remain deferred greenfield tooling, while headless setup and verified local initialization are registered commands once the app structure exists. It emits NO artifact: the deliverable is the app itself (the authored config + materialized skeleton + verified initialization), and the reasons behind each capability/module/provider choice are recorded as comments in the config the next reader opens. The foundation-manifest family it used to emit was retired 2026-08-25 with the app-creation verification/digest aspect. Runs after the domain plan is approved and the journey is in the bottom_up phase.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"domain-plan\" } },\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"vision-brief\" } }\n ],\n \"inputs\": [\n { \"family\": \"domain-plan\" },\n { \"family\": \"vision-brief\" },\n { \"family\": \"market-snapshot\" },\n { \"family\": \"business-model\" },\n { \"family\": \"requirements\" },\n { \"family\": \"roadmap\" }\n ],\n \"outputs\": [],\n \"method\": {\n \"skillRefs\": [\n \"journey-status\",\n \"config-saas\",\n \"module-registration\",\n \"infra-environment-config\",\n \"local-environment-bootstrap\",\n \"application-database-migrations\"\n ],\n \"elicitation\": {\n \"questions\": [\n /*\n * THE FALLBACK, since 2026-08-28. `bottom_up.domain-plan` now asks this and carries the\n * answer in the committed plan (`DomainPlanOutputSet.tenancy`), because the plan MODELS\n * tenancy — wonder-crm's invented a workspace module and a membership before anyone was\n * asked — so asking after the model is shaped lets a second answer contradict it.\n *\n * The executor reads the plan first and reaches this question only for a plan authored\n * before the field existed. Keep it: those plans are real (wonder-crm, wonder-todos) and\n * must stay composable.\n */\n {\n \"ref\": \"primary-scope\",\n \"question\": \"What is the application's tenancy model? Answer `organizations` when users collaborate inside shared workspaces/teams (this enables the ORGANIZATIONS engine capability), or `users` when every user's data is their own.\",\n \"kind\": \"choice\",\n \"options\": [\"organizations\", \"users\"]\n },\n /*\n * The operator's own legal identity (issue #235), asked HERE because this is the playbook that\n * writes `wildo.saas.config.ts` and already carries the `config-saas` skill — an answer\n * elicited anywhere else would have nowhere to land, since a companion-agent playbook produces\n * an artifact and writes no files.\n *\n * Both questions are deliberately ANSWERABLE IN PART. Every part of\n * `operatorComplianceIdentity` is independently declarable (#228), so a creator who knows the\n * registered name and not the lawful bases records the name — and Paul's decision (#225) is\n * explicit that filling the entity must never block. A question that demanded the whole thing\n * would reintroduce the blocking this lane just removed, one layer up.\n */\n {\n \"ref\": \"operating-entity\",\n \"question\": \"Which legal entity operates this service? Give the registered company name, its registered address, and the route a person uses to reach you about privacy (an email, a URL or a postal address). Answer only the parts you actually know today — anything you leave out is recorded as outstanding and nothing is blocked by it. Do NOT supply a placeholder or a plausible-looking value: a produced privacy notice quotes these as fact, and the address is what a person would use to serve a legal request on a real company.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"operating-jurisdictions\",\n \"question\": \"Which jurisdictions does this application operate in, and why does each one reach it — are you established there, do you sell there, or do you hold data about people there? Use country codes (`fr`, `us`), the supranational `eu`, or a subdivision (`us-ca`). Answer \\\"not decided\\\" if the market is genuinely unsettled; an absent answer is read as unanswered, never as \\\"nowhere\\\".\",\n \"kind\": \"free_text\"\n }\n ]\n }\n },\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
|
|
@@ -10,7 +10,6 @@ export declare const playbookDefinition: {
|
|
|
10
10
|
readonly version: "0.1.0";
|
|
11
11
|
readonly phase: "bottom_up";
|
|
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
|
-
readonly functionalTopics: readonly ["shape_user_experience"];
|
|
14
13
|
readonly preconditions: readonly [{
|
|
15
14
|
readonly kind: "artifact_exists";
|
|
16
15
|
readonly selector: {
|
|
@@ -25,7 +24,7 @@ export declare const playbookDefinition: {
|
|
|
25
24
|
readonly outputs: readonly [{
|
|
26
25
|
readonly family: "placement-plan";
|
|
27
26
|
readonly schemaRef: "saas-specifications:PlacementPlan";
|
|
28
|
-
readonly 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
|
|
27
|
+
readonly 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 per SUBJECT KIND and only for the kinds a caller supplies a catalog for, so a run that supplies none — the case today — reports no coverage result rather than a clean one, and a caller holding only the engine settings catalog can never make an unknown-subject refusal fire on a resource operation or an app view it was never told about. The plan carries no file path, config key or label string — those belong to the coding task that authors the config.";
|
|
29
28
|
}];
|
|
30
29
|
readonly method: {
|
|
31
30
|
readonly "//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.";
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CrB,CAAC"}
|
|
@@ -10,7 +10,6 @@ export const playbookDefinition = {
|
|
|
10
10
|
"version": "0.1.0",
|
|
11
11
|
"phase": "bottom_up",
|
|
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
|
-
"functionalTopics": ["shape_user_experience"],
|
|
14
13
|
"preconditions": [
|
|
15
14
|
{ "kind": "artifact_exists", "selector": { "family": "domain-plan" } }
|
|
16
15
|
],
|
|
@@ -22,7 +21,7 @@ export const playbookDefinition = {
|
|
|
22
21
|
{
|
|
23
22
|
"family": "placement-plan",
|
|
24
23
|
"schemaRef": "saas-specifications:PlacementPlan",
|
|
25
|
-
"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
|
|
24
|
+
"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 per SUBJECT KIND and only for the kinds a caller supplies a catalog for, so a run that supplies none — the case today — reports no coverage result rather than a clean one, and a caller holding only the engine settings catalog can never make an unknown-subject refusal fire on a resource operation or an app view it was never told about. The plan carries no file path, config key or label string — those belong to the coding task that authors the config."
|
|
26
25
|
}
|
|
27
26
|
],
|
|
28
27
|
"method": {
|
|
@@ -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,
|
|
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,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,2zDAA2zD;SAC30D;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 \"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 per SUBJECT KIND and only for the kinds a caller supplies a catalog for, so a run that supplies none — the case today — reports no coverage result rather than a clean one, and a caller holding only the engine settings catalog can never make an unknown-subject refusal fire on a resource operation or an app view it was never told about. 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"]}
|
package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export declare const playbookDefinition: {
|
|
|
13
13
|
readonly version: "0.2.0";
|
|
14
14
|
readonly phase: "refinement";
|
|
15
15
|
readonly intent: "Propose structured privacy-notice or service-terms candidate content from the application's accepted document facts. The companion agent may draft prose but cannot invent a fact, decide a legal question, approve, release or publish the document: every clause it writes is checked against the `document-facts` family, and a clause asserting a fact the application never declared is refused before it becomes a file.";
|
|
16
|
-
readonly functionalTopics: readonly [];
|
|
17
16
|
readonly preconditions: readonly [{
|
|
18
17
|
readonly kind: "artifact_expected";
|
|
19
18
|
readonly selector: {
|
package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.compliance-document-candidate/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.compliance-document-candidate/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgErB,CAAC"}
|
|
@@ -13,7 +13,6 @@ export const playbookDefinition = {
|
|
|
13
13
|
"version": "0.2.0",
|
|
14
14
|
"phase": "refinement",
|
|
15
15
|
"intent": "Propose structured privacy-notice or service-terms candidate content from the application's accepted document facts. The companion agent may draft prose but cannot invent a fact, decide a legal question, approve, release or publish the document: every clause it writes is checked against the `document-facts` family, and a clause asserting a fact the application never declared is refused before it becomes a file.",
|
|
16
|
-
"functionalTopics": [],
|
|
17
16
|
"preconditions": [
|
|
18
17
|
{
|
|
19
18
|
/*
|
package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.compliance-document-candidate/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,0CAA0C;IACjD,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,gaAAga;IAC1a,
|
|
1
|
+
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.compliance-document-candidate/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,0CAA0C;IACjD,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,gaAAga;IAC1a,eAAe,EAAE;QACf;YACE;;;;;;;;;;;;;;;;;;;;;eAqBG;YACH,MAAM,EAAE,mBAAmB;YAC3B,UAAU,EAAE;gBACV,QAAQ,EAAE,gBAAgB;aAC3B;SACF;KACF;IACD,QAAQ,EAAE;QACR;YACE,QAAQ,EAAE,gBAAgB;SAC3B;KACF;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,+BAA+B;YACzC,WAAW,EAAE,iDAAiD;YAC9D,aAAa,EAAE,0TAA0T;SAC1U;KACF;IACD,QAAQ,EAAE;QACR,kBAAkB,EAAE,glCAAglC;QACpmC,gBAAgB,EAAE,CAAC,oBAAoB,CAAC;QACxC,qBAAqB,EAAE,wYAAwY;QAC/Z,mBAAmB,EAAE,IAAI;QACzB,8BAA8B,EAAE,CAAC,0BAA0B,CAAC;QAC5D,WAAW,EAAE;YACX,+BAA+B;SAChC;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 * Migrated from the retired JSON-v1 authoring format at the first-activation\n * hard cut (same ref@version — the companion's assurance-document candidate\n * preparation pins `refinement.compliance-document-candidate@0.1.0` in the\n * installed Framework Knowledge and fails closed without it). 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\": \"refinement.compliance-document-candidate\",\n \"version\": \"0.2.0\",\n \"phase\": \"refinement\",\n \"intent\": \"Propose structured privacy-notice or service-terms candidate content from the application's accepted document facts. The companion agent may draft prose but cannot invent a fact, decide a legal question, approve, release or publish the document: every clause it writes is checked against the `document-facts` family, and a clause asserting a fact the application never declared is refused before it becomes a file.\",\n \"preconditions\": [\n {\n /*\n * The facts this draft SHOULD rest on — expected first, never a gate.\n *\n * Three revisions, and the middle one is the instructive part:\n *\n * 1. Until 2026-08-28 this gated on `compliance-document-fact-projection`, a host-computed\n * projection sealed with a projector identity, source-head digests and per-contribution\n * authority receipts. `artifact_valid` reads LANDED families and a host-computed projection\n * never lands, so the precondition could never be satisfied: this playbook, and with it the\n * whole `refinement` phase, was permanently ineligible from the day it was authored, and\n * nothing reported it because an ineligible playbook never reaches the board. The projection\n * went with the digest demolition (`.claude/rules/one-source-of-truth.md`, Rule 0).\n * 2. It was then re-gated onto `document-facts` with `artifact_valid`, which made it reachable\n * — and blocking. That is the wrong posture for a compliance document: an application must be\n * able to produce its privacy notice today, with the statements it cannot yet establish\n * marked incomplete, and complete them later. A document nobody can produce is worth less\n * than one that states precisely what is missing.\n * 3. `artifact_expected` (SEQUENCING) says facts come first while letting a human run proceed\n * past it. What the old projection PROTECTED — a document may not assert what nobody\n * established — is unaffected: it is a cross-reference check between this draft and the\n * facts file, run before the write, and it refuses INVENTION rather than incompleteness.\n */\n \"kind\": \"artifact_expected\",\n \"selector\": {\n \"family\": \"document-facts\"\n }\n }\n ],\n \"inputs\": [\n {\n \"family\": \"document-facts\"\n }\n ],\n \"outputs\": [\n {\n \"family\": \"compliance-document-candidate\",\n \"schemaRef\": \"saas-specifications:ComplianceDocumentCandidate\",\n \"description\": \"An untrusted structured content proposal that lands as a FILE for a human to read and commit. Its clauses are validated against the application's accepted document facts before the write; landing is never an approval, a release or a publication. Nothing is sealed \\u2014 the draft is accepted by being committed.\"\n }\n ],\n \"method\": {\n \"//contextSources\": \"DOCUMENT_BLUEPRINT \\u2014 this playbook DRAFTS a governed document, and the catalog is the only thing that says what one must contain. Measured 2026-08-30: `document-definition:public.privacy-notice` requires eight facts; wonder-crm's generated notice declared twenty and matched NONE of them, scoring zero dangling citations throughout \\u2014 internally consistent, and addressing none of what a privacy notice is obliged to address. The catalog had held the answer since it was written and had no runtime lookup of any kind, while this playbook's own skill instructed the drafter to \\\"Read the definition and blueprint\\\": a step it was told to perform and given nothing to perform it on. Deliberately NOT COMPLIANCE_PRIMARY_FACTS: that source carries raw resource declarations and belongs to `refinement.document-facts`, which declares it. A drafter given mechanism directly could write a clause resting on something the application never DECLARED, which is precisely what the fact-binding check exists to refuse \\u2014 this playbook reads the declared `document-facts` family and nothing beneath it.\",\n \"contextSources\": [\"document_blueprint\"],\n \"//briefAdequacyGate\": \"The #254 pilot (decision 2026-09-02, built 2026-09-04): this lane is where both recorded promise-gap defects lived, and its context needs vary per document. The gate judges the composed brief once; INSUFFICIENT adds proposed sources for this run only. The exclusion carries the //contextSources boundary above into the mechanism: the gate may never hand this drafter raw resource mechanism.\",\n \"briefAdequacyGate\": true,\n \"briefAdequacyExcludedSources\": [\"compliance_primary_facts\"],\n \"skillRefs\": [\n \"compliance-document-authoring\"\n ]\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.document-facts/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.document-facts/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4F+G,CAAC"}
|
|
@@ -24,7 +24,6 @@ export const playbookDefinition = {
|
|
|
24
24
|
version: '0.1.0',
|
|
25
25
|
phase: MetaWorkflow_Phase.REFINEMENT,
|
|
26
26
|
intent: "Derive the application's governed-document FACTS from truth it has already accepted — its vision (including the compliance regimes the posture pass recorded), its domain and its requirements — and land them as the `document-facts` family. A fact is a plain statement about how this application actually behaves: what data it holds, how long it keeps it, who it discloses to, what rights it honours. This produces the raw material a privacy notice or service terms is drafted FROM; it never drafts the document, never decides a legal question, and never states a fact the application's own code and accepted specifications do not support. Mechanism facts — retention treatment, data-subject kind, subject export — are read from the resource configurations, which declare what the application will actually do to a row; specifications supply purpose, not mechanism.",
|
|
27
|
-
functionalTopics: [],
|
|
28
27
|
preconditions: [
|
|
29
28
|
/*
|
|
30
29
|
* This playbook was where the phase gate was first found, and the last place it was patched.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.document-facts/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,2BAA2B;IAChC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,UAAU;IACpC,MAAM,EACJ,i2BAAi2B;IACn2B,
|
|
1
|
+
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.document-facts/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,2BAA2B;IAChC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,UAAU;IACpC,MAAM,EACJ,i2BAAi2B;IACn2B,aAAa,EAAE;QACb;;;;;;;;;;;;;;;WAeG;QACH;;;;;;WAMG;QACH,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QACzF;;;;WAIG;QACH,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE;KACzF;IACD,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;IAC3F,OAAO,EAAE,CAAC;YACR,MAAM,EAAE,gBAAgB;YACxB,SAAS,EAAE,0DAA0D;YACrE,WAAW,EACT,4XAA4X;SAC/X,CAAC;IACF,MAAM,EAAE;QACN;;;;;;;;;;;;;;;;;;;WAmBG;QACH;;;;;;;;;;;;;WAaG;QACH,cAAc,EAAE,CAAC,0BAA0B,CAAC,wBAAwB,EAAE,0BAA0B,CAAC,yBAAyB,CAAC;QAC3H,SAAS,EAAE,CAAC,gBAAgB,CAAC;KAC9B;IACD,QAAQ,EAAE,qBAAqB,CAAC,eAAe;IAC/C,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;IACtB,SAAS,EAAE,0BAA0B,CAAC,aAAa;IACnD;;;;OAIG;CACyI,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ContextSource,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * ## Why this playbook exists\n *\n * `refinement.compliance-document-candidate` drafts a governed document, and a governed document may\n * not assert anything about the application that nobody established. Until 2026-08-28 the fact set it\n * rested on was a HOST-COMPUTED projection sealed with a projector identity, source-head digests and\n * per-contribution authority receipts — none of it branchable on git, all of it deleted\n * (`.claude/rules/one-source-of-truth.md`, Rule 0).\n *\n * The candidate playbook was left gating on that projection, which is why it — and with it the whole\n * `refinement` phase — was permanently ineligible from the day it was authored until 2026-08-29: `artifact_valid` reads\n * LANDED families, and a host-computed projection never lands.\n *\n * This is the replacement, and it is deliberately ordinary: the facts become a FILE the application\n * commits, like every other family. What used to be enforced by a seal is now enforced by a pure\n * cross-reference check at the drafting boundary — a clause citing a fact this file does not declare\n * is refused before it can be written.\n */\nexport const playbookDefinition = {\n ref: 'refinement.document-facts',\n version: '0.1.0',\n phase: MetaWorkflow_Phase.REFINEMENT,\n intent:\n \"Derive the application's governed-document FACTS from truth it has already accepted — its vision (including the compliance regimes the posture pass recorded), its domain and its requirements — and land them as the `document-facts` family. A fact is a plain statement about how this application actually behaves: what data it holds, how long it keeps it, who it discloses to, what rights it honours. This produces the raw material a privacy notice or service terms is drafted FROM; it never drafts the document, never decides a legal question, and never states a fact the application's own code and accepted specifications do not support. Mechanism facts — retention treatment, data-subject kind, subject export — are read from the resource configurations, which declare what the application will actually do to a row; specifications supply purpose, not mechanism.\",\n preconditions: [\n /*\n * This playbook was where the phase gate was first found, and the last place it was patched.\n *\n * It gated on `PHASE_IS: REFINEMENT` from the day it was authored, and `deriveJourneyPhase`\n * returned only TOP_DOWN or BOTTOM_UP — so the precondition could never be satisfied and the\n * unattended loop could never select it, while nothing reported it, because an ineligible playbook\n * never reaches the eligibility board (#116). The gate was removed here, and the reasoning offered\n * for removing it applied to all nineteen: gate on the ARTIFACTS a pass actually needs, not on a\n * phase — an evolving application is not in a phase, it is in a STATE, and the state is the tree.\n *\n * The whole mechanism went on 2026-09-04. `PHASE_IS` no longer exists, so its absence here is no\n * longer a decision this playbook makes.\n *\n * The two `ARTIFACT_VALID` gates below are, and always were, the real readiness requirement:\n * nothing about when this pass is SAFE to run depended on the phase.\n */\n /*\n * The vision is required rather than merely declared: `top_down.compliance-posture` records each\n * applicable regime as a `compliance`-kind constraint there, and those constraints are what tell\n * this pass WHICH facts a later document will need. A derivation with no regime in view produces a\n * plausible generic fact set — the exact failure `compliance-document-system.md` forbids (\"do not\n * generate legal text from a generic SaaS category when application facts are absent\").\n */\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n /*\n * The domain plan is where the application's resources and their data actually live. Retention,\n * data categories and disclosure facts are read from it; without it this pass would be inventing\n * what the product stores.\n */\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'domain-plan' } },\n ],\n inputs: [{ family: 'vision-brief' }, { family: 'domain-plan' }, { family: 'requirements' }],\n outputs: [{\n family: 'document-facts',\n schemaRef: 'saas-specifications:ApplicationDocumentFactSpecification',\n description:\n \"The application's declared governed-document facts, one declaration per fact, each either KNOWN with its value or NOT_APPLICABLE with a reason. Authority is APPLICATION_SPECIFICATION throughout: these are facts the application's own accepted specifications establish. A fact needing a named human decision is deliberately ABSENT rather than dressed in an authority nobody holds.\",\n }],\n method: {\n /*\n * The resource declarations reach the brief through this, and nothing else does.\n *\n * This playbook's intent and its method have said since the day they were authored that mechanism\n * facts \"are read from the resource configurations\". They were not: the `compliance-primary-facts`\n * behavior existed and answered correctly, and no playbook declared it, so the derivation the\n * method describes could not happen. Its first live run (wonder-crm, 2026-08-29) landed two facts,\n * both paraphrased from vision prose, neither citing a declaration — a schema-valid artifact that\n * was wrong about where it came from, which is the one failure mode a governed document cannot\n * survive.\n *\n * NOT `WORKSPACE_TRUTH`: that section carries module ids and schema FIELD NAMES for a build\n * planner. A field's name says nothing about whether erasing its subject scrubs it.\n *\n * The run immediately after wiring it landed a fact reading \"contact records are retained and\n * impersonalized on erasure; workspace, workspace-member, company, pipeline-stage, deal, next-step\n * and interaction are declared RETAIN_ONLY\" — per resource, from the declarations. The run before\n * it, on the same application and the same method prose, had produced two paraphrases of the\n * vision. Nothing about the guidance changed; the evidence arrived.\n */\n /*\n * DOCUMENT_FACT_OBLIGATIONS supplies the second half, and it is the one this playbook had never\n * been given: the NAMES.\n *\n * COMPLIANCE_PRIMARY_FACTS made the answers true — the run after wiring it landed a per-resource\n * erasure fact instead of two paraphrases of the vision. It did nothing about what those answers\n * are CALLED, and a fact's ref is stamped from the slug this playbook chooses. Measured 2026-08-30:\n * twenty facts declared, ZERO of the eight a privacy notice requires, because the names were\n * semantically adjacent and lexically disjoint. True answers, uncitable.\n *\n * The method below already asks for stable descriptive slugs and names three of the eight as\n * examples, and has since 2026-08-28. That is prose, and the churn was measured with it in place.\n * This supplies the closed set itself, which the engine catalog has held all along.\n */\n contextSources: [MetaWorkflow_ContextSource.COMPLIANCE_PRIMARY_FACTS, MetaWorkflow_ContextSource.DOCUMENT_FACT_OBLIGATIONS],\n skillRefs: ['journey-status'],\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 /*\n * `guidance` is deliberately absent: the method prose is the single source of truth in `method.md`,\n * and the generator renders it (partials + references expanded) and injects it as `method.guidance`.\n * Declaring it here would be a second copy that drifts — the folder contract rejects an inline one.\n */\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n"]}
|
|
@@ -12,7 +12,6 @@ export declare const playbookDefinition: {
|
|
|
12
12
|
readonly version: "0.1.1";
|
|
13
13
|
readonly phase: "top_down";
|
|
14
14
|
readonly intent: "Brand-identity elicitation: draw the product's VISUAL identity out of the creator — the brand name, the logo creative direction (mark type, motifs, symbolism, imagery don'ts, background), and the visual tone (style keywords, mood, color story) — and capture it as a single validated BrandSnapshot (the `brand-brief` artifact family). The visual counterpart to the vision (intent) and market (verbal voice) briefs: it derives symbolism from the VisionSnapshot's idea/mission and, when a MarketSnapshot exists, translates its verbal `tonesOfVoice` into a visual register. The emitted brand-brief is the INPUT the companion logo step generates the master logo + derived assets from, and via `BrandSnapshot.resolvedAssets` the single source of truth every logo/favicon/brand-image consumer resolves against. Progressive: may persist a partially-directed brand (logoDirection/visualTone optional) and resume. v1 scaffold methodology — iterate the interview.";
|
|
15
|
-
readonly functionalTopics: readonly [];
|
|
16
15
|
readonly preconditions: readonly [{
|
|
17
16
|
readonly kind: "artifact_exists";
|
|
18
17
|
readonly selector: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.brand-identity/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.brand-identity/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FrB,CAAC"}
|
|
@@ -12,7 +12,6 @@ export const playbookDefinition = {
|
|
|
12
12
|
"version": "0.1.1",
|
|
13
13
|
"phase": "top_down",
|
|
14
14
|
"intent": "Brand-identity elicitation: draw the product's VISUAL identity out of the creator — the brand name, the logo creative direction (mark type, motifs, symbolism, imagery don'ts, background), and the visual tone (style keywords, mood, color story) — and capture it as a single validated BrandSnapshot (the `brand-brief` artifact family). The visual counterpart to the vision (intent) and market (verbal voice) briefs: it derives symbolism from the VisionSnapshot's idea/mission and, when a MarketSnapshot exists, translates its verbal `tonesOfVoice` into a visual register. The emitted brand-brief is the INPUT the companion logo step generates the master logo + derived assets from, and via `BrandSnapshot.resolvedAssets` the single source of truth every logo/favicon/brand-image consumer resolves against. Progressive: may persist a partially-directed brand (logoDirection/visualTone optional) and resume. v1 scaffold methodology — iterate the interview.",
|
|
15
|
-
"functionalTopics": [],
|
|
16
15
|
"preconditions": [
|
|
17
16
|
{ "kind": "artifact_exists", "selector": { "family": "vision-brief" } }
|
|
18
17
|
],
|