@wildo-ai/framework-knowledge 1.1.7 → 1.1.9
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/plugins/wildo/.claude-plugin/plugin.json +1 -1
- 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/runs-judges-and-questions.md +29 -5
- 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 +11 -1
- 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 +11 -1
- package/dist/esm/framework-knowledge.definitions.js.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.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 +3 -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 +59 -10
- 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.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.js +1 -1
- 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 +2 -1
- 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 +5 -5
- package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.js.map +1 -1
- package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts +8 -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/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 +85 -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 +40 -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 +41 -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 +199 -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 +201 -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 +67 -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 +76 -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.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-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.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.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 +36 -2
- package/dist/esm/playbooks/top_down.phase-gate/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.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 +30 -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 +117 -28
- package/dist/knowledge/playbooks/bottom_up.build-decompose/playbook.json +4 -4
- package/dist/knowledge/playbooks/bottom_up.build-dispatch/method.md +133 -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 +2 -2
- 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 +22 -6
- package/dist/knowledge/playbooks/bottom_up.domain-plan/playbook.json +4 -3
- package/dist/knowledge/playbooks/bottom_up.foundation/playbook.json +13 -5
- package/dist/knowledge/playbooks/refinement.compliance-document-candidate/method.md +5 -2
- package/dist/knowledge/playbooks/refinement.compliance-document-candidate/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 +71 -37
- package/dist/knowledge/playbooks/top_down.brand-identity/playbook.json +35 -38
- package/dist/knowledge/playbooks/top_down.brand-name-research/method.md +105 -0
- package/dist/knowledge/playbooks/top_down.brand-name-research/playbook.json +55 -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 +78 -0
- package/dist/knowledge/playbooks/top_down.brand-name-screening-produce/playbook.json +63 -0
- package/dist/knowledge/playbooks/top_down.brand-naming/method.md +56 -0
- package/dist/knowledge/playbooks/top_down.brand-naming/playbook.json +65 -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.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.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.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 +10 -0
- package/dist/knowledge/playbooks/top_down.vision-elicitation/playbook.json +40 -17
- package/dist/knowledge/references/brand.name-choice.config.md +127 -0
- package/dist/knowledge/references/brand.name-screening.config.md +253 -0
- package/dist/knowledge/references/build-plan.task-graph.config.md +64 -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/example.data-seeding.minimal.md +29 -1
- package/dist/knowledge/references/market.snapshot.validation.md +1 -1
- package/dist/knowledge/references/saas.data-seeding.bootstrap-wiring.md +7 -1
- package/dist/knowledge/references/saas.data-seeding.definition-input.md +6 -0
- package/dist/knowledge/references/saas.models.queue.scheduled-recovery.md +81 -2
- package/dist/knowledge/references/saas.specifications.companion-exports.contract.md +10 -0
- package/dist/knowledge/references/saas.website.astro.label-loader.md +9 -0
- package/dist/knowledge/references/saas.website.factories.define-section.md +4 -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.sections.definition-schema.md +11 -0
- package/dist/knowledge/registries/assurance-authority-bases.json +1 -1
- package/dist/knowledge/registries/framework-topics.json +38 -1
- package/dist/knowledge/registries/playbooks.json +68 -20
- package/dist/knowledge/registries/source-tags.json +748 -695
- package/dist/knowledge/rules/live-context-door.md +5 -2
- package/dist/knowledge/skills/INDEX.md +2 -1
- package/dist/knowledge/skills/application-database-migrations/SKILL.md +1 -1
- package/dist/knowledge/skills/brand-name-screening/SKILL.md +154 -0
- package/dist/knowledge/skills/brand-name-screening/references/framework-brand-name-screening-api.md +394 -0
- package/dist/knowledge/skills/brand-name-screening/references/screening-procedure.md +65 -0
- package/dist/knowledge/skills/compliance-document-authoring/references/document-composition-privacy-notice.md +5 -2
- package/dist/knowledge/skills/config-saas/SKILL.md +31 -4
- package/dist/knowledge/skills/config-saas/references/compliance-declarations.md +14 -1
- package/dist/knowledge/skills/config-saas/references/framework-background-work-api.md +81 -2
- package/dist/knowledge/skills/email-add-template/SKILL.md +1 -1
- package/dist/knowledge/skills/i18n-rerun-pipeline/SKILL.md +1 -1
- package/dist/knowledge/skills/inbound-channels/SKILL.md +2 -2
- package/dist/knowledge/skills/local-environment-bootstrap/SKILL.md +11 -1
- 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-companion-prompt-enrichment/SKILL.md +11 -1
- package/dist/knowledge/skills/market-companion-prompt-enrichment/references/framework-companion-behavior-api.md +11 -1
- package/dist/knowledge/skills/market-message-templates-authoring/references/framework-message-template-api.md +1 -1
- package/dist/knowledge/skills/market-snapshot-validation/SKILL.md +1 -1
- package/dist/knowledge/skills/market-snapshot-validation/references/framework-snapshot-validation-api.md +1 -1
- package/dist/knowledge/skills/module-companion-exports/references/companion-exports-by-package.md +10 -0
- package/dist/knowledge/skills/module-relationships/SKILL.md +6 -4
- package/dist/knowledge/skills/seeding-authoring/SKILL.md +51 -3
- package/dist/knowledge/skills/seeding-authoring/references/framework-data-seeding-api.md +6 -0
- package/dist/knowledge/skills/seeding-operations/references/framework-data-seeding-operations-api.md +7 -1
- package/dist/knowledge/skills/spec-companion-exports/references/framework-companion-exports-contract-api.md +10 -0
- package/dist/knowledge/skills/website-factory-advanced/SKILL.md +4 -0
- package/dist/knowledge/skills/website-page-authoring/SKILL.md +84 -3
- 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 +15 -0
- 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 +15 -0
- 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 +15 -0
- 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 +27 -9
- package/dist/knowledge/skills/website-section-hero/references/define-website-section-api.md +15 -0
- package/dist/knowledge/skills/website-section-pricing/SKILL.md +15 -0
- 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 +15 -0
- 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 +1 -1
- package/dist/knowledge/skills/website-seo-aeo-geo/references/aeo-api.md +11 -0
- package/dist/knowledge/topic-index.json +169 -43
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.js","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,GAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,gCAAgC;IACvC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,6yBAA6yB;IACvzB,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAi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B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type { MetaWorkflowEvaluationTreatmentSource } from '@wildo-ai/saas-backend-lib/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_HardFloorPosture,\n} from '@wildo-ai/saas-models/meta-workflows';\n\n/**\n * The compliance-conception step `top_down.compliance-posture` defers to.\n *\n * That playbook stops at scaffold depth on purpose — regimes as prose constraints on the vision — and names its successor in\n * `method.md`: \"a later, separately approved compliance-conception step [which] may initialize or revise the optional\n * structured family only after it resolves exact source versions and rights records, declarative application scope,\n * applicability authority, Wildo objective bindings, implementation choices, responsibilities, documentation requirements\n * and explicit gaps.\" This is that step, and that sentence is its specification rather than something re-derived here.\n *\n * `guidance` is deliberately absent: the method prose is the single source of truth in `method.md`, and the generator renders\n * it (partials + references expanded) and injects it as `method.guidance`. Declaring it here would be a second copy that\n * drifts — the folder contract rejects an inline one.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"top_down.compliance-conception\",\n \"version\": \"0.6.0\",\n \"phase\": \"top_down\",\n \"intent\": \"Compliance-conception pass: turn the applicable regimes the posture step recorded as prose constraints into the application's accepted `compliance-program` — the structured, reviewable record of which Wildo control objectives this product binds, which external requirement each answers, who is accountable, and what is explicitly undetermined. It does NOT re-elicit the vision and it does not draft any document. It is the first step in the lane that produces a POSITIVE compliance claim, so every claim it makes is derived — from an engine authority, the application's declarations, or the one thing no declaration records (what the creator says is genuinely undetermined) — drafted as a proposal a human accepts by committing it, and read back by an advisory judge. Nothing is inferred from a vision sentence.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"vision-brief\" } }\n ],\n \"inputs\": [\n { \"family\": \"vision-brief\" }\n ],\n \"outputs\": [\n {\n \"family\": \"document-publication\",\n \"schemaRef\": \"saas-specifications:ApplicationDocumentPublicationSpecification\",\n \"description\": \"Which locale x jurisdiction combinations the application publishes its public governed documents in. Decided HERE because it is the same decision surface as the programme: naming which documents are required without saying where they are published leaves the next step with nothing to route by, and every downstream release must name a variant this family declared. Locale and jurisdictions are ONE inseparable pair per variant — `en-GB` for `jurisdiction:eu` and `en-GB` for `jurisdiction:gb` are two variants, and nothing may recombine the axes.\"\n },\n {\n \"family\": \"document-release-policy\",\n \"schemaRef\": \"saas-specifications:ApplicationDocumentReleasePolicySpecification\",\n \"description\": \"Which approval lane each documentation requirement must take before a release may be SERVED: DRAFT_ONLY, OPERATOR_ATTESTED (an accountable operator releases an exact draft with explicit limitations) or QUALIFIED_REVIEW. Keyed by `requirementRef`/`requirementVersion` to the documentation requirements the application OWES — derived from what it declares, declared by the programme, and listed in the authority section — so a selection naming any other requirement is refused. This lane never BLOCKS drafting or composing — it decides what must be true before a document faces a real reader.\"\n },\n {\n \"family\": \"compliance-program\",\n \"schemaRef\": \"saas-specifications:AssuranceProgramSpecification\",\n \"description\": \"The application's accepted assurance programme: source references and their applicability, one obligation per bound Wildo objective with its coverage decision and implementation decision, responsibility assignments, and the limitations it does not claim beyond. Answered against the STRICT generation contract (`AssuranceProgramGenerationSchema`) and normalized into a v3 `AssuranceProgramSpecification` — the runtime stamps every ref, version and ordering, and refuses an objective the authority basis has no expectation for or a source the registry does not carry.\"\n }\n ],\n \"method\": {\n \"skillRefs\": [],\n /*\n * ASSURANCE_PROGRAM_AUTHORITY supplies the two CLOSED SETS — bindable objectives with their intent, and citable sources.\n * Without it the model guesses, and a guess here is not a weaker artifact but a REFUSED run out of the three budgeted.\n *\n * COMPLIANCE_PRIMARY_FACTS supplies what the application's resource declarations actually say: erasure treatment, data\n * subject kinds, whether subject export is declared. That is the evidence for deciding whether an objective is genuinely\n * met, and it is the difference between binding `WILDO.PRIVACY.SUBJECT_DATA_EXPORT` because the app declares the export\n * and binding it because the objective sounded right.\n *\n * Both sources ALSO reach the advisory judge (see `evaluationTreatmentSource` below): it reads each bound objective's intent\n * and computed applicability against the same declarations the producer read.\n */\n \"contextSources\": [\"assurance_program_authority\", \"compliance_primary_facts\", \"application_role_graph\"],\n \"elicitation\": {\n \"questions\": [\n {\n \"ref\": \"undetermined-and-gaps\",\n \"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.\",\n \"kind\": \"free_text\"\n }\n ]\n }\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n\n/**\n * The advisory GROUNDING judge over the programme this playbook lands — and what replaced `objective-coverage` (0.6.0).\n *\n * ## The question it retired\n *\n * Until 0.6.0 this playbook asked the creator, in free text and per objective, *\"does this application actually meet it today — and\n * do you APPROVE binding it?\"* — for every binding the basis covers (52 on 2026-09-12). Measured, that answer had three parts and\n * none of them belonged in a form:\n *\n * - **whether an objective CAN apply here** is `deriveExpectationCapabilityApplicability` over the application's enabled engine\n * capabilities. The brief renders it per objective, and the normalizer REFUSES a `NOT_APPLICABLE` binding — 16 of them on Wonder\n * CRM that the question would have asked a person to approve;\n * - **whether an objective's intent is TRUE of this product** is a reading of the declarations against the intent. That is\n * judgement, and judgement here is a harnessed model with the intent in front of it, not a field at the end of a form\n * (`.claude/rules/derive-before-you-ask.md` rule 4);\n * - **\"do you approve\"** is a PERSON's COMMIT. A landed programme is a working edit until it is committed (#647); the companion's automatic\n * commit under the YOLO posture is authored as itself and accepts without reviewing (#1534).\n *\n * ## What it reads, and what it deliberately does not decide\n *\n * The landed files, the application's compliance-relevant declarations, and the authority section — the objective intents plus their\n * COMPUTED applicability. The computation is not under judgment: a programme that CONTRADICTS it — a NOT_APPLICABLE objective bound,\n * or APPLICABLE stated where it says UNDETERMINED — is refused by the normalizer before the judge runs, because a lookup can decide\n * it. Roles are not judged either — they are selected from the role graph, a closed set the producer spells from.\n *\n * ADVISORY by construction (`runPlaybookJudge`): it speaks after the files land and nothing refuses on its verdict. The one refusal in\n * this lane that needs no judgement is the normalizer's, and it stays there — the validator decides what it can, the judge judges the\n * residue.\n *\n * ## Severity is separated by CONSEQUENCE\n *\n * The first measured judge collapsed every finding to GAP (`.claude/context/app-creation-judge-growth.md`). Wording a reader would not\n * act on differently is a CONCERN; a claim an obligation register or a governed document would quote as true, and nothing establishes,\n * is a GAP.\n */\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/compliance-program',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/compliance-program',\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-compliance-program-verdict',\n criteria: [{\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/compliance-program-grounded-in-the-product',\n criterionVersion: 1,\n instruction: 'The subject under judgment is the landed `compliance-program` file; `document-publication` and `document-release-policy` are context, not subject. For EACH obligation in its register, find the objective in the computed context — its intent, and its applicability computed for THIS application from the capabilities it enables — and read the obligation against the application\\'s compliance-relevant declarations. Decide four things. (1) Is the objective\\'s intent actually TRUE of this product as declared? An obligation whose intent the declarations do not show — an export nothing declares, a record the application does not keep, a data subject it does not hold — is unsupported. (2) Do not re-check applicability: the computation is exact, and a programme that contradicts it (a NOT_APPLICABLE objective bound, or APPLICABLE where it says UNDETERMINED) is refused before you see it. Use it instead to read what each UNDETERMINED obligation must be open about — the capabilities it names as absent. (3) Is every UNDETERMINED obligation scoped honestly — does its rationale say what is open and why, rather than restate the objective? A matter the creator named as undetermined in this run is a legitimate UNDETERMINED. (4) Do the rationales and limitations claim no more than configuration? Operating effectiveness, conformity with a named regime, or a scope wider than the services the declarations list is unsupported. Name every finding by its `obligationRef` (or quote the limitation) and quote the words. Separate severities by CONSEQUENCE: wording a reader would not act on differently is a CONCERN; a claim an obligation register or a governed document would quote as true that nothing establishes, or that the computed applicability contradicts, is a GAP.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/compliance-program-grounded-in-the-product',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/compliance-program-declarations-and-computed-applicability',\n minCount: 3,\n maxCount: 3,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-compliance-program-declarations-and-applicability',\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 bound objective\\'s intent is shown by the declarations, every UNDETERMINED obligation says what is open, and nothing claims operating effectiveness, regime conformity or a scope wider than declared.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Grounded overall, with repairable drift a reader would not act on differently: a rationale vaguer than the declarations allow, an UNDETERMINED obligation that restates its objective instead of naming what is open, or a limitation that is true but leaves out an unbound area. Name each one.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one obligation binds an objective whose intent the declarations do not show, or a rationale or limitation claims operating effectiveness, regime conformity or a scope wider than declared. Name each obligationRef and quote the unsupported words.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The computed applicability or the application\\'s declarations are absent from the evidence, so whether an objective is true of this product cannot be judged. Say which is missing.',\n },\n }],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/compliance-program',\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/compliance-program-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/compliance-program-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/compliance-program-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/compliance-programme-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/compliance-program-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-compliance-program-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/compliance-program-valid',\n evidenceRequirementRefs: ['application-creation:evidence-requirement/compliance-program-grounded-in-the-product'],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/compliance-program-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-compliance-program',\n riskClassRef: 'application-creation:risk/compliance-claim-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/compliance-program-grounded-in-the-product'],\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/compliance-program',\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.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,GAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,gCAAgC;IACvC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,6yBAA6yB;IACvzB,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;KACxE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE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AC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type { MetaWorkflowEvaluationTreatmentSource } 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_HardFloorPosture,\n} from '@wildo-ai/saas-models/meta-workflows';\n\n/**\n * The compliance-conception step `top_down.compliance-posture` defers to.\n *\n * That playbook stops at scaffold depth on purpose — regimes as prose constraints on the vision — and names its successor in\n * `method.md`: \"a later, separately approved compliance-conception step [which] may initialize or revise the optional\n * structured family only after it resolves exact source versions and rights records, declarative application scope,\n * applicability authority, Wildo objective bindings, implementation choices, responsibilities, documentation requirements\n * and explicit gaps.\" This is that step, and that sentence is its specification rather than something re-derived here.\n *\n * `guidance` is deliberately absent: the method prose is the single source of truth in `method.md`, and the generator renders\n * it (partials + references expanded) and injects it as `method.guidance`. Declaring it here would be a second copy that\n * drifts — the folder contract rejects an inline one.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"top_down.compliance-conception\",\n \"version\": \"0.6.0\",\n \"phase\": \"top_down\",\n \"intent\": \"Compliance-conception pass: turn the applicable regimes the posture step recorded as prose constraints into the application's accepted `compliance-program` — the structured, reviewable record of which Wildo control objectives this product binds, which external requirement each answers, who is accountable, and what is explicitly undetermined. It does NOT re-elicit the vision and it does not draft any document. It is the first step in the lane that produces a POSITIVE compliance claim, so every claim it makes is derived — from an engine authority, the application's declarations, or the one thing no declaration records (what the creator says is genuinely undetermined) — drafted as a proposal a human accepts by committing it, and read back by an advisory judge. Nothing is inferred from a vision sentence.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"vision-brief\" } }\n ],\n \"inputs\": [\n { \"family\": \"vision-brief\" }\n ],\n \"outputs\": [\n {\n \"family\": \"document-publication\",\n \"schemaRef\": \"saas-specifications:ApplicationDocumentPublicationSpecification\",\n \"description\": \"Which locale x jurisdiction combinations the application publishes its public governed documents in. Decided HERE because it is the same decision surface as the programme: naming which documents are required without saying where they are published leaves the next step with nothing to route by, and every downstream release must name a variant this family declared. Locale and jurisdictions are ONE inseparable pair per variant — `en-GB` for `jurisdiction:eu` and `en-GB` for `jurisdiction:gb` are two variants, and nothing may recombine the axes.\"\n },\n {\n \"family\": \"document-release-policy\",\n \"schemaRef\": \"saas-specifications:ApplicationDocumentReleasePolicySpecification\",\n \"description\": \"Which approval lane each documentation requirement must take before a release may be SERVED: DRAFT_ONLY, OPERATOR_ATTESTED (an accountable operator releases an exact draft with explicit limitations) or QUALIFIED_REVIEW. Keyed by `requirementRef`/`requirementVersion` to the documentation requirements the application OWES — derived from what it declares, declared by the programme, and listed in the authority section — so a selection naming any other requirement is refused. This lane never BLOCKS drafting or composing — it decides what must be true before a document faces a real reader.\"\n },\n {\n \"family\": \"compliance-program\",\n \"schemaRef\": \"saas-specifications:AssuranceProgramSpecification\",\n \"description\": \"The application's accepted assurance programme: source references and their applicability, one obligation per bound Wildo objective with its coverage decision and implementation decision, responsibility assignments, and the limitations it does not claim beyond. Answered against the STRICT generation contract (`AssuranceProgramGenerationSchema`) and normalized into a v3 `AssuranceProgramSpecification` — the runtime stamps every ref, version and ordering, and refuses an objective the authority basis has no expectation for or a source the registry does not carry.\"\n }\n ],\n \"method\": {\n \"skillRefs\": [],\n /*\n * ASSURANCE_PROGRAM_AUTHORITY supplies the two CLOSED SETS — bindable objectives with their intent, and citable sources.\n * Without it the model guesses, and a guess here is not a weaker artifact but a REFUSED run out of the three budgeted.\n *\n * COMPLIANCE_PRIMARY_FACTS supplies what the application's resource declarations actually say: erasure treatment, data\n * subject kinds, whether subject export is declared. That is the evidence for deciding whether an objective is genuinely\n * met, and it is the difference between binding `WILDO.PRIVACY.SUBJECT_DATA_EXPORT` because the app declares the export\n * and binding it because the objective sounded right.\n *\n * Both sources ALSO reach the advisory judge (see `evaluationTreatmentSource` below): it reads each bound objective's intent\n * and computed applicability against the same declarations the producer read.\n */\n \"contextSources\": [\"assurance_program_authority\", \"compliance_primary_facts\", \"application_role_graph\"],\n \"elicitation\": {\n \"questions\": [\n {\n \"ref\": \"undetermined-and-gaps\",\n \"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.\",\n \"kind\": \"free_text\",\n \"depth\": \"essential\",\n \"regulatedDomain\": true\n }\n ]\n }\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n\n/**\n * The advisory GROUNDING judge over the programme this playbook lands — and what replaced `objective-coverage` (0.6.0).\n *\n * ## The question it retired\n *\n * Until 0.6.0 this playbook asked the creator, in free text and per objective, *\"does this application actually meet it today — and\n * do you APPROVE binding it?\"* — for every binding the basis covers (52 on 2026-09-12). Measured, that answer had three parts and\n * none of them belonged in a form:\n *\n * - **whether an objective CAN apply here** is `deriveExpectationCapabilityApplicability` over the application's enabled engine\n * capabilities. The brief renders it per objective, and the normalizer REFUSES a `NOT_APPLICABLE` binding — 16 of them on Wonder\n * CRM that the question would have asked a person to approve;\n * - **whether an objective's intent is TRUE of this product** is a reading of the declarations against the intent. That is\n * judgement, and judgement here is a harnessed model with the intent in front of it, not a field at the end of a form\n * (`.claude/rules/derive-before-you-ask.md` rule 4);\n * - **\"do you approve\"** is a PERSON's COMMIT. A landed programme is a working edit until it is committed (#647); the companion's automatic\n * commit under the YOLO posture is authored as itself and accepts without reviewing (#1534).\n *\n * ## What it reads, and what it deliberately does not decide\n *\n * The landed files, the application's compliance-relevant declarations, and the authority section — the objective intents plus their\n * COMPUTED applicability. The computation is not under judgment: a programme that CONTRADICTS it — a NOT_APPLICABLE objective bound,\n * or APPLICABLE stated where it says UNDETERMINED — is refused by the normalizer before the judge runs, because a lookup can decide\n * it. Roles are not judged either — they are selected from the role graph, a closed set the producer spells from.\n *\n * ADVISORY by construction (`runPlaybookJudge`): it speaks after the files land and nothing refuses on its verdict. The one refusal in\n * this lane that needs no judgement is the normalizer's, and it stays there — the validator decides what it can, the judge judges the\n * residue.\n *\n * ## Severity is separated by CONSEQUENCE\n *\n * The first measured judge collapsed every finding to GAP (`.claude/context/app-creation-judge-growth.md`). Wording a reader would not\n * act on differently is a CONCERN; a claim an obligation register or a governed document would quote as true, and nothing establishes,\n * is a GAP.\n */\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/compliance-program',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/compliance-program',\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-compliance-program-verdict',\n criteria: [{\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/compliance-program-grounded-in-the-product',\n criterionVersion: 1,\n instruction: 'The subject under judgment is the landed `compliance-program` file; `document-publication` and `document-release-policy` are context, not subject. For EACH obligation in its register, find the objective in the computed context — its intent, and its applicability computed for THIS application from the capabilities it enables — and read the obligation against the application\\'s compliance-relevant declarations. Decide four things. (1) Is the objective\\'s intent actually TRUE of this product as declared? An obligation whose intent the declarations do not show — an export nothing declares, a record the application does not keep, a data subject it does not hold — is unsupported. (2) Do not re-check applicability: the computation is exact, and a programme that contradicts it (a NOT_APPLICABLE objective bound, or APPLICABLE where it says UNDETERMINED) is refused before you see it. Use it instead to read what each UNDETERMINED obligation must be open about — the capabilities it names as absent. (3) Is every UNDETERMINED obligation scoped honestly — does its rationale say what is open and why, rather than restate the objective? A matter the creator named as undetermined in this run is a legitimate UNDETERMINED. (4) Do the rationales and limitations claim no more than configuration? Operating effectiveness, conformity with a named regime, or a scope wider than the services the declarations list is unsupported. Name every finding by its `obligationRef` (or quote the limitation) and quote the words. Separate severities by CONSEQUENCE: wording a reader would not act on differently is a CONCERN; a claim an obligation register or a governed document would quote as true that nothing establishes, or that the computed applicability contradicts, is a GAP.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/compliance-program-grounded-in-the-product',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/compliance-program-declarations-and-computed-applicability',\n minCount: 3,\n maxCount: 3,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-compliance-program-declarations-and-applicability',\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 bound objective\\'s intent is shown by the declarations, every UNDETERMINED obligation says what is open, and nothing claims operating effectiveness, regime conformity or a scope wider than declared.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Grounded overall, with repairable drift a reader would not act on differently: a rationale vaguer than the declarations allow, an UNDETERMINED obligation that restates its objective instead of naming what is open, or a limitation that is true but leaves out an unbound area. Name each one.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'At least one obligation binds an objective whose intent the declarations do not show, or a rationale or limitation claims operating effectiveness, regime conformity or a scope wider than declared. Name each obligationRef and quote the unsupported words.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The computed applicability or the application\\'s declarations are absent from the evidence, so whether an objective is true of this product cannot be judged. Say which is missing.',\n },\n }],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/compliance-program',\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/compliance-program-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/compliance-program-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/compliance-program-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/compliance-programme-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/compliance-program-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-compliance-program-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/compliance-program-valid',\n evidenceRequirementRefs: ['application-creation:evidence-requirement/compliance-program-grounded-in-the-product'],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/compliance-program-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-compliance-program',\n riskClassRef: 'application-creation:risk/compliance-claim-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/compliance-program-grounded-in-the-product'],\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/compliance-program',\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"]}
|
|
@@ -36,6 +36,8 @@ export declare const playbookDefinition: {
|
|
|
36
36
|
readonly family: "vision-brief";
|
|
37
37
|
readonly schemaRef: "saas-specifications:VisionSnapshot";
|
|
38
38
|
readonly description: "The same VisionSnapshot the vision-elicitation step seeded, refined in place: this playbook adds/updates the `constraints[]` entries whose `kind` is `compliance`, each a prose `statement` naming an applicable regime and the data / jurisdiction it governs. Other vision entities (idea, problem, mission, success criteria, non-compliance constraints) are left untouched. Validated by validateVisionSnapshot.";
|
|
39
|
+
readonly "//aspects": "The one slice it writes (#2146), so its landing reopens only the readers of the vision's constraints: a reader of the idea and mission alone (the brand identity) is not re-derived because a compliance regime was recorded.";
|
|
40
|
+
readonly aspects: readonly ["vision.constraint"];
|
|
39
41
|
}];
|
|
40
42
|
readonly method: {
|
|
41
43
|
readonly skillRefs: readonly [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-posture/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;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-posture/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;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BrB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwLW,CAAC"}
|
|
@@ -27,7 +27,9 @@ export const playbookDefinition = {
|
|
|
27
27
|
{
|
|
28
28
|
"family": "vision-brief",
|
|
29
29
|
"schemaRef": "saas-specifications:VisionSnapshot",
|
|
30
|
-
"description": "The same VisionSnapshot the vision-elicitation step seeded, refined in place: this playbook adds/updates the `constraints[]` entries whose `kind` is `compliance`, each a prose `statement` naming an applicable regime and the data / jurisdiction it governs. Other vision entities (idea, problem, mission, success criteria, non-compliance constraints) are left untouched. Validated by validateVisionSnapshot."
|
|
30
|
+
"description": "The same VisionSnapshot the vision-elicitation step seeded, refined in place: this playbook adds/updates the `constraints[]` entries whose `kind` is `compliance`, each a prose `statement` naming an applicable regime and the data / jurisdiction it governs. Other vision entities (idea, problem, mission, success criteria, non-compliance constraints) are left untouched. Validated by validateVisionSnapshot.",
|
|
31
|
+
"//aspects": "The one slice it writes (#2146), so its landing reopens only the readers of the vision's constraints: a reader of the idea and mission alone (the brand identity) is not re-derived because a compliance regime was recorded.",
|
|
32
|
+
"aspects": ["vision.constraint"]
|
|
31
33
|
}
|
|
32
34
|
],
|
|
33
35
|
"method": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-posture/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,qiBAAqiB;IAC/iB,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;QACvE,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE;KACpH;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,cAAc,EAAE;KAC7B;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,cAAc;YACxB,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MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_HardFloorPosture,\n} from '@wildo-ai/saas-models/meta-workflows';\n\n/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes.\n *\n * The `evaluationTreatmentSource` below compiles the method's derivation posture (#1487): the ADVISORY\n * judge reads the refined vision against the regime evidence its composite gathered and against the\n * vision it was given, so an unestablished regime stated as settled — the defect the composite exists to\n * end — is reported before the conception step binds objectives to it. Advisory: a note beside review.\n */\nexport const playbookDefinition = \n{\n \"ref\": \"top_down.compliance-posture\",\n \"version\": \"0.2.2\",\n \"phase\": \"top_down\",\n \"intent\": \"Derive compliance constraints for the existing product vision from its jurisdictions, data classes, sector, customer commitments and gathered regime evidence. This is the artifact-producing child of top_down.compliance-analysis: it runs when the current compliance-adequacy assessment is adequate, and sharpens the vision-brief rather than re-eliciting it. Record source-backed applicability and unresolved product facts as compliance constraints; runtime controls, evidence assignments and organization assessments belong to their own mechanisms.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"vision-brief\" } },\n { \"kind\": \"step_available\", \"ref\": \"compliance-adequacy\", \"requires\": { \"path\": \"verdict\", \"equals\": \"adequate\" } }\n ],\n \"inputs\": [\n { \"family\": \"vision-brief\" }\n ],\n \"outputs\": [\n {\n \"family\": \"vision-brief\",\n \"schemaRef\": \"saas-specifications:VisionSnapshot\",\n \"description\": \"The same VisionSnapshot the vision-elicitation step seeded, refined in place: this playbook adds/updates the `constraints[]` entries whose `kind` is `compliance`, each a prose `statement` naming an applicable regime and the data / jurisdiction it governs. Other vision entities (idea, problem, mission, success criteria, non-compliance constraints) are left untouched. Validated by validateVisionSnapshot.\"\n }\n ],\n \"method\": {\n \"skillRefs\": [],\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/compliance-posture',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/compliance-posture',\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-compliance-posture-verdict',\n /*\n * The grounding criterion names no aspects because the regime evidence is run-local choreography\n * material, not an aspect of a family; the other two are scoped to the vision's own sections.\n */\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/compliance-posture-regime-derivation-grounding',\n criterionVersion: 1,\n instruction:\n \"Determine whether each compliance constraint is derived rather than recalled: its statement names the regime, the trigger (jurisdiction, data class, sector or commitment) and what it governs, in the terms of the regime evidence and the creator's facts this run carried; a regime the evidence EXCLUDES is not written as a constraint and, where the creator's answers suggested it, the exclusion is made legible on a neighbouring constraint; a trigger the evidence could NOT establish becomes a constraint stating the open question, never a guessed answer; and a product with no triggers honestly carries no compliance constraints.\",\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/compliance-posture-regime-derivation-grounding',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-and-regime-evidence-candidate',\n minCount: 1,\n maxCount: 3,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-compliance-posture-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 constraint is grounded in the evidence, exclusions are legible, and open triggers are stated as open.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Grounded overall, but a statement is thinner than the evidence allows, or an exclusion is dropped silently where the creator had suggested the regime.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A regime stated as settled that the evidence did not establish, a regime invented to look thorough, or a regime the evidence establishes that is absent.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: \"The regime evidence or the creator's facts are not in evidence, so derivation cannot be checked.\",\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/compliance-posture-one-regime-one-constraint-and-convergence',\n criterionVersion: 1,\n instruction:\n 'Determine whether the posture is written as one constraint per regime with a stable kebab-case ref prefixed `constraint-`, unique across the set; whether a regime already present in the vision (under any slug the vision-elicitation step chose) was matched by the regime its statement names and updated IN PLACE under its existing ref; and whether re-running would converge to one entry per regime rather than accumulating near-duplicates.',\n assessesAspects: ['vision.constraint'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/compliance-posture-one-regime-one-constraint-and-convergence',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-and-regime-evidence-candidate',\n minCount: 1,\n maxCount: 3,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-compliance-posture-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]: 'One entry per regime, stable unique refs, and every pre-existing regime refined under its own ref.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Regimes are separate but a ref is minted for a regime that already existed under another slug, or two statements overlap in scope.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'An omnibus constraint merging several regimes, a duplicate entry for one regime, or a malformed ref.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: \"The vision's prior constraints are not in evidence, so convergence cannot be compared.\",\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/compliance-posture-slice-discipline',\n criterionVersion: 1,\n instruction:\n \"Determine whether the run touched exactly the `kind: compliance` entries of the vision's constraints and nothing else: the idea, problem, mission, success criteria and every non-compliance constraint are unchanged, and no constraint models controls, obligation graphs, residency matrices, retention schedules or audit configuration, which belong to the later compliance-conception step.\",\n assessesAspects: ['vision.constraint', 'vision.idea', 'vision.problem', 'vision.mission', 'vision.success-criterion'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/compliance-posture-slice-discipline',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-and-regime-evidence-candidate',\n minCount: 1,\n maxCount: 3,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-compliance-posture-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]: 'Only compliance constraints changed, and each stays a prose regime statement at scaffold depth.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'A non-compliance entity was reworded incidentally, or a constraint drifts toward listing controls.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A vision entity outside the compliance constraints altered, or a constraint that models controls or obligations.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The vision as it was BEFORE this run is not in evidence.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/compliance-posture',\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/compliance-posture-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/vision-brief-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/vision-brief-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/current-horizon-vision-brief-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/compliance-posture-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-compliance-posture-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/vision-brief-valid',\n evidenceRequirementRefs: ['application-creation:evidence-requirement/compliance-posture-regime-derivation-grounding'],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/compliance-posture-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-vision-brief',\n riskClassRef: 'application-creation:risk/vision-brief-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/compliance-posture-one-regime-one-constraint-and-convergence'],\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/compliance-posture',\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.compliance-posture/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,GAC9B,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,qiBAAqiB;IAC/iB,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;QACvE,EAAE,MAAM,EA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B,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type { MetaWorkflowEvaluationTreatmentSource } from '@wildo-ai/saas-backend-lib/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_HardFloorPosture,\n} from '@wildo-ai/saas-models/meta-workflows';\n\n/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes.\n *\n * The `evaluationTreatmentSource` below compiles the method's derivation posture (#1487): the ADVISORY\n * judge reads the refined vision against the regime evidence its composite gathered and against the\n * vision it was given, so an unestablished regime stated as settled — the defect the composite exists to\n * end — is reported before the conception step binds objectives to it. Advisory: a note beside review.\n */\nexport const playbookDefinition = \n{\n \"ref\": \"top_down.compliance-posture\",\n \"version\": \"0.2.2\",\n \"phase\": \"top_down\",\n \"intent\": \"Derive compliance constraints for the existing product vision from its jurisdictions, data classes, sector, customer commitments and gathered regime evidence. This is the artifact-producing child of top_down.compliance-analysis: it runs when the current compliance-adequacy assessment is adequate, and sharpens the vision-brief rather than re-eliciting it. Record source-backed applicability and unresolved product facts as compliance constraints; runtime controls, evidence assignments and organization assessments belong to their own mechanisms.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"vision-brief\" } },\n { \"kind\": \"step_available\", \"ref\": \"compliance-adequacy\", \"requires\": { \"path\": \"verdict\", \"equals\": \"adequate\" } }\n ],\n \"inputs\": [\n { \"family\": \"vision-brief\" }\n ],\n \"outputs\": [\n {\n \"family\": \"vision-brief\",\n \"schemaRef\": \"saas-specifications:VisionSnapshot\",\n \"description\": \"The same VisionSnapshot the vision-elicitation step seeded, refined in place: this playbook adds/updates the `constraints[]` entries whose `kind` is `compliance`, each a prose `statement` naming an applicable regime and the data / jurisdiction it governs. Other vision entities (idea, problem, mission, success criteria, non-compliance constraints) are left untouched. Validated by validateVisionSnapshot.\",\n \"//aspects\": \"The one slice it writes (#2146), so its landing reopens only the readers of the vision's constraints: a reader of the idea and mission alone (the brand identity) is not re-derived because a compliance regime was recorded.\",\n \"aspects\": [\"vision.constraint\"]\n }\n ],\n \"method\": {\n \"skillRefs\": [],\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/compliance-posture',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/compliance-posture',\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-compliance-posture-verdict',\n /*\n * The grounding criterion names no aspects because the regime evidence is run-local choreography\n * material, not an aspect of a family; the other two are scoped to the vision's own sections.\n */\n criteria: [\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/compliance-posture-regime-derivation-grounding',\n criterionVersion: 1,\n instruction:\n \"Determine whether each compliance constraint is derived rather than recalled: its statement names the regime, the trigger (jurisdiction, data class, sector or commitment) and what it governs, in the terms of the regime evidence and the creator's facts this run carried; a regime the evidence EXCLUDES is not written as a constraint and, where the creator's answers suggested it, the exclusion is made legible on a neighbouring constraint; a trigger the evidence could NOT establish becomes a constraint stating the open question, never a guessed answer; and a product with no triggers honestly carries no compliance constraints.\",\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/compliance-posture-regime-derivation-grounding',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-and-regime-evidence-candidate',\n minCount: 1,\n maxCount: 3,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-compliance-posture-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 constraint is grounded in the evidence, exclusions are legible, and open triggers are stated as open.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Grounded overall, but a statement is thinner than the evidence allows, or an exclusion is dropped silently where the creator had suggested the regime.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A regime stated as settled that the evidence did not establish, a regime invented to look thorough, or a regime the evidence establishes that is absent.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: \"The regime evidence or the creator's facts are not in evidence, so derivation cannot be checked.\",\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/compliance-posture-one-regime-one-constraint-and-convergence',\n criterionVersion: 1,\n instruction:\n 'Determine whether the posture is written as one constraint per regime with a stable kebab-case ref prefixed `constraint-`, unique across the set; whether a regime already present in the vision (under any slug the vision-elicitation step chose) was matched by the regime its statement names and updated IN PLACE under its existing ref; and whether re-running would converge to one entry per regime rather than accumulating near-duplicates.',\n assessesAspects: ['vision.constraint'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/compliance-posture-one-regime-one-constraint-and-convergence',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-and-regime-evidence-candidate',\n minCount: 1,\n maxCount: 3,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-compliance-posture-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]: 'One entry per regime, stable unique refs, and every pre-existing regime refined under its own ref.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'Regimes are separate but a ref is minted for a regime that already existed under another slug, or two statements overlap in scope.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'An omnibus constraint merging several regimes, a duplicate entry for one regime, or a malformed ref.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: \"The vision's prior constraints are not in evidence, so convergence cannot be compared.\",\n },\n },\n {\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/compliance-posture-slice-discipline',\n criterionVersion: 1,\n instruction:\n \"Determine whether the run touched exactly the `kind: compliance` entries of the vision's constraints and nothing else: the idea, problem, mission, success criteria and every non-compliance constraint are unchanged, and no constraint models controls, obligation graphs, residency matrices, retention schedules or audit configuration, which belong to the later compliance-conception step.\",\n assessesAspects: ['vision.constraint', 'vision.idea', 'vision.problem', 'vision.mission', 'vision.success-criterion'],\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/compliance-posture-slice-discipline',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-and-regime-evidence-candidate',\n minCount: 1,\n maxCount: 3,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-compliance-posture-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]: 'Only compliance constraints changed, and each stays a prose regime statement at scaffold depth.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'A non-compliance entity was reworded incidentally, or a constraint drifts toward listing controls.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A vision entity outside the compliance constraints altered, or a constraint that models controls or obligations.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The vision as it was BEFORE this run is not in evidence.',\n },\n },\n ],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/compliance-posture',\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/compliance-posture-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/vision-brief-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/vision-brief-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/current-horizon-vision-brief-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/compliance-posture-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-compliance-posture-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{\n hardFloorRef: 'application-creation:hard-floor/vision-brief-valid',\n evidenceRequirementRefs: ['application-creation:evidence-requirement/compliance-posture-regime-derivation-grounding'],\n }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/compliance-posture-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-vision-brief',\n riskClassRef: 'application-creation:risk/vision-brief-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/compliance-posture-one-regime-one-constraint-and-convergence'],\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/compliance-posture',\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"]}
|
|
@@ -50,7 +50,8 @@ import { MetaWorkflow_InputRender, MetaWorkflow_Phase } from '@wildo-ai/saas-spe
|
|
|
50
50
|
* ## The interviews are answered in the DOSSIER, not here
|
|
51
51
|
*
|
|
52
52
|
* Four of the leaves interview the creator (`vision-elicitation`, `business-model`, `scope-roadmap`,
|
|
53
|
-
* `brand-identity`)
|
|
53
|
+
* `brand-identity`), and so does the nested `brand-naming` lane (one question: names the creator wants
|
|
54
|
+
* screened, or "none" — its interview reaches its own children since #1513). The compliance umbrella moved its children's questions onto itself; this lane
|
|
54
55
|
* does NOT, because a child's eligibility inside a composite is `unansweredQuestionRefs.length === 0`
|
|
55
56
|
* computed against the `creator-inputs` family for THAT child's ref (#1454, Step 5) — the umbrella's
|
|
56
57
|
* questions would be asked twice and the child's copy would still gate. A leaf whose interview the
|
|
@@ -64,7 +65,8 @@ import { MetaWorkflow_InputRender, MetaWorkflow_Phase } from '@wildo-ai/saas-spe
|
|
|
64
65
|
* — under the current posture — auto-accepted and notified. `approval: APPROVE_RESULT` is where the
|
|
65
66
|
* lane's boundary decision attaches, and it is LIVE since #111 landed. Note that `phase-gate` lands nothing and returns no step value, so the runner never
|
|
66
67
|
* marks it delivered — the intent below tells the selector to stop once it has run, and the round
|
|
67
|
-
* history shows that it has.
|
|
68
|
+
* history shows that it has. That it RUNS no longer rests on the selector: it is the choreography's declared
|
|
69
|
+
* `closingMove` (#2236), so a lane the selector ends early runs it first, and one that cannot run it ends marked.
|
|
68
70
|
*
|
|
69
71
|
* ## Loop-back — the criterion → leaf table, declared as `reopenOnVerdict`
|
|
70
72
|
*
|
|
@@ -153,6 +155,7 @@ export declare const playbookDefinition: {
|
|
|
153
155
|
skillRefs: any[];
|
|
154
156
|
choreography: {
|
|
155
157
|
admits: string[];
|
|
158
|
+
closingMove: string;
|
|
156
159
|
maximumIterations: number;
|
|
157
160
|
maximumLanesPerIteration: number;
|
|
158
161
|
maximumDepth: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.definition/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,EAC9B,0BAA0B,EAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.definition/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,EAC9B,0BAA0B,EAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;YAmGzB,oDAAoD;;;;;;;;;;;;CA2CzD,CAAC"}
|
|
@@ -50,7 +50,8 @@ import { MetaWorkflow_InputRender, MetaWorkflow_Phase, } from '@wildo-ai/saas-sp
|
|
|
50
50
|
* ## The interviews are answered in the DOSSIER, not here
|
|
51
51
|
*
|
|
52
52
|
* Four of the leaves interview the creator (`vision-elicitation`, `business-model`, `scope-roadmap`,
|
|
53
|
-
* `brand-identity`)
|
|
53
|
+
* `brand-identity`), and so does the nested `brand-naming` lane (one question: names the creator wants
|
|
54
|
+
* screened, or "none" — its interview reaches its own children since #1513). The compliance umbrella moved its children's questions onto itself; this lane
|
|
54
55
|
* does NOT, because a child's eligibility inside a composite is `unansweredQuestionRefs.length === 0`
|
|
55
56
|
* computed against the `creator-inputs` family for THAT child's ref (#1454, Step 5) — the umbrella's
|
|
56
57
|
* questions would be asked twice and the child's copy would still gate. A leaf whose interview the
|
|
@@ -64,7 +65,8 @@ import { MetaWorkflow_InputRender, MetaWorkflow_Phase, } from '@wildo-ai/saas-sp
|
|
|
64
65
|
* — under the current posture — auto-accepted and notified. `approval: APPROVE_RESULT` is where the
|
|
65
66
|
* lane's boundary decision attaches, and it is LIVE since #111 landed. Note that `phase-gate` lands nothing and returns no step value, so the runner never
|
|
66
67
|
* marks it delivered — the intent below tells the selector to stop once it has run, and the round
|
|
67
|
-
* history shows that it has.
|
|
68
|
+
* history shows that it has. That it RUNS no longer rests on the selector: it is the choreography's declared
|
|
69
|
+
* `closingMove` (#2236), so a lane the selector ends early runs it first, and one that cannot run it ends marked.
|
|
68
70
|
*
|
|
69
71
|
* ## Loop-back — the criterion → leaf table, declared as `reopenOnVerdict`
|
|
70
72
|
*
|
|
@@ -133,9 +135,9 @@ import { MetaWorkflow_InputRender, MetaWorkflow_Phase, } from '@wildo-ai/saas-sp
|
|
|
133
135
|
*/
|
|
134
136
|
export const playbookDefinition = {
|
|
135
137
|
ref: 'top_down.definition',
|
|
136
|
-
version: '0.1.
|
|
138
|
+
version: '0.1.1',
|
|
137
139
|
phase: MetaWorkflow_Phase.TOP_DOWN,
|
|
138
|
-
intent: 'Drive the top-down DEFINITION of the application as one lane: from an answered vision through market evidence, the market snapshot, the value proposition, the requirements, the capability map, the business model and the roadmap, to the phase gate — with the brand identity and the risk register beside the chain. An umbrella: it authors nothing itself; every child declares what it needs and the runtime recomputes what may run after each round, so the order is the leaves\' preconditions and never a list. Select what is MISSING from the accepted truth shown to you
|
|
140
|
+
intent: 'Drive the top-down DEFINITION of the application as one lane: from an answered vision through market evidence, the market snapshot, the value proposition, the requirements, the capability map, the business model and the roadmap, to the phase gate — with the brand naming (screened name proposals), the brand identity and the risk register beside the chain. An umbrella: it authors nothing itself; every child declares what it needs and the runtime recomputes what may run after each round, so the order is the leaves\' preconditions and never a list. Select what is MISSING from the accepted truth shown to you. A child already on record whose inputs have not changed since it landed is not offered at all; every option is marked FIRST RUN, or REFRESH with the input that moved. Prefer first runs; take a refresh when its changed input matters to it. Run independent children in the same round (brand naming or the brand identity, and the risk register beside the chain; several research lanes with different objectives). Run the phase gate once the roadmap is on record, and STOP after it has run — its verdict is this lane\'s closing decision, and it is not re-run in the same run. A child whose interview the creator has not answered is not offered; run everything else and stop when nothing eligible advances the definition.',
|
|
139
141
|
// None. The lane STARTS at the vision interview, which has no precondition of its own, so a fresh
|
|
140
142
|
// application is exactly where this composite must be eligible. Every later gate is a child's.
|
|
141
143
|
preconditions: [],
|
|
@@ -188,6 +190,9 @@ export const playbookDefinition = {
|
|
|
188
190
|
'top_down.vision-elicitation',
|
|
189
191
|
// Beside the chain, not on it: each needs the vision (and the business model, for the register)
|
|
190
192
|
// and nothing downstream needs them.
|
|
193
|
+
// A NESTED LANE: proposes names and screens them (research + produce), landing the screening the
|
|
194
|
+
// brand identity's `brand-name` CHOICE is computed from. Needs the market snapshot for the competitors.
|
|
195
|
+
'top_down.brand-naming',
|
|
191
196
|
'top_down.brand-identity',
|
|
192
197
|
'top_down.risk-register',
|
|
193
198
|
],
|
|
@@ -200,6 +205,13 @@ export const playbookDefinition = {
|
|
|
200
205
|
* twenty is the headroom for one re-search cycle and one re-run of a chain leaf. A breaker, not a
|
|
201
206
|
* budget: it stops a loop spinning, it never refuses work for want of spend.
|
|
202
207
|
*/
|
|
208
|
+
/*
|
|
209
|
+
* The lane ENDS on its go/no-go decision, mechanically (#2236). The gate lands nothing, so it is never marked
|
|
210
|
+
* delivered, and this used to rest on the selector reading the intent: on app-creation-test-004 the lane's
|
|
211
|
+
* families landed and the gate never ran. When the selector stops first, the runtime runs the gate; when the
|
|
212
|
+
* gate cannot run (its preconditions unmet), the lane ends recorded as not concluded, naming why.
|
|
213
|
+
*/
|
|
214
|
+
closingMove: 'top_down.phase-gate',
|
|
203
215
|
maximumIterations: 20,
|
|
204
216
|
// The journey loop's own width. Research is breadth-first, and the chain's side leaves ride beside it.
|
|
205
217
|
maximumLanesPerIteration: 3,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.definition/playbook.definition.ts"],"names":[],"mappings":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;KACF;IACD;;;;;;;;OAQG;IACH,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_FailurePolicy,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_InputRender,\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * The DEFINITION LANE — the first of the lanes that drive the creation of the application (#1499,\n * epic #1506), and the first composite whose deliverable is not one family but a coherent SET of them.\n *\n * Paul, 2026-09-22: *\"we need playbooks that drive the application creation itself. So we have\n * leaves, with lot missing, but we need to build the lanes that will make the application coherent.\"*\n *\n * Until this existed the top-down half was ten leaves the unattended loop picked among freely and a\n * human drove one card at a time (#1273). Nothing was wrong with any leaf; what was missing was the\n * thing that IS the definition of the application — vision → market → requirements → capability map →\n * value proposition → business model → roadmap → phase gate, with brand identity and the risk register\n * beside the chain, ending on one decision a person can see.\n *\n * ## Order is nowhere in this file — the waterfall is the leaves' own preconditions\n *\n * `admits` is a set. `market-research` needs only a valid vision; `requirements-definition` needs a\n * valid vision AND a valid market snapshot; `scope-roadmap` needs feature drafts, which\n * `capability-map` lands; `phase-gate` needs the roadmap. Re-evaluated against the working tree after\n * every round, that IS the waterfall — and it is also what lets the lane be re-run on an application\n * where most of it already exists: whatever is on record satisfies the gates of whatever is not, and\n * the selector's job is to pick what is missing rather than to walk a list from the top.\n *\n * ## The market umbrella is a NESTED LANE — un-flattened 2026-09-22, when #1497 landed\n *\n * This lane admitted `market-research`, `market-evidence-adequacy` and `market-snapshot-produce`\n * directly for one day, because a composite could not admit a composite. It now admits\n * `top_down.market-analysis` itself: `runPlaybookChoreography` recurses, the umbrella's landings come\n * back as the child's `landed` (so it is marked delivered and never re-offered), its checkpoint rides\n * inside this run's, and its INTERNAL step scope — `market-evidence`, `evidence-adequacy` — stays its\n * own. That isolation is the point of running it as a lane rather than as three siblings: the\n * evidence loop's re-search rounds are the umbrella's business, and this lane sees only that a market\n * snapshot landed.\n *\n * `maximumDepth: 2` is what admits it — a composite child is WITHHELD when `depth + 1` reaches the\n * ceiling, so the schema's default of `1` would have offered this lane a child it could never run.\n * Under the root (`application-creation`, depth 0) this lane runs at depth 1 and the umbrella at\n * depth 2, which the root's own `maximumDepth: 3` permits; the tightest ancestor's ceiling wins.\n *\n * **The compliance lane was, for one day, NOT un-flattened, and the asymmetry was a mechanism fact.**\n * `top_down.compliance-analysis` carries an INTERVIEW, and a nested composite's own elicitation did not\n * reach its children: the companion bound `runChild` ONCE, in `runChoreography`, with the OUTERMOST\n * composite's rendered section, and `runNestedLane` forwarded that closure unchanged. That is fixed:\n * `runChild` names the dispatching composite (#1513), and so does each round's selector (#1577), so a\n * nested lane's children AND its selector receive that lane's own interview. `cross_cutting.compliance`\n * now nests the umbrella too. `top_down.market-analysis` declares no elicitation, so this lane never\n * depended on the fix.\n *\n * ## The interviews are answered in the DOSSIER, not here\n *\n * Four of the leaves interview the creator (`vision-elicitation`, `business-model`, `scope-roadmap`,\n * `brand-identity`). The compliance umbrella moved its children's questions onto itself; this lane\n * does NOT, because a child's eligibility inside a composite is `unansweredQuestionRefs.length === 0`\n * computed against the `creator-inputs` family for THAT child's ref (#1454, Step 5) — the umbrella's\n * questions would be asked twice and the child's copy would still gate. A leaf whose interview the\n * dossier does not answer is simply not eligible in this run, the lane runs everything else it can,\n * and the board reports the leaf as waiting for the creator. That is the \"human input only at the\n * interviews\" contract stated as a mechanism rather than as a hope.\n *\n * ## The lane ENDS on a decision\n *\n * `phase-gate` is the closing move: five criteria over the coherence report, an advisory verdict, and\n * — under the current posture — auto-accepted and notified. `approval: APPROVE_RESULT` is where the\n * lane's boundary decision attaches, and it is LIVE since #111 landed. Note that `phase-gate` lands nothing and returns no step value, so the runner never\n * marks it delivered — the intent below tells the selector to stop once it has run, and the round\n * history shows that it has.\n *\n * ## Loop-back — the criterion → leaf table, declared as `reopenOnVerdict`\n *\n * The mechanism arrived (#1498): `runChoreographyChild` forwards an assessing leaf's verdict, the\n * choreography stores it under `judge:top_down.phase-gate`, and any child gated on that ref is handed\n * the per-criterion detail. The table below is this lane's mapping from a faulted criterion to the\n * artifact that can be wrong.\n *\n * | phase-gate criterion (`application-creation:criterion/…`) | re-opens | why that leaf |\n * |---|---|---|\n * | `requirement-coverage` — a functional requirement no roadmap phase delivers or defers | `top_down.scope-roadmap` | the roadmap owns delivery and deferral; the requirement is not wrong for being unplanned |\n * | `success-criterion-coverage` — a vision success criterion no phase delivers | `top_down.scope-roadmap` | same owner, the vision's other half |\n * | `capability-completeness` — a market benefit wired to no delivering feature | `top_down.capability-map` | it authors the benefit → feature edges and the feature drafts |\n * | `positioning-icp-coherence` — pillars that miss the core ICPs or centre an anti-target | `top_down.value-proposition` | positioning and the ICP classifications live in its slice of the snapshot |\n * | `compliance-presence` — regulated data with no declared compliance constraint | the COMPLIANCE lane (#1502), through the root | the constraint is landed on the vision by `compliance-posture`, which belongs to another lane |\n *\n * **The mapping lives HERE, on the lane, and that is where it belongs.** The judge's routable verdict\n * is keyed by criterion ref precisely so a lane author can name the criterion a revise child answers —\n * `toRoutableJudgeVerdict` says so at its own site: the mapping is the AUTHOR's declaration, never the\n * function's inference. The phase gate's TREATMENT cannot carry it either: an evaluation criterion is a\n * `strictObject` of ref, instruction, evidence requirements and verdict guidance, with no routing\n * field, and it should have none: the same gate could sit in another lane where the same criterion\n * faults a different leaf. Routing is the LANE's knowledge, so the lane declares it.\n *\n * A GAP on `requirement-coverage` therefore re-runs `scope-roadmap`, not `requirements-definition`:\n * the criterion reads the roadmap against the requirements, and the roadmap is the artifact that can\n * be wrong. A requirements gap the gate cannot see (a requirement that should exist and does not) is\n * a coherence finding, not a gate verdict, and re-opens `requirements-definition` through #57.\n *\n * **The table is the mechanism now** (`reopenOnVerdict` below, read by the choreography runtime). A\n * GAP on one of the first four criteria removes the mapped leaf from the run's delivered set, so it is\n * offered again, and the gate — which lands nothing and is therefore always re-offerable — can run\n * after it. The runtime clears `delivered`; no revise playbook exists. The two revise-child shapes\n * were rejected: three narrow children restate three leaves as a second description that drifts, and\n * one broad child claims three families and re-derives all of them when one faulted. This was held\n * back until the lane had run live, and it has (#1273, scratch-journey: the gate reached PASS on six\n * runs without anyone choosing a card), so the declaration now answers a loop that exists.\n *\n * GAP only. CONCERN is advice, not a fault. INDETERMINATE means the evidence could not settle the\n * criterion, and re-deriving the leaf does not produce evidence.\n *\n * `compliance-presence` is not declared HERE: its owner is the compliance lane, a SIBLING of this\n * lane under the root, and a composite re-opens only what it admits. This lane EXPORTS the gate's\n * verdict instead (`stepOutputs` below), and the root routes that criterion to the compliance lane\n * (#1627).\n *\n * The other two mechanisms this lane was authored to adopt are ADOPTED, and both cost zero edits:\n *\n * - **The decision boundary (#111)** — by already declaring `approval`, which the runtime now reads at\n * the end of every composite run.\n * - **The staleness gate (#57)** — `ARTIFACT_STALE` reads the DECLARING playbook's own `inputs[]`, so\n * its consumer is a child that re-derives a family, never a lane: a composite gating itself on\n * staleness would refuse the first run of every application. It is READINESS\n * (`PRECONDITION_CLASS_BY_KIND` in the eligibility service), so nobody proceeds past it, inside a lane\n * or out: a child gated on it is offered only when an input of the family it re-derives has moved,\n * which is what makes it a refresh child. (This said SEQUENCING-and-bypassed until 2026-09-27, #1608.)\n *\n * ## Inputs are declared for the SELECTOR, not for a generation\n *\n * A composite generates nothing, so its `inputs` reach exactly one reader: the round selector's\n * prompt, which renders the declared families that exist and omits the ones that do not. That is how\n * the selector tells a missing family from a landed one — the only way it can, since an eligible\n * child carries no \"already landed\" mark. The vision is read whole (it is small and it is the product);\n * everything else is read as a MAP so the selector knows WHAT exists without paying for its content.\n * `risk-register` has no aspect index, so a map of it would read as empty; it is read whole.\n */\nexport const playbookDefinition = {\n ref: 'top_down.definition',\n version: '0.1.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Drive the top-down DEFINITION of the application as one lane: from an answered vision through market evidence, the market snapshot, the value proposition, the requirements, the capability map, the business model and the roadmap, to the phase gate — with the brand identity and the risk register beside the chain. An umbrella: it authors nothing itself; every child declares what it needs and the runtime recomputes what may run after each round, so the order is the leaves\\' preconditions and never a list. Select what is MISSING from the accepted truth shown to you: a family already on record is not re-derived unless a family it was derived from has been re-derived in this run. Run independent children in the same round (brand identity and the risk register beside the chain; several research lanes with different objectives). Run the phase gate once the roadmap is on record, and STOP after it has run — its verdict is this lane\\'s closing decision, and it is not re-run in the same run. A child whose interview the creator has not answered is not offered; run everything else and stop when nothing eligible advances the definition.',\n // None. The lane STARTS at the vision interview, which has no precondition of its own, so a fresh\n // application is exactly where this composite must be eligible. Every later gate is a child's.\n preconditions: [],\n inputs: [\n { family: 'vision-brief' },\n { family: 'market-snapshot', render: MetaWorkflow_InputRender.MAP },\n { family: 'requirements', render: MetaWorkflow_InputRender.MAP },\n { family: 'feature-drafts', render: MetaWorkflow_InputRender.MAP },\n { family: 'business-model', render: MetaWorkflow_InputRender.MAP },\n { family: 'roadmap', render: MetaWorkflow_InputRender.MAP },\n { family: 'brand-brief', render: MetaWorkflow_InputRender.MAP },\n { family: 'risk-register' },\n ],\n // Nothing, for the market umbrella's recorded reason: a composite's deliverable is what its children\n // land, and the loop resolves this lane's write scope TRANSITIVELY through `admits` — every family\n // above except the vision's compliance slice, which the compliance lane owns.\n outputs: [],\n /*\n * The ONE value this lane hands up (#1627): the phase gate's verdict, so the root can send a SIBLING\n * lane back on a criterion this lane cannot fix itself (compliance presence belongs to the compliance\n * lane). A derived ref, exported through the ordinary lane export; its value is the routable verdict\n * (overall + per criterion), never shown to a generator (`isJudgeVerdictStepRef`).\n */\n stepOutputs: [\n {\n ref: 'judge:top_down.phase-gate',\n condensation: 'The phase gate verdict on the definition set: overall and per criterion (PASS, CONCERN, GAP or INDETERMINATE).',\n },\n ],\n method: {\n skillRefs: [],\n choreography: {\n /*\n * UNORDERED. Listed closing-move-first on purpose, the umbrellas' own trap check: if anything\n * ever read this array as a sequence the lane would try to judge a definition before any of it\n * existed, and the run would fail loudly rather than silently degrading.\n */\n admits: [\n 'top_down.phase-gate',\n 'top_down.scope-roadmap',\n 'top_down.business-model',\n 'top_down.capability-map',\n // Capability-map's drafts-only half, for a line with no market (#1604). The B2B SaaS line\n // excludes it and runs capability-map; a line that excludes capability-map runs this instead.\n 'top_down.feature-drafts',\n 'top_down.value-proposition',\n 'top_down.requirements-definition',\n // A NESTED LANE, not three siblings — see the un-flattening note above. Its evidence loop is its own.\n 'top_down.market-analysis',\n 'top_down.vision-elicitation',\n // Beside the chain, not on it: each needs the vision (and the business model, for the register)\n // and nothing downstream needs them.\n 'top_down.brand-identity',\n 'top_down.risk-register',\n ],\n /*\n * The schema's ceiling. Derived, not guessed: one round per chain leaf (vision, produce,\n * value proposition, requirements, capability map, business model, roadmap, phase gate = 8) plus\n * the market's evidence loop, which consumed FIVE of six iterations on its first measured run\n * (`top_down.market-analysis`, wonder-crm run 5), plus brand and risk running beside the chain at\n * no extra round when the selector pairs them. Fifteen on a fresh application if nothing loops;\n * twenty is the headroom for one re-search cycle and one re-run of a chain leaf. A breaker, not a\n * budget: it stops a loop spinning, it never refuses work for want of spend.\n */\n maximumIterations: 20,\n // The journey loop's own width. Research is breadth-first, and the chain's side leaves ride beside it.\n maximumLanesPerIteration: 3,\n /*\n * Two levels below this one: the market umbrella, and the umbrella's own leaves. A composite\n * child is WITHHELD when `depth + 1` reaches the ceiling, so the default `1` would offer this\n * lane a nested lane it could never run — an eligible-looking card that stops before its first\n * iteration.\n */\n maximumDepth: 2,\n /*\n * Three hours. The market loop measured ~168s per iteration and the compliance loop ~280s; a\n * chain generation with a full brief (requirements, capability map, roadmap) is in the same range,\n * and twenty iterations at the slower figure is ~95 minutes. The companion's HTTP request ceiling\n * (30 min) is SHORTER than this — submit the lane with `async: true` and read the outcome from\n * `/playbooks/runs`, as the compliance umbrella's own comment already warns. Literal: the\n * definition evaluator computes no expressions.\n */\n maximumDurationMs: 10_800_000,\n /** The criterion → leaf table above, executable. */\n reopenOnVerdict: [\n {\n whenVerdictOf: 'top_down.phase-gate',\n criterionRef: 'application-creation:criterion/requirement-coverage',\n verdicts: [MetaWorkflow_EvaluationVerdict.GAP],\n reopen: ['top_down.scope-roadmap'],\n },\n {\n whenVerdictOf: 'top_down.phase-gate',\n criterionRef: 'application-creation:criterion/success-criterion-coverage',\n verdicts: [MetaWorkflow_EvaluationVerdict.GAP],\n reopen: ['top_down.scope-roadmap'],\n },\n {\n whenVerdictOf: 'top_down.phase-gate',\n criterionRef: 'application-creation:criterion/capability-completeness',\n verdicts: [MetaWorkflow_EvaluationVerdict.GAP],\n reopen: ['top_down.capability-map'],\n },\n {\n whenVerdictOf: 'top_down.phase-gate',\n criterionRef: 'application-creation:criterion/positioning-icp-coherence',\n verdicts: [MetaWorkflow_EvaluationVerdict.GAP],\n reopen: ['top_down.value-proposition'],\n },\n ],\n },\n },\n /*\n * The lane's closing decision — accept the definition, or send it back.\n *\n * LIVE since #111 landed: `derivePlaybookChoreographyBoundary` reads this field at the end of every\n * composite run and the companion projects ONE `approve_result` decision onto the human-decision\n * plane — approve / revise / discard, over the paths this lane's children kept. The POSTURE decides\n * what it does: under YOLO it notifies and the run concludes; GUIDED's hold is the marked gate,\n * armed at Gate 3. `onFailure` below is read at the same boundary.\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.definition/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,EA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,MAAM,EAAE,CAAC,4BAA4B,CAAC;iBACvC;aACF;SACF;KACF;IACD;;;;;;;;OAQG;IACH,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_FailurePolicy,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_InputRender,\n MetaWorkflow_Phase,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * The DEFINITION LANE — the first of the lanes that drive the creation of the application (#1499,\n * epic #1506), and the first composite whose deliverable is not one family but a coherent SET of them.\n *\n * Paul, 2026-09-22: *\"we need playbooks that drive the application creation itself. So we have\n * leaves, with lot missing, but we need to build the lanes that will make the application coherent.\"*\n *\n * Until this existed the top-down half was ten leaves the unattended loop picked among freely and a\n * human drove one card at a time (#1273). Nothing was wrong with any leaf; what was missing was the\n * thing that IS the definition of the application — vision → market → requirements → capability map →\n * value proposition → business model → roadmap → phase gate, with brand identity and the risk register\n * beside the chain, ending on one decision a person can see.\n *\n * ## Order is nowhere in this file — the waterfall is the leaves' own preconditions\n *\n * `admits` is a set. `market-research` needs only a valid vision; `requirements-definition` needs a\n * valid vision AND a valid market snapshot; `scope-roadmap` needs feature drafts, which\n * `capability-map` lands; `phase-gate` needs the roadmap. Re-evaluated against the working tree after\n * every round, that IS the waterfall — and it is also what lets the lane be re-run on an application\n * where most of it already exists: whatever is on record satisfies the gates of whatever is not, and\n * the selector's job is to pick what is missing rather than to walk a list from the top.\n *\n * ## The market umbrella is a NESTED LANE — un-flattened 2026-09-22, when #1497 landed\n *\n * This lane admitted `market-research`, `market-evidence-adequacy` and `market-snapshot-produce`\n * directly for one day, because a composite could not admit a composite. It now admits\n * `top_down.market-analysis` itself: `runPlaybookChoreography` recurses, the umbrella's landings come\n * back as the child's `landed` (so it is marked delivered and never re-offered), its checkpoint rides\n * inside this run's, and its INTERNAL step scope — `market-evidence`, `evidence-adequacy` — stays its\n * own. That isolation is the point of running it as a lane rather than as three siblings: the\n * evidence loop's re-search rounds are the umbrella's business, and this lane sees only that a market\n * snapshot landed.\n *\n * `maximumDepth: 2` is what admits it — a composite child is WITHHELD when `depth + 1` reaches the\n * ceiling, so the schema's default of `1` would have offered this lane a child it could never run.\n * Under the root (`application-creation`, depth 0) this lane runs at depth 1 and the umbrella at\n * depth 2, which the root's own `maximumDepth: 3` permits; the tightest ancestor's ceiling wins.\n *\n * **The compliance lane was, for one day, NOT un-flattened, and the asymmetry was a mechanism fact.**\n * `top_down.compliance-analysis` carries an INTERVIEW, and a nested composite's own elicitation did not\n * reach its children: the companion bound `runChild` ONCE, in `runChoreography`, with the OUTERMOST\n * composite's rendered section, and `runNestedLane` forwarded that closure unchanged. That is fixed:\n * `runChild` names the dispatching composite (#1513), and so does each round's selector (#1577), so a\n * nested lane's children AND its selector receive that lane's own interview. `cross_cutting.compliance`\n * now nests the umbrella too. `top_down.market-analysis` declares no elicitation, so this lane never\n * depended on the fix.\n *\n * ## The interviews are answered in the DOSSIER, not here\n *\n * Four of the leaves interview the creator (`vision-elicitation`, `business-model`, `scope-roadmap`,\n * `brand-identity`), and so does the nested `brand-naming` lane (one question: names the creator wants\n * screened, or \"none\" — its interview reaches its own children since #1513). The compliance umbrella moved its children's questions onto itself; this lane\n * does NOT, because a child's eligibility inside a composite is `unansweredQuestionRefs.length === 0`\n * computed against the `creator-inputs` family for THAT child's ref (#1454, Step 5) — the umbrella's\n * questions would be asked twice and the child's copy would still gate. A leaf whose interview the\n * dossier does not answer is simply not eligible in this run, the lane runs everything else it can,\n * and the board reports the leaf as waiting for the creator. That is the \"human input only at the\n * interviews\" contract stated as a mechanism rather than as a hope.\n *\n * ## The lane ENDS on a decision\n *\n * `phase-gate` is the closing move: five criteria over the coherence report, an advisory verdict, and\n * — under the current posture — auto-accepted and notified. `approval: APPROVE_RESULT` is where the\n * lane's boundary decision attaches, and it is LIVE since #111 landed. Note that `phase-gate` lands nothing and returns no step value, so the runner never\n * marks it delivered — the intent below tells the selector to stop once it has run, and the round\n * history shows that it has. That it RUNS no longer rests on the selector: it is the choreography's declared\n * `closingMove` (#2236), so a lane the selector ends early runs it first, and one that cannot run it ends marked.\n *\n * ## Loop-back — the criterion → leaf table, declared as `reopenOnVerdict`\n *\n * The mechanism arrived (#1498): `runChoreographyChild` forwards an assessing leaf's verdict, the\n * choreography stores it under `judge:top_down.phase-gate`, and any child gated on that ref is handed\n * the per-criterion detail. The table below is this lane's mapping from a faulted criterion to the\n * artifact that can be wrong.\n *\n * | phase-gate criterion (`application-creation:criterion/…`) | re-opens | why that leaf |\n * |---|---|---|\n * | `requirement-coverage` — a functional requirement no roadmap phase delivers or defers | `top_down.scope-roadmap` | the roadmap owns delivery and deferral; the requirement is not wrong for being unplanned |\n * | `success-criterion-coverage` — a vision success criterion no phase delivers | `top_down.scope-roadmap` | same owner, the vision's other half |\n * | `capability-completeness` — a market benefit wired to no delivering feature | `top_down.capability-map` | it authors the benefit → feature edges and the feature drafts |\n * | `positioning-icp-coherence` — pillars that miss the core ICPs or centre an anti-target | `top_down.value-proposition` | positioning and the ICP classifications live in its slice of the snapshot |\n * | `compliance-presence` — regulated data with no declared compliance constraint | the COMPLIANCE lane (#1502), through the root | the constraint is landed on the vision by `compliance-posture`, which belongs to another lane |\n *\n * **The mapping lives HERE, on the lane, and that is where it belongs.** The judge's routable verdict\n * is keyed by criterion ref precisely so a lane author can name the criterion a revise child answers —\n * `toRoutableJudgeVerdict` says so at its own site: the mapping is the AUTHOR's declaration, never the\n * function's inference. The phase gate's TREATMENT cannot carry it either: an evaluation criterion is a\n * `strictObject` of ref, instruction, evidence requirements and verdict guidance, with no routing\n * field, and it should have none: the same gate could sit in another lane where the same criterion\n * faults a different leaf. Routing is the LANE's knowledge, so the lane declares it.\n *\n * A GAP on `requirement-coverage` therefore re-runs `scope-roadmap`, not `requirements-definition`:\n * the criterion reads the roadmap against the requirements, and the roadmap is the artifact that can\n * be wrong. A requirements gap the gate cannot see (a requirement that should exist and does not) is\n * a coherence finding, not a gate verdict, and re-opens `requirements-definition` through #57.\n *\n * **The table is the mechanism now** (`reopenOnVerdict` below, read by the choreography runtime). A\n * GAP on one of the first four criteria removes the mapped leaf from the run's delivered set, so it is\n * offered again, and the gate — which lands nothing and is therefore always re-offerable — can run\n * after it. The runtime clears `delivered`; no revise playbook exists. The two revise-child shapes\n * were rejected: three narrow children restate three leaves as a second description that drifts, and\n * one broad child claims three families and re-derives all of them when one faulted. This was held\n * back until the lane had run live, and it has (#1273, scratch-journey: the gate reached PASS on six\n * runs without anyone choosing a card), so the declaration now answers a loop that exists.\n *\n * GAP only. CONCERN is advice, not a fault. INDETERMINATE means the evidence could not settle the\n * criterion, and re-deriving the leaf does not produce evidence.\n *\n * `compliance-presence` is not declared HERE: its owner is the compliance lane, a SIBLING of this\n * lane under the root, and a composite re-opens only what it admits. This lane EXPORTS the gate's\n * verdict instead (`stepOutputs` below), and the root routes that criterion to the compliance lane\n * (#1627).\n *\n * The other two mechanisms this lane was authored to adopt are ADOPTED, and both cost zero edits:\n *\n * - **The decision boundary (#111)** — by already declaring `approval`, which the runtime now reads at\n * the end of every composite run.\n * - **The staleness gate (#57)** — `ARTIFACT_STALE` reads the DECLARING playbook's own `inputs[]`, so\n * its consumer is a child that re-derives a family, never a lane: a composite gating itself on\n * staleness would refuse the first run of every application. It is READINESS\n * (`PRECONDITION_CLASS_BY_KIND` in the eligibility service), so nobody proceeds past it, inside a lane\n * or out: a child gated on it is offered only when an input of the family it re-derives has moved,\n * which is what makes it a refresh child. (This said SEQUENCING-and-bypassed until 2026-09-27, #1608.)\n *\n * ## Inputs are declared for the SELECTOR, not for a generation\n *\n * A composite generates nothing, so its `inputs` reach exactly one reader: the round selector's\n * prompt, which renders the declared families that exist and omits the ones that do not. That is how\n * the selector tells a missing family from a landed one — the only way it can, since an eligible\n * child carries no \"already landed\" mark. The vision is read whole (it is small and it is the product);\n * everything else is read as a MAP so the selector knows WHAT exists without paying for its content.\n * `risk-register` has no aspect index, so a map of it would read as empty; it is read whole.\n */\nexport const playbookDefinition = {\n ref: 'top_down.definition',\n version: '0.1.1',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Drive the top-down DEFINITION of the application as one lane: from an answered vision through market evidence, the market snapshot, the value proposition, the requirements, the capability map, the business model and the roadmap, to the phase gate — with the brand naming (screened name proposals), the brand identity and the risk register beside the chain. An umbrella: it authors nothing itself; every child declares what it needs and the runtime recomputes what may run after each round, so the order is the leaves\\' preconditions and never a list. Select what is MISSING from the accepted truth shown to you. A child already on record whose inputs have not changed since it landed is not offered at all; every option is marked FIRST RUN, or REFRESH with the input that moved. Prefer first runs; take a refresh when its changed input matters to it. Run independent children in the same round (brand naming or the brand identity, and the risk register beside the chain; several research lanes with different objectives). Run the phase gate once the roadmap is on record, and STOP after it has run — its verdict is this lane\\'s closing decision, and it is not re-run in the same run. A child whose interview the creator has not answered is not offered; run everything else and stop when nothing eligible advances the definition.',\n // None. The lane STARTS at the vision interview, which has no precondition of its own, so a fresh\n // application is exactly where this composite must be eligible. Every later gate is a child's.\n preconditions: [],\n inputs: [\n { family: 'vision-brief' },\n { family: 'market-snapshot', render: MetaWorkflow_InputRender.MAP },\n { family: 'requirements', render: MetaWorkflow_InputRender.MAP },\n { family: 'feature-drafts', render: MetaWorkflow_InputRender.MAP },\n { family: 'business-model', render: MetaWorkflow_InputRender.MAP },\n { family: 'roadmap', render: MetaWorkflow_InputRender.MAP },\n { family: 'brand-brief', render: MetaWorkflow_InputRender.MAP },\n { family: 'risk-register' },\n ],\n // Nothing, for the market umbrella's recorded reason: a composite's deliverable is what its children\n // land, and the loop resolves this lane's write scope TRANSITIVELY through `admits` — every family\n // above except the vision's compliance slice, which the compliance lane owns.\n outputs: [],\n /*\n * The ONE value this lane hands up (#1627): the phase gate's verdict, so the root can send a SIBLING\n * lane back on a criterion this lane cannot fix itself (compliance presence belongs to the compliance\n * lane). A derived ref, exported through the ordinary lane export; its value is the routable verdict\n * (overall + per criterion), never shown to a generator (`isJudgeVerdictStepRef`).\n */\n stepOutputs: [\n {\n ref: 'judge:top_down.phase-gate',\n condensation: 'The phase gate verdict on the definition set: overall and per criterion (PASS, CONCERN, GAP or INDETERMINATE).',\n },\n ],\n method: {\n skillRefs: [],\n choreography: {\n /*\n * UNORDERED. Listed closing-move-first on purpose, the umbrellas' own trap check: if anything\n * ever read this array as a sequence the lane would try to judge a definition before any of it\n * existed, and the run would fail loudly rather than silently degrading.\n */\n admits: [\n 'top_down.phase-gate',\n 'top_down.scope-roadmap',\n 'top_down.business-model',\n 'top_down.capability-map',\n // Capability-map's drafts-only half, for a line with no market (#1604). The B2B SaaS line\n // excludes it and runs capability-map; a line that excludes capability-map runs this instead.\n 'top_down.feature-drafts',\n 'top_down.value-proposition',\n 'top_down.requirements-definition',\n // A NESTED LANE, not three siblings — see the un-flattening note above. Its evidence loop is its own.\n 'top_down.market-analysis',\n 'top_down.vision-elicitation',\n // Beside the chain, not on it: each needs the vision (and the business model, for the register)\n // and nothing downstream needs them.\n // A NESTED LANE: proposes names and screens them (research + produce), landing the screening the\n // brand identity's `brand-name` CHOICE is computed from. Needs the market snapshot for the competitors.\n 'top_down.brand-naming',\n 'top_down.brand-identity',\n 'top_down.risk-register',\n ],\n /*\n * The schema's ceiling. Derived, not guessed: one round per chain leaf (vision, produce,\n * value proposition, requirements, capability map, business model, roadmap, phase gate = 8) plus\n * the market's evidence loop, which consumed FIVE of six iterations on its first measured run\n * (`top_down.market-analysis`, wonder-crm run 5), plus brand and risk running beside the chain at\n * no extra round when the selector pairs them. Fifteen on a fresh application if nothing loops;\n * twenty is the headroom for one re-search cycle and one re-run of a chain leaf. A breaker, not a\n * budget: it stops a loop spinning, it never refuses work for want of spend.\n */\n /*\n * The lane ENDS on its go/no-go decision, mechanically (#2236). The gate lands nothing, so it is never marked\n * delivered, and this used to rest on the selector reading the intent: on app-creation-test-004 the lane's\n * families landed and the gate never ran. When the selector stops first, the runtime runs the gate; when the\n * gate cannot run (its preconditions unmet), the lane ends recorded as not concluded, naming why.\n */\n closingMove: 'top_down.phase-gate',\n maximumIterations: 20,\n // The journey loop's own width. Research is breadth-first, and the chain's side leaves ride beside it.\n maximumLanesPerIteration: 3,\n /*\n * Two levels below this one: the market umbrella, and the umbrella's own leaves. A composite\n * child is WITHHELD when `depth + 1` reaches the ceiling, so the default `1` would offer this\n * lane a nested lane it could never run — an eligible-looking card that stops before its first\n * iteration.\n */\n maximumDepth: 2,\n /*\n * Three hours. The market loop measured ~168s per iteration and the compliance loop ~280s; a\n * chain generation with a full brief (requirements, capability map, roadmap) is in the same range,\n * and twenty iterations at the slower figure is ~95 minutes. The companion's HTTP request ceiling\n * (30 min) is SHORTER than this — submit the lane with `async: true` and read the outcome from\n * `/playbooks/runs`, as the compliance umbrella's own comment already warns. Literal: the\n * definition evaluator computes no expressions.\n */\n maximumDurationMs: 10_800_000,\n /** The criterion → leaf table above, executable. */\n reopenOnVerdict: [\n {\n whenVerdictOf: 'top_down.phase-gate',\n criterionRef: 'application-creation:criterion/requirement-coverage',\n verdicts: [MetaWorkflow_EvaluationVerdict.GAP],\n reopen: ['top_down.scope-roadmap'],\n },\n {\n whenVerdictOf: 'top_down.phase-gate',\n criterionRef: 'application-creation:criterion/success-criterion-coverage',\n verdicts: [MetaWorkflow_EvaluationVerdict.GAP],\n reopen: ['top_down.scope-roadmap'],\n },\n {\n whenVerdictOf: 'top_down.phase-gate',\n criterionRef: 'application-creation:criterion/capability-completeness',\n verdicts: [MetaWorkflow_EvaluationVerdict.GAP],\n reopen: ['top_down.capability-map'],\n },\n {\n whenVerdictOf: 'top_down.phase-gate',\n criterionRef: 'application-creation:criterion/positioning-icp-coherence',\n verdicts: [MetaWorkflow_EvaluationVerdict.GAP],\n reopen: ['top_down.value-proposition'],\n },\n ],\n },\n },\n /*\n * The lane's closing decision — accept the definition, or send it back.\n *\n * LIVE since #111 landed: `derivePlaybookChoreographyBoundary` reads this field at the end of every\n * composite run and the companion projects ONE `approve_result` decision onto the human-decision\n * plane — approve / revise / discard, over the paths this lane's children kept. The POSTURE decides\n * what it does: under YOLO it notifies and the run concludes; GUIDED's hold is the marked gate,\n * armed at Gate 3. `onFailure` below is read at the same boundary.\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 { MetaWorkflow_ContinuationAction, MetaWorkflow_AuthorityAssuranceClass, MetaWorkflow_AuthorityDecisionMode, MetaWorkflow_AuthorityInteractionChannel, MetaWorkflow_DecisionConsequence, MetaWorkflow_DecisionRuleBoundaryClass, MetaWorkflow_EvaluationAggregationStrategy, MetaWorkflow_EvaluationPromptAssemblyStrategy, MetaWorkflow_EvaluationVerdict, MetaWorkflow_EvidenceRequirementKind, MetaWorkflow_HardFloorPosture, MetaWorkflow_ApprovalPolicy, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind } from '@wildo-ai/saas-models/meta-workflows';
|
|
2
|
-
import { MetaWorkflow_ContextSource, MetaWorkflow_Phase } from '@wildo-ai/saas-specifications/application-creation';
|
|
2
|
+
import { MetaWorkflow_ContextSource, MetaWorkflow_InputRender, MetaWorkflow_Phase } from '@wildo-ai/saas-specifications/application-creation';
|
|
3
3
|
export declare const playbookDefinition: {
|
|
4
4
|
ref: string;
|
|
5
5
|
version: string;
|
|
@@ -11,9 +11,13 @@ export declare const playbookDefinition: {
|
|
|
11
11
|
family: string;
|
|
12
12
|
};
|
|
13
13
|
}[];
|
|
14
|
-
inputs: {
|
|
14
|
+
inputs: ({
|
|
15
15
|
family: string;
|
|
16
|
-
|
|
16
|
+
render?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
family: string;
|
|
19
|
+
render: MetaWorkflow_InputRender.MAP;
|
|
20
|
+
})[];
|
|
17
21
|
outputs: any[];
|
|
18
22
|
method: {
|
|
19
23
|
contextSources: MetaWorkflow_ContextSource.COHERENCE_REPORT[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.phase-gate/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC7B,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
|
|
1
|
+
{"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.phase-gate/playbook.definition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,6BAA6B,EAC7B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD9B,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyTW,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MetaWorkflow_ContinuationAction, MetaWorkflow_AuthorityAssuranceClass, MetaWorkflow_AuthorityDecisionMode, MetaWorkflow_AuthorityInteractionChannel, MetaWorkflow_DecisionConsequence, MetaWorkflow_DecisionRuleBoundaryClass, MetaWorkflow_EvaluationAggregationStrategy, MetaWorkflow_EvaluationPromptAssemblyStrategy, MetaWorkflow_EvaluationVerdict, MetaWorkflow_EvidenceRequirementKind, MetaWorkflow_HardFloorPosture, MetaWorkflow_ApprovalPolicy, MetaWorkflow_Executor, MetaWorkflow_FailurePolicy, MetaWorkflow_PredicateKind, } from '@wildo-ai/saas-models/meta-workflows';
|
|
2
|
-
import { MetaWorkflow_ContextSource, MetaWorkflow_Phase, } from '@wildo-ai/saas-specifications/application-creation';
|
|
2
|
+
import { MetaWorkflow_ContextSource, MetaWorkflow_InputRender, MetaWorkflow_Phase, } from '@wildo-ai/saas-specifications/application-creation';
|
|
3
3
|
export const playbookDefinition = {
|
|
4
4
|
ref: 'top_down.phase-gate',
|
|
5
|
-
version: '0.2.
|
|
5
|
+
version: '0.2.1',
|
|
6
6
|
phase: MetaWorkflow_Phase.TOP_DOWN,
|
|
7
7
|
intent: 'Assess whether the validated top-down definition set is cross-artifact coherent enough for the current horizon. Deterministic family validation remains a non-bypassable eligibility floor; this playbook contributes an advisory semantic evaluation and never mutates application truth.',
|
|
8
8
|
preconditions: [
|
|
@@ -20,6 +20,12 @@ export const playbookDefinition = {
|
|
|
20
20
|
// An INPUT, deliberately not a precondition: the gate should SEE the commercial intent when it
|
|
21
21
|
// exists, and must not become ineligible for every application that has not sketched one.
|
|
22
22
|
{ family: 'business-model' },
|
|
23
|
+
// INPUTS, not preconditions, for the same reason: an application with no brand yet is not incoherent.
|
|
24
|
+
// When there IS a brand, its name's screening is part of what the definition promises.
|
|
25
|
+
{ family: 'brand-brief', render: MetaWorkflow_InputRender.MAP },
|
|
26
|
+
{ family: 'brand-name-screening' },
|
|
27
|
+
// Where a deliberate name decision (kept despite a conflict, screening incomplete) must be recorded.
|
|
28
|
+
{ family: 'risk-register' },
|
|
23
29
|
],
|
|
24
30
|
outputs: [],
|
|
25
31
|
method: {
|
|
@@ -128,6 +134,34 @@ export const evaluationTreatmentSource = {
|
|
|
128
134
|
[MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The evidence cannot establish the regulated-data trigger or the applicable constraint posture.',
|
|
129
135
|
},
|
|
130
136
|
},
|
|
137
|
+
{
|
|
138
|
+
schemaVersion: 1,
|
|
139
|
+
criterionRef: 'application-creation:criterion/brand-name-screening-standing',
|
|
140
|
+
criterionVersion: 1,
|
|
141
|
+
instruction: "Determine where the product's NAME stands, reading the coherence report's brand-name findings first — they are computed, not judged. On a line that carries a brand, a missing brand-name screening (brand-name-screening-missing) or a brand name no screening covers (brand-name-not-screened), or a conflict nobody chose to keep (brand-name-conflict-unacknowledged), is a gap in the definition: the brand identity's name question cannot be answered, or the name was never checked. A name chosen with the screening incomplete or kept despite a conflict is a deliberate, recorded decision that must be visible — in the risk register, as an entry derived from the brand-name-trademark-standing signal — not a failure. Fewer than three offerable proposals, or a creator-listed name the screening does not carry, is a concern. A line with no brand (no brand-name finding is reported for it) has nothing to assess.",
|
|
142
|
+
assessesAspects: ['brand.name', 'brand-name-screening.candidate'],
|
|
143
|
+
evidenceRequirements: [{
|
|
144
|
+
schemaVersion: 1,
|
|
145
|
+
requirementRef: 'application-creation:evidence-requirement/brand-name-screening-standing',
|
|
146
|
+
requirementVersion: 1,
|
|
147
|
+
kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,
|
|
148
|
+
subjectRef: 'application-creation:definition-set/brand-and-name-screening',
|
|
149
|
+
minCount: 1,
|
|
150
|
+
maxCount: 2,
|
|
151
|
+
coveragePolicyRef: 'application-creation:evidence-policy/brand-name-and-its-screening',
|
|
152
|
+
freshnessPolicyRef: 'application-creation:evidence-policy/current-accepted-family-heads',
|
|
153
|
+
conditionRef: null,
|
|
154
|
+
independencePolicyRef: null,
|
|
155
|
+
diversityPolicyRef: null,
|
|
156
|
+
aggregationPolicyRef: null,
|
|
157
|
+
}],
|
|
158
|
+
verdictGuidance: {
|
|
159
|
+
[MetaWorkflow_EvaluationVerdict.PASS]: 'The line carries no brand, or the brand name is a screened candidate whose screening is complete and clear.',
|
|
160
|
+
[MetaWorkflow_EvaluationVerdict.CONCERN]: 'The brand name was chosen with the screening incomplete or kept despite a conflict and the risk register carries it, or the screening offers fewer than three proposals or misses a name the creator listed.',
|
|
161
|
+
[MetaWorkflow_EvaluationVerdict.GAP]: 'On a line with a brand, no screening is on record or the brand name was never screened; or a name kept despite a conflict is recorded nowhere, the risk register included.',
|
|
162
|
+
[MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The coherence report is not in evidence, so the brand name\'s standing cannot be read.',
|
|
163
|
+
},
|
|
164
|
+
},
|
|
131
165
|
{
|
|
132
166
|
schemaVersion: 1,
|
|
133
167
|
criterionRef: 'application-creation:criterion/positioning-icp-coherence',
|