@wildo-ai/platform-core-shared 1.1.3 → 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.
Files changed (62) hide show
  1. package/dist/esm/index.d.ts +2 -1
  2. package/dist/esm/index.d.ts.map +1 -1
  3. package/dist/esm/index.js +2 -1
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/esm/runtime/application-backend-env.contracts.d.ts +28 -2
  6. package/dist/esm/runtime/application-backend-env.contracts.d.ts.map +1 -1
  7. package/dist/esm/runtime/application-backend-env.contracts.js +27 -1
  8. package/dist/esm/runtime/application-backend-env.contracts.js.map +1 -1
  9. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts +60 -66
  10. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts.map +1 -1
  11. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts +60 -66
  12. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts.map +1 -1
  13. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js +2 -2
  14. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.js.map +1 -1
  15. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts +6 -10
  16. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts.map +1 -1
  17. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts +6 -10
  18. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts.map +1 -1
  19. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js +26 -28
  20. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.js.map +1 -1
  21. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts +27 -0
  22. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts.map +1 -1
  23. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js +56 -0
  24. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js.map +1 -1
  25. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts +13 -0
  26. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts.map +1 -1
  27. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js +418 -1
  28. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js.map +1 -1
  29. package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.d.ts +0 -98
  30. package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.d.ts.map +0 -1
  31. package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.js.map +0 -1
  32. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts +103 -0
  33. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts.map +1 -0
  34. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js +99 -0
  35. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js.map +1 -0
  36. package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.d.ts +49 -0
  37. package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.d.ts.map +1 -0
  38. package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.js +42 -0
  39. package/dist/esm/workbench/workbench-creation-dossier.custom.shared.schemas.js.map +1 -0
  40. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts +378 -11
  41. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts.map +1 -1
  42. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js +426 -5
  43. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js.map +1 -1
  44. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts +882 -9
  45. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts.map +1 -1
  46. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js +1154 -14
  47. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js.map +1 -1
  48. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts +117 -1
  49. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts.map +1 -1
  50. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js +160 -0
  51. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js.map +1 -1
  52. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts +184 -7
  53. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts.map +1 -1
  54. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js +1 -1
  55. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js.map +1 -1
  56. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts +2 -1
  57. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts.map +1 -1
  58. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js +10 -5
  59. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js.map +1 -1
  60. package/dist/tsconfig.build.tsbuildinfo +1 -1
  61. package/package.json +4 -13
  62. package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.js +0 -86
@@ -1 +1 @@
1
- {"version":3,"file":"workbench-creation-plane.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../src/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,4BAA4B,EAC5B,iCAAiC,EAEjC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ACvB,kBAAkB,EAAE,kBAAkB,CAAC,aAAa;IACpD,oBAAoB,EAAE;QACpB,QAAQ,EAAE,8BAA8B,CAAC,cAAc;QACvD,OAAO,EAAE,0BAA0B,CAAC,mBAAmB;KACxD;IACD,cAAc,EAAE,CAAC,qBAAqB,CAAC,IAAI,EAAE,qBAAqB,CAAC,IAAI,CAAC;IACxE,eAAe,EAAE,iCAAiC;IAClD,uBAAuB,EAAE;QACvB,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,iCAAiC,EAAE,CAAC,EAAE;QACjF,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,qCAAqC,EAAE,CAAC,EAAE;KACtF;CACF,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,wDAAwD,GAAG;IACtE,CAAC,4BAA4B,CAAC,SAAS,CAAC,EAAE,8DAA8D;IACxG,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,EAAE,mEAAmE;IACpH,CAAC,4BAA4B,CAAC,iBAAiB,CAAC,EAAE,oEAAoE;IACtH,CAAC,4BAA4B,CAAC,cAAc,CAAC,EAAE,kEAAkE;CAClH,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n CORE_APP_ROLES,\n CoreResourceOperation,\n CoreResourceType,\n IntrospectionTenancyStance,\n PersistenceAdapter,\n ResourceOperationRiskLevel,\n ResourceOperationVariantType,\n ResourceParentResourceRequirement,\n ResourceRelationship,\n ResourceRelationshipAccessScopeStrategy,\n ResourceRelationshipCardinality,\n RelationshipNature,\n createResourceConfiguration_Initialization,\n createResourcesRelationship,\n} from '@wildo-ai/saas-models';\n\nimport {\n WorkbenchShared_ResourceFieldIdentifier,\n WorkbenchShared_ResourceType,\n} from './workbench-resources-types.custom.shared.schemas';\nimport { WORKBENCH_INTROSPECTION_MAX_ROWS_PER_PAGE } from './workbench-resources.custom.shared.resources-config.schemas';\nimport {\n Workbench_BuildPlanDispatchNextRequest_Schema,\n Workbench_BuildPlanDispatchOutcome_Schema,\n Workbench_BuildPlanTask_Schema,\n Workbench_Playbook_Schema,\n Workbench_PlaybookResumeRequest_Schema,\n Workbench_PlaybookRunOutcome_Schema,\n Workbench_PlaybookRunRequest_Schema,\n Workbench_RunWriteRecord_Schema,\n Workbench_RunWriteRevertOutcome_Schema,\n Workbench_RunWriteRevertRequest_Schema,\n Workbench_TraceSession_Schema,\n WorkbenchBuildPlanTasks_Operations,\n WorkbenchCreationPlaneBehavior,\n WorkbenchPlaybooks_Operations,\n WorkbenchRunWriteRecords_Operations,\n} from './workbench-creation-plane.custom.shared.schemas';\n\n/**\n * Resource configurations for the CREATION PLANE — the four companion-runtime families the creation\n * board consumes as resources (`workbench-creation-board-resources.md`, Phase 2; decides #166).\n *\n * Same adapter and same port as the structural projections one file over, with the two declared\n * differences their nature forces:\n *\n * - **`APPLICATION_RUNTIME` tenancy, not `APPLICATION_STRUCTURE`.** These rows are the companion's\n * own runtime state (eligibility verdicts, dispatch status, write records, traces), not a\n * projection of the application's source. Both stances mean \"no tenant anchor on any row\"; what\n * the distinction preserves is the READ POSTURE argument below.\n * - **Authenticated variants, never `APP_PUBLIC`.** The structural projections' public posture\n * rests on the rows being the application's OWN source, which anyone with the working tree can\n * already read. Runtime state has no such argument — what the creator dispatched, what failed,\n * which files a run wrote are operator data — so every variant here requires the authenticated\n * operator session (`APP_USER`; app-tier rather than `ORG_MEMBER` because these rows carry no\n * organization column and nest under no organization URL).\n */\nexport function createCreationPlaneReadApiVariant() {\n return {\n variantType: ResourceOperationVariantType.API_CALL as const,\n isDefault: true as const,\n roles: [CORE_APP_ROLES.APP_USER],\n riskLevel: ResourceOperationRiskLevel.LOW as const,\n };\n}\n\n/** The read variant plus the shared workbench page ceiling (LIST-like operations only). */\nexport function createCreationPlaneReadListApiVariant() {\n return {\n ...createCreationPlaneReadApiVariant(),\n maxPaginatedResultPerPageLimit: WORKBENCH_INTROSPECTION_MAX_ROWS_PER_PAGE,\n };\n}\n\n/**\n * STANDALONE APPLICATION anchors, one per family — same form and same reason as the structural\n * projections: `resourcePrimaryScope` is derived from a relationship flagged `isPrimaryScope`, and\n * STANDALONE keeps the anchor off the URL so each resource routes flat.\n */\nexport const workbenchCreationPlane_ResourcesRelationships: ResourceRelationship[] = [\n WorkbenchShared_ResourceType.PLAYBOOKS,\n WorkbenchShared_ResourceType.BUILD_PLAN_TASKS,\n WorkbenchShared_ResourceType.RUN_WRITE_RECORDS,\n WorkbenchShared_ResourceType.TRACE_SESSIONS,\n].map((resourceType) => createResourcesRelationship(\n CoreResourceType.APPLICATION,\n 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/*\n * The JOIN EDGES (Phase 4, R5): write records reference the playbook that ran and the trace\n * session that recorded — the aspect-edge shape exactly (REFERENCE + declared `foreignKeyField` +\n * STANDALONE so the flat route survives + OPTIONAL parent, dangling-tolerant). The FK fields are\n * emitted SANITIZED by the projection so values match the target rows' addressable ids.\n */\nworkbenchCreationPlane_ResourcesRelationships.push(\n createResourcesRelationship(\n WorkbenchShared_ResourceType.PLAYBOOKS,\n WorkbenchShared_ResourceType.RUN_WRITE_RECORDS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: 'workbenchPlaybookId',\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n contextPolicy: {},\n },\n ),\n createResourcesRelationship(\n WorkbenchShared_ResourceType.TRACE_SESSIONS,\n WorkbenchShared_ResourceType.RUN_WRITE_RECORDS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: 'workbenchTraceSessionId',\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n contextPolicy: {},\n },\n ),\n);\n\n/**\n * A shared dispatch-variant mold (Phase 3, plan D3): authenticated like the reads, MEDIUM risk by\n * default — the board's own doctrine is that a dispatch needs no confirmation ceremony because the\n * mechanism already brackets it (derived scope, single-flight lock, git baseline, the Evidence\n * lane's revert) — and `resourceOperationLike` defaulting to UPDATE gives the instance-targeted\n * URL (`…/{id}/<verb>`). Every one is implemented companion-side as `OVERRIDE_ALL`, so nothing\n * here ever reaches the introspection repository's write refusals.\n */\n/*\n * ROLE PARITY WITH READS IS DELIBERATE: dispatch verbs share `APP_USER` with the read variants.\n * This is a single-operator development tool served by the local companion — the measured operator\n * holds plain `APP_USER` at app tier (the seeded developer's admin authority is an ORG membership,\n * not an app-tier role), the bespoke companion routes expose the same verbs to the same principal,\n * and every write lands in a git working tree whose acceptance is a human commit. A production\n * multi-operator surface would want a stricter gate; this one would 403 its only user.\n */\nfunction createDispatchApiVariant<TRequest extends z.ZodType, TResponse extends z.ZodType>(params: {\n readonly riskLevel?: ResourceOperationRiskLevel;\n readonly resourceOperationLike?: CoreResourceOperation;\n readonly requestDto: TRequest;\n readonly customResponseDto: TResponse;\n}) {\n return {\n variantType: ResourceOperationVariantType.API_CALL as const,\n isDefault: true as const,\n roles: [CORE_APP_ROLES.APP_USER],\n /*\n * Every creation-plane dispatch delegates synchronous companion work — a run generates and\n * judges before answering (58s measured on the CHEAPEST playbook; minutes normally), a\n * dispatch may block on a generation step, a revert rewrites files. The client's 30s default\n * cut the run PUT mid-flight, losing the outcome and the post-success invalidation emits\n * (issue #237) — so the variant declares its own transport expectation.\n */\n clientRequestTimeoutMs: 600_000,\n riskLevel: params.riskLevel ?? ResourceOperationRiskLevel.MEDIUM,\n resourceOperationLike: params.resourceOperationLike ?? CoreResourceOperation.UPDATE,\n requestDto: params.requestDto,\n customResponseDto: params.customResponseDto,\n };\n}\n\ntype WorkbenchCreationPlane_CoreOperations =\n | CoreResourceOperation.READ\n | CoreResourceOperation.LIST;\n\n/** Traces are the one dispatch-free family: an index has nothing to fire. */\nconst WorkbenchTraceSessions_Operations = undefined;\n\n/**\n * The four read-only creation-plane factories. READ + LIST only: dispatch VERBS\n * (run/resume/dispatch-next/revert/cancel) arrive in Phase 3 as CUSTOM operations delegating to\n * the companion's own services — never as generated writes, which the introspection repository\n * refuses by contract.\n *\n * NO `identityFields` on any binding, deliberately: composition refuses values outside\n * `[a-zA-Z0-9_-]`, and playbook refs (`top_down.phase-gate`), run ids and trace session ids\n * legitimately carry dots. The in-process behaviors emit the sanitized identity field themselves\n * and refuse post-sanitization duplicates — see the schema field docs.\n *\n * Written as four explicit factories rather than one generic mold: the config initializer's schema\n * parameter is invariant in the row type, so a union-constrained generic fails to instantiate —\n * and the siblings in this directory are explicit for the same reason.\n */\nexport const workbenchPlaybooks_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchPlaybooks_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_Playbook_Schema\n >({\n mainSchema: Workbench_Playbook_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.PLAYBOOKS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.PLAYBOOKS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.PLAYBOOK_ELIGIBILITY,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchPlaybooks_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n [WorkbenchPlaybooks_Operations.RUN]: {\n variants: [createDispatchApiVariant({\n requestDto: Workbench_PlaybookRunRequest_Schema,\n customResponseDto: Workbench_PlaybookRunOutcome_Schema,\n })],\n },\n /*\n * RESUME rides the PLAYBOOK row the suspended run belongs to — the runId travels in the body.\n * A runs resource does not exist (runs-in-flight is the disposition table's recorded\n * singleton exception), and the row a creator is answering FROM is the playbook whose\n * clarification stopped them.\n */\n [WorkbenchPlaybooks_Operations.RESUME]: {\n variants: [createDispatchApiVariant({\n requestDto: Workbench_PlaybookResumeRequest_Schema,\n customResponseDto: Workbench_PlaybookRunOutcome_Schema,\n })],\n },\n },\n });\n\nexport const workbenchBuildPlanTasks_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchBuildPlanTasks_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_BuildPlanTask_Schema\n >({\n mainSchema: Workbench_BuildPlanTask_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.BUILD_PLAN_TASKS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchBuildPlanTasks_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n [WorkbenchBuildPlanTasks_Operations.DISPATCH_NEXT]: {\n variants: [createDispatchApiVariant({\n /* Collection-level: the graph picks the task, never the caller — see the enum's doc. */\n resourceOperationLike: CoreResourceOperation.UPDATE_MANY,\n requestDto: Workbench_BuildPlanDispatchNextRequest_Schema,\n customResponseDto: Workbench_BuildPlanDispatchOutcome_Schema,\n })],\n },\n },\n });\n\nexport const workbenchRunWriteRecords_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchRunWriteRecords_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_RunWriteRecord_Schema\n >({\n mainSchema: Workbench_RunWriteRecord_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.RUN_WRITE_RECORDS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.RUN_WRITE_RECORDS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.RUN_WRITE_RECORDS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchRunWriteRecords_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: {\n variants: [{\n ...createCreationPlaneReadListApiVariant(),\n /*\n * The \"playbook → its writes\" vehicle (R5), decided against the engine's own model\n * (#218): a REFERENCE edge never embeds a child collection in the parent's READ page —\n * that surface is COMPOSITION-only — so the reverse direction of this join is a FILTERED\n * LIST, and declaring the filter is the obligation that makes it real (the introspection\n * source honors scalar filters it is declared and refuses shapes it cannot apply).\n * `workbenchPlaybookId` takes the SANITIZED identity; `playbookRef` the raw business key.\n */\n filterFields: {\n workbenchPlaybookId: z.string().min(1),\n playbookRef: z.string().min(1),\n },\n }],\n },\n [WorkbenchRunWriteRecords_Operations.REVERT]: {\n variants: [createDispatchApiVariant({\n /*\n * HIGH, not CRITICAL: the operation's own divergence refusal (files edited since are\n * refused by name unless `force`) is the real guard, and a CRITICAL confirm dialog on\n * top of it would be ceremony in front of a mechanism that already asks better.\n */\n riskLevel: ResourceOperationRiskLevel.HIGH,\n requestDto: Workbench_RunWriteRevertRequest_Schema,\n customResponseDto: Workbench_RunWriteRevertOutcome_Schema,\n })],\n },\n },\n });\n\nexport const workbenchTraceSessions_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchTraceSessions_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_TraceSession_Schema\n >({\n mainSchema: Workbench_TraceSession_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.TRACE_SESSIONS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.TRACE_SESSIONS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.TRACE_SESSIONS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchTraceSessions_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n },\n });\n\nexport const workbenchCreationPlane_ResourcesConfigurationsFactoryMap = {\n [WorkbenchShared_ResourceType.PLAYBOOKS]: workbenchPlaybooks_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.BUILD_PLAN_TASKS]: workbenchBuildPlanTasks_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.RUN_WRITE_RECORDS]: workbenchRunWriteRecords_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.TRACE_SESSIONS]: workbenchTraceSessions_ResourceConfiguration_InitializationFactory,\n};\n"]}
1
+ {"version":3,"file":"workbench-creation-plane.custom.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../src/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,4BAA4B,EAC5B,iCAAiC,EAEjC,uCAAuC,EACvC,+BAA+B,EAC/B,kBAAkB,EAClB,0CAA0C,EAC1C,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,yDAAyD,CAAC;AACpG,OAAO,EACL,uCAAuC,EACvC,4BAA4B,GAC7B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,yCAAyC,EAAE,MAAM,8DAA8D,CAAC;AACzH,OAAO,EACL,qCAAqC,EACrC,qCAAqC,EACrC,wCAAwC,EACxC,wCAAwC,EACxC,6CAA6C,EAC7C,6CAA6C,EAC7C,yCAAyC,EACzC,8BAA8B,EAC9B,yBAAyB,EACzB,sCAAsC,EACtC,mCAAmC,EACnC,mCAAmC,EACnC,+BAA+B,EAC/B,sCAAsC,EACtC,sCAAsC,EACtC,kCAAkC,EAClC,8BAA8B,EAC9B,mCAAmC,EACnC,mCAAmC,EACnC,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,qCAAqC,EACrC,qCAAqC,EACrC,6BAA6B,EAC7B,kCAAkC,EAClC,6BAA6B,EAC7B,8CAA8C,EAC9C,8CAA8C,EAC9C,uCAAuC,EACvC,uCAAuC,EACvC,4CAA4C,EAC5C,4CAA4C,EAC5C,yCAAyC,EACzC,kCAAkC,EAClC,6BAA6B,EAC7B,8BAA8B,EAC9B,qCAAqC,EACrC,mCAAmC,EACnC,qCAAqC,EACrC,4CAA4C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qCAAqC,EAAE,CAAC,EAAE;KACtF;CACF,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,wDAAwD,GAAG;IACtE,CAAC,4BAA4B,CAAC,SAAS,CAAC,EAAE,8DAA8D;IACxG,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,EAAE,mEAAmE;IACpH,CAAC,4BAA4B,CAAC,iBAAiB,CAAC,EAAE,oEAAoE;IACtH,CAAC,4BAA4B,CAAC,cAAc,CAAC,EAAE,kEAAkE;IACjH,CAAC,4BAA4B,CAAC,oBAAoB,CAAC,EAAE,wEAAwE;IAC7H,CAAC,4BAA4B,CAAC,oBAAoB,CAAC,EAAE,wEAAwE;IAC7H,CAAC,4BAA4B,CAAC,mBAAmB,CAAC,EAAE,sEAAsE;IAC1H,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,EAAE,oEAAoE;IACrH,CAAC,4BAA4B,CAAC,aAAa,CAAC,EAAE,iEAAiE;IAC/G,CAAC,4BAA4B,CAAC,qBAAqB,CAAC,EAAE,wEAAwE;IAC9H,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,EAAE,qEAAqE;IACxH,CAAC,4BAA4B,CAAC,uBAAuB,CAAC,EAAE,0EAA0E;IAClI,CAAC,4BAA4B,CAAC,eAAe,CAAC,EAAE,mEAAmE;IACnH,CAAC,4BAA4B,CAAC,UAAU,CAAC,EAAE,sEAAsE;IACjH,CAAC,4BAA4B,CAAC,iBAAiB,CAAC,EAAE,qEAAqE;CACxH,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n CORE_APP_ROLES,\n CoreResourceOperation,\n CoreResourceType,\n IntrospectionTenancyStance,\n PersistenceAdapter,\n ResourceOperationRiskLevel,\n ResourceOperationVariantType,\n ResourceParentResourceRequirement,\n ResourceRelationship,\n ResourceRelationshipAccessScopeStrategy,\n ResourceRelationshipCardinality,\n RelationshipNature,\n createResourceConfiguration_Initialization,\n createResourcesRelationship,\n} from '@wildo-ai/saas-models';\n\nimport { CustomShared_ResourceType } from '../core/resources/resources-types.custom.shared.schemas';\nimport {\n WorkbenchShared_ResourceFieldIdentifier,\n WorkbenchShared_ResourceType,\n} from './workbench-resources-types.custom.shared.schemas';\nimport { WORKBENCH_INTROSPECTION_MAX_ROWS_PER_PAGE } from './workbench-resources.custom.shared.resources-config.schemas';\nimport {\n Workbench_AcceptChangesOutcome_Schema,\n Workbench_AcceptChangesRequest_Schema,\n Workbench_BuildPlanAddTaskOutcome_Schema,\n Workbench_BuildPlanAddTaskRequest_Schema,\n Workbench_BuildPlanDispatchNextRequest_Schema,\n Workbench_BuildPlanDispatchTaskRequest_Schema,\n Workbench_BuildPlanDispatchOutcome_Schema,\n Workbench_BuildPlanTask_Schema,\n Workbench_Playbook_Schema,\n Workbench_PlaybookResumeRequest_Schema,\n Workbench_PlaybookRunOutcome_Schema,\n Workbench_PlaybookRunRequest_Schema,\n Workbench_RunWriteRecord_Schema,\n Workbench_RunWriteRevertOutcome_Schema,\n Workbench_RunWriteRevertRequest_Schema,\n Workbench_BuildDispatchPlan_Schema,\n Workbench_BuildDispatch_Schema,\n Workbench_GovernanceDocument_Schema,\n Workbench_GovernanceQuestion_Schema,\n Workbench_CodingLaneStatus_Schema,\n Workbench_CreationHomeLine_Schema,\n Workbench_CreationOutcome_Schema,\n Workbench_DossierAnswerOutcome_Schema,\n Workbench_DossierAnswerRequest_Schema,\n Workbench_DossierEntry_Schema,\n WorkbenchDossierEntries_Operations,\n Workbench_EmptyRequest_Schema,\n Workbench_GovernanceFactsLandingOutcome_Schema,\n Workbench_GovernanceFactsLandingRequest_Schema,\n WorkbenchGovernanceDocuments_Operations,\n Workbench_CodingRunCancelOutcome_Schema,\n Workbench_ParkedQuestionAnswerOutcome_Schema,\n Workbench_ParkedQuestionAnswerRequest_Schema,\n WorkbenchParkedCodingQuestions_Operations,\n Workbench_PlaybookInterview_Schema,\n Workbench_RunWriteDiff_Schema,\n Workbench_TraceArtifact_Schema,\n Workbench_TraceArtifactRequest_Schema,\n Workbench_TraceSessionRecord_Schema,\n Workbench_TraceSessionsForTask_Schema,\n Workbench_TraceSessionsForTaskRequest_Schema,\n Workbench_TraceSessionUsage_Schema,\n WorkbenchTraceSessions_Operations,\n Workbench_ParkedCodingQuestion_Schema,\n Workbench_PlaybookRun_Schema,\n Workbench_WaitingPlaybookRun_Schema,\n Workbench_TraceSession_Schema,\n WorkbenchBuildPlanTasks_Operations,\n WorkbenchCreationPlaneBehavior,\n WorkbenchPlaybooks_Operations,\n WorkbenchRunWriteRecords_Operations,\n} from './workbench-creation-plane.custom.shared.schemas';\n\n/**\n * Resource configurations for the CREATION PLANE — the four companion-runtime families the creation\n * board consumes as resources (`workbench-creation-board-resources.md`, Phase 2; decides #166).\n *\n * Same adapter and same port as the structural projections one file over, with the two declared\n * differences their nature forces:\n *\n * - **`APPLICATION_RUNTIME` tenancy, not `APPLICATION_STRUCTURE`.** These rows are the companion's\n * own runtime state (eligibility verdicts, dispatch status, write records, traces), not a\n * projection of the application's source. Both stances mean \"no tenant anchor on any row\"; what\n * the distinction preserves is the READ POSTURE argument below.\n * - **Authenticated variants, never `APP_PUBLIC`.** The structural projections' public posture\n * rests on the rows being the application's OWN source, which anyone with the working tree can\n * already read. Runtime state has no such argument — what the creator dispatched, what failed,\n * which files a run wrote are operator data — so every variant here requires the authenticated\n * operator session (`APP_USER`; app-tier rather than `ORG_MEMBER` because these rows carry no\n * organization column and nest under no organization URL).\n */\nexport function createCreationPlaneReadApiVariant() {\n return {\n variantType: ResourceOperationVariantType.API_CALL as const,\n isDefault: true as const,\n roles: [CORE_APP_ROLES.APP_USER],\n riskLevel: ResourceOperationRiskLevel.LOW as const,\n };\n}\n\n/** The read variant plus the shared workbench page ceiling (LIST-like operations only). */\nexport function createCreationPlaneReadListApiVariant() {\n return {\n ...createCreationPlaneReadApiVariant(),\n maxPaginatedResultPerPageLimit: WORKBENCH_INTROSPECTION_MAX_ROWS_PER_PAGE,\n };\n}\n\n/**\n * STANDALONE APPLICATION anchors, one per family — same form and same reason as the structural\n * projections: `resourcePrimaryScope` is derived from a relationship flagged `isPrimaryScope`, and\n * STANDALONE keeps the anchor off the URL so each resource routes flat.\n */\nexport const workbenchCreationPlane_ResourcesRelationships: ResourceRelationship[] = [\n WorkbenchShared_ResourceType.PLAYBOOKS,\n WorkbenchShared_ResourceType.BUILD_PLAN_TASKS,\n WorkbenchShared_ResourceType.RUN_WRITE_RECORDS,\n WorkbenchShared_ResourceType.TRACE_SESSIONS,\n WorkbenchShared_ResourceType.GOVERNANCE_DOCUMENTS,\n WorkbenchShared_ResourceType.GOVERNANCE_QUESTIONS,\n WorkbenchShared_ResourceType.BUILD_DISPATCH_PLAN,\n WorkbenchShared_ResourceType.BUILD_DISPATCHES,\n WorkbenchShared_ResourceType.PLAYBOOK_RUNS,\n WorkbenchShared_ResourceType.WAITING_PLAYBOOK_RUNS,\n WorkbenchShared_ResourceType.CODING_LANE_STATUS,\n WorkbenchShared_ResourceType.PARKED_CODING_QUESTIONS,\n WorkbenchShared_ResourceType.DOSSIER_ENTRIES,\n WorkbenchShared_ResourceType.HOME_LINES,\n WorkbenchShared_ResourceType.CREATION_OUTCOMES,\n].map((resourceType) => createResourcesRelationship(\n CoreResourceType.APPLICATION,\n 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/*\n * The JOIN EDGES (Phase 4, R5): write records reference the playbook that ran and the trace\n * session that recorded — the aspect-edge shape exactly (REFERENCE + declared `foreignKeyField` +\n * STANDALONE so the flat route survives + OPTIONAL parent, dangling-tolerant). The FK fields are\n * emitted SANITIZED by the projection so values match the target rows' addressable ids.\n */\nworkbenchCreationPlane_ResourcesRelationships.push(\n createResourcesRelationship(\n WorkbenchShared_ResourceType.PLAYBOOKS,\n WorkbenchShared_ResourceType.RUN_WRITE_RECORDS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: 'workbenchPlaybookId',\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n contextPolicy: {},\n },\n ),\n createResourcesRelationship(\n WorkbenchShared_ResourceType.TRACE_SESSIONS,\n WorkbenchShared_ResourceType.RUN_WRITE_RECORDS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: 'workbenchTraceSessionId',\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n contextPolicy: {},\n },\n ),\n /*\n * The two edges OUT OF this lane and into the CONTROL PLANE: a build dispatch that admitted a\n * coding run, and a coding run that parked on a question, both point at the durable actor-task row\n * that carries the real outcome.\n *\n * ## Why these must be declared and not merely decorated\n *\n * `.isForeignKey()` on a field is a CLAIM that the field addresses another resource; the\n * relationship is what says WHICH. The registry resolves a decorated FK through\n * `buildFieldIdentifierToResourceTypeMap`, which learns a non-conventional field name only from an\n * edge's `foreignKeyField` — so a decorated field with no edge is unresolvable, and the frontend\n * registry REFUSES TO INITIALIZE (`frontend_fk_resolution_failed`) rather than rendering a\n * reference that goes nowhere.\n *\n * Both fields shipped decorated and unrelated on 2026-09-18, which meant the workbench could not\n * boot at all. Nothing in the unit suite could see it — the repository builds fine; it is the\n * registry's own initialization that sweeps — and the browser smoke test is what reported it.\n *\n * ## Why the field names are not the target's own identifier\n *\n * Every other FK here is named for the row it addresses (`workbenchPlaybookId`,\n * `workbenchTraceSessionId`). These two are named for the role the id plays in THIS lane — the\n * coding task a dispatch admitted, the task a question parked — because that is what the companion\n * projection emits and what an operator reads in the row. The map is taught by the edge, which is\n * exactly the case `foreignKeyField` exists for.\n */\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n WorkbenchShared_ResourceType.BUILD_DISPATCHES,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: 'codingTaskId',\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n /* OPTIONAL and dangling-tolerant: a generation step admits no coding run, so the field is null. */\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n contextPolicy: {},\n },\n ),\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n WorkbenchShared_ResourceType.CODING_LANE_STATUS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: 'activeRunTaskId',\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n /* NULL whenever nothing is running, which is most of the time. */\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n contextPolicy: {},\n },\n ),\n createResourcesRelationship(\n CustomShared_ResourceType.WILDO_APPLICATION_ACTOR_TASKS,\n WorkbenchShared_ResourceType.PARKED_CODING_QUESTIONS,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: 'taskId',\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n contextPolicy: {},\n },\n ),\n);\n\n/**\n * A shared dispatch-variant mold (Phase 3, plan D3): authenticated like the reads, MEDIUM risk by\n * default — the board's own doctrine is that a dispatch needs no confirmation ceremony because the\n * mechanism already brackets it (derived scope, single-flight lock, git baseline, the Evidence\n * lane's revert) — and `resourceOperationLike` defaulting to UPDATE gives the instance-targeted\n * URL (`…/{id}/<verb>`). Every one is implemented companion-side as `OVERRIDE_ALL`, so nothing\n * here ever reaches the introspection repository's write refusals.\n */\n/*\n * ROLE PARITY WITH READS IS DELIBERATE: dispatch verbs share `APP_USER` with the read variants.\n * This is a single-operator development tool served by the local companion — the measured operator\n * holds plain `APP_USER` at app tier (the seeded developer's admin authority is an ORG membership,\n * not an app-tier role), the bespoke companion routes expose the same verbs to the same principal,\n * and every write lands in a git working tree whose acceptance is a human commit. A production\n * multi-operator surface would want a stricter gate; this one would 403 its only user.\n */\nfunction createDispatchApiVariant<TRequest extends z.ZodType, TResponse extends z.ZodType>(params: {\n readonly riskLevel?: ResourceOperationRiskLevel;\n readonly resourceOperationLike?: CoreResourceOperation;\n readonly requestDto: TRequest;\n readonly customResponseDto: TResponse;\n /**\n * A READ-shaped verb: it changes nothing and answers from what the companion already holds (a trace\n * record, a diff, an interview). LOW risk, and the ordinary transport budget rather than the ten\n * minutes a run is allowed — a read that takes that long is a read that is not coming back.\n */\n readonly readOnly?: boolean;\n}) {\n return {\n variantType: ResourceOperationVariantType.API_CALL as const,\n isDefault: true as const,\n roles: [CORE_APP_ROLES.APP_USER],\n /*\n * Every creation-plane dispatch delegates synchronous companion work — a run generates and\n * judges before answering (58s measured on the CHEAPEST playbook; minutes normally), a\n * dispatch may block on a generation step, a revert rewrites files. The client's 30s default\n * cut the run PUT mid-flight, losing the outcome and the post-success invalidation emits\n * (issue #237) — so the variant declares its own transport expectation.\n */\n clientRequestTimeoutMs: params.readOnly ? 30_000 : 600_000,\n riskLevel: params.riskLevel ?? (params.readOnly ? ResourceOperationRiskLevel.LOW : ResourceOperationRiskLevel.MEDIUM),\n resourceOperationLike: params.resourceOperationLike ?? CoreResourceOperation.UPDATE,\n requestDto: params.requestDto,\n customResponseDto: params.customResponseDto,\n };\n}\n\ntype WorkbenchCreationPlane_CoreOperations =\n | CoreResourceOperation.READ\n | CoreResourceOperation.LIST;\n\n/**\n * Governance questions are dispatch-free HERE, and that is a decision rather than an omission.\n *\n * Answering one lands the `document-facts-authored` family through the document's own door\n * (`POST /compliance/governance-facts`), which carries the governance scope and, for a reviewed fact,\n * the review — a per-question verb with a bare value could carry neither. Since 2026-09-22 (#1454,\n * Step 6) that door accepts a PARTIAL set and merges by fact, so \"half a questionnaire\" is no longer\n * the argument; the argument is the shape of an answer. The row is the question as asked, with its\n * standing.\n */\nconst WorkbenchGovernanceQuestions_Operations = undefined;\n\n/**\n * The OBSERVATION resources are dispatch-free, and each for its own reason.\n *\n * A build dispatch is a RECORD of an attempt — there is nothing to fire at a thing that already\n * happened; re-dispatching is a verb on the build-plan TASK. A waiting run is answered by a verb that\n * already exists somewhere truer: `RESUME` rides the playbook row the clarification stopped. (A\n * parked coding question carried the same argument until 2026-09-22, when its bespoke decision\n * channel became the row's own `answer` / `cancel` — the act has ONE door either way, and the row is\n * where a reader meets it.) Adding a second door to a dispatch or a waiting run would put the same\n * act in two places.\n */\nconst WorkbenchObservation_Operations = undefined;\n\n/**\n * The four read-only creation-plane factories. READ + LIST only: dispatch VERBS\n * (run/resume/dispatch-next/revert/cancel) arrive in Phase 3 as CUSTOM operations delegating to\n * the companion's own services — never as generated writes, which the introspection repository\n * refuses by contract.\n *\n * NO `identityFields` on any binding, deliberately: composition refuses values outside\n * `[a-zA-Z0-9_-]`, and playbook refs (`top_down.phase-gate`), run ids and trace session ids\n * legitimately carry dots. The in-process behaviors emit the sanitized identity field themselves\n * and refuse post-sanitization duplicates — see the schema field docs.\n *\n * Written as four explicit factories rather than one generic mold: the config initializer's schema\n * parameter is invariant in the row type, so a union-constrained generic fails to instantiate —\n * and the siblings in this directory are explicit for the same reason.\n */\nexport const workbenchPlaybooks_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchPlaybooks_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_Playbook_Schema\n >({\n mainSchema: Workbench_Playbook_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.PLAYBOOKS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.PLAYBOOKS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.PLAYBOOK_ELIGIBILITY,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchPlaybooks_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n [WorkbenchPlaybooks_Operations.RUN]: {\n variants: [createDispatchApiVariant({\n requestDto: Workbench_PlaybookRunRequest_Schema,\n customResponseDto: Workbench_PlaybookRunOutcome_Schema,\n })],\n },\n /*\n * RESUME rides the PLAYBOOK row the suspended run belongs to — the runId travels in the body.\n * A runs resource does not exist (runs-in-flight is the disposition table's recorded\n * singleton exception), and the row a creator is answering FROM is the playbook whose\n * clarification stopped them.\n */\n [WorkbenchPlaybooks_Operations.RESUME]: {\n variants: [createDispatchApiVariant({\n requestDto: Workbench_PlaybookResumeRequest_Schema,\n customResponseDto: Workbench_PlaybookRunOutcome_Schema,\n })],\n },\n [WorkbenchPlaybooks_Operations.READ_INTERVIEW]: {\n variants: [createDispatchApiVariant({\n readOnly: true,\n requestDto: Workbench_EmptyRequest_Schema,\n customResponseDto: Workbench_PlaybookInterview_Schema,\n })],\n },\n },\n });\n\nexport const workbenchBuildPlanTasks_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchBuildPlanTasks_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_BuildPlanTask_Schema\n >({\n mainSchema: Workbench_BuildPlanTask_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.BUILD_PLAN_TASKS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchBuildPlanTasks_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n [WorkbenchBuildPlanTasks_Operations.DISPATCH_NEXT]: {\n variants: [createDispatchApiVariant({\n /* Collection-level: the graph picks the task, never the caller — see the enum's doc. */\n resourceOperationLike: CoreResourceOperation.UPDATE_MANY,\n requestDto: Workbench_BuildPlanDispatchNextRequest_Schema,\n customResponseDto: Workbench_BuildPlanDispatchOutcome_Schema,\n })],\n },\n [WorkbenchBuildPlanTasks_Operations.ADD_TASK]: {\n variants: [createDispatchApiVariant({\n /* Collection-level: the row does not exist until the append answers. */\n resourceOperationLike: CoreResourceOperation.UPDATE_MANY,\n requestDto: Workbench_BuildPlanAddTaskRequest_Schema,\n customResponseDto: Workbench_BuildPlanAddTaskOutcome_Schema,\n })],\n },\n [WorkbenchBuildPlanTasks_Operations.DISPATCH_TASK]: {\n variants: [createDispatchApiVariant({\n requestDto: Workbench_BuildPlanDispatchTaskRequest_Schema,\n customResponseDto: Workbench_BuildPlanDispatchOutcome_Schema,\n })],\n },\n [WorkbenchBuildPlanTasks_Operations.ACCEPT]: {\n variants: [createDispatchApiVariant({\n /* HIGH for the same reason `revert_writes` is: the verb's own by-name refusals are the guard. */\n riskLevel: ResourceOperationRiskLevel.HIGH,\n requestDto: Workbench_AcceptChangesRequest_Schema,\n customResponseDto: Workbench_AcceptChangesOutcome_Schema,\n })],\n },\n },\n });\n\nexport const workbenchRunWriteRecords_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchRunWriteRecords_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_RunWriteRecord_Schema\n >({\n mainSchema: Workbench_RunWriteRecord_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.RUN_WRITE_RECORDS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.RUN_WRITE_RECORDS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.RUN_WRITE_RECORDS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchRunWriteRecords_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: {\n variants: [{\n ...createCreationPlaneReadListApiVariant(),\n /*\n * The \"playbook → its writes\" vehicle (R5), decided against the engine's own model\n * (#218): a REFERENCE edge never embeds a child collection in the parent's READ page —\n * that surface is COMPOSITION-only — so the reverse direction of this join is a FILTERED\n * LIST, and declaring the filter is the obligation that makes it real (the introspection\n * source honors scalar filters it is declared and refuses shapes it cannot apply).\n * `workbenchPlaybookId` takes the SANITIZED identity; `playbookRef` the raw business key.\n */\n filterFields: {\n workbenchPlaybookId: z.string().min(1),\n playbookRef: z.string().min(1),\n },\n }],\n },\n [WorkbenchRunWriteRecords_Operations.REVERT]: {\n variants: [createDispatchApiVariant({\n /*\n * HIGH, not CRITICAL: the operation's own divergence refusal (files edited since are\n * refused by name unless `force`) is the real guard, and a CRITICAL confirm dialog on\n * top of it would be ceremony in front of a mechanism that already asks better.\n */\n riskLevel: ResourceOperationRiskLevel.HIGH,\n requestDto: Workbench_RunWriteRevertRequest_Schema,\n customResponseDto: Workbench_RunWriteRevertOutcome_Schema,\n })],\n },\n [WorkbenchRunWriteRecords_Operations.ACCEPT]: {\n variants: [createDispatchApiVariant({\n riskLevel: ResourceOperationRiskLevel.HIGH,\n requestDto: Workbench_AcceptChangesRequest_Schema,\n customResponseDto: Workbench_AcceptChangesOutcome_Schema,\n })],\n },\n [WorkbenchRunWriteRecords_Operations.READ_DIFF]: {\n variants: [createDispatchApiVariant({\n readOnly: true,\n requestDto: Workbench_EmptyRequest_Schema,\n customResponseDto: Workbench_RunWriteDiff_Schema,\n })],\n },\n },\n });\n\nexport const workbenchTraceSessions_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchTraceSessions_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_TraceSession_Schema\n >({\n mainSchema: Workbench_TraceSession_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.TRACE_SESSIONS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.TRACE_SESSIONS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.TRACE_SESSIONS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchTraceSessions_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n /* What a session RECORDED, read on demand for the one a reader opened — never LIST-row fields. */\n [WorkbenchTraceSessions_Operations.READ_RECORD]: {\n variants: [createDispatchApiVariant({ readOnly: true, requestDto: Workbench_EmptyRequest_Schema, customResponseDto: Workbench_TraceSessionRecord_Schema })],\n },\n [WorkbenchTraceSessions_Operations.READ_USAGE]: {\n variants: [createDispatchApiVariant({ readOnly: true, requestDto: Workbench_EmptyRequest_Schema, customResponseDto: Workbench_TraceSessionUsage_Schema })],\n },\n [WorkbenchTraceSessions_Operations.READ_ARTIFACT]: {\n variants: [createDispatchApiVariant({ readOnly: true, requestDto: Workbench_TraceArtifactRequest_Schema, customResponseDto: Workbench_TraceArtifact_Schema })],\n },\n [WorkbenchTraceSessions_Operations.LIST_FOR_TASK]: {\n variants: [createDispatchApiVariant({\n /* Collection-level: the actor task is the input, and it names no session row. */\n resourceOperationLike: CoreResourceOperation.UPDATE_MANY,\n readOnly: true,\n requestDto: Workbench_TraceSessionsForTaskRequest_Schema,\n customResponseDto: Workbench_TraceSessionsForTask_Schema,\n })],\n },\n },\n });\n\nexport const workbenchGovernanceDocuments_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchGovernanceDocuments_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_GovernanceDocument_Schema\n >({\n mainSchema: Workbench_GovernanceDocument_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.GOVERNANCE_DOCUMENTS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.GOVERNANCE_DOCUMENTS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.GOVERNANCE_DOCUMENTS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchGovernanceDocuments_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n /* Lands `document-facts-authored` — it WRITES a file, hence MEDIUM and the run's transport budget. */\n [WorkbenchGovernanceDocuments_Operations.LAND_FACTS]: {\n variants: [createDispatchApiVariant({\n requestDto: Workbench_GovernanceFactsLandingRequest_Schema,\n customResponseDto: Workbench_GovernanceFactsLandingOutcome_Schema,\n })],\n },\n },\n });\n\nexport const workbenchGovernanceQuestions_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchGovernanceQuestions_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_GovernanceQuestion_Schema\n >({\n mainSchema: Workbench_GovernanceQuestion_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.GOVERNANCE_QUESTIONS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.GOVERNANCE_QUESTIONS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.GOVERNANCE_QUESTIONS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchGovernanceQuestions_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: {\n variants: [{\n ...createCreationPlaneReadListApiVariant(),\n /* The dossier page filters by standing (its quick-filter tabs), by document, and by what waits on the person now. */\n filterFields: {\n definitionRef: z.string().min(1),\n standing: z.string().min(1),\n askedNow: z.boolean(),\n },\n }],\n },\n },\n });\n\nexport const workbenchBuildDispatchPlan_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchObservation_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_BuildDispatchPlan_Schema\n >({\n mainSchema: Workbench_BuildDispatchPlan_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.BUILD_DISPATCH_PLAN,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.BUILD_DISPATCH_PLAN],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.BUILD_DISPATCH_PLAN,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchObservation_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n },\n });\n\nexport const workbenchBuildDispatches_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchObservation_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_BuildDispatch_Schema\n >({\n mainSchema: Workbench_BuildDispatch_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.BUILD_DISPATCHES,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.BUILD_DISPATCHES],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.BUILD_DISPATCHES,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchObservation_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n },\n });\n\nexport const workbenchPlaybookRuns_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchObservation_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_PlaybookRun_Schema\n >({\n mainSchema: Workbench_PlaybookRun_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.PLAYBOOK_RUNS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.PLAYBOOK_RUNS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.PLAYBOOK_RUNS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchObservation_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n },\n });\n\nexport const workbenchWaitingPlaybookRuns_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchObservation_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_WaitingPlaybookRun_Schema\n >({\n mainSchema: Workbench_WaitingPlaybookRun_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.WAITING_PLAYBOOK_RUNS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.WAITING_PLAYBOOK_RUNS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.WAITING_PLAYBOOK_RUNS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchObservation_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n },\n });\n\nexport const workbenchCodingLaneStatus_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchObservation_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_CodingLaneStatus_Schema\n >({\n mainSchema: Workbench_CodingLaneStatus_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.CODING_LANE_STATUS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.CODING_LANE_STATUS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.CODING_LANE_STATUS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchObservation_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n },\n });\n\nexport const workbenchParkedCodingQuestions_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchParkedCodingQuestions_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_ParkedCodingQuestion_Schema\n >({\n mainSchema: Workbench_ParkedCodingQuestion_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.PARKED_CODING_QUESTIONS,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.PARKED_CODING_QUESTIONS],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.PARKED_CODING_QUESTIONS,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchParkedCodingQuestions_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n [WorkbenchParkedCodingQuestions_Operations.ANSWER]: {\n variants: [createDispatchApiVariant({\n requestDto: Workbench_ParkedQuestionAnswerRequest_Schema,\n customResponseDto: Workbench_ParkedQuestionAnswerOutcome_Schema,\n })],\n },\n [WorkbenchParkedCodingQuestions_Operations.CANCEL]: {\n variants: [createDispatchApiVariant({\n /* Collection-level: one coding lane, one active run — see the enum. */\n resourceOperationLike: CoreResourceOperation.UPDATE_MANY,\n requestDto: Workbench_EmptyRequest_Schema,\n customResponseDto: Workbench_CodingRunCancelOutcome_Schema,\n })],\n },\n },\n });\n\n/**\n * THE DOSSIER (#1454, Step 5): what the creator was asked and what they said.\n *\n * READ/LIST like every creation-plane projection, plus ONE write verb, `answer`, which lands the\n * `creator-inputs` family. A per-row dispatch because the row IS the question: the identity carries\n * the playbook and question refs the family stores the answer under, so the body carries only the\n * value. `PATCH`-shaped (`UPDATE` operation-like) rather than `PUT`, since an answer changes one\n * field of an existing row and the resource has no CREATE — a question exists because a playbook\n * declares it, never because someone answered it.\n */\nexport const workbenchDossierEntries_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchDossierEntries_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_DossierEntry_Schema\n >({\n mainSchema: Workbench_DossierEntry_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.DOSSIER_ENTRIES,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.DOSSIER_ENTRIES],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.DOSSIER_ENTRIES,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchDossierEntries_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: {\n variants: [{\n ...createCreationPlaneReadListApiVariant(),\n /* The scripted interview reads ONE playbook's questions; the dossier page reads all. */\n filterFields: {\n playbookRef: z.string().min(1),\n standing: z.string().min(1),\n /* \"What waits on me now\" — the dossier page's one narrow question, asked server-side. */\n askedNow: z.boolean(),\n },\n }],\n },\n [WorkbenchDossierEntries_Operations.ANSWER]: {\n variants: [createDispatchApiVariant({\n requestDto: Workbench_DossierAnswerRequest_Schema,\n customResponseDto: Workbench_DossierAnswerOutcome_Schema,\n })],\n },\n },\n });\n\n/**\n * HOME's LINES (#1454): READ/LIST like every creation-plane projection, no write verb — a line is a\n * pointer at an element whose own operations do the work (Run on a playbook, Answer on a waiting\n * run, Accept on a dispatch). `section` is the one declared filter: Home reads the three sections it\n * lays out, and the assistant asks for \"what is asked of the creator\" without reading the rest.\n */\nexport const workbenchCreationHomeLines_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchObservation_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_CreationHomeLine_Schema\n >({\n mainSchema: Workbench_CreationHomeLine_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.HOME_LINES,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.HOME_LINES],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.HOME_LINES,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchObservation_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: {\n variants: [{\n ...createCreationPlaneReadListApiVariant(),\n filterFields: { section: z.string().min(1) },\n }],\n },\n },\n });\n\n/** The four creation OUTCOMES (#1454): READ/LIST, always four rows, nothing to write. */\nexport const workbenchCreationOutcomes_ResourceConfiguration_InitializationFactory =\n (resourcesRelationships: ResourceRelationship[]) => createResourceConfiguration_Initialization<\n typeof WorkbenchObservation_Operations,\n WorkbenchCreationPlane_CoreOperations,\n typeof Workbench_CreationOutcome_Schema\n >({\n mainSchema: Workbench_CreationOutcome_Schema,\n resourceIdentifier: WorkbenchShared_ResourceType.CREATION_OUTCOMES,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[WorkbenchShared_ResourceType.CREATION_OUTCOMES],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: WorkbenchCreationPlaneBehavior.CREATION_OUTCOMES,\n tenancy: IntrospectionTenancyStance.APPLICATION_RUNTIME,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: WorkbenchObservation_Operations,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createCreationPlaneReadApiVariant()] },\n [CoreResourceOperation.LIST]: { variants: [createCreationPlaneReadListApiVariant()] },\n },\n });\n\nexport const workbenchCreationPlane_ResourcesConfigurationsFactoryMap = {\n [WorkbenchShared_ResourceType.PLAYBOOKS]: workbenchPlaybooks_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.BUILD_PLAN_TASKS]: workbenchBuildPlanTasks_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.RUN_WRITE_RECORDS]: workbenchRunWriteRecords_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.TRACE_SESSIONS]: workbenchTraceSessions_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.GOVERNANCE_DOCUMENTS]: workbenchGovernanceDocuments_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.GOVERNANCE_QUESTIONS]: workbenchGovernanceQuestions_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.BUILD_DISPATCH_PLAN]: workbenchBuildDispatchPlan_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.BUILD_DISPATCHES]: workbenchBuildDispatches_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.PLAYBOOK_RUNS]: workbenchPlaybookRuns_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.WAITING_PLAYBOOK_RUNS]: workbenchWaitingPlaybookRuns_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.CODING_LANE_STATUS]: workbenchCodingLaneStatus_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.PARKED_CODING_QUESTIONS]: workbenchParkedCodingQuestions_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.DOSSIER_ENTRIES]: workbenchDossierEntries_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.HOME_LINES]: workbenchCreationHomeLines_ResourceConfiguration_InitializationFactory,\n [WorkbenchShared_ResourceType.CREATION_OUTCOMES]: workbenchCreationOutcomes_ResourceConfiguration_InitializationFactory,\n};\n"]}