#8194·elsa-core

[Program] Elsa 3 integration ecosystem: monorepo consolidation, independent releases, and researched connector catalog

Author: sfmskywalkerCreated Sep 23, 2026Updated Sep 26, 2026
Labelsprio highepicelsa 3triaged

Summary

Build a sustainable integration ecosystem for Elsa 3: consolidate Core, all Extensions, and Elsa Studio into elsa-workflows/elsa-core, enable independently released connectors, provide shared connector infrastructure, and deliver a researched, prioritized catalog of useful integrations.

Elsa 3 is the implementation target. Preserve a practical path to Elsa 4 by separating provider-facing logic from runtime adapters where useful; do not block Elsa 3 delivery on a universal cross-version abstraction.

This issue is the program charter and execution plan. The initial breakdown has been created: 10 epics, 40 features, 6 stories and 12 tasks. E/F/S/T identifiers are planning IDs mapped to actual issues in the execution index below. Research and implementation are in progress; the latest execution checkpoint is below.

Problem

Elsa needs both foundational engine/platform modules and a broad set of business integrations. Developers should be able to work on both in one solution, using solution filters for focused development and debugging. A connector release must not require republishing unrelated connectors or core.

Shared cloud users cannot upload arbitrary NuGet packages. They therefore depend on the supplied capabilities, connection experience, and catalog to build complete business processes. Adding API-call activities alone is insufficient: authentication, trigger lifecycle, tenant isolation, data handling, compatibility, and maintenance must be reusable platform capabilities.

Outcomes

  1. Core and extensions are developed in one repository, with a root solution and focused solution filters.
  2. Connectors have explicit, independent release units and compatibility declarations.
  3. Source-based development and published-package compatibility are both verified.
  4. Shared infrastructure handles connections, authentication, actions, triggers, files, resilience, and diagnostics.
  5. Shared cloud exposes a curated catalog with enforced tenant and capability boundaries.
  6. Evidence-based research prioritizes complete customer workflows rather than connector counts.
  7. A pilot cohort validates the architecture and provides reusable implementation and contribution patterns.
  8. The program is decomposed into Program → Epic → Feature → Story → Task issues, with dependencies and acceptance criteria.

Scope and constraints

  • Canonical repository: elsa-workflows/elsa-core. Consolidate all Elsa Extensions and Elsa Studio here, including persistence, scheduling, runtime, expression and integration modules, paired backend/Blazor modules, tests, samples, build assets and relevant documentation. Preserve source history and account for active issues/PRs through an explicit migration ledger. Create new program work here.
  • Reuse or link existing issues and implementations instead of duplicating them.
  • Preserve existing package IDs, activity identities, serialized contracts, and consumer entry points unless an explicit migration is provided.
  • Initially keep engine packages and tightly coupled platform packages in their existing coordinated release groups. Independent connector releases are the first objective.
  • Package release, host deployment, and workflow activity/schema versioning are separate concerns.
  • Shared hosts initially use a curated, pinned connector set. Arbitrary conflicting connector/dependency versions within one process are out of scope.
  • Repository consolidation does not automatically consolidate unrelated commercial products.
  • Shared cloud, dedicated deployments, and self-hosting need explicit capability profiles.
  • Public issues and artifacts must not contain credentials, private customer correspondence, or confidential demand evidence. Record sanitized findings.
  • No schedule, staffing allocation, or demand ranking is established by this charter. Estimate after the inventory and pilots reduce uncertainty.

Studio inclusion and release boundaries

Include Elsa Studio in the monorepo so backend and Blazor functionality can be developed, debugged, reviewed and tested together. Audit paired modules already in Extensions. Provide focused solutions/filters and sample hosts spanning both sides.

Source co-location does not imply a single release train. Tightly coupled server/Studio module pairs may share a release unit; the Studio shell and unrelated packages retain explicit independent release policies. Add backend API/protocol and package compatibility checks. Preserve existing package identities and source ownership during migration.

The illustrative layout below is not a mandated mass move. Core's current AGENTS.md documents src/modules/, src/extensions/, test/ and build/ conventions. The architecture audit must reconcile them with Studio's build tooling and choose the least disruptive structure.

Target architecture

Layer Examples Initial release policy
Engine Workflow model, execution, runtime contracts Coordinated core releases
Platform Persistence, expressions, scheduling, HTTP infrastructure Retain compatibility groupings until audited
Connector infrastructure Connections, authentication, trigger lifecycle, execution support Small, explicitly versioned shared release units
Connectors OneDrive, Moneybird, Slack and subsequent providers Independent connector or tightly coupled family releases
Host composition Curated cloud/self-hosted bundles Pinned and tested deployment manifests

Proposed structure, subject to an architecture decision against the actual repository:

Elsa.sln
eng/
src/
  engine/
  platform/
    persistence/
    expressions/
    scheduling/
    http/
  integrations/
    infrastructure/
      abstractions/
      connections/
      triggers/
    microsoft/
      shared/
      onedrive/
      outlook/
      sharepoint/
    google/
      shared/
      drive/
      gmail/
      sheets/
    finance/
      moneybird/
      stripe/
    communication/
      slack/
tests/
samples/
solution-filters/
catalog/
docs/integrations/

Folders organize source; release manifests define release boundaries. Catalog categories may overlap. Avoid mass relocation of established core paths solely for cosmetic consistency.

Each connector owns its projects, release metadata, changelog, documentation, tests, and examples. Shared provider code must have a justified boundary and dependency graph; do not create a mandatory dependency on every service from the same vendor.

Hierarchy and issue conventions

Use native GitHub parent/sub-issue relationships where supported. Record semantic level with existing repository conventions, issue types where available, or labels/title prefixes where needed. Verify organization capabilities before inventing new types or labels.

Level Purpose Required content
Program Outcomes and overall scope Charter, epic index, milestones, risks, decisions
Epic Independently assessable workstream Outcome, features, dependencies, exit criteria
Feature Coherent capability Consumer behavior, scope, compatibility, stories
Story Verifiable user/operator/developer outcome Scenario and acceptance criteria
Task Concrete implementation or research work Inputs, deliverable, verification, blockers

Use all five levels when meaningful; avoid artificial one-child chains. If native hierarchy cannot be configured, use explicit Parent and Children links and state that native relationships remain pending.

Every executable leaf must identify its parent, deliverable, in/out of scope, acceptance criteria, verification method, dependencies, and relevant sources/code. Assign ownership and estimates through normal triage; do not invent assignees. Distinguish implementation dependencies from containment.

Create all epics and their initial feature issues first. Decompose near-term research, audit, and release-proof work fully. Decompose later stories/tasks after their prerequisite findings, avoiding a large speculative task backlog.

Epic plan

E0 — Program initialization and current-state audit

Features

  • F0.1: Establish the issue hierarchy, reporting conventions, and decision log.
  • F0.2: Inventory core/extensions projects, packages, dependencies, and existing integrations.
  • F0.3: Map existing issues, release workflows, host composition, and Studio extension points.
  • F0.4: Audit the existing Elsa Secrets module, its provider contracts, storage/read/write capabilities, tenant scoping, authorization, and existing consumers. Record verified capabilities and gaps for integration credentials.

Initial stories/tasks

  • As a maintainer, I can find each release unit and its owner, consumers, dependencies, and current version source.
    • Inventory projects and actual published NuGet artifacts; distinguish README claims from verified functionality.
    • Classify engine/platform/infrastructure/connector/host projects.
    • Record activity IDs, serialization contracts, TFMs, licenses, provider SDKs, and compatibility constraints.
  • As a program contributor, I can identify the next unblocked work.
    • Create and link epic/feature issues, attach existing work, and record blockers.
    • Publish an inventory and unresolved-questions register in the repository.

Exit: inventory tied to inspected commit(s), existing work mapped, hierarchy created, and actual gaps identified.

E1 — Integration landscape research and prioritization

Features

  • F1.1: Establish target personas and workflow scenarios.
  • F1.2: Build a broad candidate catalog.
  • F1.3: Perform technical/commercial feasibility investigations.
  • F1.4: Rank delivery cohorts and define their operation-level scope.

Research method

  1. Start with the existing extensions inventory and public requests.
  2. Identify target scenarios for Microsoft-centric teams, SaaS/business operations, developers, and self-hosted enterprise users.
  3. Survey approximately 50–100 candidate services across the categories below. This is a bounded discovery target, not a completeness claim.
  4. Deeply investigate the top 15–20 candidates using official provider documentation.
  5. Validate demand from authorized evidence and maintainer/customer input. Competitor availability is discovery evidence, not proof of Elsa demand.
  6. Produce ranked cohorts, exclusions, unresolved questions, effort ranges, and confidence levels.

Required catalog fields Stable ID, provider, categories, target personas, concrete workflows, existing Elsa status, proposed actions/searches/triggers, authentication types/scopes, OAuth app/verification requirements, API and webhook documentation, polling/renewal requirements, pagination and rate limits, file/size constraints, paid-tier/API-access restrictions, sandbox/test availability, SDK/license considerations, data residency considerations where relevant, maintenance burden, ownership/sponsorship, shared-cloud eligibility, Elsa compatibility, evidence URLs, checked date, confidence, and recommendation.

Use machine-readable records (JSON/YAML or equivalent) plus a generated readable summary. Unknowns remain explicit; do not infer API support from a competitor listing.

Proposed scoring Score 0–5 on each dimension: evidenced demand (30%), complete-workflow coverage (25%), feasibility (15%), shared-infrastructure reuse (15%), and maintenance sustainability (15%; higher means easier to sustain). Publish rationale and confidence separately. Apply hard eligibility checks for usable API/auth access and cloud restrictions; do not let a weighted score conceal blockers. Weights are an initial hypothesis to validate.

Candidate categories

  • Microsoft: OneDrive, SharePoint, Outlook, Teams, Microsoft calendar, Dynamics 365.
  • Google: Drive, Sheets, Gmail, Calendar.
  • Communication: Slack, email/SMTP providers, Twilio, Discord, Telegram.
  • Finance: Moneybird, Stripe, Exact Online, Xero, QuickBooks, PayPal.
  • CRM: HubSpot, Salesforce, Pipedrive, Zoho CRM.
  • Engineering: GitHub, Azure DevOps, GitLab, Jira.
  • Support: Zendesk, Freshdesk, Intercom.
  • Data/storage/messaging: SQL Server, PostgreSQL, MySQL, S3-compatible storage, Azure Blob, Azure Service Bus, RabbitMQ, Kafka.
  • Knowledge/tasks: Notion, Airtable, Asana, Trello.
  • Commerce/documents: Shopify, WooCommerce, DocuSign and document-processing services.
  • AI/agents: model invocation, structured extraction, agent execution, governed remote tools.

These are research candidates, not verified support commitments.

Exit: sourced catalog, deep assessments, scored shortlist, initial operation matrices, maintenance estimates, and recommended complete workflow cohorts.

E2 — Repository consolidation and developer experience

Features

  • F2.1: Architecture decision for folder, dependency, and release boundaries.
  • F2.2: Incremental import of all Extensions and Elsa Studio into Core, including paired backend/Blazor modules.
  • F2.3: Root solution, solution filters, samples, and debugging workflows spanning backend and Studio.
  • F2.4: Migration of contribution/release documentation and source ownership.

Tasks/requirements

  • Inspect repository instructions and branch/release policy before changes.
  • Choose and document history-preservation strategy and migration order.
  • Preserve package/activity identities and existing release support.
  • Establish a single authoritative source and publisher per migrated package.
  • Update project references, SourceLink/repository metadata, CI paths, tests, and documentation.
  • Map old issues/PRs and avoid losing active work. Freeze/archive the old repository only after migration completion is assessed, not as a first step.
  • Verify one focused connector filter brings in the needed core source dependencies for debugging.

Exit: migrated work builds and debugs in core, active changes are accounted for, old consumer contracts are preserved, and rollback/cutover guidance exists.

E3 — Independent versioning, packaging, and compatibility

Features

  • F3.1: Explicit release-unit manifests and scoped versions.
  • F3.2: Dependency-aware CI and selective publication.
  • F3.3: Published-package compatibility validation.
  • F3.4: Artifact provenance, release notes, and recovery procedures.

Required behavior

  • A connector change can publish only that release unit; unrelated packages are not version-bumped.
  • Shared changes expand the impacted build/test set using the dependency graph.
  • Explicit change records declare version intent; connector-specific tags identify immutable release commits.
  • CI validates source/project-reference development and clean consumers using built/published NuGet artifacts against claimed released Elsa versions.
  • Check package dependency metadata and prohibit accidental reliance on unreleased core changes.
  • Verify the exact artifacts being published match the release commit; smoke-test actual packages, not only source.
  • Document supported compatibility ranges/matrix and SDK dependency conflicts.
  • Preserve existing package version monotonicity; do not reset a migrated package from 3.x to 1.x.
  • Document failed/partial publication recovery without overwriting immutable NuGet versions.

Exit: an existing connector demonstrates an independent prerelease/release process, clean host consumption, and no unrelated publication; a shared-dependency change triggers the right additional tests.

E4 — Connector SDK, connections, and execution infrastructure

Features

  • F4.1: Tenant-owned named connections and runtime authorization.
  • F4.2: OAuth/API-key authentication lifecycle and integration with the existing Elsa Secrets module, subject to the architecture assessment below.
  • F4.3: Typed actions/searches, schemas, pagination, and dynamic options.
  • F4.4: Provider-aware execution, throttling, retries, and diagnostics.
  • F4.5: Managed file references and data transformation primitives.
  • F4.6: Governed authenticated API requests for the long tail.

Key acceptance

  • Workflow definitions contain connection references, not embedded secrets.
  • Authorization is enforced on each execution/resumption and on design-time lookups.
  • Refresh concurrency, reconnect/revocation, credential rotation, scope changes, and environment promotion are defined.
  • Retries distinguish safe reads from writes with unknown outcomes; use provider idempotency where available and never promise universal exactly-once delivery.
  • Large files use bounded streams/references with ownership, expiration, quotas, and cleanup.
  • Diagnostics redact secrets and expose actionable provider errors.
  • Reuse existing Elsa abstractions where suitable. Audit JSON/CSV/XML, date/time, validation, approvals, and subworkflow capabilities before adding replacements.
  • Generic authenticated requests enforce provider/destination and credential-forwarding restrictions.

Exit: pilot connectors share these capabilities without connector-specific copies of generic lifecycle logic.

Secrets module and connection architecture decision

Explicitly investigate whether and how integration connections should leverage Elsa's existing Secrets module. Reuse is the preferred starting hypothesis, not an assertion that its current implementation already satisfies the requirements.

Proposed responsibility split to evaluate

  • A connection owns non-secret metadata: provider, account/administration identifiers, granted scopes, status, ownership, and references to credentials.
  • The Secrets module or an adapter over its provider abstractions resolves/protects sensitive material: API keys, OAuth client secrets, refresh tokens, access tokens when persisted, and webhook signing secrets.
  • The authentication/connection layer coordinates consent, refresh, reconnect, and revocation. Secret storage alone does not implement the OAuth lifecycle.
  • Workflows refer to connections; connection records refer to secrets. Avoid exposing raw tokens as normal activity inputs/outputs or persisting them in workflow state, logs, traces, or exports.

Questions and alternatives for the ADR

  1. Can existing Secrets providers support runtime writes, atomic/versioned updates, deletion, and the access patterns needed by rotating OAuth credentials, or are some providers read-only configuration sources?
  2. Compare direct reuse, extending Secrets, and a dedicated credential lifecycle store backed by Secrets/provider abstractions. Justify any separate store and avoid duplicating secret management without a demonstrated requirement.
  3. Decide whether short-lived access tokens should be cached only or persisted; define expiry, cache isolation/invalidation, and durable refresh-token storage.
  4. Define concurrency and recovery for refresh-token rotation across workers, including a crash between provider refresh and local persistence. Do not assume cross-system atomicity.
  5. Distinguish platform-owned OAuth application credentials from tenant-owned connection credentials; define authorization for creating, using, sharing, inspecting metadata, rotating, and deleting them.
  6. Assess encryption/key management and supported external vault integration from actual module capabilities. Define outage behavior, audit events without secret values, and least-privilege access.
  7. Define secret reference/version semantics, environment-specific binding during promotion, disconnect/revocation, tenant deletion, and cleanup of credentials shared by multiple connections.
  8. Verify background polling, webhook renewal, and resumed workflows resolve credentials through an authorized tenant execution context.

Deliverables and acceptance

  • E0 audit documents actual Secrets APIs/providers and gaps.
  • E4 produces an ADR comparing alternatives and selecting a supported approach before credential persistence is implemented.
  • Create feature/story/task issues for reuse, necessary module extensions/adapters, and any credential migration.
  • A pilot demonstrates connection crea

Source: elsa-workflows/elsa-core