@wildo-ai/platform-core-shared 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/core/resources/resources-operations.custom.shared.definitions.d.ts.map +1 -1
- package/dist/esm/core/resources/resources-relationships.custom.shared.definitions.d.ts.map +1 -1
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/runtime/application-backend-env.contracts.d.ts +28 -2
- package/dist/esm/runtime/application-backend-env.contracts.d.ts.map +1 -1
- package/dist/esm/runtime/application-backend-env.contracts.js +27 -1
- package/dist/esm/runtime/application-backend-env.contracts.js.map +1 -1
- package/dist/esm/runtime/runtime-topology.contracts.d.ts.map +1 -1
- package/dist/esm/security/authorizations/roles.custom.shared.definitions.d.ts.map +1 -1
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts +60 -66
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts +60 -66
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js +2 -2
- package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js.map +1 -1
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts +6 -10
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts +6 -10
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js +26 -28
- package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js.map +1 -1
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts +27 -0
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js +56 -0
- package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js.map +1 -1
- package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/wildo-applications-versions/wildo-applications-versions.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts +13 -0
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js +418 -1
- package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.d.ts +0 -98
- package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.d.ts.map +0 -1
- package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.js.map +0 -1
- package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts +103 -0
- package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts.map +1 -0
- package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js +99 -0
- package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js.map +1 -0
- package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.d.ts +49 -0
- package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.d.ts.map +1 -0
- package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.js +42 -0
- package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.js.map +1 -0
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts +378 -11
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js +426 -5
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts +882 -9
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js +1154 -14
- package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts +117 -1
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js +160 -0
- package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts +184 -7
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts +2 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts.map +1 -1
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js +10 -5
- package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -13
- package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.js +0 -86
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workbench-aspect-resources.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/workbench/workbench-aspect-resources.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,iCAAiC,EAEjC,uCAAuC,EACvC,+BAA+B,EAC/B,0CAA0C,EAC1C,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,kFAAkF;AAClF,iBAAiB,EAAE,CAAC;AAEpB,OAAO,EACL,uCAAuC,EACvC,4BAA4B,GAC7B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,8DAA8D,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,2BAOX;AAPD,WAAY,2BAA2B;IACrC,mFAAmF;IACnF,4DAA6B,CAAA;IAC7B,8DAA8D;IAC9D,sDAAuB,CAAA;IACvB,gGAAgG;IAChG,kDAAmB,CAAA;AACrB,CAAC,EAPW,2BAA2B,KAA3B,2BAA2B,QAOtC;AAqBD,MAAM,CAAC,MAAM,4BAA4B,GAAyC;IAChF;QACE,SAAS,EAAE,aAAa;QACxB,YAAY,EAAE,4BAA4B,CAAC,kBAAkB;QAC7D,QAAQ,EAAE,aAAa;QACvB,QAAQ,EAAE,2BAA2B,CAAC,SAAS;QAC/C,KAAK,EAAE,EAAE;KACV;IACD;QACE,SAAS,EAAE,gBAAgB;QAC3B,YAAY,EAAE,4BAA4B,CAAC,qBAAqB;QAChE,QAAQ,EAAE,gBAAgB;QAC1B,QAAQ,EA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gBACpC,eAAe,EAAE,IAAI,CAAC,KAAK;gBAC3B,aAAa,EAAE,EAAE;gBACjB;;;;;;mBAMG;gBACH,mBAAmB,EAAE,uCAAuC,CAAC,UAAU;gBACvE;;;;;mBAKG;gBACH,UAAU,EAAE,IAAI;gBAChB;;;;;mBAKG;gBACH,yBAAyB,EAAE,iCAAiC,CAAC,QAAQ;aACtE,CACF,CACF,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,mGAAmG;AACnG,MAAM,CAAC,MAAM,iDAAiD,GAG1D,MAAM,CAAC,WAAW,CACpB,4BAA4B,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC;IAC/C,UAAU,CAAC,YAAY;IACvB,wCAAwC,CAAC,UAAU,CAAC;CACrD,CAAC,CACH,CAAC","sourcesContent":["import {\n CoreResourceOperation,\n CoreResourceType,\n IntrospectionTenancyStance,\n PersistenceAdapter,\n RelationshipNature,\n ResourceParentResourceRequirement,\n ResourceRelationship,\n ResourceRelationshipAccessScopeStrategy,\n ResourceRelationshipCardinality,\n createResourceConfiguration_Initialization,\n createResourcesRelationship,\n} from '@wildo-ai/saas-models';\nimport { z } from 'zod';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\n\n// Decorator methods must exist before the module-load-time envelope builds below.\ninitZodDecorators();\n\nimport {\n WorkbenchShared_ResourceFieldIdentifier,\n WorkbenchShared_ResourceType,\n} from './workbench-resources-types.custom.shared.schemas';\nimport {\n createReadOnlyApiVariant,\n createReadOnlyListApiVariant,\n} from './workbench-resources.custom.shared.resources-config.schemas';\n\n/**\n * FAMILY ASPECT RESOURCES — the spine's schema-agnostic transcription of\n * `FAMILY_ASPECTS_REGISTRY` (`@wildo-ai/saas-specifications`, `_core/family-aspects.*`).\n *\n * ## The split, restated where it is enforced\n *\n * The registry is AUTHORITATIVE: item schemas, business keys, edges, all declared beside the\n * `_core` family schemas (decided 2026-09-01). The spine cannot import it — platform-core-shared\n * deliberately never depends on saas-specifications — so this module carries plain DATA: which\n * aspects exist, which envelope fields carry references, and which resource each reference\n * resolves to. A companion-side parity test holds this table to the registry; drift between the\n * two is a failing test, never a silent divergence.\n *\n * ## The envelope\n *\n * Aspect rows share ONE envelope shape (identity, family backlink, headline, the full item as a\n * raw record) plus the aspect's own FLATTENED reference fields. Flattening is the projection's\n * job and is what makes every edge a PLAIN foreign key the engine already resolves:\n *\n * - weighted edge objects flatten to key arrays (`jobs[].jobRef` → `jobIds`),\n * - multi-target fields split per target (`deliversRequirementRefs` →\n * `deliversFunctionalRequirementIds` + `deliversNonFunctionalRequirementIds`), because the\n * frontend resolves an FK field name to ONE resource — a mixed-kind array has no honest single\n * answer, and split fields read better anyway,\n * - every field name below maps to exactly one target across ALL aspects (collision-audited at\n * generation; the parity test re-checks it).\n *\n * The `family` field is the artifact BACKLINK for free: it is the specification-artifacts\n * resource's own field identifier, so the global field-identifier map already resolves it.\n */\n\n/**\n * How an aspect row gets its identity — mirrors the registry's `businessKey` contract.\n *\n * The three are not interchangeable and the fallback order between them is the point: a collection\n * whose schema declares a single-field key is addressed by it, a singleton has one row per family so\n * the aspect key IS the identity, and a keyless collection falls back to a positional address that is\n * stable per landed snapshot and honest about carrying no business meaning.\n */\nexport enum WorkbenchAspectIdentityKind {\n /** The item's own business key (`ref`, `taskRef`, …), unique within the aspect. */\n BUSINESS_KEY = 'business-key',\n /** One row per family — identity is the aspect key itself. */\n SINGLETON = 'singleton',\n /** Keyless collection (locale × jurisdictions): `<aspectKey>[<index>]`, stable per snapshot. */\n INDEXED = 'indexed',\n}\n\nexport interface WorkbenchAspectEdgeDescriptor {\n /** Envelope field carrying the reference key(s) — post-flatten, post-split. */\n readonly field: string;\n /** The registry aspect key the reference resolves to. */\n readonly targetAspectKey: string;\n /** `true` = key array; `false` = single key. */\n readonly many: boolean;\n}\n\nexport interface WorkbenchAspectDescriptor {\n /** The registry aspect key (`market.icp`) — the parity test's join column. */\n readonly aspectKey: string;\n readonly resourceType: WorkbenchShared_ResourceType;\n /** The introspection payload member this resource reads its rows from. */\n readonly rowsPath: string;\n readonly identity: WorkbenchAspectIdentityKind;\n readonly edges: readonly WorkbenchAspectEdgeDescriptor[];\n}\n\nexport const WORKBENCH_ASPECT_DESCRIPTORS: readonly WorkbenchAspectDescriptor[] = [\n {\n aspectKey: 'vision.idea',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_IDEA,\n rowsPath: 'visionIdeas',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.problem',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_PROBLEM,\n rowsPath: 'visionProblems',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.mission',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_MISSION,\n rowsPath: 'visionMissions',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.success-criterion',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_SUCCESS_CRITERION,\n rowsPath: 'visionSuccessCriteria',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'vision.constraint',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_CONSTRAINT,\n rowsPath: 'visionConstraints',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.category',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_CATEGORY,\n rowsPath: 'marketCategories',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'market.icp',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_ICP,\n rowsPath: 'marketIcps',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'personaIds', targetAspectKey: 'market.persona', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'channelIds', targetAspectKey: 'market.channel', many: true },\n { field: 'triggerIds', targetAspectKey: 'market.trigger', many: true },\n { field: 'alternativeIds', targetAspectKey: 'market.alternative', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'objectionIds', targetAspectKey: 'market.objection', many: true },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'market.persona',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PERSONA,\n rowsPath: 'marketPersonas',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'belongsToIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'channelIds', targetAspectKey: 'market.channel', many: true },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'market.job',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_JOB,\n rowsPath: 'marketJobs',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.pain',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PAIN,\n rowsPath: 'marketPains',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.gain',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_GAIN,\n rowsPath: 'marketGains',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.tone-of-voice',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_TONE_OF_VOICE,\n rowsPath: 'marketTonesOfVoice',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.benefit',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_BENEFIT,\n rowsPath: 'marketBenefits',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'deliveredByFeatureIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'addressesObjectionIds', targetAspectKey: 'market.objection', many: true },\n ],\n },\n {\n aspectKey: 'market.positioning',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_POSITIONING,\n rowsPath: 'marketPositionings',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpId', targetAspectKey: 'market.icp', many: false },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n { field: 'benefitIds', targetAspectKey: 'market.benefit', many: true },\n { field: 'alternativeIds', targetAspectKey: 'market.alternative', many: true },\n ],\n },\n {\n aspectKey: 'market.channel',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_CHANNEL,\n rowsPath: 'marketChannels',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.alternative',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_ALTERNATIVE,\n rowsPath: 'marketAlternatives',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.trigger',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_TRIGGER,\n rowsPath: 'marketTriggers',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'affectedIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'recommendedChannelIds', targetAspectKey: 'market.channel', many: true },\n ],\n },\n {\n aspectKey: 'market.buying-journey',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_BUYING_JOURNEY,\n rowsPath: 'marketBuyingJourneys',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpId', targetAspectKey: 'market.icp', many: false },\n ],\n },\n {\n aspectKey: 'market.proof',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PROOF,\n rowsPath: 'marketProofs',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'supportsBenefitIds', targetAspectKey: 'market.benefit', many: true },\n { field: 'supportsIcpIds', targetAspectKey: 'market.icp', many: true },\n ],\n },\n {\n aspectKey: 'market.objection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_OBJECTION,\n rowsPath: 'marketObjections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'raisedByIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'raisedByPersonaIds', targetAspectKey: 'market.persona', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'relatedBenefitIds', targetAspectKey: 'market.benefit', many: true },\n ],\n },\n {\n aspectKey: 'market.message-template',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_MESSAGE_TEMPLATE,\n rowsPath: 'marketMessageTemplates',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'requirements.functional',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_FUNCTIONAL,\n rowsPath: 'functionalRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n ],\n },\n {\n aspectKey: 'requirements.non-functional',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_NON_FUNCTIONAL,\n rowsPath: 'nonFunctionalRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n ],\n },\n {\n aspectKey: 'feature-drafts.draft',\n resourceType: WorkbenchShared_ResourceType.ASPECT_FEATURE_DRAFT,\n rowsPath: 'featureDrafts',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'roadmap.phase',\n resourceType: WorkbenchShared_ResourceType.ASPECT_ROADMAP_PHASE,\n rowsPath: 'roadmapPhases',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'deliversFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'deliversNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'deliversSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n aspectKey: 'business-model.plan',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PRICING_PLAN,\n rowsPath: 'pricingPlans',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'targetIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'includesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'includesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n ],\n },\n {\n aspectKey: 'brand.name',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_NAME,\n rowsPath: 'brandNames',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.logo-direction',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_LOGO_DIRECTION,\n rowsPath: 'brandLogoDirections',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.visual-tone',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_VISUAL_TONE,\n rowsPath: 'brandVisualTones',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.asset',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_ASSET,\n rowsPath: 'brandAssets',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'derivedFromId', targetAspectKey: 'brand.asset', many: false },\n ],\n },\n {\n aspectKey: 'domain-plan.module',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_MODULE,\n rowsPath: 'domainPlanModules',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'domain-plan.relationship',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_RELATIONSHIP,\n rowsPath: 'domainPlanRelationships',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'build-plan.task',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BUILD_TASK,\n rowsPath: 'buildTasks',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'prerequisiteTaskIds', targetAspectKey: 'build-plan.task', many: true },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n ],\n },\n {\n aspectKey: 'placement.group',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PLACEMENT_GROUP,\n rowsPath: 'placementGroups',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'placement.decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PLACEMENT_DECISION,\n rowsPath: 'placementDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'groupId', targetAspectKey: 'placement.group', many: false },\n ],\n },\n {\n aspectKey: 'compliance-candidate.section',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_SECTION,\n rowsPath: 'complianceCandidateSections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'compliance-candidate.variant-selection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_VARIANT_SELECTION,\n rowsPath: 'complianceCandidateVariantSelections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'document-facts.declaration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_FACT_DECLARATION,\n rowsPath: 'documentFactDeclarations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n /*\n * The same row shape as the descriptor above and a SEPARATE resource, because the two families it\n * transcribes are separate (#192): one is regenerated by a producer, the other is only ever written\n * by a person. Merging them into one browsable list would erase exactly the provenance the split\n * exists to keep, and a reader could no longer tell which declarations survive the next producer run.\n */\n {\n aspectKey: 'document-facts-authored.declaration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_AUTHORED_DOCUMENT_FACT_DECLARATION,\n rowsPath: 'authoredDocumentFactDeclarations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /*\n * INDEXED, not BUSINESS_KEY, and that is the registry's own answer rather than a simplification\n * here: the row is a union whose two arms key on different fields (`providerRef` vs\n * `subprocessorRef`), so no single field identifies a row across it.\n */\n aspectKey: 'processor-register.processor',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PROCESSOR_REGISTER_ENTRY,\n rowsPath: 'processorRegisterEntries',\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n {\n aspectKey: 'release-policy.selection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_RELEASE_POLICY_SELECTION,\n rowsPath: 'releasePolicySelections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'document-publication.variant',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_PUBLICATION_VARIANT,\n rowsPath: 'documentPublicationVariants',\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n];\n\nconst DESCRIPTOR_BY_ASPECT_KEY: ReadonlyMap<string, WorkbenchAspectDescriptor> = new Map(\n WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [descriptor.aspectKey, descriptor]),\n);\n\nexport function getWorkbenchAspectDescriptor(aspectKey: string): WorkbenchAspectDescriptor | undefined {\n return DESCRIPTOR_BY_ASPECT_KEY.get(aspectKey);\n}\n\n/**\n * The shared envelope, instantiated per aspect with its identity field and reference fields.\n *\n * `content` stays a RAW record for the same reason the artifact resource's does: the spine never\n * sees the item schemas; the workbench frontend renders `content` through the REAL `_core` schema\n * from the registry, so typed rendering happens where the type authority is a dependency.\n */\nexport function buildWorkbenchAspectEnvelopeSchema(\n descriptor: WorkbenchAspectDescriptor,\n): z.ZodObject<z.ZodRawShape> {\n const identityField = WorkbenchShared_ResourceFieldIdentifier[descriptor.resourceType];\n const shape: Record<string, z.ZodTypeAny> = {\n /**\n * The composed address the projection emits, and the ONLY field a row click can resolve by.\n *\n * `.isSummaryField()` is not decoration here. A list renders SUMMARIES, and the frontend resolves\n * a clicked row's target by reading this field off the item — so an id that does not survive the\n * projection makes every row in every aspect list silently stop responding to a click, while READ\n * still answers 200 (the adapter filters by `identityFields`, not by this name). The only symptom\n * is one console line. Pinned for the whole population by the addressing-field contract test.\n */\n [identityField]: z.string().min(1).isPrimaryKey().isSummaryField(),\n /**\n * The owning artifact family id — a LIVE reference: `family` is the artifacts resource's own\n * field identifier, so the global map resolves it, and the artifacts READ is addressable —\n * the one link out of any popup back to the document the aspect lives in.\n */\n family: z.string().isForeignKey().isSummaryField(),\n /** The registry aspect key (`market.icp`) — which KIND of aspect this row is. */\n aspectKey: z.string().isSummaryField(),\n /** The item's headline value (the registry's `headlineField`), projected for lists/summaries. */\n title: z.string().isSummaryField(),\n /**\n * The full item as landed — rendered frontend-side through the family's own `_core` schema.\n *\n * Deliberately NOT a summary field: it is the whole item, and carrying it in every list row is\n * what the summary projection exists to avoid.\n */\n content: z.record(z.string(), z.unknown()),\n };\n for (const edge of descriptor.edges) {\n // FK marking rides the ELEMENT for arrays (the decorator's home is the string type); the\n // display pipeline accepts `string | string[]` values on a reference field either way.\n shape[edge.field] = edge.many\n ? z.array(z.string().isForeignKey())\n : z.string().isForeignKey().optional();\n }\n return z.object(shape);\n}\n\ntype WorkbenchAspect_CoreOperations = CoreResourceOperation.READ | CoreResourceOperation.LIST;\n\n/**\n * One introspection resource-configuration factory per aspect, all from the same mold as their\n * two siblings: READ/LIST only, `APPLICATION_STRUCTURE` tenancy, rows served by the companion's\n * family-aspects behavior at this aspect's `rowsPath`. Identity is always the COMPOSED field the\n * projection emits (see the identifier-map note in the types module).\n */\nexport function buildWorkbenchAspectConfigurationFactory(descriptor: WorkbenchAspectDescriptor) {\n const envelopeSchema = buildWorkbenchAspectEnvelopeSchema(descriptor);\n return (resourcesRelationships: ResourceRelationship[]) =>\n createResourceConfiguration_Initialization<undefined, WorkbenchAspect_CoreOperations, typeof envelopeSchema>({\n mainSchema: envelopeSchema,\n resourceIdentifier: descriptor.resourceType,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[descriptor.resourceType],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: 'family-aspects',\n rowsPath: descriptor.rowsPath,\n tenancy: IntrospectionTenancyStance.APPLICATION_STRUCTURE,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: undefined,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createReadOnlyApiVariant()] },\n [CoreResourceOperation.LIST]: {\n variants: [{\n ...createReadOnlyListApiVariant(),\n /* The two slices every aspect list needs: which family, which kind. */\n filterFields: {\n family: z.string(),\n aspectKey: z.string(),\n },\n }],\n },\n },\n });\n}\n\n/**\n * Every aspect's relationships:\n *\n * - the STANDALONE application anchor each INTROSPECTION resource needs (primary scope derives\n * from it; STANDALONE keeps the route flat — the established pattern of its two siblings), and\n * - one REFERENCE relationship per edge, carrying `foreignKeyField`: that is what teaches the\n * frontend's field-identifier map to resolve the envelope field to its target resource, which\n * is the entire navigation story (labels, popups, links) with no bespoke lookup anywhere.\n */\nexport function buildWorkbenchAspectRelationships(): ResourceRelationship[] {\n const relationships: ResourceRelationship[] = [];\n for (const descriptor of WORKBENCH_ASPECT_DESCRIPTORS) {\n relationships.push(\n createResourcesRelationship(\n CoreResourceType.APPLICATION,\n descriptor.resourceType,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n contextPolicy: {},\n },\n ),\n );\n for (const edge of descriptor.edges) {\n const target = DESCRIPTOR_BY_ASPECT_KEY.get(edge.targetAspectKey);\n if (!target) {\n throw new Error(\n `workbench aspect ${descriptor.aspectKey}: edge ${edge.field} targets unknown aspect ${edge.targetAspectKey}`,\n );\n }\n relationships.push(\n createResourcesRelationship(\n target.resourceType,\n descriptor.resourceType,\n ResourceRelationshipCardinality.ONE,\n edge.many ? ResourceRelationshipCardinality.MANY : ResourceRelationshipCardinality.ONE,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: edge.field,\n contextPolicy: {},\n /*\n * STANDALONE here too, not only on the application anchor: a relationship without it\n * makes the router mount the holder NESTED under its target and drop the flat route —\n * measured on this very sweep (every edge-carrying aspect 404'd flat while its\n * edge-free siblings answered 200). A reference edge is navigation metadata, never a\n * URL parent.\n */\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n /*\n * The aspect graph is CYCLIC by nature — an ICP names its triggers and a trigger names\n * the ICPs it affects; a task prerequisites tasks; an asset derives from an asset. These\n * are REFERENCES in a knowledge graph, not a containment tree, so every edge declares\n * the cycle admissible rather than pretending the graph is a DAG.\n */\n allowCycle: true,\n /*\n * The two self-edges (a task's prerequisites, an asset's derivation source) are graphs\n * with roots — a MASTER asset derives from nothing — and the factory refuses a\n * self-reference whose parent is mandatory for exactly that reason. Harmless on the\n * non-self edges: every aspect reference is optional by nature (dangling-tolerant).\n */\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n },\n ),\n );\n }\n }\n return relationships;\n}\n\n/** The factory-map slice for all aspect resources — merged into the workbench map by its owner. */\nexport const workbenchAspectResources_ConfigurationsFactoryMap: Record<\n string,\n ReturnType<typeof buildWorkbenchAspectConfigurationFactory>\n> = Object.fromEntries(\n WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [\n descriptor.resourceType,\n buildWorkbenchAspectConfigurationFactory(descriptor),\n ]),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"workbench-aspect-resources.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/workbench/workbench-aspect-resources.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,iCAAiC,EAEjC,uCAAuC,EACvC,+BAA+B,EAC/B,0CAA0C,EAC1C,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,kFAAkF;AAClF,iBAAiB,EAAE,CAAC;AAEpB,OAAO,EACL,uCAAuC,EACvC,4BAA4B,GAC7B,MA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AAC;YAClE,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,MAAM,IAAI,KAAK,CACb,oBAAoB,UAAU,CAAC,SAAS,UAAU,IAAI,CAAC,KAAK,2BAA2B,IAAI,CAAC,eAAe,EAAE,CAC9G,CAAC;YACJ,CAAC;YACD,aAAa,CAAC,IAAI,CAChB,2BAA2B,CACzB,MAAM,CAAC,YAAY,EACnB,UAAU,CAAC,YAAY,EACvB,+BAA+B,CAAC,GAAG,EACnC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,+BAA+B,CAAC,IAAI,CAAC,CAAC,CAAC,+BAA+B,CAAC,GAAG,EACtF;gBACE,MAAM,EAAE,kBAAkB,CAAC,SAAS;gBACpC,eAAe,EAAE,IAAI,CAAC,KAAK;gBAC3B,aAAa,EAAE,EAAE;gBACjB;;;;;;mBAMG;gBACH,mBAAmB,EAAE,uCAAuC,CAAC,UAAU;gBACvE;;;;;mBAKG;gBACH,UAAU,EAAE,IAAI;gBAChB;;;;;mBAKG;gBACH,yBAAyB,EAAE,iCAAiC,CAAC,QAAQ;aACtE,CACF,CACF,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,mGAAmG;AACnG,MAAM,CAAC,MAAM,iDAAiD,GAG1D,MAAM,CAAC,WAAW,CACpB,4BAA4B,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC;IAC/C,UAAU,CAAC,YAAY;IACvB,wCAAwC,CAAC,UAAU,CAAC;CACrD,CAAC,CACH,CAAC","sourcesContent":["import {\n CoreResourceOperation,\n CoreResourceType,\n IntrospectionTenancyStance,\n PersistenceAdapter,\n RelationshipNature,\n ResourceParentResourceRequirement,\n ResourceRelationship,\n ResourceRelationshipAccessScopeStrategy,\n ResourceRelationshipCardinality,\n createResourceConfiguration_Initialization,\n createResourcesRelationship,\n} from '@wildo-ai/saas-models';\nimport { z } from 'zod';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\n\n// Decorator methods must exist before the module-load-time envelope builds below.\ninitZodDecorators();\n\nimport {\n WorkbenchShared_ResourceFieldIdentifier,\n WorkbenchShared_ResourceType,\n} from './workbench-resources-types.custom.shared.schemas';\nimport {\n createReadOnlyApiVariant,\n createReadOnlyListApiVariant,\n} from './workbench-resources.custom.shared.resources-config.schemas';\n\n/**\n * FAMILY ASPECT RESOURCES — the spine's schema-agnostic transcription of\n * `FAMILY_ASPECTS_REGISTRY` (`@wildo-ai/saas-specifications`, `_core/family-aspects.*`).\n *\n * ## The split, restated where it is enforced\n *\n * The registry is AUTHORITATIVE: item schemas, business keys, edges, all declared beside the\n * `_core` family schemas (decided 2026-09-01). The spine cannot import it — platform-core-shared\n * deliberately never depends on saas-specifications — so this module carries plain DATA: which\n * aspects exist, which envelope fields carry references, and which resource each reference\n * resolves to. A companion-side parity test holds this table to the registry; drift between the\n * two is a failing test, never a silent divergence.\n *\n * ## The envelope\n *\n * Aspect rows share ONE envelope shape (identity, family backlink, headline, the full item as a\n * raw record) plus the aspect's own FLATTENED reference fields. Flattening is the projection's\n * job and is what makes every edge a PLAIN foreign key the engine already resolves:\n *\n * - weighted edge objects flatten to key arrays (`jobs[].jobRef` → `jobIds`),\n * - multi-target fields split per target (`deliversRequirementRefs` →\n * `deliversFunctionalRequirementIds` + `deliversNonFunctionalRequirementIds`), because the\n * frontend resolves an FK field name to ONE resource — a mixed-kind array has no honest single\n * answer, and split fields read better anyway,\n * - every field name below maps to exactly one target across ALL aspects (collision-audited at\n * generation; the parity test re-checks it).\n *\n * The `family` field is the artifact BACKLINK for free: it is the specification-artifacts\n * resource's own field identifier, so the global field-identifier map already resolves it.\n */\n\n/**\n * How an aspect row gets its identity — mirrors the registry's `businessKey` contract.\n *\n * The three are not interchangeable and the fallback order between them is the point: a collection\n * whose schema declares a single-field key is addressed by it, a singleton has one row per family so\n * the aspect key IS the identity, and a keyless collection falls back to a positional address that is\n * stable per landed snapshot and honest about carrying no business meaning.\n */\nexport enum WorkbenchAspectIdentityKind {\n /** The item's own business key (`ref`, `taskRef`, …), unique within the aspect. */\n BUSINESS_KEY = 'business-key',\n /** One row per family — identity is the aspect key itself. */\n SINGLETON = 'singleton',\n /** Keyless collection (locale × jurisdictions): `<aspectKey>[<index>]`, stable per snapshot. */\n INDEXED = 'indexed',\n}\n\nexport interface WorkbenchAspectEdgeDescriptor {\n /** Envelope field carrying the reference key(s) — post-flatten, post-split. */\n readonly field: string;\n /** The registry aspect key the reference resolves to. */\n readonly targetAspectKey: string;\n /** `true` = key array; `false` = single key. */\n readonly many: boolean;\n /**\n * The REGISTRY field this edge transcribes, when the target alone does not identify it.\n *\n * The projection joins a routed reference to a spine edge by target, which is unique for every\n * aspect but one: a minion declares `readsResourceRefs` AND `writesResourceRefs`, both reaching\n * `domain-plan.resource`, because its containment whitelist is two lists and the direction is the\n * decision (#1495). Without this field the second reference would overwrite the first under one\n * envelope name — silently, and with the wrong half winning.\n *\n * Omitted everywhere the target is unique, which is everywhere else; when present it is matched\n * FIRST, so adding one can never change an existing aspect's join.\n */\n readonly sourceField?: string;\n}\n\nexport interface WorkbenchAspectDescriptor {\n /** The registry aspect key (`market.icp`) — the parity test's join column. */\n readonly aspectKey: string;\n readonly resourceType: WorkbenchShared_ResourceType;\n /** The introspection payload member this resource reads its rows from. */\n readonly rowsPath: string;\n readonly identity: WorkbenchAspectIdentityKind;\n readonly edges: readonly WorkbenchAspectEdgeDescriptor[];\n}\n\nexport const WORKBENCH_ASPECT_DESCRIPTORS: readonly WorkbenchAspectDescriptor[] = [\n {\n aspectKey: 'vision.idea',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_IDEA,\n rowsPath: 'visionIdeas',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.problem',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_PROBLEM,\n rowsPath: 'visionProblems',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.mission',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_MISSION,\n rowsPath: 'visionMissions',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.success-criterion',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_SUCCESS_CRITERION,\n rowsPath: 'visionSuccessCriteria',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'vision.constraint',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_CONSTRAINT,\n rowsPath: 'visionConstraints',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.category',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_CATEGORY,\n rowsPath: 'marketCategories',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'market.icp',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_ICP,\n rowsPath: 'marketIcps',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n /*\n * The SELF-edge (#1427): an ICP's `influences` name OTHER ICPs, carried inside objects and\n * invisible to the registry until it walked one level down. It is what makes a buying group\n * legible — the economic buyer an end user influences is why both are on record.\n */\n { field: 'influencesIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'personaIds', targetAspectKey: 'market.persona', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'channelIds', targetAspectKey: 'market.channel', many: true },\n { field: 'triggerIds', targetAspectKey: 'market.trigger', many: true },\n { field: 'alternativeIds', targetAspectKey: 'market.alternative', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'objectionIds', targetAspectKey: 'market.objection', many: true },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'market.persona',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PERSONA,\n rowsPath: 'marketPersonas',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'belongsToIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'channelIds', targetAspectKey: 'market.channel', many: true },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'market.job',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_JOB,\n rowsPath: 'marketJobs',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.pain',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PAIN,\n rowsPath: 'marketPains',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.gain',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_GAIN,\n rowsPath: 'marketGains',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.tone-of-voice',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_TONE_OF_VOICE,\n rowsPath: 'marketTonesOfVoice',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.benefit',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_BENEFIT,\n rowsPath: 'marketBenefits',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'deliveredByFeatureIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'addressesObjectionIds', targetAspectKey: 'market.objection', many: true },\n ],\n },\n {\n aspectKey: 'market.positioning',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_POSITIONING,\n rowsPath: 'marketPositionings',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpId', targetAspectKey: 'market.icp', many: false },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n { field: 'benefitIds', targetAspectKey: 'market.benefit', many: true },\n { field: 'alternativeIds', targetAspectKey: 'market.alternative', many: true },\n ],\n },\n {\n aspectKey: 'market.channel',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_CHANNEL,\n rowsPath: 'marketChannels',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.alternative',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_ALTERNATIVE,\n rowsPath: 'marketAlternatives',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.trigger',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_TRIGGER,\n rowsPath: 'marketTriggers',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'affectedIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'recommendedChannelIds', targetAspectKey: 'market.channel', many: true },\n ],\n },\n {\n aspectKey: 'market.buying-journey',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_BUYING_JOURNEY,\n rowsPath: 'marketBuyingJourneys',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpId', targetAspectKey: 'market.icp', many: false },\n ],\n },\n {\n aspectKey: 'market.proof',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PROOF,\n rowsPath: 'marketProofs',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'supportsBenefitIds', targetAspectKey: 'market.benefit', many: true },\n { field: 'supportsIcpIds', targetAspectKey: 'market.icp', many: true },\n ],\n },\n {\n aspectKey: 'market.objection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_OBJECTION,\n rowsPath: 'marketObjections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'raisedByIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'raisedByPersonaIds', targetAspectKey: 'market.persona', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'relatedBenefitIds', targetAspectKey: 'market.benefit', many: true },\n ],\n },\n {\n aspectKey: 'market.message-template',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_MESSAGE_TEMPLATE,\n rowsPath: 'marketMessageTemplates',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'requirements.functional',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_FUNCTIONAL,\n rowsPath: 'functionalRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n ],\n },\n {\n aspectKey: 'requirements.non-functional',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_NON_FUNCTIONAL,\n rowsPath: 'nonFunctionalRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n ],\n },\n {\n aspectKey: 'feature-drafts.draft',\n resourceType: WorkbenchShared_ResourceType.ASPECT_FEATURE_DRAFT,\n rowsPath: 'featureDrafts',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'roadmap.phase',\n resourceType: WorkbenchShared_ResourceType.ASPECT_ROADMAP_PHASE,\n rowsPath: 'roadmapPhases',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'deliversFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'deliversNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'deliversSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n aspectKey: 'business-model.plan',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PRICING_PLAN,\n rowsPath: 'pricingPlans',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'targetIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'includesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'includesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n ],\n },\n {\n aspectKey: 'brand.name',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_NAME,\n rowsPath: 'brandNames',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.logo-direction',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_LOGO_DIRECTION,\n rowsPath: 'brandLogoDirections',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.visual-tone',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_VISUAL_TONE,\n rowsPath: 'brandVisualTones',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.audience',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_AUDIENCE,\n rowsPath: 'brandAudiences',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [\n { field: 'targetIcpIds', targetAspectKey: 'market.icp', many: true },\n ],\n },\n {\n aspectKey: 'brand.asset',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_ASSET,\n rowsPath: 'brandAssets',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'derivedFromId', targetAspectKey: 'brand.asset', many: false },\n ],\n },\n /*\n * THE COMPLIANCE PROGRAMME (#1431, surfaced #1512). Ten aspects, and the edge set is the point:\n * an obligation reaches the decision that made it applicable, the assignment that owns it, the\n * gap that blocks it and the coverage decision that reviewed it — the whole reason this family is\n * addressable at all.\n *\n * SEVERAL registry fields collapse into ONE spine field wherever they share a target, because the\n * projection joins a reference to the descriptor edge whose target matches. A responsibility\n * assignment names five distinct ROLE fields and they become one `roleIds` link; the distinction\n * is not lost, it is on the row, where each field renders under its own word. What the edge\n * carries is the click-through, which is the same for all five.\n */\n {\n aspectKey: 'compliance-program.scope-selector',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_SCOPE_SELECTOR,\n rowsPath: 'complianceScopeSelectors',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'compliance-program.applicability-decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_APPLICABILITY_DECISION,\n rowsPath: 'complianceApplicabilityDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorId', targetAspectKey: 'compliance-program.scope-selector', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.obligation',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_OBLIGATION,\n rowsPath: 'complianceObligations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorIds', targetAspectKey: 'compliance-program.scope-selector', many: true },\n { field: 'responsibilityAssignmentIds', targetAspectKey: 'compliance-program.responsibility-assignment', many: true },\n { field: 'reviewOwnerRoleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n { field: 'gapIds', targetAspectKey: 'compliance-program.gap', many: true },\n { field: 'coverageDecisionId', targetAspectKey: 'compliance-program.obligation-coverage-decision', many: false },\n { field: 'sourceApplicabilityDecisionIds', targetAspectKey: 'compliance-program.applicability-decision', many: true },\n // A SELF-edge: an obligation may depend on another obligation being met first.\n { field: 'dependencyObligationIds', targetAspectKey: 'compliance-program.obligation', many: true },\n { field: 'sharedResponsibilityRuleId', targetAspectKey: 'compliance-program.shared-responsibility-rule', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.obligation-coverage-decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_COVERAGE_DECISION,\n rowsPath: 'complianceCoverageDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'obligationId', targetAspectKey: 'compliance-program.obligation', many: false },\n { field: 'reviewedByRoleId', targetAspectKey: 'compliance-program.role-authority', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.implementation-decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_IMPLEMENTATION_DECISION,\n rowsPath: 'complianceImplementationDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorIds', targetAspectKey: 'compliance-program.scope-selector', many: true },\n { field: 'gapIds', targetAspectKey: 'compliance-program.gap', many: true },\n ],\n },\n {\n aspectKey: 'compliance-program.responsibility-assignment',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_RESPONSIBILITY_ASSIGNMENT,\n rowsPath: 'complianceResponsibilityAssignments',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorId', targetAspectKey: 'compliance-program.scope-selector', many: false },\n // FIVE registry fields — responsible, operating, evidence-provider, approving, escalation —\n // one target, so one link. Each renders under its own word on the row.\n { field: 'roleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n ],\n },\n {\n aspectKey: 'compliance-program.gap',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_GAP,\n rowsPath: 'complianceGaps',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorId', targetAspectKey: 'compliance-program.scope-selector', many: false },\n { field: 'ownerRoleId', targetAspectKey: 'compliance-program.role-authority', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.documentation-requirement',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_DOCUMENTATION_REQUIREMENT,\n rowsPath: 'complianceDocumentationRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'approvingRoleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n ],\n },\n {\n aspectKey: 'compliance-program.role-authority',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_ROLE_AUTHORITY,\n rowsPath: 'complianceRoleAuthorities',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'compliance-program.shared-responsibility-rule',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_SHARED_RESPONSIBILITY_RULE,\n rowsPath: 'complianceSharedResponsibilityRules',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorIds', targetAspectKey: 'compliance-program.scope-selector', many: true },\n // Five role fields again — accountable, operating, evidence-provider, approving, conflict.\n { field: 'roleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n ],\n },\n {\n aspectKey: 'domain-plan.module',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_MODULE,\n rowsPath: 'domainPlanModules',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n /*\n * The DERIVED resource (#1482, surfaced #1512). Its rows are a projection of\n * `modules[].mainResources` rather than a member of the snapshot — a domain plan lists resources\n * as plain strings — and it is the single most-travelled link in the build lane: a build task's\n * `target.resourceRef` and `produces.resourceRef`, a placement decision's `subject.resourceRef`\n * and an experience view's `resourceId` all land here. Without this row every one of those was an\n * edge the graph could declare and not follow.\n */\n {\n aspectKey: 'domain-plan.resource',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_RESOURCE,\n rowsPath: 'domainPlanResources',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n // Back to the module that lists it — the one edge a projected row carries.\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n ],\n },\n {\n aspectKey: 'domain-plan.relationship',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_RELATIONSHIP,\n rowsPath: 'domainPlanRelationships',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n /*\n * The two ENDS, as ONE spine field. The registry declares `sourceResourceRef` and\n * `targetResourceRef` separately and both land on the same aspect, and the projection joins a\n * reference to the descriptor edge whose target matches — so one target is one field, by\n * construction. The DIRECTION is not lost: it is on the row itself, where `sourceResourceRef`\n * and `targetResourceRef` render as \"From\" and \"To\"; what this field carries is the\n * click-through, which is the same for both ends.\n */\n { field: 'relatesResourceIds', targetAspectKey: 'domain-plan.resource', many: true },\n ],\n },\n {\n aspectKey: 'build-plan.task',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BUILD_TASK,\n rowsPath: 'buildTasks',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'prerequisiteTaskIds', targetAspectKey: 'build-plan.task', many: true },\n /*\n * THE LINK BACK TO THE DECISION (#1427): a task's `target` names the domain-plan module or\n * relationship it builds. Carried inside an object, so the registry could not see it until its\n * drift pin walked one level down — and the spine could not link it until the registry did.\n */\n { field: 'targetModuleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'targetRelationshipId', targetAspectKey: 'domain-plan.relationship', many: false },\n /*\n * The most-travelled link in the build lane (#1482): a task's `target.resourceRef` and its\n * `produces.resourceRef` both name the resource it builds. Two registry fields, one target,\n * so one spine field — what is built and what it produces are the same resource.\n */\n { field: 'resourceIds', targetAspectKey: 'domain-plan.resource', many: true },\n /* A task may serve a DRAFTED FEATURE (#1433 row 4) — declared once the data was measured. */\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n /* The vision edges (#629) — see the registry for why a build task may serve these. */\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n { field: 'servesConstraintIds', targetAspectKey: 'vision.constraint', many: true },\n ],\n },\n {\n /*\n * One composition decision per framework scenario (#1491) — NO edges: a decision names a\n * SCENARIO (a framework template) and a basis (a closed vocabulary), neither of which is a\n * decided element another aspect addresses.\n */\n aspectKey: 'capability-composition.decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_CAPABILITY_COMPOSITION_DECISION,\n rowsPath: 'compositionDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /*\n * One planned website page (#1492). Its two edges reach the MARKET — a page is written for an\n * ICP, in a tone of voice — which is what makes the plan checkable from the snapshot's side.\n */\n aspectKey: 'website-plan.page',\n resourceType: WorkbenchShared_ResourceType.ASPECT_WEBSITE_PAGE,\n rowsPath: 'websitePages',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'audienceIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'toneOfVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n /* One planned surface of the application's experience (#1493) — where it lives, and what asked for it. */\n aspectKey: 'experience-plan.view',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_VIEW,\n rowsPath: 'experienceViews',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'resourceId', targetAspectKey: 'domain-plan.resource', many: false },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /* One configuration surface the application composes — no edge: it names files and tokens, not elements. */\n aspectKey: 'experience-plan.configuration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_CONFIGURATION,\n rowsPath: 'experienceConfigurations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /* One moment the application recognises — the module declaring it and the resource that earns it. */\n aspectKey: 'experience-plan.milestone',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_MILESTONE,\n rowsPath: 'experienceMilestones',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'triggerResourceId', targetAspectKey: 'domain-plan.resource', many: false },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /* One piece of guidance, linked to the milestones a person must hold first — the journey as one path. */\n aspectKey: 'experience-plan.guidance',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_GUIDANCE,\n rowsPath: 'experienceGuidance',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'gatedByMilestoneIds', targetAspectKey: 'experience-plan.milestone', many: true },\n { field: 'hostViewId', targetAspectKey: 'experience-plan.view', many: false },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /*\n * One worker the backend delegates to (#1495). Its only edges are what asked for it: a worker's\n * routes are the BUILT package's units of work, not decided elements.\n */\n aspectKey: 'integration-plan.worker',\n resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_WORKER,\n rowsPath: 'integrationWorkers',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /*\n * One cron minion (#1495) — and the ONE aspect whose edges are not unique by target: its\n * containment whitelist reaches `domain-plan.resource` TWICE, once per direction, so both\n * carry `sourceField`. The direction is the decision, and collapsing the two would report a\n * minion as reading what it only writes.\n */\n aspectKey: 'integration-plan.minion',\n resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_MINION,\n rowsPath: 'integrationMinions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'readsResourceIds', sourceField: 'readsResourceRefs', targetAspectKey: 'domain-plan.resource', many: true },\n { field: 'writesResourceIds', sourceField: 'writesResourceRefs', targetAspectKey: 'domain-plan.resource', many: true },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /* One provider bound into one scope — no edge: a provider ref is the ENGINE's catalogue, not a decided element. */\n aspectKey: 'integration-plan.provider-binding',\n resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_PROVIDER_BINDING,\n rowsPath: 'integrationProviderBindings',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /*\n * One requirement's standing (#1496), and the aspect that carries BOTH multi-edge shapes at\n * once — which is why every edge here names its source field.\n *\n * Its business key IS its edge: the row exists to say something about ONE requirement, and\n * `requirementRef` reaches both halves of the family — one field, two targets — routed by\n * MEMBERSHIP rather than by the row's own `half` field, which it does carry. An aspect edge\n * declares its targets ONCE and has no per-row selection, and membership MEASURES where a ref\n * lives instead of trusting a landed file's claim about it. `landedTaskIds` and\n * `provenTaskIds` are the other shape, two fields to ONE target, and they must stay apart\n * because proven is a subset of landed and collapsing them would report work as verified that\n * only exists.\n *\n * The projection therefore joins on the PAIR. Naming the source field on all four is what makes\n * that join load-bearing rather than incidental: with them omitted the target-only fallback\n * happens to resolve the same rows, and a regression in the join would go unnoticed.\n */\n aspectKey: 'application-maturity.requirement',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_MATURITY,\n rowsPath: 'requirementMaturities',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'functionalRequirementId', sourceField: 'requirementRef', targetAspectKey: 'requirements.functional', many: false },\n { field: 'nonFunctionalRequirementId', sourceField: 'requirementRef', targetAspectKey: 'requirements.non-functional', many: false },\n { field: 'landedTaskIds', sourceField: 'landedTaskRefs', targetAspectKey: 'build-plan.task', many: true },\n { field: 'provenTaskIds', sourceField: 'provenTaskRefs', targetAspectKey: 'build-plan.task', many: true },\n ],\n },\n {\n /* One planned documentation chapter (#1494) — no edge: it cites the BUILT product's own specifications. */\n aspectKey: 'documentation-plan.chapter',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENTATION_CHAPTER,\n rowsPath: 'documentationChapters',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'placement.group',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PLACEMENT_GROUP,\n rowsPath: 'placementGroups',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'placement.decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PLACEMENT_DECISION,\n rowsPath: 'placementDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'groupId', targetAspectKey: 'placement.group', many: false },\n /*\n * A placement decision's SUBJECT is a domain-plan module or a RESOURCE (#1427/#1482), both\n * carried inside an object. The resource half was the one the graph could not follow until\n * the projected resource got a row of its own.\n */\n { field: 'subjectModuleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'subjectResourceId', targetAspectKey: 'domain-plan.resource', many: false },\n ],\n },\n {\n aspectKey: 'compliance-candidate.section',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_SECTION,\n rowsPath: 'complianceCandidateSections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n /*\n * No edges since #1465: the producer family lands into the SET and is never indexed, so its\n * clause → fact link moved to `compliance-candidate-set.section`, the aspect that is read.\n */\n edges: [],\n },\n {\n aspectKey: 'compliance-candidate.variant-selection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_VARIANT_SELECTION,\n rowsPath: 'complianceCandidateVariantSelections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'document-facts.declaration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_FACT_DECLARATION,\n rowsPath: 'documentFactDeclarations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n /*\n * The same row shape as the descriptor above and a SEPARATE resource, because the two families it\n * transcribes are separate (#192): one is regenerated by a producer, the other is only ever written\n * by a person. Merging them into one browsable list would erase exactly the provenance the split\n * exists to keep, and a reader could no longer tell which declarations survive the next producer run.\n */\n {\n aspectKey: 'document-facts-authored.declaration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_AUTHORED_DOCUMENT_FACT_DECLARATION,\n rowsPath: 'authoredDocumentFactDeclarations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /*\n * INDEXED, not BUSINESS_KEY, and that is the registry's own answer rather than a simplification\n * here: the row is a union whose two arms key on different fields (`providerRef` vs\n * `subprocessorRef`), so no single field identifies a row across it.\n */\n aspectKey: 'processor-register.processor',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PROCESSOR_REGISTER_ENTRY,\n rowsPath: 'processorRegisterEntries',\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n {\n /*\n * BUSINESS_KEY, unlike the processor entry above: a risk entry carries `entryRef`, which the\n * family validator holds unique and which `reviewOrder` addresses rows by. An indexed identity\n * here would make the register's own reading order unable to name the rows it orders.\n */\n aspectKey: 'risk-register.entry',\n resourceType: WorkbenchShared_ResourceType.ASPECT_RISK_REGISTER_ENTRY,\n rowsPath: 'riskRegisterEntries',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'release-policy.selection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_RELEASE_POLICY_SELECTION,\n rowsPath: 'releasePolicySelections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'document-publication.variant',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_PUBLICATION_VARIANT,\n rowsPath: 'documentPublicationVariants',\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n /*\n * The two landed SET families of the governed-document lane (#1105). A drafting run EMITS one\n * candidate (the singular family the two `compliance-candidate.*` descriptors above transcribe) and\n * LANDS into the set; a composed release lands into the release set. Without these two, the set that\n * actually landed had no popup and no graph row — a journey that drafted the privacy notice showed the\n * draft's sections only through the producer's contract.\n */\n {\n aspectKey: 'compliance-candidate-set.candidate',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE,\n rowsPath: 'complianceCandidates',\n // Keyed on `documentRef`: the identity decision the set schema records (locale and jurisdictions\n // are publication-variant concerns and would make a draft's identity change as it matured).\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n /*\n * These rows CITE facts, and a fact is either DERIVED from the application or DECIDED by a\n * person — one registry edge with two targets, which the projection routes by membership, so\n * the spine needs one field per target (#1427).\n */\n { field: 'citesFactIds', targetAspectKey: 'document-facts.declaration', many: true },\n { field: 'citesDecidedFactIds', targetAspectKey: 'document-facts-authored.declaration', many: true },\n ],\n },\n {\n /*\n * One SECTION of a landed candidate (#1465), derived from the set's `candidates` and addressed by\n * the composed `<documentRef>/<sectionRef>` — a section ref alone repeats across documents.\n */\n aspectKey: 'compliance-candidate-set.section',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_SET_SECTION,\n rowsPath: 'complianceCandidateSetSections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n // Back to the candidate the section belongs to.\n { field: 'complianceCandidateId', targetAspectKey: 'compliance-candidate-set.candidate', many: false },\n /*\n * The section's CLAUSES cite the facts they rest on — derived or decided — one registry edge with\n * two targets, routed by membership, so one spine field per target (#1427).\n */\n { field: 'citesFactIds', targetAspectKey: 'document-facts.declaration', many: true },\n { field: 'citesDecidedFactIds', targetAspectKey: 'document-facts-authored.declaration', many: true },\n ],\n },\n {\n aspectKey: 'document-release-set.release',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_RELEASE,\n rowsPath: 'documentReleases',\n // A release is keyed by document × locale × jurisdictions — no single-field business key, so the\n // registry falls back to the indexed identity, as the publication variant beside it does.\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n];\n\nconst DESCRIPTOR_BY_ASPECT_KEY: ReadonlyMap<string, WorkbenchAspectDescriptor> = new Map(\n WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [descriptor.aspectKey, descriptor]),\n);\n\nexport function getWorkbenchAspectDescriptor(aspectKey: string): WorkbenchAspectDescriptor | undefined {\n return DESCRIPTOR_BY_ASPECT_KEY.get(aspectKey);\n}\n\n/**\n * The shared envelope, instantiated per aspect with its identity field and reference fields.\n *\n * `content` stays a RAW record for the same reason the artifact resource's does: the spine never\n * sees the item schemas; the workbench frontend renders `content` through the REAL `_core` schema\n * from the registry, so typed rendering happens where the type authority is a dependency.\n */\nexport function buildWorkbenchAspectEnvelopeSchema(\n descriptor: WorkbenchAspectDescriptor,\n): z.ZodObject<z.ZodRawShape> {\n const identityField = WorkbenchShared_ResourceFieldIdentifier[descriptor.resourceType];\n const shape: Record<string, z.ZodTypeAny> = {\n /**\n * The composed address the projection emits, and the ONLY field a row click can resolve by.\n *\n * `.isSummaryField()` is not decoration here. A list renders SUMMARIES, and the frontend resolves\n * a clicked row's target by reading this field off the item — so an id that does not survive the\n * projection makes every row in every aspect list silently stop responding to a click, while READ\n * still answers 200 (the adapter filters by `identityFields`, not by this name). The only symptom\n * is one console line. Pinned for the whole population by the addressing-field contract test.\n */\n [identityField]: z.string().min(1).isPrimaryKey().isSummaryField(),\n /**\n * The owning artifact family id — a LIVE reference: `family` is the artifacts resource's own\n * field identifier, so the global map resolves it, and the artifacts READ is addressable —\n * the one link out of any popup back to the document the aspect lives in.\n */\n family: z.string().isForeignKey().isSummaryField(),\n /** The registry aspect key (`market.icp`) — which KIND of aspect this row is. */\n aspectKey: z.string().isSummaryField(),\n /** The item's headline value (the registry's `headlineField`), projected for lists/summaries. */\n title: z.string().isSummaryField(),\n /**\n * The full item as landed — rendered frontend-side through the family's own `_core` schema.\n *\n * Deliberately NOT a summary field: it is the whole item, and carrying it in every list row is\n * what the summary projection exists to avoid.\n */\n content: z.record(z.string(), z.unknown()),\n };\n for (const edge of descriptor.edges) {\n // FK marking rides the ELEMENT for arrays (the decorator's home is the string type); the\n // display pipeline accepts `string | string[]` values on a reference field either way.\n shape[edge.field] = edge.many\n ? z.array(z.string().isForeignKey())\n : z.string().isForeignKey().optional();\n }\n return z.object(shape);\n}\n\ntype WorkbenchAspect_CoreOperations = CoreResourceOperation.READ | CoreResourceOperation.LIST;\n\n/**\n * One introspection resource-configuration factory per aspect, all from the same mold as their\n * two siblings: READ/LIST only, `APPLICATION_STRUCTURE` tenancy, rows served by the companion's\n * family-aspects behavior at this aspect's `rowsPath`. Identity is always the COMPOSED field the\n * projection emits (see the identifier-map note in the types module).\n */\nexport function buildWorkbenchAspectConfigurationFactory(descriptor: WorkbenchAspectDescriptor) {\n const envelopeSchema = buildWorkbenchAspectEnvelopeSchema(descriptor);\n return (resourcesRelationships: ResourceRelationship[]) =>\n createResourceConfiguration_Initialization<undefined, WorkbenchAspect_CoreOperations, typeof envelopeSchema>({\n mainSchema: envelopeSchema,\n resourceIdentifier: descriptor.resourceType,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[descriptor.resourceType],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: 'family-aspects',\n rowsPath: descriptor.rowsPath,\n tenancy: IntrospectionTenancyStance.APPLICATION_STRUCTURE,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: undefined,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createReadOnlyApiVariant()] },\n [CoreResourceOperation.LIST]: {\n variants: [{\n ...createReadOnlyListApiVariant(),\n /* The two slices every aspect list needs: which family, which kind. */\n filterFields: {\n family: z.string(),\n aspectKey: z.string(),\n },\n }],\n },\n },\n });\n}\n\n/**\n * Every aspect's relationships:\n *\n * - the STANDALONE application anchor each INTROSPECTION resource needs (primary scope derives\n * from it; STANDALONE keeps the route flat — the established pattern of its two siblings), and\n * - one REFERENCE relationship per edge, carrying `foreignKeyField`: that is what teaches the\n * frontend's field-identifier map to resolve the envelope field to its target resource, which\n * is the entire navigation story (labels, popups, links) with no bespoke lookup anywhere.\n */\nexport function buildWorkbenchAspectRelationships(): ResourceRelationship[] {\n const relationships: ResourceRelationship[] = [];\n for (const descriptor of WORKBENCH_ASPECT_DESCRIPTORS) {\n relationships.push(\n createResourcesRelationship(\n CoreResourceType.APPLICATION,\n descriptor.resourceType,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n contextPolicy: {},\n },\n ),\n );\n for (const edge of descriptor.edges) {\n const target = DESCRIPTOR_BY_ASPECT_KEY.get(edge.targetAspectKey);\n if (!target) {\n throw new Error(\n `workbench aspect ${descriptor.aspectKey}: edge ${edge.field} targets unknown aspect ${edge.targetAspectKey}`,\n );\n }\n relationships.push(\n createResourcesRelationship(\n target.resourceType,\n descriptor.resourceType,\n ResourceRelationshipCardinality.ONE,\n edge.many ? ResourceRelationshipCardinality.MANY : ResourceRelationshipCardinality.ONE,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: edge.field,\n contextPolicy: {},\n /*\n * STANDALONE here too, not only on the application anchor: a relationship without it\n * makes the router mount the holder NESTED under its target and drop the flat route —\n * measured on this very sweep (every edge-carrying aspect 404'd flat while its\n * edge-free siblings answered 200). A reference edge is navigation metadata, never a\n * URL parent.\n */\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n /*\n * The aspect graph is CYCLIC by nature — an ICP names its triggers and a trigger names\n * the ICPs it affects; a task prerequisites tasks; an asset derives from an asset. These\n * are REFERENCES in a knowledge graph, not a containment tree, so every edge declares\n * the cycle admissible rather than pretending the graph is a DAG.\n */\n allowCycle: true,\n /*\n * The two self-edges (a task's prerequisites, an asset's derivation source) are graphs\n * with roots — a MASTER asset derives from nothing — and the factory refuses a\n * self-reference whose parent is mandatory for exactly that reason. Harmless on the\n * non-self edges: every aspect reference is optional by nature (dangling-tolerant).\n */\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n },\n ),\n );\n }\n }\n return relationships;\n}\n\n/** The factory-map slice for all aspect resources — merged into the workbench map by its owner. */\nexport const workbenchAspectResources_ConfigurationsFactoryMap: Record<\n string,\n ReturnType<typeof buildWorkbenchAspectConfigurationFactory>\n> = Object.fromEntries(\n WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [\n descriptor.resourceType,\n buildWorkbenchAspectConfigurationFactory(descriptor),\n ]),\n);\n"]}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The application-creation board's identity, shared because THREE packages must agree on it.
|
|
3
|
-
*
|
|
4
|
-
* - the workbench declares the composite view under {@link WORKBENCH_CREATION_BOARD_VIEW_REF} and
|
|
5
|
-
* renders one `<Section>` per {@link WorkbenchCreationBoardSection};
|
|
6
|
-
* - the companion authors the labels the view resolves, keyed by exactly those refs;
|
|
7
|
-
* - and neither can see the other's source.
|
|
8
|
-
*
|
|
9
|
-
* Three string literals in three packages compile perfectly and fail at runtime as a blank sidebar
|
|
10
|
-
* row and headless sections — `tCompositeView` and `tCompositeViewSection` answer the EMPTY STRING
|
|
11
|
-
* for a missing key rather than echoing it, so nothing reports the drift. That is the same failure
|
|
12
|
-
* the workbench's two resource launchers shipped with, and the same reason their vocabulary lives
|
|
13
|
-
* here rather than on either side.
|
|
14
|
-
*
|
|
15
|
-
* This carries NO React and NO Node: it is a vocabulary, which is what makes it importable by a
|
|
16
|
-
* browser bundle and by a daemon at once.
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* The view's `ref` — the composite-view key, the launcher target, and the `/composite/<ref>` route.
|
|
20
|
-
*
|
|
21
|
-
* It MUST NOT contain a dot. The label lookup path is `composite_views.<translationRef>.<key>` and
|
|
22
|
-
* BOTH readers — the backend's key filter and the frontend's `t` — split that whole path on `.` and
|
|
23
|
-
* walk it segment by segment. A dotted ref therefore nests its labels one level deeper than anything
|
|
24
|
-
* that reads them expects, and the failure is silent: `tCompositeView` answers the empty string.
|
|
25
|
-
*/
|
|
26
|
-
export declare const WORKBENCH_CREATION_BOARD_VIEW_REF = "creation-board";
|
|
27
|
-
/**
|
|
28
|
-
* The label PATH the view's title and description hang off — `composite_views.<this>.title`.
|
|
29
|
-
*
|
|
30
|
-
* DERIVED by the engine's `buildApplicationViewTranslationRef` (`app.<ref>`), not chosen here. It is
|
|
31
|
-
* restated because the companion cannot import a frontend package to compute it, and the workbench's
|
|
32
|
-
* own test asserts this constant against the engine's derivation — so the copy cannot drift silently
|
|
33
|
-
* from the function that actually produces it at runtime.
|
|
34
|
-
*
|
|
35
|
-
* A DOT PATH, not an object key. The label file nests `app` and then the ref; a single
|
|
36
|
-
* `'app.creation-board'` property is unreachable from either reader. Measured 2026-08-31, after a
|
|
37
|
-
* flat key made the board's title, its six section headings and its sidebar row all render empty with
|
|
38
|
-
* nothing reporting it.
|
|
39
|
-
*/
|
|
40
|
-
export declare const WORKBENCH_CREATION_BOARD_TRANSLATION_REF = "app.creation-board";
|
|
41
|
-
/**
|
|
42
|
-
* The board's sections, in the order they are read.
|
|
43
|
-
*
|
|
44
|
-
* The order is a decision, not a listing: a playbook run lands families, which make build-plan tasks
|
|
45
|
-
* ready, which the coding lane executes, which the write register records. Reading them in that order
|
|
46
|
-
* is reading the loop. The evidence section is LAST and always visible rather than behind a tab,
|
|
47
|
-
* because it is the undo that sits in front of every dispatch button above it.
|
|
48
|
-
*
|
|
49
|
-
* The governance-facts section sits between the executions and the evidence: it is the point in the
|
|
50
|
-
* loop where derivation stops and a person decides, and it belongs after everything a machine can do
|
|
51
|
-
* for them rather than before it — a creator answering it first would be answering questions the
|
|
52
|
-
* accepted specifications have not yet made concrete.
|
|
53
|
-
*/
|
|
54
|
-
export declare enum WorkbenchCreationBoardSection {
|
|
55
|
-
/** Every compiled playbook and whether it can run right now, with the reasons it cannot. */
|
|
56
|
-
PLAYBOOKS = "playbooks",
|
|
57
|
-
/** What is running in the companion process, and what died leaving a resumable checkpoint. */
|
|
58
|
-
RUNS = "runs",
|
|
59
|
-
/** The next ready build-plan task and the exact paths it may and may not write. */
|
|
60
|
-
BUILD_PLAN = "build-plan",
|
|
61
|
-
/** Whether the coding agent is registered, and whether a run holds the workspace mutation lock. */
|
|
62
|
-
CODING_LANE = "coding-lane",
|
|
63
|
-
/** The actor and flow executions the control plane holds, and the tasks they created. */
|
|
64
|
-
EXECUTIONS = "executions",
|
|
65
|
-
/**
|
|
66
|
-
* The governed-document facts only a PERSON may establish — a creator decision or a qualified
|
|
67
|
-
* review — and the file their answers land in (#192).
|
|
68
|
-
*
|
|
69
|
-
* Its own section rather than a page of the playbook lane, because it is the one place on this
|
|
70
|
-
* board where a HUMAN is the authority. Everything above dispatches derivation; this collects
|
|
71
|
-
* decisions no derivation may make, and its answers land in `document-facts-authored`, a family no
|
|
72
|
-
* producer writes.
|
|
73
|
-
*/
|
|
74
|
-
GOVERNANCE_FACTS = "governance-facts",
|
|
75
|
-
/** What each run wrote, with its revert, and the execution traces behind it. */
|
|
76
|
-
EVIDENCE = "evidence"
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* The section refs in render order.
|
|
80
|
-
*
|
|
81
|
-
* `Object.values` on a string enum preserves declaration order, so this IS the enum rather than a
|
|
82
|
-
* second list beside it — the shape that would let the two disagree.
|
|
83
|
-
*/
|
|
84
|
-
export declare const WORKBENCH_CREATION_BOARD_SECTION_REFS: readonly WorkbenchCreationBoardSection[];
|
|
85
|
-
/**
|
|
86
|
-
* One authored title and description per section — the type the companion's label file satisfies.
|
|
87
|
-
*
|
|
88
|
-
* A `Record` keyed by the enum is what makes label coverage a COMPILE error rather than a test: add a
|
|
89
|
-
* section and the label file stops compiling until it is described. A test could only report the gap
|
|
90
|
-
* after someone ran it, and the gap's runtime symptom is a headless section nobody notices.
|
|
91
|
-
*/
|
|
92
|
-
export type WorkbenchCreationBoardSectionLabels = {
|
|
93
|
-
readonly [section in WorkbenchCreationBoardSection]: {
|
|
94
|
-
readonly title: string;
|
|
95
|
-
readonly description: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
//# sourceMappingURL=workbench-creation-board.custom.shared.schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workbench-creation-board.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/workbench/workbench-creation-board.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,mBAAmB,CAAC;AAElE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wCAAwC,uBAA6C,CAAC;AAEnG;;;;;;;;;;;;GAYG;AACH,oBAAY,6BAA6B;IACvC,4FAA4F;IAC5F,SAAS,cAAc;IACvB,8FAA8F;IAC9F,IAAI,SAAS;IACb,mFAAmF;IACnF,UAAU,eAAe;IACzB,mGAAmG;IACnG,WAAW,gBAAgB;IAC3B,yFAAyF;IACzF,UAAU,eAAe;IACzB;;;;;;;;OAQG;IACH,gBAAgB,qBAAqB;IACrC,gFAAgF;IAChF,QAAQ,aAAa;CACtB;AAED;;;;;GAKG;AACH,eAAO,MAAM,qCAAqC,EAAE,SAAS,6BAA6B,EAC5C,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,EAAE,OAAO,IAAI,6BAA6B,GAAG;QACnD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;KAC9B;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workbench-creation-board.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/workbench/workbench-creation-board.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC;AAElE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,OAAO,iCAAiC,EAAE,CAAC;AAEnG;;;;;;;;;;;;GAYG;AACH,MAAM,CAAN,IAAY,6BAuBX;AAvBD,WAAY,6BAA6B;IACvC,4FAA4F;IAC5F,wDAAuB,CAAA;IACvB,8FAA8F;IAC9F,8CAAa,CAAA;IACb,mFAAmF;IACnF,0DAAyB,CAAA;IACzB,mGAAmG;IACnG,4DAA2B,CAAA;IAC3B,yFAAyF;IACzF,0DAAyB,CAAA;IACzB;;;;;;;;OAQG;IACH,sEAAqC,CAAA;IACrC,gFAAgF;IAChF,sDAAqB,CAAA;AACvB,CAAC,EAvBW,6BAA6B,KAA7B,6BAA6B,QAuBxC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAChD,MAAM,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC","sourcesContent":["/**\n * The application-creation board's identity, shared because THREE packages must agree on it.\n *\n * - the workbench declares the composite view under {@link WORKBENCH_CREATION_BOARD_VIEW_REF} and\n * renders one `<Section>` per {@link WorkbenchCreationBoardSection};\n * - the companion authors the labels the view resolves, keyed by exactly those refs;\n * - and neither can see the other's source.\n *\n * Three string literals in three packages compile perfectly and fail at runtime as a blank sidebar\n * row and headless sections — `tCompositeView` and `tCompositeViewSection` answer the EMPTY STRING\n * for a missing key rather than echoing it, so nothing reports the drift. That is the same failure\n * the workbench's two resource launchers shipped with, and the same reason their vocabulary lives\n * here rather than on either side.\n *\n * This carries NO React and NO Node: it is a vocabulary, which is what makes it importable by a\n * browser bundle and by a daemon at once.\n */\n\n/**\n * The view's `ref` — the composite-view key, the launcher target, and the `/composite/<ref>` route.\n *\n * It MUST NOT contain a dot. The label lookup path is `composite_views.<translationRef>.<key>` and\n * BOTH readers — the backend's key filter and the frontend's `t` — split that whole path on `.` and\n * walk it segment by segment. A dotted ref therefore nests its labels one level deeper than anything\n * that reads them expects, and the failure is silent: `tCompositeView` answers the empty string.\n */\nexport const WORKBENCH_CREATION_BOARD_VIEW_REF = 'creation-board';\n\n/**\n * The label PATH the view's title and description hang off — `composite_views.<this>.title`.\n *\n * DERIVED by the engine's `buildApplicationViewTranslationRef` (`app.<ref>`), not chosen here. It is\n * restated because the companion cannot import a frontend package to compute it, and the workbench's\n * own test asserts this constant against the engine's derivation — so the copy cannot drift silently\n * from the function that actually produces it at runtime.\n *\n * A DOT PATH, not an object key. The label file nests `app` and then the ref; a single\n * `'app.creation-board'` property is unreachable from either reader. Measured 2026-08-31, after a\n * flat key made the board's title, its six section headings and its sidebar row all render empty with\n * nothing reporting it.\n */\nexport const WORKBENCH_CREATION_BOARD_TRANSLATION_REF = `app.${WORKBENCH_CREATION_BOARD_VIEW_REF}`;\n\n/**\n * The board's sections, in the order they are read.\n *\n * The order is a decision, not a listing: a playbook run lands families, which make build-plan tasks\n * ready, which the coding lane executes, which the write register records. Reading them in that order\n * is reading the loop. The evidence section is LAST and always visible rather than behind a tab,\n * because it is the undo that sits in front of every dispatch button above it.\n *\n * The governance-facts section sits between the executions and the evidence: it is the point in the\n * loop where derivation stops and a person decides, and it belongs after everything a machine can do\n * for them rather than before it — a creator answering it first would be answering questions the\n * accepted specifications have not yet made concrete.\n */\nexport enum WorkbenchCreationBoardSection {\n /** Every compiled playbook and whether it can run right now, with the reasons it cannot. */\n PLAYBOOKS = 'playbooks',\n /** What is running in the companion process, and what died leaving a resumable checkpoint. */\n RUNS = 'runs',\n /** The next ready build-plan task and the exact paths it may and may not write. */\n BUILD_PLAN = 'build-plan',\n /** Whether the coding agent is registered, and whether a run holds the workspace mutation lock. */\n CODING_LANE = 'coding-lane',\n /** The actor and flow executions the control plane holds, and the tasks they created. */\n EXECUTIONS = 'executions',\n /**\n * The governed-document facts only a PERSON may establish — a creator decision or a qualified\n * review — and the file their answers land in (#192).\n *\n * Its own section rather than a page of the playbook lane, because it is the one place on this\n * board where a HUMAN is the authority. Everything above dispatches derivation; this collects\n * decisions no derivation may make, and its answers land in `document-facts-authored`, a family no\n * producer writes.\n */\n GOVERNANCE_FACTS = 'governance-facts',\n /** What each run wrote, with its revert, and the execution traces behind it. */\n EVIDENCE = 'evidence',\n}\n\n/**\n * The section refs in render order.\n *\n * `Object.values` on a string enum preserves declaration order, so this IS the enum rather than a\n * second list beside it — the shape that would let the two disagree.\n */\nexport const WORKBENCH_CREATION_BOARD_SECTION_REFS: readonly WorkbenchCreationBoardSection[] =\n Object.values(WorkbenchCreationBoardSection);\n\n/**\n * One authored title and description per section — the type the companion's label file satisfies.\n *\n * A `Record` keyed by the enum is what makes label coverage a COMPILE error rather than a test: add a\n * section and the label file stops compiling until it is described. A test could only report the gap\n * after someone ran it, and the gap's runtime symptom is a headless section nobody notices.\n */\nexport type WorkbenchCreationBoardSectionLabels = {\n readonly [section in WorkbenchCreationBoardSection]: {\n readonly title: string;\n readonly description: string;\n };\n};\n"]}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The application-creation CONVERSATION's identity — the surface that replaces the three-view board
|
|
3
|
+
* (#1454), shared for the same reason the board's is: the workbench declares the composite view,
|
|
4
|
+
* the companion authors its labels, and neither can see the other's source. A string literal on
|
|
5
|
+
* each side compiles and fails at runtime as a blank menubar item and a headless page, silently.
|
|
6
|
+
*
|
|
7
|
+
* ## What it is
|
|
8
|
+
*
|
|
9
|
+
* Paul, 2026-09-21: the workbench is "primarily a chatbot, with some elements for details that are
|
|
10
|
+
* displayed" beside it; what the creator must PROVIDE is kept apart from what the system is DOING;
|
|
11
|
+
* there is no user-facing journey in the playbook phases; and a free session is primordial. And
|
|
12
|
+
* 2026-09-22: no two-zone split navigation, the destinations on the menubar. So this view is the
|
|
13
|
+
* page: a stream and a composer, details opening OVER it as sheets, the workbench's destinations on
|
|
14
|
+
* the menubar. The board stays reachable as a destination until this surface covers it, then
|
|
15
|
+
* retires (#1454, Appendix 4, Step 9).
|
|
16
|
+
*
|
|
17
|
+
* This carries NO React and NO Node: it is a vocabulary, importable by a browser bundle and by a
|
|
18
|
+
* daemon at once.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* The view's `ref` — the composite-view key, the launcher target, and the `/composite/<ref>` route.
|
|
22
|
+
*
|
|
23
|
+
* No dot, for the reason the board's ref records: both label readers split the whole path on `.`
|
|
24
|
+
* and walk it, so a dotted ref nests its labels one level deeper than anything expects and
|
|
25
|
+
* `tCompositeView` answers the empty string.
|
|
26
|
+
*/
|
|
27
|
+
export declare const WORKBENCH_CREATION_CONVERSATION_VIEW_REF = "creation-conversation";
|
|
28
|
+
/**
|
|
29
|
+
* The flows-actors SYSTEM the conversation talks to — the creation assistant the companion hosts
|
|
30
|
+
* on the engine's conversational runtime (#1454, Step 4). Shared because the companion REGISTERS
|
|
31
|
+
* it and the workbench DECLARES a view on it, and neither can see the other's source: a mismatch
|
|
32
|
+
* would be a chat that lists no system and says `unavailable`, with nothing reporting why.
|
|
33
|
+
*/
|
|
34
|
+
export declare const WORKBENCH_CREATION_CONVERSATION_SYSTEM_REF = "application-creation.conversation";
|
|
35
|
+
/**
|
|
36
|
+
* The label path the view's title and description hang off — `composite_views.<this>.title`.
|
|
37
|
+
* Derived by the engine's `buildApplicationViewTranslationRef` (`app.<ref>`) and restated here
|
|
38
|
+
* because the companion cannot import a frontend package to compute it; the workbench's own test
|
|
39
|
+
* asserts it against the engine's derivation.
|
|
40
|
+
*/
|
|
41
|
+
export declare const WORKBENCH_CREATION_CONVERSATION_TRANSLATION_REF = "app.creation-conversation";
|
|
42
|
+
/**
|
|
43
|
+
* The full label path every word on the conversation page hangs off —
|
|
44
|
+
* `composite_views.app.creation-conversation`. A caller composes
|
|
45
|
+
* `${WORKBENCH_CREATION_CONVERSATION_LABEL_ROOT}.${block}` and reads leaves off it with `useI18n`.
|
|
46
|
+
*/
|
|
47
|
+
export declare const WORKBENCH_CREATION_CONVERSATION_LABEL_ROOT = "composite_views.app.creation-conversation";
|
|
48
|
+
/**
|
|
49
|
+
* The page's copy BLOCKS — the contract between the words the page reads and the words the companion
|
|
50
|
+
* authors. A block added here stops the companion's label file compiling until it is authored; the
|
|
51
|
+
* leaves inside a block are the page's business and a leaf nobody authored renders as its own key,
|
|
52
|
+
* visibly (`display-text-comes-from-i18n.md`).
|
|
53
|
+
*
|
|
54
|
+
* One block per surface a reader meets, in the order they meet them.
|
|
55
|
+
*/
|
|
56
|
+
export declare enum WorkbenchCreationConversationCopyBlock {
|
|
57
|
+
/**
|
|
58
|
+
* HOME: the question the page opens on ("what do you want to get done?"), the "since you were
|
|
59
|
+
* last here" lines, and the four outcomes (#1454, Step 3).
|
|
60
|
+
*/
|
|
61
|
+
HOME = "home",
|
|
62
|
+
/** The thread switcher: the new-conversation affordance and how a thread's row reads. */
|
|
63
|
+
THREADS = "threads",
|
|
64
|
+
/**
|
|
65
|
+
* The STREAM: the assistant's name, the empty state, how a run card reads in each state
|
|
66
|
+
* (running, landed, cut short, waiting), the "filed under" receipt, and the pointer to a question
|
|
67
|
+
* asked elsewhere.
|
|
68
|
+
*/
|
|
69
|
+
STREAM = "stream",
|
|
70
|
+
/** The COMPOSER: its placeholder, Send, and the suggestion chips above it. */
|
|
71
|
+
COMPOSER = "composer",
|
|
72
|
+
/**
|
|
73
|
+
* Every PLAYBOOK's words for a creator — a title and a one-line goal — keyed by its ref with dots
|
|
74
|
+
* replaced by `__` (`sanitizeWorkbenchCreationPlaneIdentity`), because a label leaf may not
|
|
75
|
+
* contain a dot: `top_down__vision-elicitation__title`, `…__goal`. The catalog's own `intent` is
|
|
76
|
+
* an engineering paragraph; these are the words Home and the stream use for it. A companion test
|
|
77
|
+
* holds the set equal to the compiled catalog (#1454, R13).
|
|
78
|
+
*/
|
|
79
|
+
PLAYBOOKS = "playbooks",
|
|
80
|
+
/**
|
|
81
|
+
* The INTERVIEW: a playbook's declared questions asked one per turn, as chat, with each answer
|
|
82
|
+
* filed into the dossier (#1454, Step 5 — walk-through 1). Its intro line, the "filed under"
|
|
83
|
+
* receipt, the yes/no chips, the all-answered line and the accept-and-run affordance.
|
|
84
|
+
*/
|
|
85
|
+
INTERVIEW = "interview"
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The playbook an UNTOUCHED application opens on, held as a conversation (decided by constraint,
|
|
89
|
+
* #1454): the vision interview. Read from the catalog by ref, never restated — the companion's
|
|
90
|
+
* playbook-words test pins that this ref is a compiled playbook, so a renamed catalog entry fails
|
|
91
|
+
* a test rather than opening a blank interview.
|
|
92
|
+
*/
|
|
93
|
+
export declare const WORKBENCH_OPENING_INTERVIEW_PLAYBOOK_REF = "top_down.vision-elicitation";
|
|
94
|
+
/** The leaf a playbook's title or goal lives under, inside the `PLAYBOOKS` block. */
|
|
95
|
+
export declare function workbenchPlaybookCopyLeaf(playbookRef: string, word: 'title' | 'goal'): string;
|
|
96
|
+
/**
|
|
97
|
+
* The authored copy, keyed by block — the type the companion's label file satisfies. Same shape and
|
|
98
|
+
* same reasoning the retired board's copy type had (#1489: its blocks were re-homed per resource).
|
|
99
|
+
*/
|
|
100
|
+
export type WorkbenchCreationConversationCopyLabels = {
|
|
101
|
+
readonly [block in WorkbenchCreationConversationCopyBlock]: Readonly<Record<string, string>>;
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=workbench-creation-conversation.custom.shared.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workbench-creation-conversation.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/workbench/workbench-creation-conversation.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,wCAAwC,0BAA0B,CAAC;AAEhF;;;;;GAKG;AACH,eAAO,MAAM,0CAA0C,sCAAsC,CAAC;AAE9F;;;;;GAKG;AACH,eAAO,MAAM,+CAA+C,8BAAoD,CAAC;AAEjH;;;;GAIG;AACH,eAAO,MAAM,0CAA0C,8CAAuE,CAAC;AAE/H;;;;;;;GAOG;AACH,oBAAY,sCAAsC;IAChD;;;OAGG;IACH,IAAI,SAAS;IACb,yFAAyF;IACzF,OAAO,YAAY;IACnB;;;;OAIG;IACH,MAAM,WAAW;IACjB,8EAA8E;IAC9E,QAAQ,aAAa;IACrB;;;;;;OAMG;IACH,SAAS,cAAc;IACvB;;;;OAIG;IACH,SAAS,cAAc;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,gCAAgC,CAAC;AAEtF,qFAAqF;AACrF,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAE7F;AAED;;;GAGG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD,QAAQ,EAAE,KAAK,IAAI,sCAAsC,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7F,CAAC"}
|