@wildo-ai/framework-knowledge 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/esm/framework-knowledge.definitions.d.ts +1 -1
  2. package/dist/esm/framework-knowledge.definitions.d.ts.map +1 -1
  3. package/dist/esm/framework-knowledge.definitions.js +123 -12
  4. package/dist/esm/framework-knowledge.definitions.js.map +1 -1
  5. package/dist/esm/framework-knowledge.loader.d.ts.map +1 -1
  6. package/dist/esm/framework-knowledge.schemas.d.ts.map +1 -1
  7. package/dist/esm/framework-knowledge.schemas.js.map +1 -1
  8. package/dist/esm/index.d.ts.map +1 -1
  9. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.d.ts.map +1 -1
  10. package/dist/esm/playbooks/bottom_up.assemble-verify/playbook.definition.js.map +1 -1
  11. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.d.ts.map +1 -1
  12. package/dist/esm/playbooks/bottom_up.build-decompose/playbook.definition.js.map +1 -1
  13. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.d.ts.map +1 -1
  14. package/dist/esm/playbooks/bottom_up.build-dispatch/playbook.definition.js.map +1 -1
  15. package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.d.ts.map +1 -1
  16. package/dist/esm/playbooks/bottom_up.build-scale/playbook.definition.js.map +1 -1
  17. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.d.ts.map +1 -1
  18. package/dist/esm/playbooks/bottom_up.domain-plan/playbook.definition.js.map +1 -1
  19. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.d.ts.map +1 -1
  20. package/dist/esm/playbooks/bottom_up.foundation/playbook.definition.js.map +1 -1
  21. package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.d.ts.map +1 -1
  22. package/dist/esm/playbooks/bottom_up.placement-plan/playbook.definition.js.map +1 -1
  23. package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.d.ts.map +1 -1
  24. package/dist/esm/playbooks/refinement.compliance-document-candidate/playbook.definition.js.map +1 -1
  25. package/dist/esm/playbooks/refinement.document-facts/playbook.definition.d.ts.map +1 -1
  26. package/dist/esm/playbooks/refinement.document-facts/playbook.definition.js.map +1 -1
  27. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.d.ts.map +1 -1
  28. package/dist/esm/playbooks/top_down.brand-identity/playbook.definition.js.map +1 -1
  29. package/dist/esm/playbooks/top_down.business-model/playbook.definition.d.ts.map +1 -1
  30. package/dist/esm/playbooks/top_down.business-model/playbook.definition.js.map +1 -1
  31. package/dist/esm/playbooks/top_down.capability-map/playbook.definition.d.ts.map +1 -1
  32. package/dist/esm/playbooks/top_down.capability-map/playbook.definition.js.map +1 -1
  33. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.d.ts.map +1 -1
  34. package/dist/esm/playbooks/top_down.compliance-analysis/playbook.definition.js.map +1 -1
  35. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.d.ts.map +1 -1
  36. package/dist/esm/playbooks/top_down.compliance-conception/playbook.definition.js.map +1 -1
  37. package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.d.ts.map +1 -1
  38. package/dist/esm/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.js.map +1 -1
  39. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.d.ts.map +1 -1
  40. package/dist/esm/playbooks/top_down.compliance-posture/playbook.definition.js.map +1 -1
  41. package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.d.ts.map +1 -1
  42. package/dist/esm/playbooks/top_down.compliance-research/playbook.definition.js.map +1 -1
  43. package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.d.ts.map +1 -1
  44. package/dist/esm/playbooks/top_down.market-analysis/playbook.definition.js.map +1 -1
  45. package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.d.ts.map +1 -1
  46. package/dist/esm/playbooks/top_down.market-evidence-adequacy/playbook.definition.js.map +1 -1
  47. package/dist/esm/playbooks/top_down.market-research/playbook.definition.d.ts.map +1 -1
  48. package/dist/esm/playbooks/top_down.market-research/playbook.definition.js.map +1 -1
  49. package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.d.ts.map +1 -1
  50. package/dist/esm/playbooks/top_down.market-snapshot-produce/playbook.definition.js.map +1 -1
  51. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.d.ts.map +1 -1
  52. package/dist/esm/playbooks/top_down.phase-gate/playbook.definition.js.map +1 -1
  53. package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.d.ts.map +1 -1
  54. package/dist/esm/playbooks/top_down.requirements-definition/playbook.definition.js.map +1 -1
  55. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.d.ts.map +1 -1
  56. package/dist/esm/playbooks/top_down.scope-roadmap/playbook.definition.js.map +1 -1
  57. package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.d.ts.map +1 -1
  58. package/dist/esm/playbooks/top_down.value-proposition/playbook.definition.js.map +1 -1
  59. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.d.ts.map +1 -1
  60. package/dist/esm/playbooks/top_down.vision-elicitation/playbook.definition.js.map +1 -1
  61. package/dist/tsconfig.build.tsbuildinfo +1 -1
  62. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.placement-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CrB,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.placement-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/bottom_up.placement-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,2+CAA2+C;IACr/C,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE;KACvE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,aAAa,EAAE;QAC3B,EAAE,QAAQ,EAAE,cAAc,EAAE;KAC7B;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,mCAAmC;YAChD,aAAa,EAAE,2zDAA2zD;SAC30D;KACF;IACD,QAAQ,EAAE;QACR,kBAAkB,EAAE,qVAAqV;QACzW,gBAAgB,EAAE,CAAC,iBAAiB,CAAC;QACrC,WAAW,EAAE;YACX,8BAA8B;YAC9B,kBAAkB;YAClB,mBAAmB;YACnB,gBAAgB;SACjB;QACD,gBAAgB,EAAE,4pBAA4pB;QAC9qB,cAAc,EAAE;YACd,YAAY,EAAE,0BAA0B;YACxC,kBAAkB,EAAE,CAAC,uBAAuB,EAAE,wBAAwB,CAAC;YACvE,oBAAoB,EAAE,wBAAwB;YAC9C,sBAAsB,EAAE,uBAAuB;YAC/C,gBAAgB,EAAE,CAAC;SACpB;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * Placement is a DECISION the creator should not have to make. This playbook\n * produces it as an artifact, with a per-decision rationale, so a later reader\n * can ask \"why is this here?\" without re-deriving the answer.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.placement-plan\",\n \"version\": \"0.1.0\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Decide WHERE every settings destination, resource operation and application view sits in the application shell, and WHY. Reads the domain plan (the modules, their resources and what they mean) and the requirements (which tasks matter), and produces a PLACEMENT PLAN: for each subject, either a PLACED decision naming one surface (the settings hub rail, the sidebar, the user menu, the command palette) and its address on that surface, or an explicit DECLINED decision with a reason. Both carry a rationale. It also declares the GROUPS that should exist on the grouped surfaces (settings rail categories, sidebar sections) with the product purpose behind each, which is what grounds their generated labels in authored intent instead of filler. This playbook DECIDES placement; it does NOT author configuration — turning a decision into `frontend/src/config/settings-hub.config.ts` and `app-shell.config.ts` is a coding task the build lane dispatches through the `settings-placement-authoring` skill. It runs BEFORE build-decompose, which consumes the plan and emits those tasks — the reverse order would be a cycle, since build-decompose is what produces the build plan. It writes no TypeScript, invents no destination refs, and authors no labels. It exists because the alternative is the framework defaulting placement, which is what made an application's settings rail unauthorable: nothing is placed implicitly, so a subject nobody decided about is a visible coverage gap rather than a silent framework default.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"domain-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"domain-plan\" },\n { \"family\": \"requirements\" }\n ],\n \"outputs\": [\n {\n \"family\": \"placement-plan\",\n \"schemaRef\": \"saas-specifications:PlacementPlan\",\n \"description\": \"The placement decision — `groups[]` (the containers that should exist on the grouped surfaces, each with the product purpose behind it) plus `decisions[]` (one per subject PER SURFACE: a stable `decisionRef`, the `PlacementSubject` being placed — an engine settings destination by ref, a resource operation, or an app view — a `PlacementDisposition` of PLACED or DECLINED, the surface-discriminated `PlacementAddress` when placed, and a REQUIRED `rationale` on both arms). Each decision also carries a REQUIRED `origin` — `DELIBERATED` or `REVISED` — which the trusted runtime stamps `DELIBERATED`; it is not representable in the provider-facing generation shape, because a panel run IS the panel's judgement and a model cannot declare its own output a human revision. A later edit that changes a decision sets `origin: REVISED` and records the panel's own reasoning in `supersedes.rationale`, so the artifact stops asserting panel reasoning for a decision the panel never took. Typed by the `_core` `placement-plan` family (`PlacementPlan`); the provider answers the strict `PlacementPlanGeneration` shape and the trusted runtime stamps refs and version. `validatePlacementPlan` is the deterministic validator: one subject placed twice on the SAME surface is a hard floor (the plan contradicts itself), while an empty group and an order collision are authoring warnings. Its coverage checks run per SUBJECT KIND and only for the kinds a caller supplies a catalog for, so a run that supplies none — the case today — reports no coverage result rather than a clean one, and a caller holding only the engine settings catalog can never make an unknown-subject refusal fire on a resource operation or an app view it was never told about. The plan carries no file path, config key or label string — those belong to the coding task that authors the config.\"\n }\n ],\n \"method\": {\n \"//contextSources\": \"WORKSPACE_TRUTH — placement is decided against what EXISTS: the real engine settings destinations, the real resources and their operations, and the shell surfaces the application already has. A planner working from the definition artifacts alone invents destination refs that resolve to nothing, and every decision it emits is unplaceable.\",\n \"contextSources\": [\"workspace_truth\"],\n \"skillRefs\": [\n \"settings-placement-authoring\",\n \"config-app-shell\",\n \"config-navigation\",\n \"journey-status\"\n ],\n \"//deliberation\": \"Placement is DECIDED BY A PANEL, not elicited from the creator: the arrangement that is right for an application has several defensible answers, and the creator is the person least equipped to choose between them before the app exists. The information-architect OWNS the domain (so it derives the rubric); the design-system-guardian sits as the coherence memory, because where a thing goes must not fork the pattern the shipped surfaces already taught users. Three candidates, because the criteria trade off against each other — first-run discoverability, the daily-use path, and category convention pull in different directions and a single pass silently picks one.\",\n \"deliberation\": {\n \"workDomain\": \"information_architecture\",\n \"reviewerRoleRefs\": [\"information-architect\", \"design-system-guardian\"],\n \"coordinatorRoleRef\": \"design-system-guardian\",\n \"rubricDeriverRoleRef\": \"information-architect\",\n \"candidateCount\": 3\n }\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/bottom_up.placement-plan/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,0BAA0B;IACjC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,2+CAA2+C;IACr/C,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE;KACvE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,aAAa,EAAE;QAC3B,EAAE,QAAQ,EAAE,cAAc,EAAE;KAC7B;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,mCAAmC;YAChD,aAAa,EAAE,2zDAA2zD;SAC30D;KACF;IACD,QAAQ,EAAE;QACR,kBAAkB,EAAE,qVAAqV;QACzW,gBAAgB,EAAE,CAAC,iBAAiB,CAAC;QACrC,WAAW,EAAE;YACX,8BAA8B;YAC9B,kBAAkB;YAClB,mBAAmB;YACnB,gBAAgB;SACjB;QACD,gBAAgB,EAAE,4pBAA4pB;QAC9qB,cAAc,EAAE;YACd,YAAY,EAAE,0BAA0B;YACxC,kBAAkB,EAAE,CAAC,uBAAuB,EAAE,wBAAwB,CAAC;YACvE,oBAAoB,EAAE,wBAAwB;YAC9C,sBAAsB,EAAE,uBAAuB;YAC/C,gBAAgB,EAAE,CAAC;SACpB;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * Placement is a DECISION the creator should not have to make. This playbook\n * produces it as an artifact, with a per-decision rationale, so a later reader\n * can ask \"why is this here?\" without re-deriving the answer.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"bottom_up.placement-plan\",\n \"version\": \"0.1.0\",\n \"phase\": \"bottom_up\",\n \"intent\": \"Decide WHERE every settings destination, resource operation and application view sits in the application shell, and WHY. Reads the domain plan (the modules, their resources and what they mean) and the requirements (which tasks matter), and produces a PLACEMENT PLAN: for each subject, either a PLACED decision naming one surface (the settings hub rail, the sidebar, the user menu, the command palette) and its address on that surface, or an explicit DECLINED decision with a reason. Both carry a rationale. It also declares the GROUPS that should exist on the grouped surfaces (settings rail categories, sidebar sections) with the product purpose behind each, which is what grounds their generated labels in authored intent instead of filler. This playbook DECIDES placement; it does NOT author configuration — turning a decision into `frontend/src/config/settings-hub.config.ts` and `app-shell.config.ts` is a coding task the build lane dispatches through the `settings-placement-authoring` skill. It runs BEFORE build-decompose, which consumes the plan and emits those tasks — the reverse order would be a cycle, since build-decompose is what produces the build plan. It writes no TypeScript, invents no destination refs, and authors no labels. It exists because the alternative is the framework defaulting placement, which is what made an application's settings rail unauthorable: nothing is placed implicitly, so a subject nobody decided about is a visible coverage gap rather than a silent framework default.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"domain-plan\" } }\n ],\n \"inputs\": [\n { \"family\": \"domain-plan\" },\n { \"family\": \"requirements\" }\n ],\n \"outputs\": [\n {\n \"family\": \"placement-plan\",\n \"schemaRef\": \"saas-specifications:PlacementPlan\",\n \"description\": \"The placement decision — `groups[]` (the containers that should exist on the grouped surfaces, each with the product purpose behind it) plus `decisions[]` (one per subject PER SURFACE: a stable `decisionRef`, the `PlacementSubject` being placed — an engine settings destination by ref, a resource operation, or an app view — a `PlacementDisposition` of PLACED or DECLINED, the surface-discriminated `PlacementAddress` when placed, and a REQUIRED `rationale` on both arms). Each decision also carries a REQUIRED `origin` — `DELIBERATED` or `REVISED` — which the trusted runtime stamps `DELIBERATED`; it is not representable in the provider-facing generation shape, because a panel run IS the panel's judgement and a model cannot declare its own output a human revision. A later edit that changes a decision sets `origin: REVISED` and records the panel's own reasoning in `supersedes.rationale`, so the artifact stops asserting panel reasoning for a decision the panel never took. Typed by the `_core` `placement-plan` family (`PlacementPlan`); the provider answers the strict `PlacementPlanGeneration` shape and the trusted runtime stamps refs and version. `validatePlacementPlan` is the deterministic validator: one subject placed twice on the SAME surface is a hard floor (the plan contradicts itself), while an empty group and an order collision are authoring warnings. Its coverage checks run per SUBJECT KIND and only for the kinds a caller supplies a catalog for, so a run that supplies none — the case today — reports no coverage result rather than a clean one, and a caller holding only the engine settings catalog can never make an unknown-subject refusal fire on a resource operation or an app view it was never told about. The plan carries no file path, config key or label string — those belong to the coding task that authors the config.\"\n }\n ],\n \"method\": {\n \"//contextSources\": \"WORKSPACE_TRUTH — placement is decided against what EXISTS: the real engine settings destinations, the real resources and their operations, and the shell surfaces the application already has. A planner working from the definition artifacts alone invents destination refs that resolve to nothing, and every decision it emits is unplaceable.\",\n \"contextSources\": [\"workspace_truth\"],\n \"skillRefs\": [\n \"settings-placement-authoring\",\n \"config-app-shell\",\n \"config-navigation\",\n \"journey-status\"\n ],\n \"//deliberation\": \"Placement is DECIDED BY A PANEL, not elicited from the creator: the arrangement that is right for an application has several defensible answers, and the creator is the person least equipped to choose between them before the app exists. The information-architect OWNS the domain (so it derives the rubric); the design-system-guardian sits as the coherence memory, because where a thing goes must not fork the pattern the shipped surfaces already taught users. Three candidates, because the criteria trade off against each other — first-run discoverability, the daily-use path, and category convention pull in different directions and a single pass silently picks one.\",\n \"deliberation\": {\n \"workDomain\": \"information_architecture\",\n \"reviewerRoleRefs\": [\"information-architect\", \"design-system-guardian\"],\n \"coordinatorRoleRef\": \"design-system-guardian\",\n \"rubricDeriverRoleRef\": \"information-architect\",\n \"candidateCount\": 3\n }\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.compliance-document-candidate/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgErB,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/refinement.compliance-document-candidate/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgErB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.compliance-document-candidate/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,0CAA0C;IACjD,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,gaAAga;IAC1a,eAAe,EAAE;QACf;YACE;;;;;;;;;;;;;;;;;;;;;eAqBG;YACH,MAAM,EAAE,mBAAmB;YAC3B,UAAU,EAAE;gBACV,QAAQ,EAAE,gBAAgB;aAC3B;SACF;KACF;IACD,QAAQ,EAAE;QACR;YACE,QAAQ,EAAE,gBAAgB;SAC3B;KACF;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,+BAA+B;YACzC,WAAW,EAAE,iDAAiD;YAC9D,aAAa,EAAE,0TAA0T;SAC1U;KACF;IACD,QAAQ,EAAE;QACR,kBAAkB,EAAE,glCAAglC;QACpmC,gBAAgB,EAAE,CAAC,oBAAoB,CAAC;QACxC,qBAAqB,EAAE,wYAAwY;QAC/Z,mBAAmB,EAAE,IAAI;QACzB,8BAA8B,EAAE,CAAC,0BAA0B,CAAC;QAC5D,WAAW,EAAE;YACX,+BAA+B;SAChC;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * Migrated from the retired JSON-v1 authoring format at the first-activation\n * hard cut (same ref@version — the companion's assurance-document candidate\n * preparation pins `refinement.compliance-document-candidate@0.1.0` in the\n * installed Framework Knowledge and fails closed without it). This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"refinement.compliance-document-candidate\",\n \"version\": \"0.2.0\",\n \"phase\": \"refinement\",\n \"intent\": \"Propose structured privacy-notice or service-terms candidate content from the application's accepted document facts. The companion agent may draft prose but cannot invent a fact, decide a legal question, approve, release or publish the document: every clause it writes is checked against the `document-facts` family, and a clause asserting a fact the application never declared is refused before it becomes a file.\",\n \"preconditions\": [\n {\n /*\n * The facts this draft SHOULD rest on — expected first, never a gate.\n *\n * Three revisions, and the middle one is the instructive part:\n *\n * 1. Until 2026-08-28 this gated on `compliance-document-fact-projection`, a host-computed\n * projection sealed with a projector identity, source-head digests and per-contribution\n * authority receipts. `artifact_valid` reads LANDED families and a host-computed projection\n * never lands, so the precondition could never be satisfied: this playbook, and with it the\n * whole `refinement` phase, was permanently ineligible from the day it was authored, and\n * nothing reported it because an ineligible playbook never reaches the board. The projection\n * went with the digest demolition (`.claude/rules/one-source-of-truth.md`, Rule 0).\n * 2. It was then re-gated onto `document-facts` with `artifact_valid`, which made it reachable\n * — and blocking. That is the wrong posture for a compliance document: an application must be\n * able to produce its privacy notice today, with the statements it cannot yet establish\n * marked incomplete, and complete them later. A document nobody can produce is worth less\n * than one that states precisely what is missing.\n * 3. `artifact_expected` (SEQUENCING) says facts come first while letting a human run proceed\n * past it. What the old projection PROTECTED — a document may not assert what nobody\n * established — is unaffected: it is a cross-reference check between this draft and the\n * facts file, run before the write, and it refuses INVENTION rather than incompleteness.\n */\n \"kind\": \"artifact_expected\",\n \"selector\": {\n \"family\": \"document-facts\"\n }\n }\n ],\n \"inputs\": [\n {\n \"family\": \"document-facts\"\n }\n ],\n \"outputs\": [\n {\n \"family\": \"compliance-document-candidate\",\n \"schemaRef\": \"saas-specifications:ComplianceDocumentCandidate\",\n \"description\": \"An untrusted structured content proposal that lands as a FILE for a human to read and commit. Its clauses are validated against the application's accepted document facts before the write; landing is never an approval, a release or a publication. Nothing is sealed \\u2014 the draft is accepted by being committed.\"\n }\n ],\n \"method\": {\n \"//contextSources\": \"DOCUMENT_BLUEPRINT \\u2014 this playbook DRAFTS a governed document, and the catalog is the only thing that says what one must contain. Measured 2026-08-30: `document-definition:public.privacy-notice` requires eight facts; wonder-crm's generated notice declared twenty and matched NONE of them, scoring zero dangling citations throughout \\u2014 internally consistent, and addressing none of what a privacy notice is obliged to address. The catalog had held the answer since it was written and had no runtime lookup of any kind, while this playbook's own skill instructed the drafter to \\\"Read the definition and blueprint\\\": a step it was told to perform and given nothing to perform it on. Deliberately NOT COMPLIANCE_PRIMARY_FACTS: that source carries raw resource declarations and belongs to `refinement.document-facts`, which declares it. A drafter given mechanism directly could write a clause resting on something the application never DECLARED, which is precisely what the fact-binding check exists to refuse \\u2014 this playbook reads the declared `document-facts` family and nothing beneath it.\",\n \"contextSources\": [\"document_blueprint\"],\n \"//briefAdequacyGate\": \"The #254 pilot (decision 2026-09-02, built 2026-09-04): this lane is where both recorded promise-gap defects lived, and its context needs vary per document. The gate judges the composed brief once; INSUFFICIENT adds proposed sources for this run only. The exclusion carries the //contextSources boundary above into the mechanism: the gate may never hand this drafter raw resource mechanism.\",\n \"briefAdequacyGate\": true,\n \"briefAdequacyExcludedSources\": [\"compliance_primary_facts\"],\n \"skillRefs\": [\n \"compliance-document-authoring\"\n ]\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/refinement.compliance-document-candidate/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,0CAA0C;IACjD,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,gaAAga;IAC1a,eAAe,EAAE;QACf;YACE;;;;;;;;;;;;;;;;;;;;;eAqBG;YACH,MAAM,EAAE,mBAAmB;YAC3B,UAAU,EAAE;gBACV,QAAQ,EAAE,gBAAgB;aAC3B;SACF;KACF;IACD,QAAQ,EAAE;QACR;YACE,QAAQ,EAAE,gBAAgB;SAC3B;KACF;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,+BAA+B;YACzC,WAAW,EAAE,iDAAiD;YAC9D,aAAa,EAAE,0TAA0T;SAC1U;KACF;IACD,QAAQ,EAAE;QACR,kBAAkB,EAAE,glCAAglC;QACpmC,gBAAgB,EAAE,CAAC,oBAAoB,CAAC;QACxC,qBAAqB,EAAE,wYAAwY;QAC/Z,mBAAmB,EAAE,IAAI;QACzB,8BAA8B,EAAE,CAAC,0BAA0B,CAAC;QAC5D,WAAW,EAAE;YACX,+BAA+B;SAChC;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * Migrated from the retired JSON-v1 authoring format at the first-activation\n * hard cut (same ref@version — the companion's assurance-document candidate\n * preparation pins `refinement.compliance-document-candidate@0.1.0` in the\n * installed Framework Knowledge and fails closed without it). This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition =\n{\n \"ref\": \"refinement.compliance-document-candidate\",\n \"version\": \"0.2.0\",\n \"phase\": \"refinement\",\n \"intent\": \"Propose structured privacy-notice or service-terms candidate content from the application's accepted document facts. The companion agent may draft prose but cannot invent a fact, decide a legal question, approve, release or publish the document: every clause it writes is checked against the `document-facts` family, and a clause asserting a fact the application never declared is refused before it becomes a file.\",\n \"preconditions\": [\n {\n /*\n * The facts this draft SHOULD rest on — expected first, never a gate.\n *\n * Three revisions, and the middle one is the instructive part:\n *\n * 1. Until 2026-08-28 this gated on `compliance-document-fact-projection`, a host-computed\n * projection sealed with a projector identity, source-head digests and per-contribution\n * authority receipts. `artifact_valid` reads LANDED families and a host-computed projection\n * never lands, so the precondition could never be satisfied: this playbook, and with it the\n * whole `refinement` phase, was permanently ineligible from the day it was authored, and\n * nothing reported it because an ineligible playbook never reaches the board. The projection\n * went with the digest demolition (`.claude/rules/one-source-of-truth.md`, Rule 0).\n * 2. It was then re-gated onto `document-facts` with `artifact_valid`, which made it reachable\n * — and blocking. That is the wrong posture for a compliance document: an application must be\n * able to produce its privacy notice today, with the statements it cannot yet establish\n * marked incomplete, and complete them later. A document nobody can produce is worth less\n * than one that states precisely what is missing.\n * 3. `artifact_expected` (SEQUENCING) says facts come first while letting a human run proceed\n * past it. What the old projection PROTECTED — a document may not assert what nobody\n * established — is unaffected: it is a cross-reference check between this draft and the\n * facts file, run before the write, and it refuses INVENTION rather than incompleteness.\n */\n \"kind\": \"artifact_expected\",\n \"selector\": {\n \"family\": \"document-facts\"\n }\n }\n ],\n \"inputs\": [\n {\n \"family\": \"document-facts\"\n }\n ],\n \"outputs\": [\n {\n \"family\": \"compliance-document-candidate\",\n \"schemaRef\": \"saas-specifications:ComplianceDocumentCandidate\",\n \"description\": \"An untrusted structured content proposal that lands as a FILE for a human to read and commit. Its clauses are validated against the application's accepted document facts before the write; landing is never an approval, a release or a publication. Nothing is sealed \\u2014 the draft is accepted by being committed.\"\n }\n ],\n \"method\": {\n \"//contextSources\": \"DOCUMENT_BLUEPRINT \\u2014 this playbook DRAFTS a governed document, and the catalog is the only thing that says what one must contain. Measured 2026-08-30: `document-definition:public.privacy-notice` requires eight facts; wonder-crm's generated notice declared twenty and matched NONE of them, scoring zero dangling citations throughout \\u2014 internally consistent, and addressing none of what a privacy notice is obliged to address. The catalog had held the answer since it was written and had no runtime lookup of any kind, while this playbook's own skill instructed the drafter to \\\"Read the definition and blueprint\\\": a step it was told to perform and given nothing to perform it on. Deliberately NOT COMPLIANCE_PRIMARY_FACTS: that source carries raw resource declarations and belongs to `refinement.document-facts`, which declares it. A drafter given mechanism directly could write a clause resting on something the application never DECLARED, which is precisely what the fact-binding check exists to refuse \\u2014 this playbook reads the declared `document-facts` family and nothing beneath it.\",\n \"contextSources\": [\"document_blueprint\"],\n \"//briefAdequacyGate\": \"The #254 pilot (decision 2026-09-02, built 2026-09-04): this lane is where both recorded promise-gap defects lived, and its context needs vary per document. The gate judges the composed brief once; INSUFFICIENT adds proposed sources for this run only. The exclusion carries the //contextSources boundary above into the mechanism: the gate may never hand this drafter raw resource mechanism.\",\n \"briefAdequacyGate\": true,\n \"briefAdequacyExcludedSources\": [\"compliance_primary_facts\"],\n \"skillRefs\": [\n \"compliance-document-authoring\"\n ]\n },\n \"executor\": \"companion_agent\",\n \"approval\": \"approve_result\",\n \"budget\": {\n \"maxRuns\": 3\n },\n \"onFailure\": \"keep_and_flag\"\n} as const;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.document-facts/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4F+G,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/refinement.document-facts/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4F+G,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/refinement.document-facts/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,2BAA2B;IAChC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,UAAU;IACpC,MAAM,EACJ,i2BAAi2B;IACn2B,aAAa,EAAE;QACb;;;;;;;;;;;;;;;WAeG;QACH;;;;;;WAMG;QACH,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QACzF;;;;WAIG;QACH,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE;KACzF;IACD,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;IAC3F,OAAO,EAAE,CAAC;YACR,MAAM,EAAE,gBAAgB;YACxB,SAAS,EAAE,0DAA0D;YACrE,WAAW,EACT,4XAA4X;SAC/X,CAAC;IACF,MAAM,EAAE;QACN;;;;;;;;;;;;;;;;;;;WAmBG;QACH;;;;;;;;;;;;;WAaG;QACH,cAAc,EAAE,CAAC,0BAA0B,CAAC,wBAAwB,EAAE,0BAA0B,CAAC,yBAAyB,CAAC;QAC3H,SAAS,EAAE,CAAC,gBAAgB,CAAC;KAC9B;IACD,QAAQ,EAAE,qBAAqB,CAAC,eAAe;IAC/C,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;IACtB,SAAS,EAAE,0BAA0B,CAAC,aAAa;IACnD;;;;OAIG;CACyI,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ContextSource,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * ## Why this playbook exists\n *\n * `refinement.compliance-document-candidate` drafts a governed document, and a governed document may\n * not assert anything about the application that nobody established. Until 2026-08-28 the fact set it\n * rested on was a HOST-COMPUTED projection sealed with a projector identity, source-head digests and\n * per-contribution authority receipts — none of it branchable on git, all of it deleted\n * (`.claude/rules/one-source-of-truth.md`, Rule 0).\n *\n * The candidate playbook was left gating on that projection, which is why it — and with it the whole\n * `refinement` phase — was permanently ineligible from the day it was authored until 2026-08-29: `artifact_valid` reads\n * LANDED families, and a host-computed projection never lands.\n *\n * This is the replacement, and it is deliberately ordinary: the facts become a FILE the application\n * commits, like every other family. What used to be enforced by a seal is now enforced by a pure\n * cross-reference check at the drafting boundary — a clause citing a fact this file does not declare\n * is refused before it can be written.\n */\nexport const playbookDefinition = {\n ref: 'refinement.document-facts',\n version: '0.1.0',\n phase: MetaWorkflow_Phase.REFINEMENT,\n intent:\n \"Derive the application's governed-document FACTS from truth it has already accepted — its vision (including the compliance regimes the posture pass recorded), its domain and its requirements — and land them as the `document-facts` family. A fact is a plain statement about how this application actually behaves: what data it holds, how long it keeps it, who it discloses to, what rights it honours. This produces the raw material a privacy notice or service terms is drafted FROM; it never drafts the document, never decides a legal question, and never states a fact the application's own code and accepted specifications do not support. Mechanism facts — retention treatment, data-subject kind, subject export — are read from the resource configurations, which declare what the application will actually do to a row; specifications supply purpose, not mechanism.\",\n preconditions: [\n /*\n * This playbook was where the phase gate was first found, and the last place it was patched.\n *\n * It gated on `PHASE_IS: REFINEMENT` from the day it was authored, and `deriveJourneyPhase`\n * returned only TOP_DOWN or BOTTOM_UP — so the precondition could never be satisfied and the\n * unattended loop could never select it, while nothing reported it, because an ineligible playbook\n * never reaches the eligibility board (#116). The gate was removed here, and the reasoning offered\n * for removing it applied to all nineteen: gate on the ARTIFACTS a pass actually needs, not on a\n * phase — an evolving application is not in a phase, it is in a STATE, and the state is the tree.\n *\n * The whole mechanism went on 2026-09-04. `PHASE_IS` no longer exists, so its absence here is no\n * longer a decision this playbook makes.\n *\n * The two `ARTIFACT_VALID` gates below are, and always were, the real readiness requirement:\n * nothing about when this pass is SAFE to run depended on the phase.\n */\n /*\n * The vision is required rather than merely declared: `top_down.compliance-posture` records each\n * applicable regime as a `compliance`-kind constraint there, and those constraints are what tell\n * this pass WHICH facts a later document will need. A derivation with no regime in view produces a\n * plausible generic fact set — the exact failure `compliance-document-system.md` forbids (\"do not\n * generate legal text from a generic SaaS category when application facts are absent\").\n */\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n /*\n * The domain plan is where the application's resources and their data actually live. Retention,\n * data categories and disclosure facts are read from it; without it this pass would be inventing\n * what the product stores.\n */\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'domain-plan' } },\n ],\n inputs: [{ family: 'vision-brief' }, { family: 'domain-plan' }, { family: 'requirements' }],\n outputs: [{\n family: 'document-facts',\n schemaRef: 'saas-specifications:ApplicationDocumentFactSpecification',\n description:\n \"The application's declared governed-document facts, one declaration per fact, each either KNOWN with its value or NOT_APPLICABLE with a reason. Authority is APPLICATION_SPECIFICATION throughout: these are facts the application's own accepted specifications establish. A fact needing a named human decision is deliberately ABSENT rather than dressed in an authority nobody holds.\",\n }],\n method: {\n /*\n * The resource declarations reach the brief through this, and nothing else does.\n *\n * This playbook's intent and its method have said since the day they were authored that mechanism\n * facts \"are read from the resource configurations\". They were not: the `compliance-primary-facts`\n * behavior existed and answered correctly, and no playbook declared it, so the derivation the\n * method describes could not happen. Its first live run (wonder-crm, 2026-08-29) landed two facts,\n * both paraphrased from vision prose, neither citing a declaration — a schema-valid artifact that\n * was wrong about where it came from, which is the one failure mode a governed document cannot\n * survive.\n *\n * NOT `WORKSPACE_TRUTH`: that section carries module ids and schema FIELD NAMES for a build\n * planner. A field's name says nothing about whether erasing its subject scrubs it.\n *\n * The run immediately after wiring it landed a fact reading \"contact records are retained and\n * impersonalized on erasure; workspace, workspace-member, company, pipeline-stage, deal, next-step\n * and interaction are declared RETAIN_ONLY\" — per resource, from the declarations. The run before\n * it, on the same application and the same method prose, had produced two paraphrases of the\n * vision. Nothing about the guidance changed; the evidence arrived.\n */\n /*\n * DOCUMENT_FACT_OBLIGATIONS supplies the second half, and it is the one this playbook had never\n * been given: the NAMES.\n *\n * COMPLIANCE_PRIMARY_FACTS made the answers true — the run after wiring it landed a per-resource\n * erasure fact instead of two paraphrases of the vision. It did nothing about what those answers\n * are CALLED, and a fact's ref is stamped from the slug this playbook chooses. Measured 2026-08-30:\n * twenty facts declared, ZERO of the eight a privacy notice requires, because the names were\n * semantically adjacent and lexically disjoint. True answers, uncitable.\n *\n * The method below already asks for stable descriptive slugs and names three of the eight as\n * examples, and has since 2026-08-28. That is prose, and the churn was measured with it in place.\n * This supplies the closed set itself, which the engine catalog has held all along.\n */\n contextSources: [MetaWorkflow_ContextSource.COMPLIANCE_PRIMARY_FACTS, MetaWorkflow_ContextSource.DOCUMENT_FACT_OBLIGATIONS],\n skillRefs: ['journey-status'],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n /*\n * `guidance` is deliberately absent: the method prose is the single source of truth in `method.md`,\n * and the generator renders it (partials + references expanded) and injects it as `method.guidance`.\n * Declaring it here would be a second copy that drifts — the folder contract rejects an inline one.\n */\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/refinement.document-facts/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,2BAA2B;IAChC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,UAAU;IACpC,MAAM,EACJ,i2BAAi2B;IACn2B,aAAa,EAAE;QACb;;;;;;;;;;;;;;;WAeG;QACH;;;;;;WAMG;QACH,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;QACzF;;;;WAIG;QACH,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE;KACzF;IACD,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;IAC3F,OAAO,EAAE,CAAC;YACR,MAAM,EAAE,gBAAgB;YACxB,SAAS,EAAE,0DAA0D;YACrE,WAAW,EACT,4XAA4X;SAC/X,CAAC;IACF,MAAM,EAAE;QACN;;;;;;;;;;;;;;;;;;;WAmBG;QACH;;;;;;;;;;;;;WAaG;QACH,cAAc,EAAE,CAAC,0BAA0B,CAAC,wBAAwB,EAAE,0BAA0B,CAAC,yBAAyB,CAAC;QAC3H,SAAS,EAAE,CAAC,gBAAgB,CAAC;KAC9B;IACD,QAAQ,EAAE,qBAAqB,CAAC,eAAe;IAC/C,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;IACtB,SAAS,EAAE,0BAA0B,CAAC,aAAa;IACnD;;;;OAIG;CACyI,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ContextSource,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * ## Why this playbook exists\n *\n * `refinement.compliance-document-candidate` drafts a governed document, and a governed document may\n * not assert anything about the application that nobody established. Until 2026-08-28 the fact set it\n * rested on was a HOST-COMPUTED projection sealed with a projector identity, source-head digests and\n * per-contribution authority receipts — none of it branchable on git, all of it deleted\n * (`.claude/rules/one-source-of-truth.md`, Rule 0).\n *\n * The candidate playbook was left gating on that projection, which is why it — and with it the whole\n * `refinement` phase — was permanently ineligible from the day it was authored until 2026-08-29: `artifact_valid` reads\n * LANDED families, and a host-computed projection never lands.\n *\n * This is the replacement, and it is deliberately ordinary: the facts become a FILE the application\n * commits, like every other family. What used to be enforced by a seal is now enforced by a pure\n * cross-reference check at the drafting boundary — a clause citing a fact this file does not declare\n * is refused before it can be written.\n */\nexport const playbookDefinition = {\n ref: 'refinement.document-facts',\n version: '0.1.0',\n phase: MetaWorkflow_Phase.REFINEMENT,\n intent:\n \"Derive the application's governed-document FACTS from truth it has already accepted — its vision (including the compliance regimes the posture pass recorded), its domain and its requirements — and land them as the `document-facts` family. A fact is a plain statement about how this application actually behaves: what data it holds, how long it keeps it, who it discloses to, what rights it honours. This produces the raw material a privacy notice or service terms is drafted FROM; it never drafts the document, never decides a legal question, and never states a fact the application's own code and accepted specifications do not support. Mechanism facts — retention treatment, data-subject kind, subject export — are read from the resource configurations, which declare what the application will actually do to a row; specifications supply purpose, not mechanism.\",\n preconditions: [\n /*\n * This playbook was where the phase gate was first found, and the last place it was patched.\n *\n * It gated on `PHASE_IS: REFINEMENT` from the day it was authored, and `deriveJourneyPhase`\n * returned only TOP_DOWN or BOTTOM_UP — so the precondition could never be satisfied and the\n * unattended loop could never select it, while nothing reported it, because an ineligible playbook\n * never reaches the eligibility board (#116). The gate was removed here, and the reasoning offered\n * for removing it applied to all nineteen: gate on the ARTIFACTS a pass actually needs, not on a\n * phase — an evolving application is not in a phase, it is in a STATE, and the state is the tree.\n *\n * The whole mechanism went on 2026-09-04. `PHASE_IS` no longer exists, so its absence here is no\n * longer a decision this playbook makes.\n *\n * The two `ARTIFACT_VALID` gates below are, and always were, the real readiness requirement:\n * nothing about when this pass is SAFE to run depended on the phase.\n */\n /*\n * The vision is required rather than merely declared: `top_down.compliance-posture` records each\n * applicable regime as a `compliance`-kind constraint there, and those constraints are what tell\n * this pass WHICH facts a later document will need. A derivation with no regime in view produces a\n * plausible generic fact set — the exact failure `compliance-document-system.md` forbids (\"do not\n * generate legal text from a generic SaaS category when application facts are absent\").\n */\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n /*\n * The domain plan is where the application's resources and their data actually live. Retention,\n * data categories and disclosure facts are read from it; without it this pass would be inventing\n * what the product stores.\n */\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'domain-plan' } },\n ],\n inputs: [{ family: 'vision-brief' }, { family: 'domain-plan' }, { family: 'requirements' }],\n outputs: [{\n family: 'document-facts',\n schemaRef: 'saas-specifications:ApplicationDocumentFactSpecification',\n description:\n \"The application's declared governed-document facts, one declaration per fact, each either KNOWN with its value or NOT_APPLICABLE with a reason. Authority is APPLICATION_SPECIFICATION throughout: these are facts the application's own accepted specifications establish. A fact needing a named human decision is deliberately ABSENT rather than dressed in an authority nobody holds.\",\n }],\n method: {\n /*\n * The resource declarations reach the brief through this, and nothing else does.\n *\n * This playbook's intent and its method have said since the day they were authored that mechanism\n * facts \"are read from the resource configurations\". They were not: the `compliance-primary-facts`\n * behavior existed and answered correctly, and no playbook declared it, so the derivation the\n * method describes could not happen. Its first live run (wonder-crm, 2026-08-29) landed two facts,\n * both paraphrased from vision prose, neither citing a declaration — a schema-valid artifact that\n * was wrong about where it came from, which is the one failure mode a governed document cannot\n * survive.\n *\n * NOT `WORKSPACE_TRUTH`: that section carries module ids and schema FIELD NAMES for a build\n * planner. A field's name says nothing about whether erasing its subject scrubs it.\n *\n * The run immediately after wiring it landed a fact reading \"contact records are retained and\n * impersonalized on erasure; workspace, workspace-member, company, pipeline-stage, deal, next-step\n * and interaction are declared RETAIN_ONLY\" — per resource, from the declarations. The run before\n * it, on the same application and the same method prose, had produced two paraphrases of the\n * vision. Nothing about the guidance changed; the evidence arrived.\n */\n /*\n * DOCUMENT_FACT_OBLIGATIONS supplies the second half, and it is the one this playbook had never\n * been given: the NAMES.\n *\n * COMPLIANCE_PRIMARY_FACTS made the answers true — the run after wiring it landed a per-resource\n * erasure fact instead of two paraphrases of the vision. It did nothing about what those answers\n * are CALLED, and a fact's ref is stamped from the slug this playbook chooses. Measured 2026-08-30:\n * twenty facts declared, ZERO of the eight a privacy notice requires, because the names were\n * semantically adjacent and lexically disjoint. True answers, uncitable.\n *\n * The method below already asks for stable descriptive slugs and names three of the eight as\n * examples, and has since 2026-08-28. That is prose, and the churn was measured with it in place.\n * This supplies the closed set itself, which the engine catalog has held all along.\n */\n contextSources: [MetaWorkflow_ContextSource.COMPLIANCE_PRIMARY_FACTS, MetaWorkflow_ContextSource.DOCUMENT_FACT_OBLIGATIONS],\n skillRefs: ['journey-status'],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n /*\n * `guidance` is deliberately absent: the method prose is the single source of truth in `method.md`,\n * and the generator renders it (partials + references expanded) and injects it as `method.guidance`.\n * Declaring it here would be a second copy that drifts — the folder contract rejects an inline one.\n */\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.brand-identity/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FrB,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.brand-identity/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.brand-identity/playbook.definition.ts"],"names":[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iBACpB;gBACD;oBACE,KAAK,EAAE,YAAY;oBACnB,UAAU,EAAE,iLAAiL;oBAC7L,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,iBAAiB;oBACxB,UAAU,EAAE,oNAAoN;oBAChO,MAAM,EAAE,QAAQ;oBAChB,SAAS,EAAE,CAAC,sBAAsB,EAAE,aAAa,EAAE,kBAAkB,CAAC;iBACvE;gBACD;oBACE,KAAK,EAAE,uBAAuB;oBAC9B,UAAU,EAAE,yHAAyH;oBACrI,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,aAAa;oBACpB,UAAU,EAAE,qGAAqG;oBACjH,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,qBAAqB;oBAC5B,UAAU,EAAE,sJAAsJ;oBAClK,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,oBAAoB;oBAC3B,UAAU,EAAE,8KAA8K;oBAC1L,MAAM,EAAE,WAAW;iBACpB;aACF;SACF;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition = \n{\n \"ref\": \"top_down.brand-identity\",\n \"version\": \"0.1.1\",\n \"phase\": \"top_down\",\n \"intent\": \"Brand-identity elicitation: draw the product's VISUAL identity out of the creator — the brand name, the logo creative direction (mark type, motifs, symbolism, imagery don'ts, background), and the visual tone (style keywords, mood, color story) — and capture it as a single validated BrandSnapshot (the `brand-brief` artifact family). The visual counterpart to the vision (intent) and market (verbal voice) briefs: it derives symbolism from the VisionSnapshot's idea/mission and, when a MarketSnapshot exists, translates its verbal `tonesOfVoice` into a visual register. The emitted brand-brief is the INPUT the companion logo step generates the master logo + derived assets from, and via `BrandSnapshot.resolvedAssets` the single source of truth every logo/favicon/brand-image consumer resolves against. Progressive: may persist a partially-directed brand (logoDirection/visualTone optional) and resume. v1 scaffold methodology — iterate the interview.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"vision-brief\" } }\n ],\n \"inputs\": [\n { \"family\": \"vision-brief\" },\n { \"family\": \"market-snapshot\", \"intent\": \"voice\" },\n { \"family\": \"brand-brief\" }\n ],\n \"outputs\": [\n {\n \"family\": \"brand-brief\",\n \"schemaRef\": \"saas-specifications:BrandSnapshot\",\n \"description\": \"The visual-identity artifact — one BrandSnapshot per product (name + logo direction + visual tone; resolvedAssets left empty for the companion logo step to populate). Read by the companion logo generation step (which produces the master + derived assets) and, via resolvedAssets, by every downstream logo/favicon/brand-image consumer. Validated by validateBrandSnapshot.\"\n }\n ],\n \"method\": {\n \"skillRefs\": [\"journey-status\", \"brand-logo-authoring\"],\n \"elicitation\": {\n \"questions\": [\n {\n \"ref\": \"brand-name\",\n \"question\": \"What is the exact, case-sensitive brand name the logo should render (e.g. \\\"Northstar Tasks\\\")? This is the string every surface prints.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"brand-tagline\",\n \"question\": \"Is there a tagline / supporting line to lock up with the name (e.g. \\\"Ship the week, not the meeting.\\\")? Answer \\\"none\\\" if not.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"logo-mark-type\",\n \"question\": \"Which logo archetype fits the brand? A combination mark (symbol + wordmark) is the safe default — it yields both a header lockup and a square app icon.\",\n \"kind\": \"choice\",\n \"options\": [\"combination_mark\", \"wordmark\", \"lettermark\", \"pictorial_mark\", \"abstract_mark\", \"emblem\", \"mascot\"]\n },\n {\n \"ref\": \"logo-motifs\",\n \"question\": \"What concrete visual elements should the mark include (short noun phrases, e.g. \\\"a rising checkmark\\\", \\\"concentric rings\\\")? Answer \\\"none\\\" to leave it open.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"logo-symbolism\",\n \"question\": \"What meaning should the mark evoke (e.g. \\\"momentum\\\", \\\"clarity\\\", \\\"trust\\\")? Derive this from the product's mission / idea rather than inventing it.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"logo-avoid\",\n \"question\": \"What imagery should the mark AVOID (e.g. \\\"no gradients\\\", \\\"no literal robots\\\", \\\"no clip-art gears\\\")? These are the negative-prompt guardrails that keep the output usable.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"logo-background\",\n \"question\": \"How should the master logo be composed? A transparent, isolated mark is the default — it rasterizes cleanly into favicons and monochrome / dark-light variants. Choose otherwise only if the brand truly needs it.\",\n \"kind\": \"choice\",\n \"options\": [\"transparent_isolated\", \"solid_field\", \"contextual_scene\"]\n },\n {\n \"ref\": \"visual-style-keywords\",\n \"question\": \"In 3–7 concrete adjectives, what should the brand LOOK like (e.g. \\\"geometric\\\", \\\"minimal\\\", \\\"warm\\\", \\\"editorial\\\")?\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"visual-mood\",\n \"question\": \"In one sentence, what feeling should the imagery leave (e.g. \\\"calm, precise, quietly confident\\\")?\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"visual-color-intent\",\n \"question\": \"Describe the color story in prose (e.g. \\\"cool blues grounded by a warm accent\\\"). Prose, not hex — the concrete palette lives in the design system.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"visual-color-seeds\",\n \"question\": \"Has the brand already committed to specific hex colors that the mark must agree with? If so, list them; otherwise answer \\\"none\\\" and let the design system own the palette.\",\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"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/top_down.brand-identity/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,yBAAyB;IAChC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,07BAA07B;IACp8B,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;KACxE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,cAAc,EAAE;QAC5B,EAAE,QAAQ,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,EAAE;QAClD,EAAE,QAAQ,EAAE,aAAa,EAAE;KAC5B;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,aAAa;YACvB,WAAW,EAAE,mCAAmC;YAChD,aAAa,EAAE,oXAAoX;SACpY;KACF;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;QACvD,aAAa,EAAE;YACb,WAAW,EAAE;gBACX;oBACE,KAAK,EAAE,YAAY;oBACnB,UAAU,EAAE,0IAA0I;oBACtJ,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,eAAe;oBACtB,UAAU,EAAE,mIAAmI;oBAC/I,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,gBAAgB;oBACvB,UAAU,EAAE,yJAAyJ;oBACrK,MAAM,EAAE,QAAQ;oBAChB,SAAS,EAAE,CAAC,kBAAkB,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ,CAAC;iBACjH;gBACD;oBACE,KAAK,EAAE,aAAa;oBACpB,UAAU,EAAE,kKAAkK;oBAC9K,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,gBAAgB;oBACvB,UAAU,EAAE,yJAAyJ;oBACrK,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,YAAY;oBACnB,UAAU,EAAE,iLAAiL;oBAC7L,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,iBAAiB;oBACxB,UAAU,EAAE,oNAAoN;oBAChO,MAAM,EAAE,QAAQ;oBAChB,SAAS,EAAE,CAAC,sBAAsB,EAAE,aAAa,EAAE,kBAAkB,CAAC;iBACvE;gBACD;oBACE,KAAK,EAAE,uBAAuB;oBAC9B,UAAU,EAAE,yHAAyH;oBACrI,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,aAAa;oBACpB,UAAU,EAAE,qGAAqG;oBACjH,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,qBAAqB;oBAC5B,UAAU,EAAE,sJAAsJ;oBAClK,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,oBAAoB;oBAC3B,UAAU,EAAE,8KAA8K;oBAC1L,MAAM,EAAE,WAAW;iBACpB;aACF;SACF;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * Canonical native declaration for this reusable application-creation method.\n *\n * The structured method remains intentionally rich: its intent, inputs, output\n * contracts, elicitation, deterministic verification and skill routing are the\n * application knowledge a later generic assessment loop composes. This source\n * intentionally omits the superseded per-playbook evaluation-treatment object;\n * generation records that absence rather than fabricating legacy judge behavior.\n */\nexport const playbookDefinition = \n{\n \"ref\": \"top_down.brand-identity\",\n \"version\": \"0.1.1\",\n \"phase\": \"top_down\",\n \"intent\": \"Brand-identity elicitation: draw the product's VISUAL identity out of the creator — the brand name, the logo creative direction (mark type, motifs, symbolism, imagery don'ts, background), and the visual tone (style keywords, mood, color story) — and capture it as a single validated BrandSnapshot (the `brand-brief` artifact family). The visual counterpart to the vision (intent) and market (verbal voice) briefs: it derives symbolism from the VisionSnapshot's idea/mission and, when a MarketSnapshot exists, translates its verbal `tonesOfVoice` into a visual register. The emitted brand-brief is the INPUT the companion logo step generates the master logo + derived assets from, and via `BrandSnapshot.resolvedAssets` the single source of truth every logo/favicon/brand-image consumer resolves against. Progressive: may persist a partially-directed brand (logoDirection/visualTone optional) and resume. v1 scaffold methodology — iterate the interview.\",\n \"preconditions\": [\n { \"kind\": \"artifact_exists\", \"selector\": { \"family\": \"vision-brief\" } }\n ],\n \"inputs\": [\n { \"family\": \"vision-brief\" },\n { \"family\": \"market-snapshot\", \"intent\": \"voice\" },\n { \"family\": \"brand-brief\" }\n ],\n \"outputs\": [\n {\n \"family\": \"brand-brief\",\n \"schemaRef\": \"saas-specifications:BrandSnapshot\",\n \"description\": \"The visual-identity artifact — one BrandSnapshot per product (name + logo direction + visual tone; resolvedAssets left empty for the companion logo step to populate). Read by the companion logo generation step (which produces the master + derived assets) and, via resolvedAssets, by every downstream logo/favicon/brand-image consumer. Validated by validateBrandSnapshot.\"\n }\n ],\n \"method\": {\n \"skillRefs\": [\"journey-status\", \"brand-logo-authoring\"],\n \"elicitation\": {\n \"questions\": [\n {\n \"ref\": \"brand-name\",\n \"question\": \"What is the exact, case-sensitive brand name the logo should render (e.g. \\\"Northstar Tasks\\\")? This is the string every surface prints.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"brand-tagline\",\n \"question\": \"Is there a tagline / supporting line to lock up with the name (e.g. \\\"Ship the week, not the meeting.\\\")? Answer \\\"none\\\" if not.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"logo-mark-type\",\n \"question\": \"Which logo archetype fits the brand? A combination mark (symbol + wordmark) is the safe default — it yields both a header lockup and a square app icon.\",\n \"kind\": \"choice\",\n \"options\": [\"combination_mark\", \"wordmark\", \"lettermark\", \"pictorial_mark\", \"abstract_mark\", \"emblem\", \"mascot\"]\n },\n {\n \"ref\": \"logo-motifs\",\n \"question\": \"What concrete visual elements should the mark include (short noun phrases, e.g. \\\"a rising checkmark\\\", \\\"concentric rings\\\")? Answer \\\"none\\\" to leave it open.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"logo-symbolism\",\n \"question\": \"What meaning should the mark evoke (e.g. \\\"momentum\\\", \\\"clarity\\\", \\\"trust\\\")? Derive this from the product's mission / idea rather than inventing it.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"logo-avoid\",\n \"question\": \"What imagery should the mark AVOID (e.g. \\\"no gradients\\\", \\\"no literal robots\\\", \\\"no clip-art gears\\\")? These are the negative-prompt guardrails that keep the output usable.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"logo-background\",\n \"question\": \"How should the master logo be composed? A transparent, isolated mark is the default — it rasterizes cleanly into favicons and monochrome / dark-light variants. Choose otherwise only if the brand truly needs it.\",\n \"kind\": \"choice\",\n \"options\": [\"transparent_isolated\", \"solid_field\", \"contextual_scene\"]\n },\n {\n \"ref\": \"visual-style-keywords\",\n \"question\": \"In 3–7 concrete adjectives, what should the brand LOOK like (e.g. \\\"geometric\\\", \\\"minimal\\\", \\\"warm\\\", \\\"editorial\\\")?\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"visual-mood\",\n \"question\": \"In one sentence, what feeling should the imagery leave (e.g. \\\"calm, precise, quietly confident\\\")?\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"visual-color-intent\",\n \"question\": \"Describe the color story in prose (e.g. \\\"cool blues grounded by a warm accent\\\"). Prose, not hex — the concrete palette lives in the design system.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"visual-color-seeds\",\n \"question\": \"Has the brand already committed to specific hex colors that the mark must agree with? If so, list them; otherwise answer \\\"none\\\" and let the design system own the palette.\",\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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.business-model/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2E+G,CAAC;AAE/I,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHW,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.business-model/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2E+G,CAAC;AAE/I,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.business-model/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,GACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC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,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ElicitationQuestionKind,\n MetaWorkflow_ArtifactIntent,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.business-model',\n version: '0.1.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n \"Turn the accepted market and requirements truth, plus the creator's own pricing intent, into a non-vacuous BusinessModelLiteSnapshot: the product-level revenue model and a sketch of pricing plans, each cross-linked to the market ICPs it is sold to and the requirements it unlocks. A PLANNING artifact carrying commercial INTENT — never the billing runtime, and never a price the creator did not state.\",\n preconditions: [\n // The two families whose refs this artifact cross-links. `requirements` is required rather than\n // merely declared because `includesRequirementRefs` is the traceability the foundation reads to\n // derive the billing capability — a plan that unlocks nothing nameable teaches it nothing.\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n ],\n inputs: [{ family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.AUDIENCE }, { family: 'requirements' }, { family: 'vision-brief' }],\n outputs: [{\n family: 'business-model',\n schemaRef: 'saas-specifications:BusinessModelLiteSnapshot',\n description: 'A validated revenue-model classification plus at least one pricing plan, each cross-linked to the market ICPs it targets and the requirements it unlocks.',\n }],\n method: {\n skillRefs: ['journey-status'],\n /*\n * The ONE family in the top-down set whose content a derivation cannot honestly infer.\n *\n * Vision, market, requirements and roadmap are all DERIVED from truth the creator already gave.\n * How a product charges is not derivable from any of them — the same product is a fair freemium\n * tool, a per-seat B2B subscription, or a usage-metered API, and nothing in the vision decides\n * which. A model asked to guess produces a plausible price the creator never chose, which then\n * propagates: `bottom_up.foundation` derives the billing capability from it.\n *\n * So this playbook INTERVIEWS. The questions are deliberately few and coarse — this is a sketch,\n * not a pricing exercise — and the creator can answer \"not decided yet\" to the last two, which is\n * itself a real answer the artifact should carry rather than a gap the model fills in.\n */\n elicitation: {\n questions: [\n {\n ref: 'revenue-model',\n question:\n 'How does this product make money? Choose the closest fit — a sketch, not a commitment.',\n kind: MetaWorkflow_ElicitationQuestionKind.CHOICE,\n options: ['subscription', 'usage_based', 'one_time_purchase', 'freemium', 'marketplace_commission', 'advertising'],\n },\n {\n ref: 'pricing-tiers',\n question:\n 'What tiers or packages do you plan to sell? Name each one and say who it is for. Answer \"one tier\" if there is only one.',\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT,\n },\n {\n ref: 'pricing-scaling-axis',\n question:\n 'What does the price scale with — seats, usage, a flat fee, or is it negotiated per customer? Answer \"not decided yet\" if you have not chosen.',\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT,\n },\n {\n ref: 'price-points',\n question:\n 'Do you already have price points in mind for those tiers? Give them as you would write them (\"$29 / user / month\", \"contact us\"). Answer \"not decided yet\" if not — a tier with no price is still a real plan.',\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT,\n },\n {\n ref: 'free-tier',\n question:\n 'Is there a free tier or trial? If so, what does it include, and what is deliberately held back for the paid tiers?',\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT,\n },\n ],\n },\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/business-model',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/business-model',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-product-business-model',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-vision-brief',\n ],\n outcomeContractRefs: ['application-creation:output-contract/business-model-lite-snapshot'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifacts-before-acceptance',\n allowedCapabilityClassRefs: ['meta-workflow:capability-class/structured-artifact-generation'],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: 'application-creation:authority-requirement/business-model-result',\n budgetPolicyRef: 'application-creation:budget-policy/business-model',\n continuationPolicyRef: 'application-creation:continuation-policy/business-model',\n decisionPointDefinitionRefs: ['application-creation:decision-point/business-model-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: { contractRef: 'application-creation:input-projection/accepted-market-and-vision-definition-set', contractVersion: 1 },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/business-model-lite-snapshot-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/business-model-lite-snapshot-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/business-model-lite-snapshot',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/business-model-lite-snapshot', schemaVersion: 1 },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: { contractRef: 'saas-specifications:validator/business-model-lite-snapshot', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-specification-family-snapshot'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [MetaWorkflow_FailureDisposition.FAIL_BINDING, MetaWorkflow_FailureDisposition.REQUEST_INPUT, MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/business-model',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/business-model',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [MetaWorkflow_EvaluationVerdict.GAP, MetaWorkflow_EvaluationVerdict.INDETERMINATE, MetaWorkflow_EvaluationVerdict.CONCERN, MetaWorkflow_EvaluationVerdict.PASS],\n aggregationPolicyRef: 'application-creation:aggregation/worst-business-model-verdict',\n criteria: [{\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/business-model-grounding-and-plan-coherence',\n criterionVersion: 1,\n instruction: 'Assess whether the business model is GROUNDED in what the creator actually stated and coherent with the accepted market and requirements truth: every plan traceable to the interview, every targeted ICP present in the market snapshot, every unlocked requirement present in the requirements snapshot, and the revenue model consistent with the plans beneath it. Treat an invented price, an invented tier, or a price the creator said was undecided as a GAP — this family exists to carry the creator\\'s commercial intent, not the evaluator\\'s.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/business-model-grounding-and-plan-coherence',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/market-vision-and-business-model-candidate',\n minCount: 4,\n maxCount: 5,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-business-model-inputs-and-candidate',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-action-binding',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every plan traces to what the creator stated, and the cross-links resolve against the accepted market and requirements truth.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The model is usable but carries explicit commercial uncertainty the creator left open.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A plan, price or tier appears that the creator did not state, or a cross-link names an ICP or requirement that does not exist.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The interview answers or the accepted market/requirements evidence are absent, stale or insufficient.',\n },\n }],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/business-model',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: { outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate', outputContractVersion: 1 },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/business-model-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/business-model-lite-snapshot-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/business-model-lite-snapshot-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/current-horizon-business-model-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/business-model-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-business-model-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{ hardFloorRef: 'application-creation:hard-floor/business-model-lite-snapshot-valid', evidenceRequirementRefs: ['application-creation:evidence-requirement/business-model-grounding-and-plan-coherence'] }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/business-model-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-business-model-lite-snapshot',\n riskClassRef: 'application-creation:risk/business-model-accepted-family-mutation',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: ['application-creation:evidence-requirement/business-model-grounding-and-plan-coherence'],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/business-model',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/top_down.business-model/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,GACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,yBAAyB;IAC9B,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,mZAAmZ;IACrZ,aAAa,EAAE;QACb,gGAAgG;QAChG,gGAAgG;QAChG,2FAA2F;QAC3F,EAAE,IAAI,E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,kBAAkB,EAAE,6DAA6D;QACjF,gBAAgB,EAAE,uDAAuD;QACzE,kBAAkB,EAAE,IAAI;QACxB,oBAAoB,EAAE,kCAAkC,CAAC,8BAA8B;QACvF,gBAAgB,EAAE,oCAAoC,CAAC,gBAAgB;QACvE,gBAAgB,EAAE,CAAC,wCAAwC,CAAC,eAAe,CAAC;QAC5E,+BAA+B,EAAE,CAAC,uFAAuF,CAAC;QAC1H,eAAe,EAAE,iEAAiE;QAClF,cAAc,EAAE,yDAAyD;QACzE,gBAAgB,EAAE,6BAA6B,CAAC,YAAY;QAC5D,wBAAwB,EAAE,KAAK;KAChC;IACD,kBAAkB,EAAE;QAClB,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,yDAAyD;QACpE,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE;YACR,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;YACpH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAAE,+BAA+B,CAAC,MAAM,EAAE;YAChH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,EAAE,+BAA+B,CAAC,gBAAgB,EAAE;YACpI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,iBAAiB,EAAE,MAAM,EAAE,+BAA+B,CAAC,iBAAiB,EAAE;YACtI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ElicitationQuestionKind,\n MetaWorkflow_ArtifactIntent,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.business-model',\n version: '0.1.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n \"Turn the accepted market and requirements truth, plus the creator's own pricing intent, into a non-vacuous BusinessModelLiteSnapshot: the product-level revenue model and a sketch of pricing plans, each cross-linked to the market ICPs it is sold to and the requirements it unlocks. A PLANNING artifact carrying commercial INTENT — never the billing runtime, and never a price the creator did not state.\",\n preconditions: [\n // The two families whose refs this artifact cross-links. `requirements` is required rather than\n // merely declared because `includesRequirementRefs` is the traceability the foundation reads to\n // derive the billing capability — a plan that unlocks nothing nameable teaches it nothing.\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n ],\n inputs: [{ family: 'market-snapshot', intent: MetaWorkflow_ArtifactIntent.AUDIENCE }, { family: 'requirements' }, { family: 'vision-brief' }],\n outputs: [{\n family: 'business-model',\n schemaRef: 'saas-specifications:BusinessModelLiteSnapshot',\n description: 'A validated revenue-model classification plus at least one pricing plan, each cross-linked to the market ICPs it targets and the requirements it unlocks.',\n }],\n method: {\n skillRefs: ['journey-status'],\n /*\n * The ONE family in the top-down set whose content a derivation cannot honestly infer.\n *\n * Vision, market, requirements and roadmap are all DERIVED from truth the creator already gave.\n * How a product charges is not derivable from any of them — the same product is a fair freemium\n * tool, a per-seat B2B subscription, or a usage-metered API, and nothing in the vision decides\n * which. A model asked to guess produces a plausible price the creator never chose, which then\n * propagates: `bottom_up.foundation` derives the billing capability from it.\n *\n * So this playbook INTERVIEWS. The questions are deliberately few and coarse — this is a sketch,\n * not a pricing exercise — and the creator can answer \"not decided yet\" to the last two, which is\n * itself a real answer the artifact should carry rather than a gap the model fills in.\n */\n elicitation: {\n questions: [\n {\n ref: 'revenue-model',\n question:\n 'How does this product make money? Choose the closest fit — a sketch, not a commitment.',\n kind: MetaWorkflow_ElicitationQuestionKind.CHOICE,\n options: ['subscription', 'usage_based', 'one_time_purchase', 'freemium', 'marketplace_commission', 'advertising'],\n },\n {\n ref: 'pricing-tiers',\n question:\n 'What tiers or packages do you plan to sell? Name each one and say who it is for. Answer \"one tier\" if there is only one.',\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT,\n },\n {\n ref: 'pricing-scaling-axis',\n question:\n 'What does the price scale with — seats, usage, a flat fee, or is it negotiated per customer? Answer \"not decided yet\" if you have not chosen.',\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT,\n },\n {\n ref: 'price-points',\n question:\n 'Do you already have price points in mind for those tiers? Give them as you would write them (\"$29 / user / month\", \"contact us\"). Answer \"not decided yet\" if not — a tier with no price is still a real plan.',\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT,\n },\n {\n ref: 'free-tier',\n question:\n 'Is there a free tier or trial? If so, what does it include, and what is deliberately held back for the paid tiers?',\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT,\n },\n ],\n },\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/business-model',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/business-model',\n actionVersion: 1,\n intentRef: 'application-creation:intent/derive-product-business-model',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-vision-brief',\n ],\n outcomeContractRefs: ['application-creation:output-contract/business-model-lite-snapshot'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifacts-before-acceptance',\n allowedCapabilityClassRefs: ['meta-workflow:capability-class/structured-artifact-generation'],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: 'application-creation:authority-requirement/business-model-result',\n budgetPolicyRef: 'application-creation:budget-policy/business-model',\n continuationPolicyRef: 'application-creation:continuation-policy/business-model',\n decisionPointDefinitionRefs: ['application-creation:decision-point/business-model-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: { contractRef: 'application-creation:input-projection/accepted-market-and-vision-definition-set', contractVersion: 1 },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/business-model-lite-snapshot-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/business-model-lite-snapshot-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/business-model-lite-snapshot',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/business-model-lite-snapshot', schemaVersion: 1 },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: { contractRef: 'saas-specifications:validator/business-model-lite-snapshot', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-specification-family-snapshot'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [MetaWorkflow_FailureDisposition.FAIL_BINDING, MetaWorkflow_FailureDisposition.REQUEST_INPUT, MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/business-model',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/business-model',\n protocolVersion: 1,\n promptAssemblyStrategy: MetaWorkflow_EvaluationPromptAssemblyStrategy.CANONICAL_PROTOCOL_EVIDENCE_V1,\n aggregationStrategy: MetaWorkflow_EvaluationAggregationStrategy.WORST_VERDICT_PRECEDENCE_V1,\n verdictPrecedence: [MetaWorkflow_EvaluationVerdict.GAP, MetaWorkflow_EvaluationVerdict.INDETERMINATE, MetaWorkflow_EvaluationVerdict.CONCERN, MetaWorkflow_EvaluationVerdict.PASS],\n aggregationPolicyRef: 'application-creation:aggregation/worst-business-model-verdict',\n criteria: [{\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/business-model-grounding-and-plan-coherence',\n criterionVersion: 1,\n instruction: 'Assess whether the business model is GROUNDED in what the creator actually stated and coherent with the accepted market and requirements truth: every plan traceable to the interview, every targeted ICP present in the market snapshot, every unlocked requirement present in the requirements snapshot, and the revenue model consistent with the plans beneath it. Treat an invented price, an invented tier, or a price the creator said was undecided as a GAP — this family exists to carry the creator\\'s commercial intent, not the evaluator\\'s.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/business-model-grounding-and-plan-coherence',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/market-vision-and-business-model-candidate',\n minCount: 4,\n maxCount: 5,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-business-model-inputs-and-candidate',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-action-binding',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'Every plan traces to what the creator stated, and the cross-links resolve against the accepted market and requirements truth.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The model is usable but carries explicit commercial uncertainty the creator left open.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A plan, price or tier appears that the creator did not state, or a cross-link names an ICP or requirement that does not exist.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The interview answers or the accepted market/requirements evidence are absent, stale or insufficient.',\n },\n }],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/business-model',\n policyVersion: 1,\n admissibleEvaluatorSelectors: [{ evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 }],\n defaultEvaluatorSelector: { evaluatorRef: 'meta-workflow:evaluator/structured-semantic-coherence', evaluatorVersion: 1 },\n outputContractSelector: { outputContractRef: 'meta-workflow:output-contract/structured-semantic-evaluation-candidate', outputContractVersion: 1 },\n fallbackPolicyRef: 'application-creation:evaluator-policy/fail-closed',\n escalationPolicyRef: 'application-creation:evaluator-policy/request-explicit-review',\n maximumAttempts: 2,\n timeoutPolicyRef: 'application-creation:evaluator-policy/bounded-semantic-evaluation',\n budgetPolicyRef: 'application-creation:evaluator-policy/current-work-cycle-budget',\n selectionPolicyRef: 'application-creation:evaluator-policy/scoped-risk-and-evidence',\n },\n decisionPointDefinition: {\n schemaVersion: 1,\n decisionPointRef: 'application-creation:decision-point/business-model-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/business-model-lite-snapshot-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/business-model-lite-snapshot-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/current-horizon-business-model-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/business-model-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-business-model-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{ hardFloorRef: 'application-creation:hard-floor/business-model-lite-snapshot-valid', evidenceRequirementRefs: ['application-creation:evidence-requirement/business-model-grounding-and-plan-coherence'] }],\n hardFloorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n hardFloorShortcutAllowed: false,\n unresolvedConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE,\n evaluatorFailureConsequence: MetaWorkflow_DecisionConsequence.BLOCK,\n },\n authorityRequirement: {\n schemaVersion: 1,\n requirementRef: 'application-creation:authority-requirement/business-model-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-business-model-lite-snapshot',\n riskClassRef: 'application-creation:risk/business-model-accepted-family-mutation',\n decisionModePolicyRef: 'application-creation:authority-policy/explicit-operator-confirmation',\n assurancePolicyRef: 'application-creation:authority-policy/local-single-operator',\n channelPolicyRef: 'application-creation:authority-policy/interface-relay',\n principalPolicyRef: null,\n requiredDecisionMode: MetaWorkflow_AuthorityDecisionMode.EXPLICIT_OPERATOR_CONFIRMATION,\n minimumAssurance: MetaWorkflow_AuthorityAssuranceClass.LOCAL_OS_SESSION,\n admittedChannels: [MetaWorkflow_AuthorityInteractionChannel.INTERFACE_RELAY],\n requiredEvidenceRequirementRefs: ['application-creation:evidence-requirement/business-model-grounding-and-plan-coherence'],\n expiryPolicyRef: 'application-creation:authority-expiry/current-interface-session',\n noncePolicyRef: 'application-creation:authority-nonce/random-per-request',\n hardFloorPosture: MetaWorkflow_HardFloorPosture.NON_WAIVABLE,\n hardFloorOverrideAllowed: false,\n },\n continuationPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:continuation-policy/business-model',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.capability-map/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B+G,CAAC;AAE/I,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHW,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.capability-map/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,EACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B+G,CAAC;AAE/I,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDW,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.capability-map/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,EAC1C,6CAA6C,EAC7C,8BAA8B,EAC9B,oCAAoC,EACpC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,sCAAsC,EACtC,kDAAkD,GACnD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,k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AY;QAC5D,wBAAwB,EAAE,KAAK;KAChC;IACD,kBAAkB,EAAE;QAClB,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,yDAAyD;QACpE,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE;YACR,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;YACpH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAAE,+BAA+B,CAAC,MAAM,EAAE;YAChH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,EAAE,+BAA+B,CAAC,gBAAgB,EAAE;YACpI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,iBAAiB,EAAE,MAAM,EAAE,+BAA+B,CAAC,iBAAiB,EAAE;YACtI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.capability-map',\n version: '0.1.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Map accepted market benefits and requirements to coherent product capabilities, atomically refining the market benefit-to-feature edges and producing ref-less feature specification drafts. FIT/Kano remains a pluggable fit signal, never an implicit build-order ranking.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n ],\n inputs: [{ family: 'market-snapshot' }, { family: 'requirements' }, { family: 'vision-brief' }],\n outputs: [\n {\n family: 'market-snapshot',\n schemaRef: 'saas-specifications:MarketSnapshot',\n description: 'The same market snapshot, refined so every benefit names its delivering feature refs.',\n },\n {\n family: 'feature-drafts',\n schemaRef: 'saas-specifications:FeatureSpecificationDrafts',\n description: 'A collection of runner-addressed, ref-less FeatureSpecificationDraft payloads for capabilities without runtime definitions.',\n },\n ],\n method: {\n skillRefs: ['journey-status', 'market-add-feature-benefit', 'market-scoring-interpretation', 'market-snapshot-validation', 'spec-feature-update'],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/capability-map',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/capability-map',\n actionVersion: 1,\n intentRef: 'application-creation:intent/map-benefits-to-product-capabilities',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-vision-brief',\n ],\n outcomeContractRefs: ['application-creation:output-contract/capability-map-output-set'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifacts-before-acceptance',\n allowedCapabilityClassRefs: ['meta-workflow:capability-class/structured-artifact-generation'],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: 'application-creation:authority-requirement/capability-map-result',\n budgetPolicyRef: 'application-creation:budget-policy/capability-map',\n continuationPolicyRef: 'application-creation:continuation-policy/capability-map',\n decisionPointDefinitionRefs: ['application-creation:decision-point/capability-map-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: { contractRef: 'application-creation:input-projection/accepted-vision-market-requirements', contractVersion: 1 },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/capability-map-output-set-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/capability-map-output-set-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/capability-map-output-set',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/capability-map-output-set', schemaVersion: 1 },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: { contractRef: 'saas-specifications:validator/capability-map-output-set', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-atomic-specification-family-output-set'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [MetaWorkflow_FailureDisposition.FAIL_BINDING, MetaWorkflow_FailureDisposition.REQUEST_INPUT, MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/capability-map',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/capability-map',\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-capability-map-verdict',\n criteria: [{\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/capability-map-traceability-and-sufficiency',\n criterionVersion: 1,\n instruction: 'Assess whether every proposed capability earns its place through accepted vision, market benefit and requirement evidence; whether every benefit has a coherent delivering feature; and whether drafts remain capability contracts rather than implementation designs. FIT/Kano may inform fit but must not be treated as build-order authority.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/capability-map-traceability-and-sufficiency',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-market-requirements-and-capability-candidate',\n minCount: 4,\n maxCount: 4,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-capability-inputs-and-output-set',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-action-binding',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The atomic output set is valid, traceable and sufficient for current-horizon scope work.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The map is usable but one or more capabilities have weak or uncertain traceability.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A material benefit lacks a coherent capability, or a proposed capability lacks accepted product evidence.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The accepted inputs or atomic output evidence is absent, stale or insufficient.',\n },\n }],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/capability-map',\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/capability-map-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/capability-map-output-set-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/capability-map-output-set-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/capability-definition-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/capability-map-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-capability-map-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{ hardFloorRef: 'application-creation:hard-floor/capability-map-output-set-valid', evidenceRequirementRefs: ['application-creation:evidence-requirement/capability-map-traceability-and-sufficiency'] }],\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/capability-map-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-capability-map-output-set',\n riskClassRef: 'application-creation:risk/capability-map-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/capability-map-traceability-and-sufficiency'],\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/capability-map',\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.capability-map/playbook.definition.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,wCAAwC,EACxC,+BAA+B,EAC/B,gCAA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C,CAAC,8BAA8B;QACvF,gBAAgB,EAAE,oCAAoC,CAAC,gBAAgB;QACvE,gBAAgB,EAAE,CAAC,wCAAwC,CAAC,eAAe,CAAC;QAC5E,+BAA+B,EAAE,CAAC,uFAAuF,CAAC;QAC1H,eAAe,EAAE,iEAAiE;QAClF,cAAc,EAAE,yDAAyD;QACzE,gBAAgB,EAAE,6BAA6B,CAAC,YAAY;QAC5D,wBAAwB,EAAE,KAAK;KAChC;IACD,kBAAkB,EAAE;QAClB,aAAa,EAAE,CAAC;QAChB,SAAS,EAAE,yDAAyD;QACpE,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE;YACR,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,+BAA+B,CAAC,QAAQ,EAAE;YACpH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,MAAM,EAAE,MAAM,EAAE,+BAA+B,CAAC,MAAM,EAAE;YAChH,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,gBAAgB,EAAE,MAAM,EAAE,+BAA+B,CAAC,gBAAgB,EAAE;YACpI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,iBAAiB,EAAE,MAAM,EAAE,+BAA+B,CAAC,iBAAiB,EAAE;YACtI,EAAE,mBAAmB,EAAE,gCAAgC,CAAC,KAAK,EAAE,MAAM,EAAE,+BAA+B,CAAC,KAAK,EAAE;SAC/G;QACD,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,uBAAuB,EAAE,CAAC;QAC1B,cAAc,EAAE,+BAA+B,CAAC,KAAK;KACtD;CAC8C,CAAC","sourcesContent":["import type {\n MetaWorkflowEvaluationTreatmentSource,\n MetaWorkflowStructuredArtifactActionSource,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n MetaWorkflow_AuthorityAssuranceClass,\n MetaWorkflow_AuthorityDecisionMode,\n MetaWorkflow_AuthorityInteractionChannel,\n MetaWorkflow_ContinuationAction,\n MetaWorkflow_DecisionConsequence,\n MetaWorkflow_DecisionRuleBoundaryClass,\n MetaWorkflow_EvaluationAggregationStrategy,\n MetaWorkflow_EvaluationPromptAssemblyStrategy,\n MetaWorkflow_EvaluationVerdict,\n MetaWorkflow_EvidenceRequirementKind,\n MetaWorkflow_FailureDisposition,\n MetaWorkflow_HardFloorPosture,\n MetaWorkflow_OutputContentClass,\n MetaWorkflow_OutputContractCardinality,\n MetaWorkflow_StructuredArtifactOutputSetCommitment,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.capability-map',\n version: '0.1.0',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Map accepted market benefits and requirements to coherent product capabilities, atomically refining the market benefit-to-feature edges and producing ref-less feature specification drafts. FIT/Kano remains a pluggable fit signal, never an implicit build-order ranking.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'market-snapshot' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'requirements' } },\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n ],\n inputs: [{ family: 'market-snapshot' }, { family: 'requirements' }, { family: 'vision-brief' }],\n outputs: [\n {\n family: 'market-snapshot',\n schemaRef: 'saas-specifications:MarketSnapshot',\n description: 'The same market snapshot, refined so every benefit names its delivering feature refs.',\n },\n {\n family: 'feature-drafts',\n schemaRef: 'saas-specifications:FeatureSpecificationDrafts',\n description: 'A collection of runner-addressed, ref-less FeatureSpecificationDraft payloads for capabilities without runtime definitions.',\n },\n ],\n method: {\n skillRefs: ['journey-status', 'market-add-feature-benefit', 'market-scoring-interpretation', 'market-snapshot-validation', 'spec-feature-update'],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: { maxRuns: 3 },\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & { method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'> };\n\nexport const structuredArtifactActionSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:structured-artifact-action/capability-map',\n definitionVersion: 1,\n actionDefinition: {\n schemaVersion: 1,\n actionRef: 'application-creation:action/capability-map',\n actionVersion: 1,\n intentRef: 'application-creation:intent/map-benefits-to-product-capabilities',\n inputSelectorRefs: [\n 'application-creation:artifact-selector/accepted-market-snapshot',\n 'application-creation:artifact-selector/accepted-requirements',\n 'application-creation:artifact-selector/accepted-vision-brief',\n ],\n outcomeContractRefs: ['application-creation:output-contract/capability-map-output-set'],\n effectSafetyPolicyRef: 'application-creation:effect-safety/candidate-artifacts-before-acceptance',\n allowedCapabilityClassRefs: ['meta-workflow:capability-class/structured-artifact-generation'],\n requiredCapabilityFacetRefs: [\n 'meta-workflow:capability-facet/atomic-output-set',\n 'meta-workflow:capability-facet/sealed-input-projection',\n 'meta-workflow:capability-facet/strict-provider-schema',\n 'meta-workflow:capability-facet/trusted-normalization',\n ],\n authorityRequirementRef: 'application-creation:authority-requirement/capability-map-result',\n budgetPolicyRef: 'application-creation:budget-policy/capability-map',\n continuationPolicyRef: 'application-creation:continuation-policy/capability-map',\n decisionPointDefinitionRefs: ['application-creation:decision-point/capability-map-result'],\n },\n driverSelector: { driverRef: 'meta-workflow:driver/structured-artifact-action', driverVersion: 1 },\n inputProjectionContractSelector: { contractRef: 'application-creation:input-projection/accepted-vision-market-requirements', contractVersion: 1 },\n providerOutputSchemaSelector: { schemaRef: 'saas-specifications:schema/capability-map-output-set-generation', schemaVersion: 1 },\n normalizationContractSelector: { contractRef: 'saas-specifications:normalizer/capability-map-output-set-generation', contractVersion: 1 },\n outputContract: {\n schemaVersion: 1,\n outputContractRef: 'application-creation:output-contract/capability-map-output-set',\n outputContractVersion: 1,\n outputSchemaSelector: { schemaRef: 'saas-specifications:schema/capability-map-output-set', schemaVersion: 1 },\n contentClass: MetaWorkflow_OutputContentClass.STRUCTURED_RECORD,\n cardinality: MetaWorkflow_OutputContractCardinality.ONE,\n canonicalSerializationRef: 'meta-workflow:canonicalization/wildo-json',\n canonicalSerializationVersion: 1,\n validatorContractSelector: { contractRef: 'saas-specifications:validator/capability-map-output-set', contractVersion: 1 },\n acceptedArtifactClassificationRefs: ['application-creation:artifact-classification/candidate-atomic-specification-family-output-set'],\n invalidOutputDisposition: MetaWorkflow_FailureDisposition.FAIL_BINDING,\n },\n outputSetCommitment: MetaWorkflow_StructuredArtifactOutputSetCommitment.ATOMIC,\n requiredLifecycleFacets: [],\n requiredFailureDispositions: [MetaWorkflow_FailureDisposition.FAIL_BINDING, MetaWorkflow_FailureDisposition.REQUEST_INPUT, MetaWorkflow_FailureDisposition.RETRY_NEW_BINDING],\n} satisfies MetaWorkflowStructuredArtifactActionSource;\n\nexport const evaluationTreatmentSource = {\n schemaVersion: 1,\n definitionRef: 'application-creation:evaluation-treatment/capability-map',\n definitionVersion: 1,\n evaluationProtocol: {\n schemaVersion: 1,\n protocolRef: 'application-creation:evaluation-protocol/capability-map',\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-capability-map-verdict',\n criteria: [{\n schemaVersion: 1,\n criterionRef: 'application-creation:criterion/capability-map-traceability-and-sufficiency',\n criterionVersion: 1,\n instruction: 'Assess whether every proposed capability earns its place through accepted vision, market benefit and requirement evidence; whether every benefit has a coherent delivering feature; and whether drafts remain capability contracts rather than implementation designs. FIT/Kano may inform fit but must not be treated as build-order authority.',\n evidenceRequirements: [{\n schemaVersion: 1,\n requirementRef: 'application-creation:evidence-requirement/capability-map-traceability-and-sufficiency',\n requirementVersion: 1,\n kind: MetaWorkflow_EvidenceRequirementKind.MANDATORY,\n subjectRef: 'application-creation:definition-set/vision-market-requirements-and-capability-candidate',\n minCount: 4,\n maxCount: 4,\n coveragePolicyRef: 'application-creation:evidence-policy/exact-capability-inputs-and-output-set',\n freshnessPolicyRef: 'application-creation:evidence-policy/current-action-binding',\n conditionRef: null,\n independencePolicyRef: null,\n diversityPolicyRef: null,\n aggregationPolicyRef: null,\n }],\n verdictGuidance: {\n [MetaWorkflow_EvaluationVerdict.PASS]: 'The atomic output set is valid, traceable and sufficient for current-horizon scope work.',\n [MetaWorkflow_EvaluationVerdict.CONCERN]: 'The map is usable but one or more capabilities have weak or uncertain traceability.',\n [MetaWorkflow_EvaluationVerdict.GAP]: 'A material benefit lacks a coherent capability, or a proposed capability lacks accepted product evidence.',\n [MetaWorkflow_EvaluationVerdict.INDETERMINATE]: 'The accepted inputs or atomic output evidence is absent, stale or insufficient.',\n },\n }],\n },\n evaluatorBindingPolicy: {\n schemaVersion: 1,\n policyRef: 'application-creation:evaluator-binding-policy/capability-map',\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/capability-map-result',\n decisionPointVersion: 1,\n triggerRefs: ['application-creation:trigger/capability-map-output-set-staged-and-valid'],\n hardFloorRefs: ['application-creation:hard-floor/capability-map-output-set-valid'],\n riskPolicyRef: 'application-creation:risk-policy/scoped-application-and-execution-context',\n significancePolicyRef: 'application-creation:significance-policy/capability-definition-change',\n },\n decisionRule: {\n schemaVersion: 1,\n ruleRef: 'application-creation:decision-rule/capability-map-result',\n ruleVersion: 1,\n boundaryClass: MetaWorkflow_DecisionRuleBoundaryClass.QUALITY_INTERPRETATION,\n evidenceAggregationRef: 'application-creation:aggregation/worst-capability-map-verdict',\n resultMappings: [\n { verdict: MetaWorkflow_EvaluationVerdict.PASS, consequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY },\n { verdict: MetaWorkflow_EvaluationVerdict.CONCERN, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.GAP, consequence: MetaWorkflow_DecisionConsequence.REVISE },\n { verdict: MetaWorkflow_EvaluationVerdict.INDETERMINATE, consequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE },\n ],\n hardFloorBindings: [{ hardFloorRef: 'application-creation:hard-floor/capability-map-output-set-valid', evidenceRequirementRefs: ['application-creation:evidence-requirement/capability-map-traceability-and-sufficiency'] }],\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/capability-map-result',\n requirementVersion: 1,\n consequenceClassRef: 'application-creation:authority-consequence/accept-capability-map-output-set',\n riskClassRef: 'application-creation:risk/capability-map-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/capability-map-traceability-and-sufficiency'],\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/capability-map',\n policyVersion: 1,\n mappings: [\n { decisionConsequence: MetaWorkflow_DecisionConsequence.CONTINUE, action: MetaWorkflow_ContinuationAction.CONTINUE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REVISE, action: MetaWorkflow_ContinuationAction.REVISE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_EVIDENCE, action: MetaWorkflow_ContinuationAction.REQUEST_EVIDENCE },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.REQUEST_AUTHORITY, action: MetaWorkflow_ContinuationAction.REQUEST_AUTHORITY },\n { decisionConsequence: MetaWorkflow_DecisionConsequence.BLOCK, action: MetaWorkflow_ContinuationAction.BLOCK },\n ],\n maximumRevisionAttempts: 3,\n maximumEvidenceRequests: 2,\n maximumAuthorityReviews: 1,\n fallbackAction: MetaWorkflow_ContinuationAction.BLOCK,\n },\n} satisfies MetaWorkflowEvaluationTreatmentSource;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-analysis/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoH9B,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.compliance-analysis/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoH9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-analysis/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,8BAA8B;IACnC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,qXAAqX;IACvX,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,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AAS;iBACrD;gBACD;oBACE,KAAK,EAAE,oBAAoB;oBAC3B,UAAU,EAAE,yKAAyK;oBACrL,IAAI,EAAE,oCAAoC,CAAC,SAAS;iBACrD;aACF;SACF;QACD,YAAY,EAAE;YACZ;;;;eAIG;YACH,MAAM,EAAE;gBACN,6BAA6B;gBAC7B,8BAA8B;gBAC9B,uCAAuC;aACxC;YACD;;;;;;;;;;;;;eAaG;YACH,iBAAiB,EAAE,EAAE;YACrB,wBAAwB,EAAE,CAAC;YAC3B,iBAAiB,EAAE,SAAS;SAC7B;KACF;IACD,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ElicitationQuestionKind,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * The SECOND consumer of the research → adequacy → produce choreography, mirrored from\n * `top_down.market-analysis` on purpose: the pattern earns its generality from a second real\n * instance rather than from a designed abstraction (decided with Paul, 2026-09-02 — this is #254's\n * road walked through a genuine case, not around it).\n *\n * The gap it closes is recorded in `app-creation-composite-choreography.md` §10: compliance-posture\n * answered \"which regimes apply, in which jurisdictions\" from nine interview questions plus a\n * model's recollection — the same evidence hole the market lane had before its composite, with a\n * harsher consequence, because a regime wrongly excluded is a legal statement, not a stale price.\n */\nexport const playbookDefinition = {\n ref: 'top_down.compliance-analysis',\n version: '0.1.3',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Establish the compliance posture by gathering regime EVIDENCE from authoritative sources, judging whether it is enough, and recording the applicable regimes as vision constraints only once it is. An umbrella: it authors nothing itself — its deliverable is what its children land, and the order between them is decided by their own preconditions rather than declared here.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n ],\n inputs: [{ family: 'vision-brief' }],\n // Nothing, for the market umbrella's own recorded reason: a composite's deliverable is what its\n // children land, and declaring the child's output here would be two playbooks claiming one family.\n // The loop resolves this playbook's write scope transitively through `admits` — `vision-brief`, via\n // `top_down.compliance-posture` — so an empty `outputs[]` no longer reads as \"writes nothing\".\n outputs: [],\n method: {\n skillRefs: ['journey-status'],\n /*\n * The product-fact questions, moved here from compliance-posture (#284 shape (a), decided\n * 2026-09-02): regime applicability is a JOIN of legal tests (researchable — the research child's\n * job) and these facts (elicitable — only the creator can answer). They lived on the produce\n * child, behind the adequacy gate that could never pass without them, and a question-bearing\n * child is excluded from loop selection anyway (a loop has nobody to answer). Asked ONCE at the\n * umbrella, the answers ride into every child: the chooser aims round-1 research at the real\n * jurisdictions instead of surveying, adequacy judges with the facts in hand, and posture derives\n * from answers + evidence. The workbench renders these declared questions as the launch form.\n */\n elicitation: {\n \"questions\": [\n {\n \"ref\": \"handles-regulated-data\",\n \"question\": \"Does the product store, process, or transmit personal data or otherwise regulated data (health, financial, biometric, children's, government) — either from end users or on behalf of customers?\",\n kind: MetaWorkflow_ElicitationQuestionKind.CONFIRM\n },\n {\n \"ref\": \"data-classes\",\n \"question\": \"Which classes of sensitive data does the product touch? List them (e.g. names/emails, health records, payment card data, government IDs, precise location, employee data). Answer \\\"none\\\" if it handles no personal or sensitive data.\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n },\n {\n \"ref\": \"vendor-establishment\",\n \"question\": \"Where is the VENDOR established — the legal entity (or intended entity) operating the product, its country/region, and where is the product hosted or planned to be hosted? Territorial-scope tests (GDPR Art. 3, UK GDPR, CCPA \\\"doing business\\\") turn on the vendor's establishment and conduct, not only on where users live. Answer \\\"not yet decided\\\" for whatever is genuinely open.\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n },\n {\n \"ref\": \"jurisdictions\",\n \"question\": \"In which jurisdictions do your users live and your data reside or transit (e.g. EU/EEA, UK, US, California, Canada, specific countries)? This is what drives which privacy regimes apply.\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n },\n {\n \"ref\": \"sector\",\n \"question\": \"Does the product operate in a regulated sector with its own rules (healthcare, finance/banking, insurance, education, government, telecoms)? Name the sector, or answer \\\"none\\\".\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n },\n {\n \"ref\": \"gdpr-applies\",\n \"question\": \"Do you serve EU/EEA (or UK) individuals or process their personal data? (This is the primary trigger for GDPR / UK GDPR.)\",\n kind: MetaWorkflow_ElicitationQuestionKind.CONFIRM\n },\n {\n \"ref\": \"hipaa-applies\",\n \"question\": \"Do you handle US protected health information as, or on behalf of, a covered entity or business associate? (This is the primary trigger for HIPAA.)\",\n kind: MetaWorkflow_ElicitationQuestionKind.CONFIRM\n },\n {\n \"ref\": \"external-assurance-applies\",\n \"question\": \"Do enterprise customers (or your own security posture) require an independent attestation or certification covering security / availability / confidentiality of the service? Name the requested target only as an external source requirement.\",\n kind: MetaWorkflow_ElicitationQuestionKind.CONFIRM\n },\n {\n \"ref\": \"data-residency\",\n \"question\": \"Are there data-residency or sovereignty requirements — must certain data stay within a region or country (e.g. EU-only hosting, in-country storage)? Describe them, or answer \\\"none\\\".\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n },\n {\n \"ref\": \"additional-regimes\",\n \"question\": \"Any other legal regimes, sector frameworks, government programs, or contractual security commitments that apply? List the externally named sources, or answer \\\"none\\\".\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n }\n ]\n },\n choreography: {\n /*\n * UNORDERED, produce-first on purpose (the market umbrella's own trap check): if anything ever\n * read this array as a sequence, the composite would try to record a posture before any\n * evidence existed, and the run would fail loudly rather than silently degrading.\n */\n admits: [\n 'top_down.compliance-posture',\n 'top_down.compliance-research',\n 'top_down.compliance-evidence-adequacy',\n ],\n /*\n * MEASURED on the first real run (wonder-crm, 2026-09-02), replacing the market composite's\n * borrowed bounds: research turns here run 3–7 minutes each (five succeeded, 63k–157k context —\n * regime research reads primary sources, which is slower than market scanning), and the run hit\n * the 40-minute breaker mid-loop without reaching an ADEQUATE verdict — the market's own\n * first-run ending, one lane over. ~280s/iteration measured against the market's ~168s.\n *\n * Two things a caller must know, learned the expensive way on that run: the companion's HTTP\n * request ceiling (30 min) is SHORTER than this bound, so a synchronous caller loses the result\n * envelope while the run continues and completes server-side — read the outcome from\n * /playbooks/runs and the traces, or submit from a surface that outlives the request. And\n * whether the adequacy BAR (see compliance-evidence-adequacy's method) needs loosening is an\n * open calibration question the next run's gap texts should settle — do not soften it blind.\n */\n maximumIterations: 14,\n maximumLanesPerIteration: 3,\n maximumDurationMs: 4_800_000,\n },\n },\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: {},\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/top_down.compliance-analysis/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,oCAAoC,EACpC,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,8BAA8B;IACnC,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,qXAAqX;IACvX,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE;KAC1F;IACD,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,cAA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ACrL,IAAI,EAAE,oCAAoC,CAAC,SAAS;iBACrD;aACF;SACF;QACD,YAAY,EAAE;YACZ;;;;eAIG;YACH,MAAM,EAAE;gBACN,6BAA6B;gBAC7B,8BAA8B;gBAC9B,uCAAuC;aACxC;YACD;;;;;;;;;;;;;eAaG;YACH,iBAAiB,EAAE,EAAE;YACrB,wBAAwB,EAAE,CAAC;YAC3B,iBAAiB,EAAE,SAAS;SAC7B;KACF;IACD,QAAQ,EAAE,2BAA2B,CAAC,cAAc;IACpD,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_ElicitationQuestionKind,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\n/**\n * The SECOND consumer of the research → adequacy → produce choreography, mirrored from\n * `top_down.market-analysis` on purpose: the pattern earns its generality from a second real\n * instance rather than from a designed abstraction (decided with Paul, 2026-09-02 — this is #254's\n * road walked through a genuine case, not around it).\n *\n * The gap it closes is recorded in `app-creation-composite-choreography.md` §10: compliance-posture\n * answered \"which regimes apply, in which jurisdictions\" from nine interview questions plus a\n * model's recollection — the same evidence hole the market lane had before its composite, with a\n * harsher consequence, because a regime wrongly excluded is a legal statement, not a stale price.\n */\nexport const playbookDefinition = {\n ref: 'top_down.compliance-analysis',\n version: '0.1.3',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Establish the compliance posture by gathering regime EVIDENCE from authoritative sources, judging whether it is enough, and recording the applicable regimes as vision constraints only once it is. An umbrella: it authors nothing itself — its deliverable is what its children land, and the order between them is decided by their own preconditions rather than declared here.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.ARTIFACT_VALID, selector: { family: 'vision-brief' } },\n ],\n inputs: [{ family: 'vision-brief' }],\n // Nothing, for the market umbrella's own recorded reason: a composite's deliverable is what its\n // children land, and declaring the child's output here would be two playbooks claiming one family.\n // The loop resolves this playbook's write scope transitively through `admits` — `vision-brief`, via\n // `top_down.compliance-posture` — so an empty `outputs[]` no longer reads as \"writes nothing\".\n outputs: [],\n method: {\n skillRefs: ['journey-status'],\n /*\n * The product-fact questions, moved here from compliance-posture (#284 shape (a), decided\n * 2026-09-02): regime applicability is a JOIN of legal tests (researchable — the research child's\n * job) and these facts (elicitable — only the creator can answer). They lived on the produce\n * child, behind the adequacy gate that could never pass without them, and a question-bearing\n * child is excluded from loop selection anyway (a loop has nobody to answer). Asked ONCE at the\n * umbrella, the answers ride into every child: the chooser aims round-1 research at the real\n * jurisdictions instead of surveying, adequacy judges with the facts in hand, and posture derives\n * from answers + evidence. The workbench renders these declared questions as the launch form.\n */\n elicitation: {\n \"questions\": [\n {\n \"ref\": \"handles-regulated-data\",\n \"question\": \"Does the product store, process, or transmit personal data or otherwise regulated data (health, financial, biometric, children's, government) — either from end users or on behalf of customers?\",\n kind: MetaWorkflow_ElicitationQuestionKind.CONFIRM\n },\n {\n \"ref\": \"data-classes\",\n \"question\": \"Which classes of sensitive data does the product touch? List them (e.g. names/emails, health records, payment card data, government IDs, precise location, employee data). Answer \\\"none\\\" if it handles no personal or sensitive data.\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n },\n {\n \"ref\": \"vendor-establishment\",\n \"question\": \"Where is the VENDOR established — the legal entity (or intended entity) operating the product, its country/region, and where is the product hosted or planned to be hosted? Territorial-scope tests (GDPR Art. 3, UK GDPR, CCPA \\\"doing business\\\") turn on the vendor's establishment and conduct, not only on where users live. Answer \\\"not yet decided\\\" for whatever is genuinely open.\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n },\n {\n \"ref\": \"jurisdictions\",\n \"question\": \"In which jurisdictions do your users live and your data reside or transit (e.g. EU/EEA, UK, US, California, Canada, specific countries)? This is what drives which privacy regimes apply.\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n },\n {\n \"ref\": \"sector\",\n \"question\": \"Does the product operate in a regulated sector with its own rules (healthcare, finance/banking, insurance, education, government, telecoms)? Name the sector, or answer \\\"none\\\".\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n },\n {\n \"ref\": \"gdpr-applies\",\n \"question\": \"Do you serve EU/EEA (or UK) individuals or process their personal data? (This is the primary trigger for GDPR / UK GDPR.)\",\n kind: MetaWorkflow_ElicitationQuestionKind.CONFIRM\n },\n {\n \"ref\": \"hipaa-applies\",\n \"question\": \"Do you handle US protected health information as, or on behalf of, a covered entity or business associate? (This is the primary trigger for HIPAA.)\",\n kind: MetaWorkflow_ElicitationQuestionKind.CONFIRM\n },\n {\n \"ref\": \"external-assurance-applies\",\n \"question\": \"Do enterprise customers (or your own security posture) require an independent attestation or certification covering security / availability / confidentiality of the service? Name the requested target only as an external source requirement.\",\n kind: MetaWorkflow_ElicitationQuestionKind.CONFIRM\n },\n {\n \"ref\": \"data-residency\",\n \"question\": \"Are there data-residency or sovereignty requirements — must certain data stay within a region or country (e.g. EU-only hosting, in-country storage)? Describe them, or answer \\\"none\\\".\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n },\n {\n \"ref\": \"additional-regimes\",\n \"question\": \"Any other legal regimes, sector frameworks, government programs, or contractual security commitments that apply? List the externally named sources, or answer \\\"none\\\".\",\n kind: MetaWorkflow_ElicitationQuestionKind.FREE_TEXT\n }\n ]\n },\n choreography: {\n /*\n * UNORDERED, produce-first on purpose (the market umbrella's own trap check): if anything ever\n * read this array as a sequence, the composite would try to record a posture before any\n * evidence existed, and the run would fail loudly rather than silently degrading.\n */\n admits: [\n 'top_down.compliance-posture',\n 'top_down.compliance-research',\n 'top_down.compliance-evidence-adequacy',\n ],\n /*\n * MEASURED on the first real run (wonder-crm, 2026-09-02), replacing the market composite's\n * borrowed bounds: research turns here run 3–7 minutes each (five succeeded, 63k–157k context —\n * regime research reads primary sources, which is slower than market scanning), and the run hit\n * the 40-minute breaker mid-loop without reaching an ADEQUATE verdict — the market's own\n * first-run ending, one lane over. ~280s/iteration measured against the market's ~168s.\n *\n * Two things a caller must know, learned the expensive way on that run: the companion's HTTP\n * request ceiling (30 min) is SHORTER than this bound, so a synchronous caller loses the result\n * envelope while the run continues and completes server-side — read the outcome from\n * /playbooks/runs and the traces, or submit from a surface that outlives the request. And\n * whether the adequacy BAR (see compliance-evidence-adequacy's method) needs loosening is an\n * open calibration question the next run's gap texts should settle — do not soften it blind.\n */\n maximumIterations: 14,\n maximumLanesPerIteration: 3,\n maximumDurationMs: 4_800_000,\n },\n },\n approval: MetaWorkflow_ApprovalPolicy.APPROVE_RESULT,\n budget: {},\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-conception/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ErB,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.compliance-conception/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ErB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-conception/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,M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EAAE,WAAW;iBACpB;aACF;SACF;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * 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.1.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 either derived from an engine authority or answered by the creator in this run; 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\": \"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\": [\"journey-status\"],\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 \"contextSources\": [\"assurance_program_authority\", \"compliance_primary_facts\"],\n \"elicitation\": {\n \"questions\": [\n {\n \"ref\": \"programme-scope\",\n \"question\": \"What exactly does this compliance programme cover — which product, environments and services? Name what is INSIDE the boundary, and anything a reader might assume is included that is not.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"accountable-role\",\n \"question\": \"Which role in this application is accountable for the compliance programme — the one that approves what it claims? Give the application's own role key (e.g. APP_ADMIN_SUPER_ADMIN) and a short name for it.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"operating-role\",\n \"question\": \"Which role OPERATES the controls day to day and produces the evidence, if different from the accountable role? Answer \\\"same\\\" if one role does both.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"coverage-review-date\",\n \"question\": \"On what date are you making these coverage decisions? Answer as an ISO date (YYYY-MM-DD). This is recorded as when the review happened — it is not generated, because nobody but you can say when you decided.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"next-review-date\",\n \"question\": \"When is this programme next reviewed? Answer as an ISO date (YYYY-MM-DD), after today's. A review schedule is a commitment, so it is asked rather than assumed.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"objective-coverage\",\n \"question\": \"For each bindable objective you were shown, does this application actually meet it today — and do you APPROVE binding it? Answer per objective, with the reason. Approving is a review: it says you read what the objective demands and accept that the product does it.\",\n \"kind\": \"free_text\"\n },\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"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/top_down.compliance-conception/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC/B;IACE,KAAK,EAAE,gCAAgC;IACvC,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,UAAU;IACnB,QAAQ,EAAE,ioBAAioB;IAC3oB,eAAe,EAAE;QACf,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;KACxE;IACD,QAAQ,EAAE;QACR,EAAE,QAAQ,EAAE,cAAc,EAAE;KAC7B;IACD,SAAS,EAAE;QACT;YACE,QAAQ,EAAE,oBAAoB;YAC9B,WAAW,EAAE,mDAAmD;YAChE,aAAa,EAAE,wjBAAwjB;SACxkB;KACF;IACD,QAAQ,EAAE;QACR,WAAW,EAAE,CAAC,gBAAgB,CAAC;QAC/B;;;;;;;;WAQG;QACH,gBAAgB,EAAE,CAAC,6BAA6B,EAAE,0BAA0B,CAAC;QAC7E,aAAa,EAAE;YACb,WAAW,EAAE;gBACX;oBACE,KAAK,EAAE,iBAAiB;oBACxB,UAAU,EAAE,6LAA6L;oBACzM,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,kBAAkB;oBACzB,UAAU,EAAE,8MAA8M;oBAC1N,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,gBAAgB;oBACvB,UAAU,EAAE,uJAAuJ;oBACnK,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,sBAAsB;oBAC7B,UAAU,EAAE,gNAAgN;oBAC5N,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,kBAAkB;oBACzB,UAAU,EAAE,iKAAiK;oBAC7K,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,oBAAoB;oBAC3B,UAAU,EAAE,0QAA0Q;oBACtR,MAAM,EAAE,WAAW;iBACpB;gBACD;oBACE,KAAK,EAAE,uBAAuB;oBAC9B,UAAU,EAAE,uMAAuM;oBACnN,MAAM,EAAE,WAAW;iBACpB;aACF;SACF;KACF;IACD,UAAU,EAAE,iBAAiB;IAC7B,UAAU,EAAE,gBAAgB;IAC5B,QAAQ,EAAE;QACR,SAAS,EAAE,CAAC;KACb;IACD,WAAW,EAAE,eAAe;CACpB,CAAC","sourcesContent":["/**\n * 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.1.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 either derived from an engine authority or answered by the creator in this run; 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\": \"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\": [\"journey-status\"],\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 \"contextSources\": [\"assurance_program_authority\", \"compliance_primary_facts\"],\n \"elicitation\": {\n \"questions\": [\n {\n \"ref\": \"programme-scope\",\n \"question\": \"What exactly does this compliance programme cover — which product, environments and services? Name what is INSIDE the boundary, and anything a reader might assume is included that is not.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"accountable-role\",\n \"question\": \"Which role in this application is accountable for the compliance programme — the one that approves what it claims? Give the application's own role key (e.g. APP_ADMIN_SUPER_ADMIN) and a short name for it.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"operating-role\",\n \"question\": \"Which role OPERATES the controls day to day and produces the evidence, if different from the accountable role? Answer \\\"same\\\" if one role does both.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"coverage-review-date\",\n \"question\": \"On what date are you making these coverage decisions? Answer as an ISO date (YYYY-MM-DD). This is recorded as when the review happened — it is not generated, because nobody but you can say when you decided.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"next-review-date\",\n \"question\": \"When is this programme next reviewed? Answer as an ISO date (YYYY-MM-DD), after today's. A review schedule is a commitment, so it is asked rather than assumed.\",\n \"kind\": \"free_text\"\n },\n {\n \"ref\": \"objective-coverage\",\n \"question\": \"For each bindable objective you were shown, does this application actually meet it today — and do you APPROVE binding it? Answer per objective, with the reason. Approving is a review: it says you read what the objective demands and accept that the product does it.\",\n \"kind\": \"free_text\"\n },\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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B9B,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAE3B,MAAM,oDAAoD,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,uCAAuC;IAC5C,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,uSAAuS;IACzS,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,GAAG,EAAE,qBAAqB,EAAE;KAChF;IACD,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;IACpC,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,CAAC;YACZ,GAAG,EAAE,qBAAqB;YAC1B,gGAAgG;YAChG,4FAA4F;YAC5F,SAAS,EAAE,mDAAmD;YAC9D,YAAY,EAAE,+FAA+F;YAC7G,WAAW,EAAE,uDAAuD;SACrE,CAAC;IACF,MAAM,EAAE;QACN,SAAS,EAAE,CAAC,gBAAgB,CAAC;KAC9B;IACD,QAAQ,EAAE,qBAAqB,CAAC,eAAe;IAC/C,QAAQ,EAAE,2BAA2B,CAAC,IAAI;IAC1C,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.compliance-evidence-adequacy',\n version: '0.1.1',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Judge whether the regime evidence gathered so far is ENOUGH to state a compliance posture from, and when it is not, name precisely what is missing so the next research round is aimed rather than repeated. Returns a verdict a sibling\\'s precondition READS; it authors nothing and lands nothing.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.STEP_AVAILABLE, ref: 'compliance-evidence' },\n ],\n inputs: [{ family: 'vision-brief' }],\n outputs: [],\n stepOutputs: [{\n ref: 'compliance-adequacy',\n // The SAME generic adequacy contract the market gate uses — its own JSDoc predicted this reuse:\n // \"the next lane will find the same hole and will ask the same question of the same shape\".\n schemaRef: 'saas-specifications:MetaWorkflow_EvidenceAdequacy',\n condensation: 'A verdict, the gaps that produced it, and a rationale grounded in what was actually gathered.',\n description: 'The adequacy gate the posture step is conditioned on.',\n }],\n method: {\n skillRefs: ['journey-status'],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.AUTO,\n budget: {},\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n"]}
1
+ {"version":3,"file":"playbook.definition.js","sourceRoot":"","sources":["../../../../src/playbooks/top_down.compliance-evidence-adequacy/playbook.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,GAE3B,MAAM,oDAAoD,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,GAAG,EAAE,uCAAuC;IAC5C,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,kBAAkB,CAAC,QAAQ;IAClC,MAAM,EACJ,uSAAuS;IACzS,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,0BAA0B,CAAC,cAAc,EAAE,GAAG,EAAE,qBAAqB,EAAE;KAChF;IACD,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;IACpC,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,CAAC;YACZ,GAAG,EAAE,qBAAqB;YAC1B,gGAAgG;YAChG,4FAA4F;YAC5F,SAAS,EAAE,mDAAmD;YAC9D,YAAY,EAAE,+FAA+F;YAC7G,WAAW,EAAE,uDAAuD;SACrE,CAAC;IACF,MAAM,EAAE;QACN,SAAS,EAAE,CAAC,gBAAgB,CAAC;KAC9B;IACD,QAAQ,EAAE,qBAAqB,CAAC,eAAe;IAC/C,QAAQ,EAAE,2BAA2B,CAAC,IAAI;IAC1C,MAAM,EAAE,EAAE;IACV,SAAS,EAAE,0BAA0B,CAAC,aAAa;CAGpD,CAAC","sourcesContent":["import {\n MetaWorkflow_ApprovalPolicy,\n MetaWorkflow_Executor,\n MetaWorkflow_FailurePolicy,\n MetaWorkflow_Phase,\n MetaWorkflow_PredicateKind,\n type MetaWorkflowPlaybookAuthoring,\n} from '@wildo-ai/saas-specifications/application-creation';\n\nexport const playbookDefinition = {\n ref: 'top_down.compliance-evidence-adequacy',\n version: '0.1.1',\n phase: MetaWorkflow_Phase.TOP_DOWN,\n intent:\n 'Judge whether the regime evidence gathered so far is ENOUGH to state a compliance posture from, and when it is not, name precisely what is missing so the next research round is aimed rather than repeated. Returns a verdict a sibling\\'s precondition READS; it authors nothing and lands nothing.',\n preconditions: [\n { kind: MetaWorkflow_PredicateKind.STEP_AVAILABLE, ref: 'compliance-evidence' },\n ],\n inputs: [{ family: 'vision-brief' }],\n outputs: [],\n stepOutputs: [{\n ref: 'compliance-adequacy',\n // The SAME generic adequacy contract the market gate uses — its own JSDoc predicted this reuse:\n // \"the next lane will find the same hole and will ask the same question of the same shape\".\n schemaRef: 'saas-specifications:MetaWorkflow_EvidenceAdequacy',\n condensation: 'A verdict, the gaps that produced it, and a rationale grounded in what was actually gathered.',\n description: 'The adequacy gate the posture step is conditioned on.',\n }],\n method: {\n skillRefs: ['journey-status'],\n },\n executor: MetaWorkflow_Executor.COMPANION_AGENT,\n approval: MetaWorkflow_ApprovalPolicy.AUTO,\n budget: {},\n onFailure: MetaWorkflow_FailurePolicy.KEEP_AND_FLAG,\n} satisfies Omit<MetaWorkflowPlaybookAuthoring, 'method'> & {\n method: Omit<NonNullable<MetaWorkflowPlaybookAuthoring['method']>, 'guidance'>;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../../src/playbooks/top_down.compliance-posture/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BrB,CAAC"}
1
+ {"version":3,"file":"playbook.definition.d.ts","sourceRoot":"","sources":["../../../../src/playbooks/top_down.compliance-posture/playbook.definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BrB,CAAC"}