Introducing a new way to review your PRs.

Read the announcement

tracer-cloud / opensre

The open-source agent for CI/CD reliability.

View on GitHub

25 documents · Updated Nov 23, 2026

docs / integration-catalog

Integration catalog and registry

The integration catalog gives OpenSRE one view of external services and their usable connection settings. It discovers records from the environment, local store, and signed-in account, applies registry identity and validation rules, and exposes a safe view to tools, verification, user surfaces, and agent runs. See the integration platform page for the wider connection model. Related topics include setup and credentials, verification and probes, and hosted gateway integration.

Catalog and registry boundaries

Catalog role

The catalog turns possible connection settings into active integration records and then into effective runtime entries. It owns source discovery, source precedence, normalization, and the public view that downstream systems use instead of reading raw environment values or store records.

The public catalog facade is integrations/catalog.py. Its APIs cover full environment discovery, startup-safe environment presence, record merging, effective resolution, configured-service summaries, and offline health summaries. The implementation is loaded only when classification or merging is needed, so startup surfaces can use the lighter presence path.

References: integrations/catalog.py• L22-79 integrations/catalog.py• L93-194 integrations/catalog.py• L195-260 integrations/catalog.py• L299-384 integrations/_catalog_impl.py• L419-478 integrations/_catalog_impl.py• L1878-2230

Registry role

The registry describes what an integration is and which platform flows can use it. An IntegrationSpec gives a service its canonical name, aliases, family members, classification behavior, effective-publication behavior, verification support, setup support, and ordering information.

The registry derives lookup and support lists from these specs. This makes one definition drive service lookup, instance-family grouping, setup choices, verification choices, and effective publication. External packages can add specs through the same contract.

References: integrations/registry.py• L10-25 integrations/registry.py• L521-588 integrations/registry.py• L591-663

Integration definition model

Service identity

Service identity is the canonical key used across discovery, classification, setup, verification, and selection. Incoming labels are trimmed and lowercased. Aliases then resolve to the canonical service, while family members group related forms under one instance view.

Management commands may add management-only aliases. These aliases do not change the global service identity. Distinct connection types remain distinct when they need different flows, such as posthog and posthog_mcp.

References: integrations/registry.py• L452-475 integrations/registry.py• L679-724

Integration records

An integration record represents one configured service source. It carries a service name, active state, record id, and credentials either directly or through named instances. The instance shape supports several environments for one service without changing the service-level catalog contract.

Older flat records are read as one default instance. This keeps classification and selection on one current shape while preserving compatibility with saved records.

References: integrations/_catalog_impl.py• L400-417 integrations/_catalog_impl.py• L419-478 integrations/_catalog_impl.py• L558-610

Effective entries

An effective entry is the catalog hand-off to runtime consumers. It contains the selected source, a normalized configuration, and optional instance metadata. It is the result of source choice and validation, not a second credential store.

Only services that the registry marks for direct effective publication enter through the common classified path. A final model check accepts built-in effective services and registered external services, then removes unknown keys before consumers receive the result.

References: integrations/_catalog_impl.py• L1911-1958 integrations/_catalog_impl.py• L2065-2073 integrations/_catalog_impl.py• L2219-2230 integrations/effective_models.py• L12-29

Discovery and resolution flow

Source discovery

Full discovery builds active records from local environment settings and secret resolution. It also consumes records from the local store and signed-in account when the effective resolver runs. Each vendor path checks the minimum settings for its connection model and validates the resulting configuration before adding it.

The startup-safe presence API uses plain environment values only. It does not resolve keyring secrets or build runtime configurations. This lets user surfaces show likely configured services before the first prompt without making startup depend on secret access or full validation.

Invalid vendor configuration skips that service and reports a warning through the error boundary. Discovery continues for other services. Multi-instance environment input is one JSON list for one service record; invalid input falls back to the older single-instance environment path.

This diagram shows how source records become the effective view used by runtime consumers.

flowchart LR
    E[Environment settings] --> D[Catalog discovery]
    K[Keyring-backed secrets] --> D
    L[Local store] --> M[Source merge]
    A[Signed-in account] --> M
    D --> M
    P[Startup-safe presence] --> N[Configured service names]
    M --> C[Classification and validation]
    C --> R[Effective integration view]
    R --> U[Tools, agents, CLI, and verification]

References: integrations/catalog.py• L93-194 integrations/_catalog_impl.py• L369-387 integrations/_catalog_impl.py• L558-610 integrations/_catalog_impl.py• L629-1875

Source precedence

Local merging prefers the store over environment records for the same service. The merge happens at the service boundary, so the winning source keeps every record it has for that service. This preserves all named instances instead of keeping only the last record.

Effective resolution applies the complete order of remote account records over the local store over local environment records. The selected source is retained in each effective entry, so consumers do not need to inspect raw sources to understand where a configuration came from. App-backed GitHub records receive special preservation when source groups merge.

References: integrations/_catalog_impl.py• L1878-1908 integrations/_catalog_impl.py• L1961-1987 integrations/_catalog_impl.py• L2036-2063

Classification

Classification maps active records to normalized runtime configurations. A service-specific classifier can reject incomplete or invalid credentials. The catalog then omits that instance instead of exposing a configuration that runtime consumers cannot use.

The flat service entry remains the default or first instance for compatibility. When a service has several instances or a named non-default instance, the catalog also publishes an instance list with names, tags, normalized configurations, and source record ids. Family keys let related service forms share that list.

Unknown services use a limited pass-through form during classification. The final effective-key check still decides whether an unknown service can be exposed.

References: integrations/_catalog_impl.py• L419-473 integrations/_catalog_impl.py• L541-555 integrations/_catalog_impl.py• L1926-1958

Effective resolution

Effective resolution combines source precedence, classification, and source metadata into one runtime-facing map. It also handles a small set of services whose configuration needs a dedicated fallback path, such as Slack, tracer, Google Docs, Kafka, and ClickHouse.

The result is validated against the effective integration model. Registered external services are added to the accepted key set, so a plugin definition is not discarded as unknown. Any remaining unrecognized key is logged and removed.

References: integrations/_catalog_impl.py• L2036-2230 integrations/registry.py• L562-564 integrations/registry.py• L657-663

Validation and selection interfaces

Definition validation

Validation protects two boundaries. Vendor configuration models check whether one connection record has the fields and combinations needed for its service. Registry invariants check whether the shared catalog contract remains coherent across services.

Registry-derived setup and verification lists are ordered from the spec. A service can therefore be present in the catalog without being usable for setup or verification unless its corresponding support is declared and connected to the owning flow.

References: integrations/_catalog_impl.py• L629-1875 integrations/registry.py• L521-588

Instance selection

The catalog exposes one service-level view even when a service has several instances. Consumers can request all instances, the default instance, a named instance, or an instance with matching tags.

Selection uses this order:

  1. A requested name selects that exact instance.
  2. Tags select the first instance that contains the requested values.
  3. With no filter, the default or first instance is returned.

A missing name or tag returns no result. It does not silently select the default instance and risk sending an operation to the wrong external system. See the integration platform page for the broader connection lifecycle.

References: integrations/selectors.py• L35-125 integrations/_catalog_impl.py• L446-467

Verification boundary

The catalog answers which configuration is available. Verification answers whether that configuration can connect. The two interfaces stay separate so discovery and selection remain offline while an explicit verification flow can perform health checks. See integration verification for that health-check flow.

References: integrations/catalog.py• L325-384 integrations/_catalog_impl.py• L2036-2063

Public catalog and registry APIs

Catalog APIs

The catalog facade gives user surfaces and runtime code one shared view of configured services and effective settings. Its service summary combines environment-visible services with active local and remote records, filters store and remote records through registry identity, and removes duplicates.

The summary also expands app ids carried inside Pipedream records because those connected apps must appear as available services to downstream turns. The health summary is offline. It reports an obvious incomplete state for hosted MCP services that have a URL but lack the required personal token; it does not prove network connectivity.

References: integrations/catalog.py• L195-301 integrations/catalog.py• L304-384

Registry APIs

Registry consumers use canonical service lookup, family lookup, ordered setup and verification lists, and external-service discovery. These views are derived from IntegrationSpec, so changing a definition changes the management and runtime surfaces that consume the registry.

External registration normalizes the service, alias, and family keys. It rejects empty or conflicting keys. Re-registering the same external service replaces its earlier spec. The registry rebuilds derived tables in place so readers that imported those tables continue to see the current definition.

References: integrations/registry.py• L452-460 integrations/registry.py• L521-588 integrations/registry.py• L591-663

Change checklist

When these files or sections are changed, remember to consider these:

  • When adding a service or alias, update its IntegrationSpec, discovery or classifier path, and any family members. Confirm that no built-in or external key is claimed twice.
  • When changing setup or verification support, keep the registry order fields aligned with the setup and verifier consumers. A definition can otherwise appear supported without a usable route.
  • When changing the record shape, preserve flat-record migration, the default instance view, and named-instance selection.
  • When changing multi-instance environment input, keep one environment source grouped into one service record so the service merge preserves every instance.
  • When changing source precedence, update local merging and effective resolution together. Their order controls which credential set reaches runtime.
  • When adding an external integration, register its spec and provide a supported way to create its records. Ensure the effective model accepts its key.
  • When changing startup presence rules, keep their minimum-configuration checks aligned with full environment loading. Otherwise presence and usable discovery can disagree.
  • When changing registry rebuilds, preserve in-place updates because other modules may hold references to derived lists and maps.
  • When changing catalog error handling, keep per-service failures visible to warning-level reporting without stopping discovery for unrelated services.

Important failure modes

TriggerConsequenceGuard
A service, alias, or family member collides with an existing keySetup, verification, classification, or family grouping can route to the wrong integrationExternal registration normalizes keys and rejects built-in and plugin conflicts before rebuilding lookup tables
A malformed environment value fails vendor validationThat service is omitted while unrelated integrations continueThe loader reports the exception through the warning boundary and sends it to error reporting without stopping discovery
A multi-instance environment value is invalid or emptyThe multi-instance record is ignored and legacy single-instance settings are usedThe parser accepts only a non-empty JSON list and falls back without logging the raw value
A service is emitted as several records from one environment sourceService merge can lose instances when a later source replaces the service groupEnvironment parsing groups all entries into one active record and the merge keeps every record from the winning source
A requested instance name or tag has no matchSelection returns no configuration instead of risking the default instanceExplicit filters do not fall back to the default
A hosted MCP record has a URL but no personal token outside stdio modeThe service appears configured but cannot connectOffline health marks the service incomplete without network I/O
An effective key is not in the model or external registryThe integration is dropped before consumers receive itFinal resolution builds its accepted-key set from the effective model and external registry

Key files

FileWhy to read it
integrations/catalog.pyPublic facade for discovery, configured-service summaries, and offline health
integrations/_catalog_impl.pySource loading, multi-instance parsing, merge, classification, and effective resolution
integrations/registry.pyIntegration definitions, identity maps, family grouping, ordered support lists, and external registration
integrations/effective_models.pyContract for the normalized effective integration view
integrations/selectors.pyConsumer-facing instance selection rules
integrations/store.pyLocal record shape and compatibility migration
integrations/verify.pyVerification flow that consumes the effective catalog