@wildo-ai/framework-knowledge 1.1.8 → 1.1.10
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/claude-marketplace/.claude-plugin/marketplace.json +1 -1
- package/dist/claude-marketplace/plugins/wildo/.claude-plugin/plugin.json +1 -1
- package/dist/claude-marketplace/plugins/wildo/references/acceptance.md +11 -0
- package/dist/claude-marketplace/plugins/wildo/references/composites-and-the-loop.md +9 -2
- package/dist/claude-marketplace/plugins/wildo/references/creation-state.md +21 -0
- package/dist/claude-marketplace/plugins/wildo/references/derived-artifacts.md +121 -0
- package/dist/claude-marketplace/plugins/wildo/references/expert-personas-and-deliberations.md +26 -7
- package/dist/claude-marketplace/plugins/wildo/references/runs-judges-and-questions.md +31 -5
- package/dist/claude-marketplace/plugins/wildo/skills/accept/SKILL.md +4 -2
- package/dist/claude-marketplace/plugins/wildo/skills/answer/SKILL.md +29 -2
- package/dist/claude-marketplace/plugins/wildo/skills/build/SKILL.md +69 -24
- package/dist/claude-marketplace/plugins/wildo/skills/doctor/SKILL.md +10 -0
- package/dist/claude-marketplace/plugins/wildo/skills/run/SKILL.md +21 -5
- package/dist/claude-marketplace/plugins/wildo/skills/start/SKILL.md +31 -5
- package/dist/claude-marketplace/plugins/wildo/skills/status/SKILL.md +2 -0
- package/dist/claude-marketplace/plugins/wildo/skills/why/SKILL.md +20 -4
- 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 +95 -5
- package/dist/esm/framework-knowledge.definitions.js.map +1 -1
- package/dist/esm/framework-knowledge.loader.d.ts.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.d.ts +2 -2
- 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 +2 -2
- package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.build/playbook.definition.d.ts +11 -11
- package/dist/esm/playbooks/bottom_up.build/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.build/playbook.definition.js +29 -22
- package/dist/esm/playbooks/bottom_up.build/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.d.ts +41 -3
- 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 +175 -14
- 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 +1 -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 +3 -3
- 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 +1 -1
- package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.js +1 -1
- package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.conception/playbook.definition.d.ts +8 -4
- package/dist/esm/playbooks/bottom_up.conception/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.conception/playbook.definition.js +13 -6
- package/dist/esm/playbooks/bottom_up.conception/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.d.ts +4 -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 +90 -13
- package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.experience-plan/playbook.definition.d.ts +4 -3
- package/dist/esm/playbooks/bottom_up.experience-plan/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.experience-plan/playbook.definition.js +4 -3
- package/dist/esm/playbooks/bottom_up.experience-plan/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts +8 -0
- package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.js +12 -4
- 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 +12 -3
- package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.js +8 -4
- package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.website-plan/playbook.definition.d.ts +4 -1
- package/dist/esm/playbooks/bottom_up.website-plan/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/bottom_up.website-plan/playbook.definition.js +2 -1
- package/dist/esm/playbooks/bottom_up.website-plan/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/cross_cutting.application-creation/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/cross_cutting.compliance/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/cross_cutting.feature-development/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/cross_cutting.refinement/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/refinement.document-facts/playbook.definition.d.ts +1 -1
- package/dist/esm/playbooks/refinement.document-facts/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/refinement.document-facts/playbook.definition.js +13 -1
- package/dist/esm/playbooks/refinement.document-facts/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/refinement.feature-contribution/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/refinement.governance-document-candidate/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.d.ts +25 -27
- 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 +91 -43
- package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.d.ts +41 -0
- package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.d.ts.map +1 -0
- package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.js +43 -0
- package/dist/esm/playbooks/top_down.brand-name-research/playbook.definition.js.map +1 -0
- package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.d.ts +200 -0
- package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.d.ts.map +1 -0
- package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.js +203 -0
- package/dist/esm/playbooks/top_down.brand-name-screening-produce/playbook.definition.js.map +1 -0
- package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.d.ts +81 -0
- package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.d.ts.map +1 -0
- package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.js +93 -0
- package/dist/esm/playbooks/top_down.brand-naming/playbook.definition.js.map +1 -0
- package/dist/esm/playbooks/top_down.business-model/playbook.definition.d.ts +3 -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 +27 -18
- 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.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.d.ts +11 -1
- 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 +11 -11
- 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 +2 -0
- 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 +3 -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.map +1 -1
- package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.d.ts +2 -0
- 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 +3 -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.map +1 -1
- package/dist/esm/playbooks/top_down.definition/playbook.definition.d.ts +5 -2
- package/dist/esm/playbooks/top_down.definition/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.definition/playbook.definition.js +16 -4
- package/dist/esm/playbooks/top_down.definition/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.expert-personas/playbook.definition.d.ts +27 -6
- package/dist/esm/playbooks/top_down.expert-personas/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.expert-personas/playbook.definition.js +32 -12
- package/dist/esm/playbooks/top_down.expert-personas/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.feature-drafts/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.market-research/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.d.ts +2 -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 +13 -5
- 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 +7 -3
- 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 +71 -2
- package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.d.ts +2 -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 +23 -8
- package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.risk-register/playbook.definition.d.ts +7 -1
- package/dist/esm/playbooks/top_down.risk-register/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.risk-register/playbook.definition.js +4 -2
- package/dist/esm/playbooks/top_down.risk-register/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.d.ts +9 -3
- 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 +3 -3
- package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.d.ts.map +1 -1
- package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.d.ts +35 -2
- 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 +41 -17
- package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.js.map +1 -1
- package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/authority-basis.json +1 -1
- package/dist/knowledge/assurance-authority-bases/wildo-safe-baseline-v1/external-framework-mapping.json +1 -1
- package/dist/knowledge/manifest.json +8 -8
- package/dist/knowledge/playbooks/bottom_up.assemble-verify/method.md +22 -7
- package/dist/knowledge/playbooks/bottom_up.assemble-verify/playbook.json +3 -3
- package/dist/knowledge/playbooks/bottom_up.build/method.md +17 -15
- package/dist/knowledge/playbooks/bottom_up.build/playbook.json +4 -3
- package/dist/knowledge/playbooks/bottom_up.build-decompose/evaluation-protocol.json +1 -1
- package/dist/knowledge/playbooks/bottom_up.build-decompose/evaluation-treatment.json +1 -1
- package/dist/knowledge/playbooks/bottom_up.build-decompose/method.md +261 -34
- package/dist/knowledge/playbooks/bottom_up.build-decompose/playbook.json +42 -4
- package/dist/knowledge/playbooks/bottom_up.build-dispatch/method.md +188 -59
- package/dist/knowledge/playbooks/bottom_up.build-dispatch/playbook.json +2 -2
- package/dist/knowledge/playbooks/bottom_up.build-scale/method.md +169 -276
- package/dist/knowledge/playbooks/bottom_up.build-scale/playbook.json +2 -2
- package/dist/knowledge/playbooks/bottom_up.capability-composition/method.md +8 -1
- package/dist/knowledge/playbooks/bottom_up.capability-composition/playbook.json +1 -1
- package/dist/knowledge/playbooks/bottom_up.conception/method.md +3 -2
- package/dist/knowledge/playbooks/bottom_up.conception/playbook.json +11 -3
- package/dist/knowledge/playbooks/bottom_up.domain-plan/evaluation-protocol.json +1 -1
- package/dist/knowledge/playbooks/bottom_up.domain-plan/evaluation-treatment.json +1 -1
- package/dist/knowledge/playbooks/bottom_up.domain-plan/method.md +129 -17
- package/dist/knowledge/playbooks/bottom_up.domain-plan/playbook.json +7 -4
- package/dist/knowledge/playbooks/bottom_up.experience-plan/method.md +28 -6
- package/dist/knowledge/playbooks/bottom_up.experience-plan/playbook.json +5 -4
- package/dist/knowledge/playbooks/bottom_up.foundation/playbook.json +13 -5
- package/dist/knowledge/playbooks/bottom_up.placement-plan/method.md +50 -0
- package/dist/knowledge/playbooks/bottom_up.placement-plan/playbook.json +16 -4
- package/dist/knowledge/playbooks/bottom_up.website-plan/method.md +19 -0
- package/dist/knowledge/playbooks/bottom_up.website-plan/playbook.json +5 -2
- package/dist/knowledge/playbooks/refinement.compliance-document-candidate/method.md +7 -3
- package/dist/knowledge/playbooks/refinement.compliance-document-candidate/playbook.json +1 -1
- package/dist/knowledge/playbooks/refinement.document-facts/method.md +8 -0
- package/dist/knowledge/playbooks/refinement.document-facts/playbook.json +3 -2
- package/dist/knowledge/playbooks/refinement.feature-contribution/method.md +5 -2
- package/dist/knowledge/playbooks/refinement.feature-contribution/playbook.json +1 -1
- package/dist/knowledge/playbooks/top_down.brand-identity/evaluation-protocol.json +1 -1
- package/dist/knowledge/playbooks/top_down.brand-identity/evaluation-treatment.json +1 -1
- package/dist/knowledge/playbooks/top_down.brand-identity/method.md +75 -37
- package/dist/knowledge/playbooks/top_down.brand-identity/playbook.json +35 -38
- package/dist/knowledge/playbooks/top_down.brand-name-research/method.md +145 -0
- package/dist/knowledge/playbooks/top_down.brand-name-research/playbook.json +57 -0
- package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/evaluation-protocol.json +1 -0
- package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/evaluation-treatment.json +1 -0
- package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/method.md +99 -0
- package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/playbook.json +65 -0
- package/dist/knowledge/playbooks/top_down.brand-naming/method.md +56 -0
- package/dist/knowledge/playbooks/top_down.brand-naming/playbook.json +76 -0
- package/dist/knowledge/playbooks/top_down.business-model/evaluation-protocol.json +1 -1
- package/dist/knowledge/playbooks/top_down.business-model/evaluation-treatment.json +1 -1
- package/dist/knowledge/playbooks/top_down.business-model/method.md +60 -6
- package/dist/knowledge/playbooks/top_down.business-model/playbook.json +15 -10
- package/dist/knowledge/playbooks/top_down.capability-map/method.md +10 -9
- package/dist/knowledge/playbooks/top_down.capability-map/playbook.json +1 -1
- package/dist/knowledge/playbooks/top_down.compliance-analysis/playbook.json +30 -10
- package/dist/knowledge/playbooks/top_down.compliance-conception/playbook.json +3 -1
- package/dist/knowledge/playbooks/top_down.compliance-posture/playbook.json +4 -1
- package/dist/knowledge/playbooks/top_down.definition/method.md +8 -3
- package/dist/knowledge/playbooks/top_down.definition/playbook.json +6 -4
- package/dist/knowledge/playbooks/top_down.expert-personas/playbook.json +16 -2
- package/dist/knowledge/playbooks/top_down.feature-drafts/method.md +5 -2
- package/dist/knowledge/playbooks/top_down.feature-drafts/playbook.json +1 -1
- package/dist/knowledge/playbooks/top_down.market-snapshot-produce/evaluation-protocol.json +1 -1
- package/dist/knowledge/playbooks/top_down.market-snapshot-produce/evaluation-treatment.json +1 -1
- package/dist/knowledge/playbooks/top_down.market-snapshot-produce/method.md +26 -0
- package/dist/knowledge/playbooks/top_down.market-snapshot-produce/playbook.json +4 -2
- package/dist/knowledge/playbooks/top_down.phase-gate/evaluation-protocol.json +1 -1
- package/dist/knowledge/playbooks/top_down.phase-gate/evaluation-treatment.json +1 -1
- package/dist/knowledge/playbooks/top_down.phase-gate/playbook.json +11 -1
- package/dist/knowledge/playbooks/top_down.requirements-definition/evaluation-protocol.json +1 -1
- package/dist/knowledge/playbooks/top_down.requirements-definition/evaluation-treatment.json +1 -1
- package/dist/knowledge/playbooks/top_down.requirements-definition/method.md +84 -9
- package/dist/knowledge/playbooks/top_down.requirements-definition/playbook.json +6 -3
- package/dist/knowledge/playbooks/top_down.risk-register/method.md +21 -0
- package/dist/knowledge/playbooks/top_down.risk-register/playbook.json +8 -2
- package/dist/knowledge/playbooks/top_down.scope-roadmap/playbook.json +4 -2
- package/dist/knowledge/playbooks/top_down.vision-elicitation/method.md +29 -0
- package/dist/knowledge/playbooks/top_down.vision-elicitation/playbook.json +58 -17
- package/dist/knowledge/references/brand.name-choice.config.md +144 -0
- package/dist/knowledge/references/brand.name-screening.config.md +308 -0
- package/dist/knowledge/references/build-plan.task-graph.config.md +119 -11
- package/dist/knowledge/references/business-model.pricing-plan.config.md +16 -0
- package/dist/knowledge/references/business-model.snapshot.config.md +64 -0
- package/dist/knowledge/references/business-model.snapshot.validation.md +68 -4
- package/dist/knowledge/references/capability-composition.config.md +67 -4
- package/dist/knowledge/references/companion.market.prompt-renderer.md +11 -6
- package/dist/knowledge/references/example.authorization.application-roles.office-and-field.md +44 -0
- package/dist/knowledge/references/example.backend.custom-operation.audit-event.md +81 -0
- package/dist/knowledge/references/example.backend.custom-operation.child-line-total.md +258 -0
- package/dist/knowledge/references/example.backend.custom-operation.computed-total.md +153 -0
- package/dist/knowledge/references/example.backend.custom-operation.create-related-resource.md +107 -0
- package/dist/knowledge/references/example.data-seeding.minimal.md +39 -10
- package/dist/knowledge/references/example.data-seeding.row-reference.md +80 -0
- package/dist/knowledge/references/example.email.template.minimal.md +1 -1
- package/dist/knowledge/references/example.resource.config-wiring.retention-policy-operations.md +74 -0
- package/dist/knowledge/references/example.resource.personal-data.free-text-field.md +19 -0
- package/dist/knowledge/references/example.resource.personal-data.person-without-account.md +27 -0
- package/dist/knowledge/references/example.resource.status-lifecycle.quote.md +152 -0
- package/dist/knowledge/references/example.resource.ui-behavior.filter-presets.md +15 -0
- package/dist/knowledge/references/example.resource.ui-behavior.operation-icon.md +8 -0
- package/dist/knowledge/references/example.views.app-level.home-definition.md +13 -0
- package/dist/knowledge/references/example.views.chart-definition.shared.md +83 -0
- package/dist/knowledge/references/experience-plan.config.md +60 -7
- package/dist/knowledge/references/market.context-block.builder.md +1 -1
- package/dist/knowledge/references/market.snapshot.validation.md +1 -1
- package/dist/knowledge/references/placement-plan.config.md +43 -0
- package/dist/knowledge/references/requirements.functional-requirement.config.md +8 -2
- package/dist/knowledge/references/requirements.non-functional-requirement.config.md +2 -0
- package/dist/knowledge/references/requirements.references.conventions.md +1 -1
- package/dist/knowledge/references/requirements.snapshot.config.md +57 -1
- package/dist/knowledge/references/requirements.snapshot.validation.md +35 -1
- package/dist/knowledge/references/saas.backend.audit-logs.log-event.md +63 -0
- package/dist/knowledge/references/saas.backend.document-sequence.issue-in-operation.md +60 -0
- package/dist/knowledge/references/saas.backend.document-sequence.raise-floor.md +156 -0
- package/dist/knowledge/references/saas.backend.email.send.md +77 -0
- package/dist/knowledge/references/saas.backend.notifications.operation-email-template-ref.md +60 -0
- package/dist/knowledge/references/saas.data-seeding.bootstrap-wiring.md +7 -1
- package/dist/knowledge/references/saas.data-seeding.computed-entry.md +43 -0
- package/dist/knowledge/references/saas.data-seeding.definition-input.md +14 -2
- package/dist/knowledge/references/saas.data-seeding.row-reference.md +93 -0
- package/dist/knowledge/references/saas.frontend.collection-filter-presets.md +124 -0
- package/dist/knowledge/references/saas.frontend.launcher.item-refs.md +316 -0
- package/dist/knowledge/references/saas.frontend.launcher.merge-rules.md +106 -0
- package/dist/knowledge/references/saas.frontend.launcher.runtime-availability.md +60 -0
- package/dist/knowledge/references/saas.frontend.resource-label-params.md +52 -0
- package/dist/knowledge/references/saas.frontend.resource-operation-frontend-config.md +47 -18
- package/dist/knowledge/references/saas.frontend.resource-ui-behavior-config.md +4 -1
- package/dist/knowledge/references/saas.frontend.settings-hub.engine-destination-roles.md +25 -0
- package/dist/knowledge/references/saas.frontend.settings-hub.placement.md +2 -2
- package/dist/knowledge/references/saas.models.audit.trail-config.md +45 -0
- package/dist/knowledge/references/saas.models.notifications.user-notification-definition.md +5 -3
- package/dist/knowledge/references/saas.models.queue.scheduled-recovery.md +81 -2
- package/dist/knowledge/references/saas.models.resource-config.builder-parameters.md +26 -0
- package/dist/knowledge/references/saas.models.roles.definition.md +61 -0
- package/dist/knowledge/references/saas.models.roles.organization-defaults.md +97 -0
- package/dist/knowledge/references/saas.public-runtime.contract.md +26 -0
- package/dist/knowledge/references/saas.specifications.companion-exports.contract.md +10 -0
- package/dist/knowledge/references/saas.website.astro.bridge.md +10 -0
- package/dist/knowledge/references/saas.website.astro.label-loader.md +12 -0
- package/dist/knowledge/references/saas.website.astro.llms-txt-server.md +14 -1
- package/dist/knowledge/references/saas.website.astro.site-context.md +13 -0
- package/dist/knowledge/references/saas.website.blog.bridge.md +4 -0
- package/dist/knowledge/references/saas.website.config.site-context-loader.md +3 -0
- package/dist/knowledge/references/saas.website.factories.define-section.md +4 -0
- package/dist/knowledge/references/saas.website.legal.public-document-links.md +76 -0
- package/dist/knowledge/references/saas.website.page-manifest.schema.md +12 -3
- package/dist/knowledge/references/saas.website.page-sections.component.md +72 -0
- package/dist/knowledge/references/saas.website.root-config.seo.md +2 -1
- package/dist/knowledge/references/saas.website.runtime.context.md +7 -0
- package/dist/knowledge/references/saas.website.sections.definition-schema.md +11 -0
- package/dist/knowledge/references/saas.website.seo.llms-txt-config.md +2 -0
- package/dist/knowledge/references/website-plan.config.md +26 -0
- package/dist/knowledge/references/zod.decorators.chainable-runtime.md +13 -0
- package/dist/knowledge/references/zod.decorators.decorator-vocabulary.md +7 -0
- package/dist/knowledge/references/zod.decorators.document-sequence.md +65 -0
- package/dist/knowledge/references/zod.decorators.schema-metadata.md +1 -0
- package/dist/knowledge/references/zod.decorators.shared-structural-methods.md +21 -0
- package/dist/knowledge/references/zod.factories.bigdecimal.md +1 -0
- package/dist/knowledge/references/zod.factories.code.md +1 -0
- package/dist/knowledge/references/zod.factories.duration.md +1 -0
- package/dist/knowledge/references/zod.factories.money.md +1 -0
- package/dist/knowledge/registries/assurance-authority-bases.json +1 -1
- package/dist/knowledge/registries/framework-topics.json +374 -1
- package/dist/knowledge/registries/playbooks.json +76 -28
- package/dist/knowledge/registries/source-tags.json +1513 -898
- package/dist/knowledge/rules/live-context-door.md +5 -2
- package/dist/knowledge/skills/INDEX.md +5 -2
- package/dist/knowledge/skills/application-consumer-documentation-authoring/SKILL.md +16 -3
- package/dist/knowledge/skills/application-database-migrations/SKILL.md +14 -3
- package/dist/knowledge/skills/application-roles-authoring/SKILL.md +158 -0
- package/dist/knowledge/skills/application-roles-authoring/references/framework-application-roles-api.md +169 -0
- package/dist/knowledge/skills/application-roles-authoring/references/office-and-field-worked-example.md +63 -0
- package/dist/knowledge/skills/authorization-unit-narrowing/SKILL.md +6 -1
- package/dist/knowledge/skills/backend-custom-operation/SKILL.md +256 -9
- package/dist/knowledge/skills/backend-custom-operation/references/after-the-operation.md +42 -0
- package/dist/knowledge/skills/backend-custom-operation/references/framework-audit-log-event-api.md +220 -0
- package/dist/knowledge/skills/brand-logo-authoring/SKILL.md +5 -0
- package/dist/knowledge/skills/brand-name-screening/SKILL.md +178 -0
- package/dist/knowledge/skills/brand-name-screening/references/framework-brand-name-screening-api.md +466 -0
- package/dist/knowledge/skills/brand-name-screening/references/screening-procedure.md +87 -0
- package/dist/knowledge/skills/compliance-document-authoring/references/document-composition-privacy-notice.md +7 -3
- package/dist/knowledge/skills/config-app-shell/SKILL.md +58 -5
- package/dist/knowledge/skills/config-app-shell/references/framework-launcher-items-api.md +461 -0
- package/dist/knowledge/skills/config-app-shell/references/framework-launcher-visibility-api.md +80 -0
- package/dist/knowledge/skills/config-design-system/SKILL.md +28 -6
- package/dist/knowledge/skills/config-navigation/SKILL.md +14 -3
- package/dist/knowledge/skills/config-saas/SKILL.md +56 -15
- package/dist/knowledge/skills/config-saas/references/compliance-declarations.md +65 -2
- package/dist/knowledge/skills/config-saas/references/framework-audit-trail-config-api.md +62 -2
- package/dist/knowledge/skills/config-saas/references/framework-background-work-api.md +81 -2
- package/dist/knowledge/skills/config-saas-backend/SKILL.md +6 -1
- package/dist/knowledge/skills/configure-billing/SKILL.md +18 -4
- package/dist/knowledge/skills/email-add-template/SKILL.md +28 -6
- package/dist/knowledge/skills/email-add-template/references/email-artifact-paths.md +1 -1
- package/dist/knowledge/skills/email-add-template/references/framework-email-send-api.md +128 -0
- package/dist/knowledge/skills/email-add-template/references/framework-operation-email-template-ref-api.md +99 -0
- package/dist/knowledge/skills/engine-component-registration/SKILL.md +6 -1
- package/dist/knowledge/skills/engine-product-definitions/SKILL.md +21 -8
- package/dist/knowledge/skills/flows-actors-chat-assistant/SKILL.md +10 -2
- package/dist/knowledge/skills/flows-actors-llm-agent-invocation/SKILL.md +18 -4
- package/dist/knowledge/skills/frontend-component-catalog/SKILL.md +11 -3
- package/dist/knowledge/skills/frontend-component-catalog/references/framework-component-catalog.md +2 -1
- package/dist/knowledge/skills/frontend-component-catalog/references/framework-component-usage.md +8 -0
- package/dist/knowledge/skills/i18n-rerun-pipeline/SKILL.md +19 -5
- package/dist/knowledge/skills/i18n-translation-rerun/SKILL.md +10 -2
- package/dist/knowledge/skills/inbound-channels/SKILL.md +2 -2
- package/dist/knowledge/skills/infra-environment-config/SKILL.md +6 -1
- package/dist/knowledge/skills/local-environment-bootstrap/SKILL.md +17 -2
- package/dist/knowledge/skills/local-environment-bootstrap/references/derived-artifact-currency.md +122 -0
- package/dist/knowledge/skills/local-environment-bootstrap/references/framework-upgrade-and-dependency-alignment.md +11 -0
- package/dist/knowledge/skills/local-environment-bootstrap/references/wildo-cli-bootstrap-commands.md +9 -2
- package/dist/knowledge/skills/market-add-feature-benefit/SKILL.md +10 -2
- package/dist/knowledge/skills/market-alternatives/SKILL.md +10 -2
- package/dist/knowledge/skills/market-authoring-overview/SKILL.md +10 -2
- package/dist/knowledge/skills/market-category/SKILL.md +21 -7
- package/dist/knowledge/skills/market-channels/SKILL.md +6 -1
- package/dist/knowledge/skills/market-companion-prompt-enrichment/SKILL.md +22 -4
- package/dist/knowledge/skills/market-companion-prompt-enrichment/references/framework-companion-behavior-api.md +12 -2
- package/dist/knowledge/skills/market-generation-cli/SKILL.md +21 -11
- package/dist/knowledge/skills/market-generation-cli/references/framework-market-generation-cli.md +11 -6
- package/dist/knowledge/skills/market-icp/SKILL.md +10 -2
- package/dist/knowledge/skills/market-jobs-pains-gains/SKILL.md +6 -1
- package/dist/knowledge/skills/market-message-templates-authoring/SKILL.md +6 -1
- package/dist/knowledge/skills/market-message-templates-authoring/references/framework-message-template-api.md +1 -1
- package/dist/knowledge/skills/market-persona/SKILL.md +14 -3
- package/dist/knowledge/skills/market-positioning-authoring/SKILL.md +6 -1
- package/dist/knowledge/skills/market-proof-and-objection/SKILL.md +10 -2
- package/dist/knowledge/skills/market-scoring-interpretation/SKILL.md +6 -1
- package/dist/knowledge/skills/market-snapshot-validation/SKILL.md +15 -4
- package/dist/knowledge/skills/market-snapshot-validation/references/framework-snapshot-validation-api.md +1 -1
- package/dist/knowledge/skills/market-tone-of-voice/SKILL.md +6 -1
- package/dist/knowledge/skills/model-cost-attribution/references/framework-work-unit-api.md +26 -0
- package/dist/knowledge/skills/module-companion-exports/SKILL.md +7 -1
- package/dist/knowledge/skills/module-companion-exports/references/companion-exports-by-package.md +10 -0
- package/dist/knowledge/skills/module-relationships/SKILL.md +37 -8
- package/dist/knowledge/skills/pdf-template-authoring/SKILL.md +4 -2
- package/dist/knowledge/skills/provider-address-lookup/SKILL.md +14 -3
- package/dist/knowledge/skills/provider-frontend-file-picker/SKILL.md +6 -1
- package/dist/knowledge/skills/provider-operation-calls/SKILL.md +14 -3
- package/dist/knowledge/skills/rate-limit-authoring/SKILL.md +10 -2
- package/dist/knowledge/skills/resource-add-field/SKILL.md +10 -2
- package/dist/knowledge/skills/resource-add-field/references/framework-field-cross-layer-api.md +46 -17
- package/dist/knowledge/skills/resource-add-resource/SKILL.md +14 -2
- package/dist/knowledge/skills/resource-add-resource/references/framework-new-resource-core-config-api.md +26 -0
- package/dist/knowledge/skills/resource-config-wiring/SKILL.md +29 -3
- package/dist/knowledge/skills/resource-config-wiring/references/framework-collection-operation-declarations.md +19 -4
- package/dist/knowledge/skills/resource-config-wiring/references/framework-operation-audit-api.md +5 -2
- package/dist/knowledge/skills/resource-config-wiring/references/framework-personal-data-declaration-api.md +103 -0
- package/dist/knowledge/skills/resource-config-wiring/references/framework-retention-policy-operations.md +135 -0
- package/dist/knowledge/skills/resource-config-wiring/references/framework-saas-models-resource-config-api.md +26 -0
- package/dist/knowledge/skills/resource-config-wiring/references/framework-user-notifications-api.md +26 -7
- package/dist/knowledge/skills/resource-custom-view/SKILL.md +10 -2
- package/dist/knowledge/skills/resource-custom-view/references/custom-view-contracts.md +46 -17
- package/dist/knowledge/skills/resource-external-data/references/erasure-suppression.md +2 -2
- package/dist/knowledge/skills/resource-retention-binding/SKILL.md +5 -1
- package/dist/knowledge/skills/resource-schema-authoring/SKILL.md +15 -1
- package/dist/knowledge/skills/resource-schema-authoring/references/computed-totals.md +569 -0
- package/dist/knowledge/skills/resource-schema-authoring/references/document-numbers.md +358 -0
- package/dist/knowledge/skills/resource-schema-authoring/references/framework-decorator-vocabulary-api.md +8 -0
- package/dist/knowledge/skills/resource-schema-authoring/references/framework-shared-decorator-methods-api.md +21 -0
- package/dist/knowledge/skills/resource-schema-authoring/references/framework-special-factories-api.md +7 -2
- package/dist/knowledge/skills/resource-schema-authoring/references/framework-zod-lifecycle-and-chainable-api.md +13 -0
- package/dist/knowledge/skills/resource-status-lifecycle/SKILL.md +153 -0
- package/dist/knowledge/skills/resource-status-lifecycle/references/commercial-documents.md +46 -0
- package/dist/knowledge/skills/resource-status-lifecycle/references/quote-lifecycle-worked-example.md +198 -0
- package/dist/knowledge/skills/resource-ui-behavior/SKILL.md +30 -4
- package/dist/knowledge/skills/resource-ui-behavior/references/framework-collection-filter-presets-api.md +157 -0
- package/dist/knowledge/skills/resource-ui-behavior/references/framework-frontend-resource-ui-contracts-api.md +101 -19
- package/dist/knowledge/skills/seeding-authoring/SKILL.md +202 -39
- package/dist/knowledge/skills/seeding-authoring/references/cross-seed-row-references.md +67 -0
- package/dist/knowledge/skills/seeding-authoring/references/framework-data-seeding-api.md +154 -4
- package/dist/knowledge/skills/seeding-authoring/references/seed-row-overlay.md +22 -0
- package/dist/knowledge/skills/seeding-operations/references/framework-data-seeding-operations-api.md +7 -1
- package/dist/knowledge/skills/settings-placement-authoring/references/framework-settings-destinations-catalog.md +43 -0
- package/dist/knowledge/skills/settings-placement-authoring/references/framework-settings-placement-api.md +2 -2
- package/dist/knowledge/skills/spec-companion-exports/SKILL.md +6 -1
- package/dist/knowledge/skills/spec-companion-exports/references/framework-companion-exports-contract-api.md +10 -0
- package/dist/knowledge/skills/spec-component-update/SKILL.md +10 -2
- package/dist/knowledge/skills/spec-composite-view-update/SKILL.md +2 -2
- package/dist/knowledge/skills/spec-family-update/SKILL.md +71 -66
- package/dist/knowledge/skills/spec-family-update/references/family-spec-routing.md +1 -1
- package/dist/knowledge/skills/spec-resource-update/SKILL.md +30 -10
- package/dist/knowledge/skills/spec-resource-update/references/resource-spec-field-routing.md +28 -0
- package/dist/knowledge/skills/spec-update-after-change/SKILL.md +22 -5
- package/dist/knowledge/skills/views-add-composite-view/SKILL.md +6 -1
- package/dist/knowledge/skills/views-add-custom-view/SKILL.md +10 -2
- package/dist/knowledge/skills/views-app-level/SKILL.md +13 -3
- package/dist/knowledge/skills/views-app-level/references/application-home.md +56 -0
- package/dist/knowledge/skills/views-chart-authoring/SKILL.md +221 -37
- package/dist/knowledge/skills/views-composite-authoring/SKILL.md +22 -5
- package/dist/knowledge/skills/views-execution-authoring/SKILL.md +1 -1
- package/dist/knowledge/skills/website-anonymous-session/SKILL.md +32 -2
- package/dist/knowledge/skills/website-blog-authoring/SKILL.md +16 -3
- package/dist/knowledge/skills/website-blog-authoring/references/blog-adapter-api.md +4 -0
- package/dist/knowledge/skills/website-bundle-discipline/SKILL.md +7 -1
- package/dist/knowledge/skills/website-consent-gate-overrides/SKILL.md +13 -1
- package/dist/knowledge/skills/website-factory-advanced/SKILL.md +14 -2
- package/dist/knowledge/skills/website-inbound-contact-forms/SKILL.md +13 -1
- package/dist/knowledge/skills/website-layout-overrides/SKILL.md +6 -1
- package/dist/knowledge/skills/website-marketing-metadata-extension/SKILL.md +19 -1
- package/dist/knowledge/skills/website-navigation-authoring/SKILL.md +55 -18
- package/dist/knowledge/skills/website-navigation-authoring/references/framework-public-document-links-api.md +98 -0
- package/dist/knowledge/skills/website-navigation-authoring/references/worked-examples-header-footer.md +8 -11
- package/dist/knowledge/skills/website-page-authoring/SKILL.md +100 -8
- package/dist/knowledge/skills/website-page-authoring/references/framework-site-context-loader-api.md +3 -0
- package/dist/knowledge/skills/website-primitive-overrides/SKILL.md +6 -1
- package/dist/knowledge/skills/website-section-contact/SKILL.md +15 -0
- package/dist/knowledge/skills/website-section-contact/references/define-website-section-api.md +15 -0
- package/dist/knowledge/skills/website-section-cta/SKILL.md +15 -0
- package/dist/knowledge/skills/website-section-cta/references/define-website-section-api.md +15 -0
- package/dist/knowledge/skills/website-section-faq/SKILL.md +21 -1
- package/dist/knowledge/skills/website-section-faq/references/define-website-section-api.md +15 -0
- package/dist/knowledge/skills/website-section-feature-benefit-summary/SKILL.md +21 -1
- package/dist/knowledge/skills/website-section-feature-benefit-summary/references/define-website-section-api.md +15 -0
- package/dist/knowledge/skills/website-section-feature-detail/SKILL.md +25 -2
- package/dist/knowledge/skills/website-section-feature-detail/references/define-website-section-api.md +15 -0
- package/dist/knowledge/skills/website-section-footer-cta/SKILL.md +15 -0
- package/dist/knowledge/skills/website-section-footer-cta/references/define-website-section-api.md +15 -0
- package/dist/knowledge/skills/website-section-hero/SKILL.md +33 -10
- package/dist/knowledge/skills/website-section-hero/references/define-website-section-api.md +15 -0
- package/dist/knowledge/skills/website-section-pricing/SKILL.md +21 -1
- package/dist/knowledge/skills/website-section-pricing/references/define-website-section-api.md +15 -0
- package/dist/knowledge/skills/website-section-social-proof/SKILL.md +27 -2
- package/dist/knowledge/skills/website-section-social-proof/references/define-website-section-api.md +15 -0
- package/dist/knowledge/skills/website-seo-aeo-geo/SKILL.md +16 -4
- package/dist/knowledge/skills/website-seo-aeo-geo/references/aeo-api.md +11 -0
- package/dist/knowledge/skills/website-seo-aeo-geo/references/geo-api.md +16 -1
- package/dist/knowledge/skills/website-seo-aeo-geo/references/seo-api.md +2 -1
- package/dist/knowledge/topic-index.json +1590 -292
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/top_down.brand-naming/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EACL,2BAA2B,EAC3B,qCAAqC,EACrC,qCAAqC,EACrC,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,uBAAuB;IAC5B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,qcAAqc;IACvc,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QACzF,2HAA2H;QAC3H,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE;KAC7F;IACD,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IACnE,iGAAiG;IACjG,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN,SAAS,EAAE,CAAC,sBAAsB,CAAC;QACnC,WAAW,EAAE;YACX,SAAS,EAAE;gBACT;oBACE,GAAG,EAAE,iBAAiB;oBACtB,QAAQ,EACN,4KAA4K;oBAC9K,IAAI,EAAE,uBAAuB,CAAC,SAAS;oBACvC;;;;uBAIG;oBACH,WAAW,EAAE,qCAAqC,CAAC,GAAG;iBACvD;gBACD;oBACE,GAAG,EAAE,sBAAsB;oBAC3B,QAAQ,EACN,2LAA2L;oBAC7L,IAAI,EAAE,uBAAuB,CAAC,SAAS;oBACvC,iFAAiF;oBACjF,KAAK,EAAE,qCAAqC,CAAC,SAAS;oBACtD,eAAe,EAAE,IAAI;oBACrB;;;;;;;uBAOG;oBACH,cAAc,EAAE,EAAE,WAAW,EAAE,8BAA8B,EAAE,WAAW,EAAE,eAAe,EAAE;iBAC9F;aACF;SACF;QACD,YAAY,EAAE;YACZ,4GAA4G;YAC5G,MAAM,EAAE,CAAC,uCAAuC,EAAE,8BAA8B,CAAC;YACjF,uHAAuH;YACvH,iBAAiB,EAAE,CAAC;YACpB,6EAA6E;YAC7E,wBAAwB,EAAE,CAAC;YAC3B,sGAAsG;YACtG,iBAAiB,EAAE,SAAS;SAC7B;KACF;IACD,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import { HumanDecision_FieldKind } from '@wildo-ai/saas-models';\nimport {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ElicitationQuestionDepth,\n MetaWorkflow_ElicitationUnknownPolicy,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * The brand-NAMING umbrella — a composite: it proposes names and screens them, and lands the\n * `brand-name-screening` the brand-identity interview chooses from.\n *\n * ## Why naming is its own step, and why it comes before the brand identity\n *\n * The brand name used to be a REQUIRED pre-run free-text question of `top_down.brand-identity`. On the\n * first real run the creator expected the companion to propose names; it could not, a coding assistant\n * improvised four in chat with no check at all, and one was almost certainly a registered software mark.\n * So the companion now PROPOSES — grounded in the vision and the market snapshot's category language and\n * voice — and every candidate, proposed or the creator's own, gets a minimal trademark screening before\n * anyone is asked to choose. The creator still chooses: the `brand-name` question of the brand identity\n * is a CHOICE computed from what lands here, and the choice is recorded as the creator's answer.\n *\n * ## The two children, and why the order is not written here\n *\n * `top_down.brand-name-research` (RESEARCH_AGENT) proposes and screens against the public registers, with\n * web access; `top_down.brand-name-screening-produce` turns that evidence into the validated family. The\n * produce step needs the research to have returned (`step_available`), so the order is its precondition,\n * not this list. A second research round is the remedy for a thin or unreachable first one.\n *\n * ## One interview question, answerable with \"none\"\n *\n * Whether the creator already has names they want screened. Their answer travels into the research\n * objective verbatim (the dispatching composite's interview reaches every child), so a creator's own name\n * is screened exactly like a proposed one — and changing the answer and re-running is how they add another.\n */\nexport const playbookDefinition = {\n ref: 'top_down.brand-naming',\n version: '0.2.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Propose names for the product and screen each against the public trademark registers of the jurisdictions it targets, landing the brand-name screening the brand-identity interview offers the creator a choice from. An umbrella: it authors nothing itself — research proposes and screens with web access, a sibling lands the validated screening. The companion proposes; the creator chooses. A minimal trademark screening, never a legal clearance opinion.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n // The market names the competitors a candidate must stay distinct from, and the geographies that decide the jurisdictions.\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n ],\n inputs: [{ family: 'vision-brief' }, { family: 'market-snapshot' }],\n // Nothing: a composite's deliverable is what its children land (see `top_down.market-analysis`).\n outputs: [],\n method: {\n skillRefs: ['brand-name-screening'],\n elicitation: {\n questions: [\n {\n ref: 'names-to-screen',\n question:\n 'Do you already have names you want screened alongside the ones the companion will propose? List each exactly as you would spell it, separated by commas, or answer \"none\".',\n kind: HumanDecision_FieldKind.FREE_TEXT,\n /*\n * ASKED, never proposed: a name listed here is screened as the CREATOR'S own, and that origin decides what is\n * offered (a creator's conflicting name may be kept; a companion proposal that conflicts may not). A model\n * proposing this answer would make its own names read as the creator's.\n */\n whenUnknown: MetaWorkflow_ElicitationUnknownPolicy.ASK,\n },\n {\n ref: 'target-jurisdictions',\n question:\n 'In which jurisdictions do your users live and your data reside or transit (e.g. EU/EEA, UK, US, California, Canada, specific countries)? This is what drives which privacy regimes apply.',\n kind: HumanDecision_FieldKind.FREE_TEXT,\n // Disposed as its owner is, so the question reads the same wherever it is asked.\n depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL,\n regulatedDomain: true,\n /*\n * ONE decision, asked once (#2335): where the product's users are is the compliance interview's\n * `jurisdictions` question, and the screening needs the same answer — a mark is protected where it is used\n * in trade. On app-creation-test-005 the creator named Germany, France, Italy and Spain there, the research\n * saw only the market snapshot, and Italy and Spain were never searched. Declared here so the composite's\n * interview carries the answer to its research child; the dossier lists it once, at its owner.\n * The question text is the owner's, verbatim: one answer satisfies both.\n */\n sameDecisionAs: { playbookRef: 'top_down.compliance-analysis', questionRef: 'jurisdictions' },\n },\n ],\n },\n choreography: {\n // UNORDERED, produce first on purpose: read as a sequence it would try to land before any evidence existed.\n admits: ['top_down.brand-name-screening-produce', 'top_down.brand-name-research'],\n // Research → produce is two iterations; a second research round when the first could not reach a register is two more.\n maximumIterations: 6,\n // Breadth: one lane can propose while another screens a creator's own names.\n maximumLanesPerIteration: 2,\n // A literal (the definition evaluator computes no expressions). 30 minutes — a breaker, not a budget.\n maximumDurationMs: 1_800_000,\n },\n },\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: {},\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HumanDecision_FieldKind } from '@wildo-ai/saas-models';
|
|
2
|
-
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, MetaWorkflow_ApprovalPolicy, MetaWorkflow_ArtifactIntent, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind } from '@wildo-ai/saas-models/meta-workflows';
|
|
2
|
+
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, MetaWorkflow_ApprovalPolicy, MetaWorkflow_ArtifactIntent, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind, MetaWorkflow_ElicitationQuestionDepth } from '@wildo-ai/saas-models/meta-workflows';
|
|
3
3
|
import { MetaWorkflow_Phase } from '@wildo-ai/saas-specifications/application-creation';
|
|
4
4
|
export declare const playbookDefinition: {
|
|
5
5
|
ref: string;
|
|
@@ -32,10 +32,12 @@ export declare const playbookDefinition: {
|
|
|
32
32
|
question: string;
|
|
33
33
|
kind: HumanDecision_FieldKind.CHOICE;
|
|
34
34
|
options: string[];
|
|
35
|
+
depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL;
|
|
35
36
|
} | {
|
|
36
37
|
ref: string;
|
|
37
38
|
question: string;
|
|
38
39
|
kind: HumanDecision_FieldKind.FREE_TEXT;
|
|
40
|
+
depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL;
|
|
39
41
|
options?: undefined;
|
|
40
42
|
})[];
|
|
41
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.business-model/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAK/B,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,EAClD,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,qCAAqC,EACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkF+G,CAAC;AAE/I,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsHW,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { HumanDecision_FieldKind, } from '@wildo-ai/saas-models';
|
|
2
|
-
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, MetaWorkflow_ApprovalPolicy, MetaWorkflow_ArtifactIntent, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind, } from '@wildo-ai/saas-models/meta-workflows';
|
|
2
|
+
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, MetaWorkflow_ApprovalPolicy, MetaWorkflow_ArtifactIntent, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind, MetaWorkflow_ElicitationQuestionDepth, } from '@wildo-ai/saas-models/meta-workflows';
|
|
3
3
|
import { MetaWorkflow_Phase, } from '@wildo-ai/saas-specifications/application-creation';
|
|
4
4
|
export const playbookDefinition = {
|
|
5
5
|
ref: 'top_down.business-model',
|
|
6
|
-
version: '0.
|
|
6
|
+
version: '0.2.0',
|
|
7
7
|
phase: MetaWorkflow_Phase.TOP_DOWN,
|
|
8
|
-
intent: "Turn the accepted market and requirements truth, plus the creator's own pricing intent, into a non-vacuous BusinessModelLiteSnapshot: the product-level revenue model and a sketch of pricing plans, each cross-linked to the market ICPs it is sold to and the requirements it unlocks. A PLANNING artifact carrying commercial INTENT — never the billing runtime, and never a price the creator did not state.",
|
|
8
|
+
intent: "Turn the accepted market and requirements truth, plus the creator's own pricing intent, into a non-vacuous BusinessModelLiteSnapshot: the product-level revenue model, where its pricing tiers came from (stated by the creator, proposed at the creator's request, or not decided yet), and a sketch of pricing plans, each cross-linked to the market ICPs it is sold to and the requirements it unlocks. A PLANNING artifact carrying commercial INTENT — never the billing runtime, and never a price the creator did not state.",
|
|
9
9
|
preconditions: [
|
|
10
10
|
// The two families whose refs this artifact cross-links. `requirements` is required rather than
|
|
11
11
|
// merely declared because `includesRequirementRefs` is the traceability the foundation reads to
|
|
@@ -18,7 +18,7 @@ export const playbookDefinition = {
|
|
|
18
18
|
outputs: [{
|
|
19
19
|
family: 'business-model',
|
|
20
20
|
schemaRef: 'saas-specifications:BusinessModelLiteSnapshot',
|
|
21
|
-
description:
|
|
21
|
+
description: "A validated revenue-model classification, the status of the pricing tiers (creator-stated, proposed for the creator's review, or undecided), and the pricing plans that status implies — none when undecided — each cross-linked to the market ICPs it targets and the requirements it unlocks.",
|
|
22
22
|
}],
|
|
23
23
|
method: {
|
|
24
24
|
skillRefs: [],
|
|
@@ -32,8 +32,15 @@ export const playbookDefinition = {
|
|
|
32
32
|
* propagates: `bottom_up.foundation` derives the billing capability from it.
|
|
33
33
|
*
|
|
34
34
|
* So this playbook INTERVIEWS. The questions are deliberately few and coarse — this is a sketch,
|
|
35
|
-
* not a pricing exercise — and the creator can answer "not decided yet" to
|
|
36
|
-
* itself a real answer the artifact should carry rather than a gap the model fills in.
|
|
35
|
+
* not a pricing exercise — and the creator can answer "not decided yet" to every pricing question,
|
|
36
|
+
* which is itself a real answer the artifact should carry rather than a gap the model fills in.
|
|
37
|
+
*
|
|
38
|
+
* The tiers question offers exactly three exits, one per `PricingTiersStatus`: name the tiers,
|
|
39
|
+
* say "not decided yet", or ask for them to be proposed. Until 0.2.0 it offered only the first,
|
|
40
|
+
* and a creator who answered "not decided — let the plan propose them" (app-creation-test-004)
|
|
41
|
+
* left the run with no output that could pass: the contract demanded a plan and the judge refused
|
|
42
|
+
* any tier the creator had not named. A proposal is the mechanism doing the work the creator
|
|
43
|
+
* delegated; it stays MARKED as a proposal, and acceptance is still the creator's.
|
|
37
44
|
*/
|
|
38
45
|
elicitation: {
|
|
39
46
|
questions: [
|
|
@@ -41,27 +48,27 @@ export const playbookDefinition = {
|
|
|
41
48
|
ref: 'revenue-model',
|
|
42
49
|
question: 'How does this product make money? Choose the closest fit — a sketch, not a commitment.',
|
|
43
50
|
kind: HumanDecision_FieldKind.CHOICE,
|
|
44
|
-
options: ['subscription', 'usage_based', 'one_time_purchase', 'freemium', 'marketplace_commission', 'advertising'],
|
|
51
|
+
options: ['subscription', 'usage_based', 'one_time_purchase', 'freemium', 'marketplace_commission', 'advertising'], depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL,
|
|
45
52
|
},
|
|
46
53
|
{
|
|
47
54
|
ref: 'pricing-tiers',
|
|
48
|
-
question: 'What tiers or packages do you plan to sell? Name each one and say who it is for
|
|
49
|
-
kind: HumanDecision_FieldKind.FREE_TEXT,
|
|
55
|
+
question: 'What tiers or packages do you plan to sell? Name each one and say who it is for — answer "one tier" if there is only one. Answer "not decided yet" if you have not chosen, or "propose them" to have tiers proposed from the market research and requirements for you to review (a proposal never sets a price).',
|
|
56
|
+
kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL,
|
|
50
57
|
},
|
|
51
58
|
{
|
|
52
59
|
ref: 'pricing-scaling-axis',
|
|
53
60
|
question: 'What does the price scale with — seats, usage, a flat fee, or is it negotiated per customer? Answer "not decided yet" if you have not chosen.',
|
|
54
|
-
kind: HumanDecision_FieldKind.FREE_TEXT,
|
|
61
|
+
kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL,
|
|
55
62
|
},
|
|
56
63
|
{
|
|
57
64
|
ref: 'price-points',
|
|
58
65
|
question: 'Do you already have price points in mind for those tiers? Give them as you would write them ("$29 / user / month", "contact us"). Answer "not decided yet" if not — a tier with no price is still a real plan.',
|
|
59
|
-
kind: HumanDecision_FieldKind.FREE_TEXT,
|
|
66
|
+
kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL,
|
|
60
67
|
},
|
|
61
68
|
{
|
|
62
69
|
ref: 'free-tier',
|
|
63
70
|
question: 'Is there a free tier or trial? If so, what does it include, and what is deliberately held back for the paid tiers?',
|
|
64
|
-
kind: HumanDecision_FieldKind.FREE_TEXT,
|
|
71
|
+
kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL,
|
|
65
72
|
},
|
|
66
73
|
],
|
|
67
74
|
},
|
|
@@ -123,7 +130,8 @@ export const structuredArtifactActionSource = {
|
|
|
123
130
|
export const evaluationTreatmentSource = {
|
|
124
131
|
schemaVersion: 1,
|
|
125
132
|
definitionRef: 'application-creation:evaluation-treatment/business-model',
|
|
126
|
-
|
|
133
|
+
// 2 (playbook 0.2.0): the criterion now judges each `pricingTiers` status on its own terms.
|
|
134
|
+
definitionVersion: 2,
|
|
127
135
|
evaluationProtocol: {
|
|
128
136
|
schemaVersion: 1,
|
|
129
137
|
protocolRef: 'application-creation:evaluation-protocol/business-model',
|
|
@@ -135,8 +143,9 @@ export const evaluationTreatmentSource = {
|
|
|
135
143
|
criteria: [{
|
|
136
144
|
schemaVersion: 1,
|
|
137
145
|
criterionRef: 'application-creation:criterion/business-model-grounding-and-plan-coherence',
|
|
138
|
-
|
|
139
|
-
|
|
146
|
+
// 2: an undecided sketch and a requested proposal are no longer GAPs.
|
|
147
|
+
criterionVersion: 2,
|
|
148
|
+
instruction: 'Assess whether the business model is GROUNDED in what the creator actually stated and coherent with the accepted market and requirements truth. First check that `pricingTiers` matches the pricing-tiers answer: "creator_stated" when the creator named tiers, "proposed" when the creator asked for tiers to be proposed, "undecided" when the creator said the tiers are not decided and asked for no proposal. Then, per status: a "creator_stated" plan must trace to a tier the creator named; a "proposed" plan is legitimate BECAUSE the creator asked for it, and must carry a `proposalBasis` that names an ICP present in the market snapshot and requirements present in the requirements snapshot; an "undecided" sketch has no plans, and that is a complete, honest artifact. Across every status: every targeted ICP and unlocked requirement must exist, the revenue model must be consistent with the plans (an empty undecided sketch is consistent with any revenue model), and no plan may carry a price or scaling axis the creator did not state — not even a proposed one. Treat as a GAP: an invented price or scaling axis; a creator-stated plan the creator never named; a status that contradicts the interview (for example "undecided" when the creator named tiers, or plans present when the creator neither named nor asked for them); a proposal with no basis. This family exists to carry the creator\'s commercial intent, not the evaluator\'s.',
|
|
140
149
|
evidenceRequirements: [{
|
|
141
150
|
schemaVersion: 1,
|
|
142
151
|
requirementRef: 'application-creation:evidence-requirement/business-model-grounding-and-plan-coherence',
|
|
@@ -153,9 +162,9 @@ export const evaluationTreatmentSource = {
|
|
|
153
162
|
aggregationPolicyRef: null,
|
|
154
163
|
}],
|
|
155
164
|
verdictGuidance: {
|
|
156
|
-
[MetaWorkflow_EvaluationVerdict.PASS]: '
|
|
157
|
-
[MetaWorkflow_EvaluationVerdict.CONCERN]: 'The model is
|
|
158
|
-
[MetaWorkflow_EvaluationVerdict.GAP]: 'A
|
|
165
|
+
[MetaWorkflow_EvaluationVerdict.PASS]: 'The tiers status matches the interview; every stated plan traces to what the creator named, every proposed plan carries a basis in the accepted market and requirements truth, an undecided sketch carries no plans, no price or scaling axis is invented, and every cross-link resolves.',
|
|
166
|
+
[MetaWorkflow_EvaluationVerdict.CONCERN]: 'The model is faithful to the interview but a cross-link or a proposal basis is weaker than the accepted truth supports. An undecided answer the creator chose is NOT a concern — it is the honest artifact.',
|
|
167
|
+
[MetaWorkflow_EvaluationVerdict.GAP]: 'A price, scaling axis or stated tier appears that the creator did not give; the tiers status contradicts the interview; a proposal has no basis; or a cross-link names an ICP or requirement that does not exist.',
|
|
159
168
|
[MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The interview answers or the accepted market/requirements evidence are absent, stale or insufficient.',
|
|
160
169
|
},
|
|
161
170
|
}],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.business-model/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAK/B,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,EAClD,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,yBAAyB;IAC9B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,mZAAmZ;IACrZ,aAAa,EAAE;QACb,gGAAgG;QAChG,gGAAgG;QAChG,2FAA2F;QAC3F,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE;QAC5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kC,CAAC,8BAA8B;QACvF,gBAAgB,EAAE,oCAAoC,CAAC,gBAAgB;QACvE,gBAAgB,EAAE,CAAC,wCAAwC,CAAC,eAAe,CAAC;QAC5E,+BAA+B,EAAE,CAAC,uFAAuF,CAAC;QAC1H,eAAe,EAAE,iEAAiE;QAClF,cAAc,EAAE,yDAAyD;QACzE,gBAAgB,EAAE,6BAA6B,CAAC,YAAY;QAC5D,wBAAwB,EAAE,KAAK;KAChC;IACD,kBAAkB,EAAE;QAClB,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,yDAAyD;QACpE,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE;YACR,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;YACpH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAAE,+BAA+B,CAAC,MAAM,EAAE;YAChH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,EAAE,+BAA+B,CAAC,gBAAgB,EAAE;YACpI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,iBAAiB,EAAE,MAAM,EAAE,+BAA+B,CAAC,iBAAiB,EAAE;YACtI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import {\n HumanDecision_FieldKind,\n} from '@wildo-ai/saas-models';\nimport type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib/meta-workflow-runtime';\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 MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ArtifactIntent,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.business-model',\n version: '0.1.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n \"Turn the accepted market and requirements truth, plus the creator's own pricing intent, into a non-vacuous BusinessModelLiteSnapshot: the product-level revenue model and a sketch of pricing plans, each cross-linked to the market ICPs it is sold to and the requirements it unlocks. A PLANNING artifact carrying commercial INTENT — never the billing runtime, and never a price the creator did not state.\",\n preconditions: [\n // The two families whose refs this artifact cross-links. `requirements` is required rather than\n // merely declared because `includesRequirementRefs` is the traceability the foundation reads to\n // derive the billing capability — a plan that unlocks nothing nameable teaches it nothing.\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n ],\n inputs: [{ family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.AUDIENCE }, { family: 'requirements' }, { family: 'vision-brief' }],\n outputs: [{\n family: 'business-model',\n schemaRef: 'saas-specifications:BusinessModelLiteSnapshot',\n description: 'A validated revenue-model classification plus at least one pricing plan, each cross-linked to the market ICPs it targets and the requirements it unlocks.',\n }],\n method: {\n skillRefs: [],\n /*\n * The ONE family in the top-down set whose content a derivation cannot honestly infer.\n *\n * Vision, market, requirements and roadmap are all DERIVED from truth the creator already gave.\n * How a product charges is not derivable from any of them — the same product is a fair freemium\n * tool, a per-seat B2B subscription, or a usage-metered API, and nothing in the vision decides\n * which. A model asked to guess produces a plausible price the creator never chose, which then\n * propagates: `bottom_up.foundation` derives the billing capability from it.\n *\n * So this playbook INTERVIEWS. The questions are deliberately few and coarse — this is a sketch,\n * not a pricing exercise — and the creator can answer \"not decided yet\" to the last two, which is\n * itself a real answer the artifact should carry rather than a gap the model fills in.\n */\n elicitation: {\n questions: [\n {\n ref: 'revenue-model',\n question:\n 'How does this product make money? Choose the closest fit — a sketch, not a commitment.',\n kind: HumanDecision_FieldKind.CHOICE,\n options: ['subscription', 'usage_based', 'one_time_purchase', 'freemium', 'marketplace_commission', 'advertising'],\n },\n {\n ref: 'pricing-tiers',\n question:\n 'What tiers or packages do you plan to sell? Name each one and say who it is for. Answer \"one tier\" if there is only one.',\n kind: HumanDecision_FieldKind.FREE_TEXT,\n },\n {\n ref: 'pricing-scaling-axis',\n question:\n 'What does the price scale with — seats, usage, a flat fee, or is it negotiated per customer? Answer \"not decided yet\" if you have not chosen.',\n kind: HumanDecision_FieldKind.FREE_TEXT,\n },\n {\n ref: 'price-points',\n question:\n 'Do you already have price points in mind for those tiers? Give them as you would write them (\"$29 / user / month\", \"contact us\"). Answer \"not decided yet\" if not — a tier with no price is still a real plan.',\n kind: HumanDecision_FieldKind.FREE_TEXT,\n },\n {\n ref: 'free-tier',\n question:\n 'Is there a free tier or trial? If so, what does it include, and what is deliberately held back for the paid tiers?',\n kind: HumanDecision_FieldKind.FREE_TEXT,\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'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/business-model',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/business-model',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-product-business-model',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-vision-brief',\n ],\n outcomeContractRefs: ['application-creation:output-contract/business-model-lite-snapshot'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifacts-before-acceptance',\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: 'application-creation:authority-requirement/business-model-result',\n budgetPolicyRef: 'application-creation:budget-policy/business-model',\n continuationPolicyRef: 'application-creation:continuation-policy/business-model',\n decisionPointDefinitionRefs: ['application-creation:decision-point/business-model-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: { contractRef: 'application-creation:input-projection/accepted-market-and-vision-definition-set', contractVersion: 1 },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/business-model-lite-snapshot-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/business-model-lite-snapshot-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/business-model-lite-snapshot',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/business-model-lite-snapshot', 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/business-model-lite-snapshot', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-specification-family-snapshot'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [MetaWorkflow_FailureDisposition.FAIL_BINDING, MetaWorkflow_FailureDisposition.REQUEST_INPUT, MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/business-model',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/business-model',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [MetaWorkflow_EvaluationVerdict.GAP, MetaWorkflow_EvaluationVerdict.INDETERMINATE, MetaWorkflow_EvaluationVerdict.CONCERN, MetaWorkflow_EvaluationVerdict.PASS],\n aggregationPolicyRef: 'application-creation:aggregation/worst-business-model-verdict',\n criteria: [{\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/business-model-grounding-and-plan-coherence',\n criterionVersion: 1,\n instruction: 'Assess whether the business model is GROUNDED in what the creator actually stated and coherent with the accepted market and requirements truth: every plan traceable to the interview, every targeted ICP present in the market snapshot, every unlocked requirement present in the requirements snapshot, and the revenue model consistent with the plans beneath it. Treat an invented price, an invented tier, or a price the creator said was undecided as a GAP — this family exists to carry the creator\\'s commercial intent, not the evaluator\\'s.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/business-model-grounding-and-plan-coherence',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/market-vision-and-business-model-candidate',\n minCount: 4,\n maxCount: 5,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-business-model-inputs-and-candidate',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-action-binding',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every plan traces to what the creator stated, and the cross-links resolve against the accepted market and requirements truth.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The model is usable but carries explicit commercial uncertainty the creator left open.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A plan, price or tier appears that the creator did not state, or a cross-link names an ICP or requirement that does not exist.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The interview answers or the accepted market/requirements evidence are absent, stale or insufficient.',\n },\n }],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/business-model',\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/business-model-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/business-model-lite-snapshot-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/business-model-lite-snapshot-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/current-horizon-business-model-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/business-model-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-business-model-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: [{ hardFloorRef: 'application-creation:hard-floor/business-model-lite-snapshot-valid', evidenceRequirementRefs: ['application-creation:evidence-requirement/business-model-grounding-and-plan-coherence'] }],\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/business-model-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-business-model-lite-snapshot',\n riskClassRef: 'application-creation:risk/business-model-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: ['application-creation:evidence-requirement/business-model-grounding-and-plan-coherence'],\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/business-model',\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/top_down.business-model/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAK/B,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,EAClD,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,qCAAqC,GACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,yBAAyB;IAC9B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,sgBAAsgB;IACxgB,aAAa,EAAE;QACb,gGAAgG;QAChG,gGAAgG;QAChG,2FAA2F;QAC3F,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE;QAC5F,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QACzF,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;KAC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kB,EAAE,IAAI;QACxB,oBAAoB,EAAE,kCAAkC,CAAC,8BAA8B;QACvF,gBAAgB,EAAE,oCAAoC,CAAC,gBAAgB;QACvE,gBAAgB,EAAE,CAAC,wCAAwC,CAAC,eAAe,CAAC;QAC5E,+BAA+B,EAAE,CAAC,uFAAuF,CAAC;QAC1H,eAAe,EAAE,iEAAiE;QAClF,cAAc,EAAE,yDAAyD;QACzE,gBAAgB,EAAE,6BAA6B,CAAC,YAAY;QAC5D,wBAAwB,EAAE,KAAK;KAChC;IACD,kBAAkB,EAAE;QAClB,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,yDAAyD;QACpE,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE;YACR,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;YACpH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAAE,+BAA+B,CAAC,MAAM,EAAE;YAChH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,EAAE,+BAA+B,CAAC,gBAAgB,EAAE;YACpI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,iBAAiB,EAAE,MAAM,EAAE,+BAA+B,CAAC,iBAAiB,EAAE;YACtI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import {\n HumanDecision_FieldKind,\n} from '@wildo-ai/saas-models';\nimport type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib/meta-workflow-runtime';\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 MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ArtifactIntent,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n MetaWorkflow_ElicitationQuestionDepth,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.business-model',\n version: '0.2.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n \"Turn the accepted market and requirements truth, plus the creator's own pricing intent, into a non-vacuous BusinessModelLiteSnapshot: the product-level revenue model, where its pricing tiers came from (stated by the creator, proposed at the creator's request, or not decided yet), and a sketch of pricing plans, each cross-linked to the market ICPs it is sold to and the requirements it unlocks. A PLANNING artifact carrying commercial INTENT — never the billing runtime, and never a price the creator did not state.\",\n preconditions: [\n // The two families whose refs this artifact cross-links. `requirements` is required rather than\n // merely declared because `includesRequirementRefs` is the traceability the foundation reads to\n // derive the billing capability — a plan that unlocks nothing nameable teaches it nothing.\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n ],\n inputs: [{ family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.AUDIENCE }, { family: 'requirements' }, { family: 'vision-brief' }],\n outputs: [{\n family: 'business-model',\n schemaRef: 'saas-specifications:BusinessModelLiteSnapshot',\n description: \"A validated revenue-model classification, the status of the pricing tiers (creator-stated, proposed for the creator's review, or undecided), and the pricing plans that status implies — none when undecided — each cross-linked to the market ICPs it targets and the requirements it unlocks.\",\n }],\n method: {\n skillRefs: [],\n /*\n * The ONE family in the top-down set whose content a derivation cannot honestly infer.\n *\n * Vision, market, requirements and roadmap are all DERIVED from truth the creator already gave.\n * How a product charges is not derivable from any of them — the same product is a fair freemium\n * tool, a per-seat B2B subscription, or a usage-metered API, and nothing in the vision decides\n * which. A model asked to guess produces a plausible price the creator never chose, which then\n * propagates: `bottom_up.foundation` derives the billing capability from it.\n *\n * So this playbook INTERVIEWS. The questions are deliberately few and coarse — this is a sketch,\n * not a pricing exercise — and the creator can answer \"not decided yet\" to every pricing question,\n * which is itself a real answer the artifact should carry rather than a gap the model fills in.\n *\n * The tiers question offers exactly three exits, one per `PricingTiersStatus`: name the tiers,\n * say \"not decided yet\", or ask for them to be proposed. Until 0.2.0 it offered only the first,\n * and a creator who answered \"not decided — let the plan propose them\" (app-creation-test-004)\n * left the run with no output that could pass: the contract demanded a plan and the judge refused\n * any tier the creator had not named. A proposal is the mechanism doing the work the creator\n * delegated; it stays MARKED as a proposal, and acceptance is still the creator's.\n */\n elicitation: {\n questions: [\n {\n ref: 'revenue-model',\n question:\n 'How does this product make money? Choose the closest fit — a sketch, not a commitment.',\n kind: HumanDecision_FieldKind.CHOICE,\n options: ['subscription', 'usage_based', 'one_time_purchase', 'freemium', 'marketplace_commission', 'advertising'], depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL,\n },\n {\n ref: 'pricing-tiers',\n question:\n 'What tiers or packages do you plan to sell? Name each one and say who it is for — answer \"one tier\" if there is only one. Answer \"not decided yet\" if you have not chosen, or \"propose them\" to have tiers proposed from the market research and requirements for you to review (a proposal never sets a price).',\n kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL,\n },\n {\n ref: 'pricing-scaling-axis',\n question:\n 'What does the price scale with — seats, usage, a flat fee, or is it negotiated per customer? Answer \"not decided yet\" if you have not chosen.',\n kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL,\n },\n {\n ref: 'price-points',\n question:\n 'Do you already have price points in mind for those tiers? Give them as you would write them (\"$29 / user / month\", \"contact us\"). Answer \"not decided yet\" if not — a tier with no price is still a real plan.',\n kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL,\n },\n {\n ref: 'free-tier',\n question:\n 'Is there a free tier or trial? If so, what does it include, and what is deliberately held back for the paid tiers?',\n kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL,\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'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/business-model',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/business-model',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-product-business-model',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-vision-brief',\n ],\n outcomeContractRefs: ['application-creation:output-contract/business-model-lite-snapshot'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifacts-before-acceptance',\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: 'application-creation:authority-requirement/business-model-result',\n budgetPolicyRef: 'application-creation:budget-policy/business-model',\n continuationPolicyRef: 'application-creation:continuation-policy/business-model',\n decisionPointDefinitionRefs: ['application-creation:decision-point/business-model-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: { contractRef: 'application-creation:input-projection/accepted-market-and-vision-definition-set', contractVersion: 1 },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/business-model-lite-snapshot-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/business-model-lite-snapshot-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/business-model-lite-snapshot',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/business-model-lite-snapshot', 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/business-model-lite-snapshot', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-specification-family-snapshot'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [MetaWorkflow_FailureDisposition.FAIL_BINDING, MetaWorkflow_FailureDisposition.REQUEST_INPUT, MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/business-model',\n // 2 (playbook 0.2.0): the criterion now judges each `pricingTiers` status on its own terms.\n definitionVersion: 2,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/business-model',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [MetaWorkflow_EvaluationVerdict.GAP, MetaWorkflow_EvaluationVerdict.INDETERMINATE, MetaWorkflow_EvaluationVerdict.CONCERN, MetaWorkflow_EvaluationVerdict.PASS],\n aggregationPolicyRef: 'application-creation:aggregation/worst-business-model-verdict',\n criteria: [{\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/business-model-grounding-and-plan-coherence',\n // 2: an undecided sketch and a requested proposal are no longer GAPs.\n criterionVersion: 2,\n instruction: 'Assess whether the business model is GROUNDED in what the creator actually stated and coherent with the accepted market and requirements truth. First check that `pricingTiers` matches the pricing-tiers answer: \"creator_stated\" when the creator named tiers, \"proposed\" when the creator asked for tiers to be proposed, \"undecided\" when the creator said the tiers are not decided and asked for no proposal. Then, per status: a \"creator_stated\" plan must trace to a tier the creator named; a \"proposed\" plan is legitimate BECAUSE the creator asked for it, and must carry a `proposalBasis` that names an ICP present in the market snapshot and requirements present in the requirements snapshot; an \"undecided\" sketch has no plans, and that is a complete, honest artifact. Across every status: every targeted ICP and unlocked requirement must exist, the revenue model must be consistent with the plans (an empty undecided sketch is consistent with any revenue model), and no plan may carry a price or scaling axis the creator did not state — not even a proposed one. Treat as a GAP: an invented price or scaling axis; a creator-stated plan the creator never named; a status that contradicts the interview (for example \"undecided\" when the creator named tiers, or plans present when the creator neither named nor asked for them); a proposal with no basis. This family exists to carry the creator\\'s commercial intent, not the evaluator\\'s.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/business-model-grounding-and-plan-coherence',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/market-vision-and-business-model-candidate',\n minCount: 4,\n maxCount: 5,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-business-model-inputs-and-candidate',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-action-binding',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The tiers status matches the interview; every stated plan traces to what the creator named, every proposed plan carries a basis in the accepted market and requirements truth, an undecided sketch carries no plans, no price or scaling axis is invented, and every cross-link resolves.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The model is faithful to the interview but a cross-link or a proposal basis is weaker than the accepted truth supports. An undecided answer the creator chose is NOT a concern — it is the honest artifact.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A price, scaling axis or stated tier appears that the creator did not give; the tiers status contradicts the interview; a proposal has no basis; or a cross-link names an ICP or requirement that does not exist.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The interview answers or the accepted market/requirements evidence are absent, stale or insufficient.',\n },\n }],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/business-model',\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/business-model-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/business-model-lite-snapshot-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/business-model-lite-snapshot-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/current-horizon-business-model-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/business-model-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-business-model-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: [{ hardFloorRef: 'application-creation:hard-floor/business-model-lite-snapshot-valid', evidenceRequirementRefs: ['application-creation:evidence-requirement/business-model-grounding-and-plan-coherence'] }],\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/business-model-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-business-model-lite-snapshot',\n riskClassRef: 'application-creation:risk/business-model-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: ['application-creation:evidence-requirement/business-model-grounding-and-plan-coherence'],\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/business-model',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.capability-map/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,EAClD,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD+G,CAAC;AAE/I,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHW,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HumanDecision_FieldKind } from '@wildo-ai/saas-models';
|
|
2
|
-
import { MetaWorkflow_ApprovalPolicy, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind } from '@wildo-ai/saas-models/meta-workflows';
|
|
2
|
+
import { MetaWorkflow_ApprovalPolicy, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind, MetaWorkflow_ElicitationQuestionDepth } from '@wildo-ai/saas-models/meta-workflows';
|
|
3
3
|
import { MetaWorkflow_Phase } from '@wildo-ai/saas-specifications/application-creation';
|
|
4
4
|
/**
|
|
5
5
|
* The SECOND consumer of the research → adequacy → produce choreography, mirrored from
|
|
@@ -34,10 +34,20 @@ export declare const playbookDefinition: {
|
|
|
34
34
|
ref: string;
|
|
35
35
|
question: string;
|
|
36
36
|
kind: HumanDecision_FieldKind.CONFIRM;
|
|
37
|
+
depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL;
|
|
38
|
+
regulatedDomain: true;
|
|
37
39
|
} | {
|
|
38
40
|
ref: string;
|
|
39
41
|
question: string;
|
|
40
42
|
kind: HumanDecision_FieldKind.FREE_TEXT;
|
|
43
|
+
depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL;
|
|
44
|
+
regulatedDomain: true;
|
|
45
|
+
} | {
|
|
46
|
+
ref: string;
|
|
47
|
+
question: string;
|
|
48
|
+
kind: HumanDecision_FieldKind.FREE_TEXT;
|
|
49
|
+
depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL;
|
|
50
|
+
regulatedDomain: true;
|
|
41
51
|
})[];
|
|
42
52
|
};
|
|
43
53
|
choreography: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.compliance-analysis/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,qCAAqC,EACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2H9B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HumanDecision_FieldKind, } from '@wildo-ai/saas-models';
|
|
2
|
-
import { MetaWorkflow_ApprovalPolicy, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind, } from '@wildo-ai/saas-models/meta-workflows';
|
|
2
|
+
import { MetaWorkflow_ApprovalPolicy, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind, MetaWorkflow_ElicitationQuestionDepth, } from '@wildo-ai/saas-models/meta-workflows';
|
|
3
3
|
import { MetaWorkflow_Phase, } from '@wildo-ai/saas-specifications/application-creation';
|
|
4
4
|
/**
|
|
5
5
|
* The SECOND consumer of the research → adequacy → produce choreography, mirrored from
|
|
@@ -50,52 +50,52 @@ export const playbookDefinition = {
|
|
|
50
50
|
{
|
|
51
51
|
"ref": "handles-regulated-data",
|
|
52
52
|
"question": "Does the product store, process, or transmit personal data or otherwise regulated data (health, financial, biometric, children's, government) — either from end users or on behalf of customers?",
|
|
53
|
-
kind: HumanDecision_FieldKind.CONFIRM
|
|
53
|
+
kind: HumanDecision_FieldKind.CONFIRM, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"ref": "data-classes",
|
|
57
57
|
"question": "Which classes of sensitive data does the product touch? List them (e.g. names/emails, health records, payment card data, government IDs, precise location, employee data). Answer \"none\" if it handles no personal or sensitive data.",
|
|
58
|
-
kind: HumanDecision_FieldKind.FREE_TEXT
|
|
58
|
+
kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"ref": "vendor-establishment",
|
|
62
62
|
"question": "Where is the VENDOR established — the legal entity (or intended entity) operating the product, its country/region, and where is the product hosted or planned to be hosted? Territorial-scope tests (GDPR Art. 3, UK GDPR, CCPA \"doing business\") turn on the vendor's establishment and conduct, not only on where users live. Answer \"not yet decided\" for whatever is genuinely open.",
|
|
63
|
-
kind: HumanDecision_FieldKind.FREE_TEXT
|
|
63
|
+
kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL, regulatedDomain: true
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"ref": "jurisdictions",
|
|
67
67
|
"question": "In which jurisdictions do your users live and your data reside or transit (e.g. EU/EEA, UK, US, California, Canada, specific countries)? This is what drives which privacy regimes apply.",
|
|
68
|
-
kind: HumanDecision_FieldKind.FREE_TEXT
|
|
68
|
+
kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL, regulatedDomain: true
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"ref": "sector",
|
|
72
72
|
"question": "Does the product operate in a regulated sector with its own rules (healthcare, finance/banking, insurance, education, government, telecoms)? Name the sector, or answer \"none\".",
|
|
73
|
-
kind: HumanDecision_FieldKind.FREE_TEXT
|
|
73
|
+
kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"ref": "gdpr-applies",
|
|
77
77
|
"question": "Do you serve EU/EEA (or UK) individuals or process their personal data? (This is the primary trigger for GDPR / UK GDPR.)",
|
|
78
|
-
kind: HumanDecision_FieldKind.CONFIRM
|
|
78
|
+
kind: HumanDecision_FieldKind.CONFIRM, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"ref": "hipaa-applies",
|
|
82
82
|
"question": "Do you handle US protected health information as, or on behalf of, a covered entity or business associate? (This is the primary trigger for HIPAA.)",
|
|
83
|
-
kind: HumanDecision_FieldKind.CONFIRM
|
|
83
|
+
kind: HumanDecision_FieldKind.CONFIRM, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"ref": "external-assurance-applies",
|
|
87
87
|
"question": "Do enterprise customers (or your own security posture) require an independent attestation or certification covering security / availability / confidentiality of the service? Name the requested target only as an external source requirement.",
|
|
88
|
-
kind: HumanDecision_FieldKind.CONFIRM
|
|
88
|
+
kind: HumanDecision_FieldKind.CONFIRM, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"ref": "data-residency",
|
|
92
92
|
"question": "Are there data-residency or sovereignty requirements — must certain data stay within a region or country (e.g. EU-only hosting, in-country storage)? Describe them, or answer \"none\".",
|
|
93
|
-
kind: HumanDecision_FieldKind.FREE_TEXT
|
|
93
|
+
kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
"ref": "additional-regimes",
|
|
97
97
|
"question": "Any other legal regimes, sector frameworks, government programs, or contractual security commitments that apply? List the externally named sources, or answer \"none\".",
|
|
98
|
-
kind: HumanDecision_FieldKind.FREE_TEXT
|
|
98
|
+
kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true
|
|
99
99
|
}
|
|
100
100
|
]
|
|
101
101
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-analysis/playbook.definition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AAE,mLAAmL;oBAC/L,IAAI,EAAE,uBAAuB,CAAC,SAAS;iBACxC;gBACD;oBACE,KAAK,EAAE,cAAc;oBACrB,UAAU,EAAE,2HAA2H;oBACvI,IAAI,EAAE,uBAAuB,CAAC,OAAO;iBACtC;gBACD;oBACE,KAAK,EAAE,eAAe;oBACtB,UAAU,EAAE,qJAAqJ;oBACjK,IAAI,EAAE,uBAAuB,CAAC,OAAO;iBACtC;gBACD;oBACE,KAAK,EAAE,4BAA4B;oBACnC,UAAU,EAAE,iPAAiP;oBAC7P,IAAI,EAAE,uBAAuB,CAAC,OAAO;iBACtC;gBACD;oBACE,KAAK,EAAE,gBAAgB;oBACvB,UAAU,EAAE,yLAAyL;oBACrM,IAAI,EAAE,uBAAuB,CAAC,SAAS;iBACxC;gBACD;oBACE,KAAK,EAAE,oBAAoB;oBAC3B,UAAU,EAAE,yKAAyK;oBACrL,IAAI,EAAE,uBAAuB,CAAC,SAAS;iBACxC;aACF;SACF;QACD,YAAY,EAAE;YACZ;;;;eAIG;YACH,MAAM,EAAE;gBACN,6BAA6B;gBAC7B,8BAA8B;gBAC9B,uCAAuC;aACxC;YACD;;;;;;;;;;;;;eAaG;YACH,iBAAiB,EAAE,EAAE;YACrB,wBAAwB,EAAE,CAAC;YAC3B,iBAAiB,EAAE,SAAS;SAC7B;KACF;IACD,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import {\n HumanDecision_FieldKind,\n} from '@wildo-ai/saas-models';\nimport {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * The SECOND consumer of the research → adequacy → produce choreography, mirrored from\n * `top_down.market-analysis` on purpose: the pattern earns its generality from a second real\n * instance rather than from a designed abstraction (decided with Paul, 2026-09-02 — this is #254's\n * road walked through a genuine case, not around it).\n *\n * The gap it closes is recorded in `app-creation-composite-choreography.md` §10: compliance-posture\n * answered \"which regimes apply, in which jurisdictions\" from nine interview questions plus a\n * model's recollection — the same evidence hole the market lane had before its composite, with a\n * harsher consequence, because a regime wrongly excluded is a legal statement, not a stale price.\n */\nexport const playbookDefinition = {\n ref: 'top_down.compliance-analysis',\n version: '0.1.3',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Establish the compliance posture by gathering regime EVIDENCE from authoritative sources, judging whether it is enough, and recording the applicable regimes as vision constraints only once it is. An umbrella: it authors nothing itself — its deliverable is what its children land, and the order between them is decided by their own preconditions rather than declared here.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n ],\n inputs: [{ family: 'vision-brief' }],\n // Nothing, for the market umbrella's own recorded reason: a composite's deliverable is what its\n // children land, and declaring the child's output here would be two playbooks claiming one family.\n // The loop resolves this playbook's write scope transitively through `admits` — `vision-brief`, via\n // `top_down.compliance-posture` — so an empty `outputs[]` no longer reads as \"writes nothing\".\n outputs: [],\n method: {\n skillRefs: [],\n /*\n * The product-fact questions, moved here from compliance-posture (#284 shape (a), decided\n * 2026-09-02): regime applicability is a JOIN of legal tests (researchable — the research child's\n * job) and these facts (elicitable — only the creator can answer). They lived on the produce\n * child, behind the adequacy gate that could never pass without them, and a question-bearing\n * child is excluded from loop selection anyway (a loop has nobody to answer). Asked ONCE at the\n * umbrella, the answers ride into every child: the chooser aims round-1 research at the real\n * jurisdictions instead of surveying, adequacy judges with the facts in hand, and posture derives\n * from answers + evidence.\n *\n * NOTE (measured 2026-09-17): this said \"the workbench renders these declared questions as the\n * launch form\". It does not. The board renders an `interviews you` badge from\n * `requiresElicitation` beside an enabled Run button that posts no answers, so a run started\n * there refuses. Answers reach a run only through `elicitationAnswers` on\n * `POST /api/companion/playbooks/<ref>/run`. Building that form is tracked on the operator-answer\n * epic; until it exists, do not describe it as present.\n */\n elicitation: {\n \"questions\": [\n {\n \"ref\": \"handles-regulated-data\",\n \"question\": \"Does the product store, process, or transmit personal data or otherwise regulated data (health, financial, biometric, children's, government) — either from end users or on behalf of customers?\",\n kind: HumanDecision_FieldKind.CONFIRM\n },\n {\n \"ref\": \"data-classes\",\n \"question\": \"Which classes of sensitive data does the product touch? List them (e.g. names/emails, health records, payment card data, government IDs, precise location, employee data). Answer \\\"none\\\" if it handles no personal or sensitive data.\",\n kind: HumanDecision_FieldKind.FREE_TEXT\n },\n {\n \"ref\": \"vendor-establishment\",\n \"question\": \"Where is the VENDOR established — the legal entity (or intended entity) operating the product, its country/region, and where is the product hosted or planned to be hosted? Territorial-scope tests (GDPR Art. 3, UK GDPR, CCPA \\\"doing business\\\") turn on the vendor's establishment and conduct, not only on where users live. Answer \\\"not yet decided\\\" for whatever is genuinely open.\",\n kind: HumanDecision_FieldKind.FREE_TEXT\n },\n {\n \"ref\": \"jurisdictions\",\n \"question\": \"In which jurisdictions do your users live and your data reside or transit (e.g. EU/EEA, UK, US, California, Canada, specific countries)? This is what drives which privacy regimes apply.\",\n kind: HumanDecision_FieldKind.FREE_TEXT\n },\n {\n \"ref\": \"sector\",\n \"question\": \"Does the product operate in a regulated sector with its own rules (healthcare, finance/banking, insurance, education, government, telecoms)? Name the sector, or answer \\\"none\\\".\",\n kind: HumanDecision_FieldKind.FREE_TEXT\n },\n {\n \"ref\": \"gdpr-applies\",\n \"question\": \"Do you serve EU/EEA (or UK) individuals or process their personal data? (This is the primary trigger for GDPR / UK GDPR.)\",\n kind: HumanDecision_FieldKind.CONFIRM\n },\n {\n \"ref\": \"hipaa-applies\",\n \"question\": \"Do you handle US protected health information as, or on behalf of, a covered entity or business associate? (This is the primary trigger for HIPAA.)\",\n kind: HumanDecision_FieldKind.CONFIRM\n },\n {\n \"ref\": \"external-assurance-applies\",\n \"question\": \"Do enterprise customers (or your own security posture) require an independent attestation or certification covering security / availability / confidentiality of the service? Name the requested target only as an external source requirement.\",\n kind: HumanDecision_FieldKind.CONFIRM\n },\n {\n \"ref\": \"data-residency\",\n \"question\": \"Are there data-residency or sovereignty requirements — must certain data stay within a region or country (e.g. EU-only hosting, in-country storage)? Describe them, or answer \\\"none\\\".\",\n kind: HumanDecision_FieldKind.FREE_TEXT\n },\n {\n \"ref\": \"additional-regimes\",\n \"question\": \"Any other legal regimes, sector frameworks, government programs, or contractual security commitments that apply? List the externally named sources, or answer \\\"none\\\".\",\n kind: HumanDecision_FieldKind.FREE_TEXT\n }\n ]\n },\n choreography: {\n /*\n * UNORDERED, produce-first on purpose (the market umbrella's own trap check): if anything ever\n * read this array as a sequence, the composite would try to record a posture before any\n * evidence existed, and the run would fail loudly rather than silently degrading.\n */\n admits: [\n 'top_down.compliance-posture',\n 'top_down.compliance-research',\n 'top_down.compliance-evidence-adequacy',\n ],\n /*\n * MEASURED on the first real run (wonder-crm, 2026-09-02), replacing the market composite's\n * borrowed bounds: research turns here run 3–7 minutes each (five succeeded, 63k–157k context —\n * regime research reads primary sources, which is slower than market scanning), and the run hit\n * the 40-minute breaker mid-loop without reaching an ADEQUATE verdict — the market's own\n * first-run ending, one lane over. ~280s/iteration measured against the market's ~168s.\n *\n * Two things a caller must know, learned the expensive way on that run: the companion's HTTP\n * request ceiling (30 min) is SHORTER than this bound, so a synchronous caller loses the result\n * envelope while the run continues and completes server-side — read the outcome from\n * /playbooks/runs and the traces, or submit from a surface that outlives the request. And\n * whether the adequacy BAR (see compliance-evidence-adequacy's method) needs loosening is an\n * open calibration question the next run's gap texts should settle — do not soften it blind.\n */\n maximumIterations: 14,\n maximumLanesPerIteration: 3,\n maximumDurationMs: 4_800_000,\n },\n },\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: {},\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-analysis/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,qCAAqC,GACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,kBAAkB,GAEnB,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,8BAA8B;IACnC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,qXAAqX;IACvX,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;KAC1F;IACD,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;IACpC,gGAAgG;IAChG,mGAAmG;IACnG,oGAAoG;IACpG,+FAA+F;IAC/F,OAAO,EAAE,EAAE;IACX,MAAM,EAAE;QACN,SAAS,EAAE,EAAE;QACb;;;;;;;;;;;;;;;;WAgBG;QACH,WAAW,EAAE;YACX,WAAW,EAAE;gBACX;oBACE,KAAK,EAAE,wBAAwB;oBAC/B,UAAU,EAAE,kMAAkM;oBAC9M,IAAI,EAAE,uBAAuB,CAAC,OAAO,EAAE,KAAK,EAAE,qCAAqC,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI;iBAClH;gBACD;oBACE,KAAK,EAAE,cAAc;oBACrB,UAAU,EAAE,yOAAyO;oBACrP,IAAI,EAAE,uBAAuB,CAAC,SAAS,EAAE,KAAK,EAAE,qCAAqC,CAAC,MA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KAAK,EAAE,oBAAoB;oBAC3B,UAAU,EAAE,yKAAyK;oBACrL,IAAI,EAAE,uBAAuB,CAAC,SAAS,EAAE,KAAK,EAAE,qCAAqC,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI;iBACpH;aACF;SACF;QACD,YAAY,EAAE;YACZ;;;;eAIG;YACH,MAAM,EAAE;gBACN,6BAA6B;gBAC7B,8BAA8B;gBAC9B,uCAAuC;aACxC;YACD;;;;;;;;;;;;;eAaG;YACH,iBAAiB,EAAE,EAAE;YACrB,wBAAwB,EAAE,CAAC;YAC3B,iBAAiB,EAAE,SAAS;SAC7B;KACF;IACD,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import {\n HumanDecision_FieldKind,\n} from '@wildo-ai/saas-models';\nimport {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_PredicateKind,\n MetaWorkflow_ElicitationQuestionDepth,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * The SECOND consumer of the research → adequacy → produce choreography, mirrored from\n * `top_down.market-analysis` on purpose: the pattern earns its generality from a second real\n * instance rather than from a designed abstraction (decided with Paul, 2026-09-02 — this is #254's\n * road walked through a genuine case, not around it).\n *\n * The gap it closes is recorded in `app-creation-composite-choreography.md` §10: compliance-posture\n * answered \"which regimes apply, in which jurisdictions\" from nine interview questions plus a\n * model's recollection — the same evidence hole the market lane had before its composite, with a\n * harsher consequence, because a regime wrongly excluded is a legal statement, not a stale price.\n */\nexport const playbookDefinition = {\n ref: 'top_down.compliance-analysis',\n version: '0.1.3',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Establish the compliance posture by gathering regime EVIDENCE from authoritative sources, judging whether it is enough, and recording the applicable regimes as vision constraints only once it is. An umbrella: it authors nothing itself — its deliverable is what its children land, and the order between them is decided by their own preconditions rather than declared here.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n ],\n inputs: [{ family: 'vision-brief' }],\n // Nothing, for the market umbrella's own recorded reason: a composite's deliverable is what its\n // children land, and declaring the child's output here would be two playbooks claiming one family.\n // The loop resolves this playbook's write scope transitively through `admits` — `vision-brief`, via\n // `top_down.compliance-posture` — so an empty `outputs[]` no longer reads as \"writes nothing\".\n outputs: [],\n method: {\n skillRefs: [],\n /*\n * The product-fact questions, moved here from compliance-posture (#284 shape (a), decided\n * 2026-09-02): regime applicability is a JOIN of legal tests (researchable — the research child's\n * job) and these facts (elicitable — only the creator can answer). They lived on the produce\n * child, behind the adequacy gate that could never pass without them, and a question-bearing\n * child is excluded from loop selection anyway (a loop has nobody to answer). Asked ONCE at the\n * umbrella, the answers ride into every child: the chooser aims round-1 research at the real\n * jurisdictions instead of surveying, adequacy judges with the facts in hand, and posture derives\n * from answers + evidence.\n *\n * NOTE (measured 2026-09-17): this said \"the workbench renders these declared questions as the\n * launch form\". It does not. The board renders an `interviews you` badge from\n * `requiresElicitation` beside an enabled Run button that posts no answers, so a run started\n * there refuses. Answers reach a run only through `elicitationAnswers` on\n * `POST /api/companion/playbooks/<ref>/run`. Building that form is tracked on the operator-answer\n * epic; until it exists, do not describe it as present.\n */\n elicitation: {\n \"questions\": [\n {\n \"ref\": \"handles-regulated-data\",\n \"question\": \"Does the product store, process, or transmit personal data or otherwise regulated data (health, financial, biometric, children's, government) — either from end users or on behalf of customers?\",\n kind: HumanDecision_FieldKind.CONFIRM, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true\n },\n {\n \"ref\": \"data-classes\",\n \"question\": \"Which classes of sensitive data does the product touch? List them (e.g. names/emails, health records, payment card data, government IDs, precise location, employee data). Answer \\\"none\\\" if it handles no personal or sensitive data.\",\n kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true\n },\n {\n \"ref\": \"vendor-establishment\",\n \"question\": \"Where is the VENDOR established — the legal entity (or intended entity) operating the product, its country/region, and where is the product hosted or planned to be hosted? Territorial-scope tests (GDPR Art. 3, UK GDPR, CCPA \\\"doing business\\\") turn on the vendor's establishment and conduct, not only on where users live. Answer \\\"not yet decided\\\" for whatever is genuinely open.\",\n kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL, regulatedDomain: true\n },\n {\n \"ref\": \"jurisdictions\",\n \"question\": \"In which jurisdictions do your users live and your data reside or transit (e.g. EU/EEA, UK, US, California, Canada, specific countries)? This is what drives which privacy regimes apply.\",\n kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.ESSENTIAL, regulatedDomain: true\n },\n {\n \"ref\": \"sector\",\n \"question\": \"Does the product operate in a regulated sector with its own rules (healthcare, finance/banking, insurance, education, government, telecoms)? Name the sector, or answer \\\"none\\\".\",\n kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true\n },\n {\n \"ref\": \"gdpr-applies\",\n \"question\": \"Do you serve EU/EEA (or UK) individuals or process their personal data? (This is the primary trigger for GDPR / UK GDPR.)\",\n kind: HumanDecision_FieldKind.CONFIRM, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true\n },\n {\n \"ref\": \"hipaa-applies\",\n \"question\": \"Do you handle US protected health information as, or on behalf of, a covered entity or business associate? (This is the primary trigger for HIPAA.)\",\n kind: HumanDecision_FieldKind.CONFIRM, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true\n },\n {\n \"ref\": \"external-assurance-applies\",\n \"question\": \"Do enterprise customers (or your own security posture) require an independent attestation or certification covering security / availability / confidentiality of the service? Name the requested target only as an external source requirement.\",\n kind: HumanDecision_FieldKind.CONFIRM, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true\n },\n {\n \"ref\": \"data-residency\",\n \"question\": \"Are there data-residency or sovereignty requirements — must certain data stay within a region or country (e.g. EU-only hosting, in-country storage)? Describe them, or answer \\\"none\\\".\",\n kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true\n },\n {\n \"ref\": \"additional-regimes\",\n \"question\": \"Any other legal regimes, sector frameworks, government programs, or contractual security commitments that apply? List the externally named sources, or answer \\\"none\\\".\",\n kind: HumanDecision_FieldKind.FREE_TEXT, depth: MetaWorkflow_ElicitationQuestionDepth.DETAIL, regulatedDomain: true\n }\n ]\n },\n choreography: {\n /*\n * UNORDERED, produce-first on purpose (the market umbrella's own trap check): if anything ever\n * read this array as a sequence, the composite would try to record a posture before any\n * evidence existed, and the run would fail loudly rather than silently degrading.\n */\n admits: [\n 'top_down.compliance-posture',\n 'top_down.compliance-research',\n 'top_down.compliance-evidence-adequacy',\n ],\n /*\n * MEASURED on the first real run (wonder-crm, 2026-09-02), replacing the market composite's\n * borrowed bounds: research turns here run 3–7 minutes each (five succeeded, 63k–157k context —\n * regime research reads primary sources, which is slower than market scanning), and the run hit\n * the 40-minute breaker mid-loop without reaching an ADEQUATE verdict — the market's own\n * first-run ending, one lane over. ~280s/iteration measured against the market's ~168s.\n *\n * Two things a caller must know, learned the expensive way on that run: the companion's HTTP\n * request ceiling (30 min) is SHORTER than this bound, so a synchronous caller loses the result\n * envelope while the run continues and completes server-side — read the outcome from\n * /playbooks/runs and the traces, or submit from a surface that outlives the request. And\n * whether the adequacy BAR (see compliance-evidence-adequacy's method) needs loosening is an\n * open calibration question the next run's gap texts should settle — do not soften it blind.\n */\n maximumIterations: 14,\n maximumLanesPerIteration: 3,\n maximumDurationMs: 4_800_000,\n },\n },\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: {},\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n"]}
|
|
@@ -47,6 +47,8 @@ export declare const playbookDefinition: {
|
|
|
47
47
|
readonly ref: "undetermined-and-gaps";
|
|
48
48
|
readonly question: "What is genuinely undetermined — something you cannot answer today without more work? List them. These become explicit UNDETERMINED applicability or stated limitations rather than silent omissions.";
|
|
49
49
|
readonly kind: "free_text";
|
|
50
|
+
readonly depth: "essential";
|
|
51
|
+
readonly regulatedDomain: true;
|
|
50
52
|
}];
|
|
51
53
|
};
|
|
52
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.compliance-conception/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DrB,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuHW,CAAC"}
|
|
@@ -60,7 +60,9 @@ export const playbookDefinition = {
|
|
|
60
60
|
{
|
|
61
61
|
"ref": "undetermined-and-gaps",
|
|
62
62
|
"question": "What is genuinely undetermined — something you cannot answer today without more work? List them. These become explicit UNDETERMINED applicability or stated limitations rather than silent omissions.",
|
|
63
|
-
"kind": "free_text"
|
|
63
|
+
"kind": "free_text",
|
|
64
|
+
"depth": "essential",
|
|
65
|
+
"regulatedDomain": true
|
|
64
66
|
}
|
|
65
67
|
]
|
|
66
68
|
}
|