{"slug":"platform/03-workspace-runtime","title":"03 — Workspace Runtime","section":"platform","sectionLabel":"Platform","status":"unclassified","type":"document","path":"platform/03-workspace-runtime.mdx","bytes":2063,"description":null,"updated":null,"source":"integratewise/Integratewise-docs-wiki","content":"\n> **Extracted from:** IntegrateWise Platform Specification Suite\n> **Region:** first_pass\n> **Original line:** 715\n> **Lines:** 38 | **Chars:** 1,792\n> **Status:** Raw extraction — requires review and canonicalization\n\n03 — Workspace Runtime\n3.1 Responsibilities\nDefine the Workspace unit (Personal / Work / Business).\nHold per-workspace context, projections, module set, layout, and persistence.\nHandle workspace switching without losing Twin continuity (Continuity Bridge).\n3.2 Workspace definition\nCopyworkspace_id: wsp_abc\ntenant_id: tnt_xyz\ntype: personal | work | business\npersona: { department: CTX_SALES, industry: saas_tech, sub_role: AE }\nmodules: [leads, accounts, deals, signals]\nlayout: ref→ prj_layout_01\ncreated_at, updated_at, archived_at\n3.3 Lifecycle\nCopyinit ──▶ bootstrapping ──▶ active ──▶ suspended ──▶ archived\n└──▶ migrated (tenant merge)\n3.4 Inputs\nOnboarding completion event (per existing spec).\nManual add/remove of modules and layouts.\nAdministrator actions.\n3.5 Outputs\nWorkbench projection mount points.\nPersona-side module compatibility matrix.\nContinuity Bridge context bundle (delivered to Twin on switch).\n3.6 Events\nProduced: WorkspaceCreated, WorkspaceSwitched, WorkspaceModuleAdded, WorkspaceModuleRemoved, WorkspaceArchived, WorkspaceMigrated.\nConsumed: onboarding_complete=true, TenantMerged, UserRoleChanged.\n3.7 APIs\nPOST /workspaces, GET /workspaces/{wsp_id}, POST /workspaces/{wsp_id}/switch, POST /workspaces/{wsp_id}/modules/{module_id}, DELETE /workspaces/{wsp_id}/modules/{module_id}.\n3.8 State transitions\nSwitching is a WorkspaceSwitched event and updates user.last_workspace_id; the Twin suspends but does not lose memory.\n\n3.9 Failure handling\nModule load failure → fallback to “minimal” module set (always-on: leads, signals, evidence).\nMigration failure → block switch, surface diff in Workbench.\n3.10 Extension points\nCustom modules (see 12).\nCustom layouts persisted via 18 (Design Tokens) but routed through Projection Engine (04).\n"}