Roadmap & Changelog¶
Roadmap¶
openframe-core¶
Done since this was last updated:
Establish— resolved by consolidating to one class at three levels of ceremony (ApplicationBootstrapas the recommended wiring pathcompose()→ subclass +configure()→.registryescape hatch) instead of three competing patterns. See Design Decisions and How It Works § Choosing a Wiring Pattern.— already existed (147 lines); this item was stale.test_middleware_types.pyRemove redundant— already true; nopytest.inipytest.iniexists, only[tool.pytest.ini_options]inpyproject.toml. This item was stale.
Documentation tasks:
- (none currently open for
openframe-coreitself — see Lower-priority items below)
Lower-priority items:
- Pin OTel SDK dev dependency to exact version —
conftest.py/testing/fixtures.pyaccesses_TRACER_PROVIDER_SET_ONCE._donedirectly; a patch release could rename this attribute - Switch to Trusted Publishing on PyPI — remove
PYPI_API_TOKENsecret, use OIDC viapypa/gh-action-pypi-publish - Consider whether
PluginNotFoundError/PluginInitializationErrorshould actually be raised where their names imply (PluginRegistry.get()currently raises a plainKeyError;initialize_all()re-raises the original exception unwrapped) — both classes exist in the public exception hierarchy but are dead code today. Not done as part of the wiring-pattern consolidation since it's a behavioral change, not a documentation fix.
openframe-adapters¶
Done since this was last updated:
openframe-adapters-db-postgres— first adapter, reference implementationopenframe-adapters-db-redis— key-value, pub/sub, semantic cacheopenframe-adapters-db-mongo— document store for AI Research Vault Phase 1openframe-adapters-queue-kafka— producer + consumer, unlocks event-driven templateRemaining 11 adapters in parallel once the pattern is validated— built in checklist-driven waves (seeopenframe-adapters' own.github/CHANGELOG.md): queue (nats, rabbitmq), relational (cockroachdb, mysql, mariadb, oracle), key-value/columnar (dynamodb, cassandra), time-series (influxdb), vector (qdrant, milvus, chromadb), graph (falkordb). 17 real packages total. FAISS remains explicitly descoped — no native id→metadata store, doesn't fitBaseVectorStore's id-addressable design.— both shipped in this repo (v3.5.0 / v3.6.0), each extendingBaseVectorStore[T]/BaseGraphStore[T]BaseRepository[T]directly plus exactly one new method, rather than as disjoint sibling ports. See ADR-006 for the port-design philosophy both followed.
Next capabilities under consideration — each is a candidate NEW
top-level capability, not an extension of an existing adapter package.
Every adapter in this ecosystem depends only on openframe-core plus
its own driver library, never on a sibling openframe-adapters-*
package (e.g. openframe-adapters-db-falkordb depends on redis-py
directly, not on openframe-adapters-db-redis, even though FalkorDB is
Redis-based under the hood) — this constraint applies to every item
below too, most pointedly the Redis-backed ones:
- Object storage (
BaseObjectStore— already named in the v3.1.0 entry further down this same file) — S3, GCS, Azure Blob, MinIO. Strongest fit for the existing extend-BaseRepository-plus-one-method pattern; put/get/delete/list by key is arguably more naturally CRUD-shaped than graph nodes were. Superseded twice, history kept for continuity. Pass 1 of this entry proposed an outbound FTP/SFTP client adapter here underCapability.STORAGE(server half →openframe-protocol, client half → here). Pass 2 (openframe-protocoldraft 7) moved both halves of FTP intoopenframe-protocol-ftptogether, removing it as a candidate here entirely. Pass 3 (openframe-protocoldraft 8, current) reverses pass 2: the boundary is now "by peer, not by protocol" — FTP's server half (accepting uploads from unknown callers) stays inopenframe-protocol-ftp, but the client half (connecting to one specific named third-party FTP server) is a third-party-peer integration and belongs back here, inopenframe-adapters, as originally thought. Its exactCapabilityfit is explicitly not yet decided (draft 8's own open decision D11 —STORAGEis a candidate, not settled) — don't treat the old pass-1STORAGEplacement as confirmed; it's a plausible answer to an open question, not a closed one. Same reopened status applies to RTMP push and RTSP pull (D11 again — none of the eleven existingCapabilitymembers fits either yet) and to a raw SMTP relay (tentativelyNOTIFICATION, same not-yet-added caveat as below). - Full-text/structured search — Elasticsearch, OpenSearch. Reuses
Capability.SEARCH(already shared with vector/graph stores); own query shape (term/boolean queries, not vector similarity or Cypher). - Secrets management (
BaseSecretsProvider— also pre-named) — Vault, AWS/GCP/Azure secret managers. Not CRUD-shaped — versioned key lookups need their own port design, not aBaseRepositoryextension. - Feature flags (
BaseFeatureFlagProvider— also pre-named) — LaunchDarkly, Unleash, GrowthBook. Not CRUD-shaped — boolean/variant evaluation. - Distributed locking — own Redis/etcd/Zookeeper client (never the
openframe-adapters-db-redispackage itself).acquire/release/extendis close to CRUD-shaped but isn't quite it. - Notifications (email/SMS/push, plus Slack/webhook alerts and
PagerDuty/Opsgenie-style paging) — SES, SendGrid, Twilio, FCM, Slack
incoming webhooks, PagerDuty. Shaped like
BaseProducer(fire-and-forget/ack), notBaseRepository. Intended new taxonomy member:Capability.NOTIFICATION— named now, not added to the enum yet (see below). The role this covers is distinct from this repo's existing logging/OTel-metrics signals: those are machine-consumed telemetry (dashboards, alerting pipelines that process metrics);NOTIFICATIONcovers reaching an actual human or external system directly (an email landing in an inbox, a page firing, a Slack message posting) — a different capability, not a backend for the telemetry this repo already has. Candidate justification, following the same barCapability.SEARCHmet (shared by multiple genuinely analogous backends, not invented for one): email, SMS, push, and chat/paging providers are all the same operational role — deliver a message to an end-human/device via an external provider — which is why this is a stronger fit than forcing it onto the existingQUEUEmember (which specifically describes message brokers with consumer-side subscribe/ack semantics; SES/SendGrid/Slack have none of that). - Do not add
Capability.NOTIFICATIONto the enum speculatively. Per this repo's own closed-taxonomy discipline (ADR-006;Capability.TRANSPORTwas not repurposed for inbound transport servers in theopenframe-protocoldesign review for the same reason) — add the member only once a real adapter (email, SMS, push, or paging) is actually being built, not ahead of one. This bullet records the intended name and justification so that moment doesn't have to re-derive either from scratch. - Identity/auth verification — Auth0, Okta, Keycloak token introspection or user lookup.
- Rate limiting — same Redis-driver-directly caveat as locking.
Deliberately out of scope for now: workflow orchestration (Temporal/ Camunda — too large a port surface for one method), schema registries (Kafka-ecosystem-specific, niche), payment processing (too domain-specific for generic infra adapters).
openframe-suite¶
openframe-suite[rest],[inference],[worker]topology bundles- Six templates:
modal-template-fastapi(exists),modal-template-realtime,modal-template-event,modal-template-worker,modal-template-inference,modal-template-grpc
Changelog¶
v3.3.0 — ApplicationBootstrap.compose()/get_all()/registry, port init timeouts (non-breaking)¶
Resolves the "three application wiring options" ambiguity tracked above by consolidating to one recommended class (
ApplicationBootstrap) at three levels of ceremony. See Design Decisions and How It Works § Choosing a Wiring Pattern.
ApplicationBootstrap.compose(*ports)— new classmethod; zero-subclass entry point for a service with one or a few ports.ApplicationBootstrap.get_all(capability)— new method, mirrorsPluginRegistry.get_all().ApplicationBootstrap.registry— new read-only property exposing the underlyingPluginRegistry.PluginRegistry(default_init_timeout=...)/register(..., init_timeout=...)(mirrored onApplicationBootstrap) — bound how longinitialize_all()waits for a port'sinitialize(). Both default toNone(no timeout) — fully backward-compatible.- Fixed:
TracingProxy'sasyncio.iscoroutinefunctiondeprecation;AmbiguousCapabilityErrornow mirrorscapability/matchesintocontext. - Full changelog:
.github/CHANGELOG.md.
v3.1.0 — contracts/ Merged into ports/, outbound/ Sub-module Introduced (breaking)¶
Ecosystem packages pinned
openframe-core>=3.0,<4;openframe-adaptershas migrated its imports toopenframe.core.ports.
openframe.core.contractsrenamed toopenframe.core.ports. All names previously importable fromopenframe.core.contractsare now importable fromopenframe.core.ports. No compatibility shim — update all imports.openframe.core.portsnow exports both the port primitives (BasePort,Capability,Identity,Lifecycle,PluginStatus,PluginHealth,PluginContext,PrincipalContext,TenantContext) and the outbound protocols (BaseRepository,BaseProducer,BaseConsumer) from a single unified module.BaseRepository,BaseProducer,BaseConsumermoved into a newopenframe/core/ports/outbound/sub-module, mirroringopenframe/core/inbound/on the driving side of the hexagon. The public API is unchanged —from openframe.core.ports import BaseRepositorystill works; the explicit sub-module path is nowfrom openframe.core.ports.outbound import BaseRepository. Future capability-specific outbound protocols (BaseSecretsProvider,BaseObjectStore,BaseFeatureFlagProviderfromopenframe-infra) will be added toports/outbound/.
v3.0.0 — Unified Port + Lifecycle Contract (breaking)¶
Migration guide: ADR-006. Ecosystem packages pinned
openframe-core>=3.0,<4; all packages have since migrated.
Removed:
openframe.core.health—HealthCheckProtocol (ping()/is_ready()) deleted. Health is nowLifecycle.health() -> PluginHealthinopenframe.core.ports.openframe.core.plugins.contracts/OpenFramePlugin— deleted. A plugin is now just a registeredBasePort. No separate plugin protocol exists.openframe.core.errors— thePluginErrorfamily moved intoopenframe.core.exceptionsunder the newOpenFrameErrorroot. No deprecated aliases.- Pre-v3 lifecycle-free ports —
BaseRepository,BaseProducer,BaseConsumerno longer exist as bare domain-method-only Protocols; rebuilt onBasePort.
Added:
openframe.core.contracts(merged intoopenframe.core.portsin v3.1.0 — see below) — apex module:Identity,Lifecycle,BasePort(@runtime_checkable),Capability(closedstrenum),PluginStatus,PluginHealth,PluginContext,PrincipalContext,TenantContext.openframe.core.inbound— driving side of the hexagon:UseCase[TIn, TOut],CommandHandler[TIn],QueryHandler[TIn, TOut],RequestContext.openframe.core.exceptions.OpenFrameError— single root for all ecosystem exceptions.ErrorCodeandSeverityStrEnums.AdapterErrorandPluginErrorfamilies re-parented under it.openframe.core.telemetry.record_error()— structured error→span recording seam. Called atTracingProxy,TelemetryMiddleware, andPluginRegistryboundary seams.openframe.core.plugins.PluginRegistry— now keys onCapabilityenum;get()is strict (AmbiguousCapabilityErroron >1 match).openframe.core.runtime.ApplicationBootstrap— optional async context-manager composition root.openframe.core.testing—InMemoryRepository,FakeProducer,FakeConsumer(allBasePort-satisfying);PortContractTests,LifecycleContractTests,RepositoryContractTests,ProducerContractTests,ConsumerContractTests.
Changed:
BaseRepository[T],BaseProducer[T],BaseConsumer[T]— now extendBasePort. Every port hasname/version/capability/initialize/shutdown/health.- Version bumped
2.0.0→3.0.0inpyproject.toml. - 284 tests. All run in under 1 second.
v2.0.0 — Namespace & Settings Stabilisation (breaking)¶
openframe.core.config—BaseAdapterSettingsstabilised as the base for all adapter settings.openframe.core.exceptions—AdapterError__str__format locked to[adapter.operation] message.- Namespace package (
pkgutil.extend_path) stabilised. Ecosystem packages begin using theopenframe.*namespace.
2026-06-13 — v1.0.0 Initial Release¶
openframe.core.exceptions—AdapterErrorbase class and five typed subclasses.__str__produces[adapter.operation] messagerather than a raw tuple repr.super().__init__(message)passes only the message toException.__init__.openframe.core.config—BaseAdapterSettingsPydanticBaseSettingssubclass with four common fields:adapter_name,connection_timeout(30 s),operation_timeout(10 s),max_retries(3).openframe.core.ports—BaseRepository[T],BaseProducer[T],BaseConsumer[T]asruntime_checkableProtocols.BaseConsumeruses a push-based handler model (Callable[[T], Awaitable[None]]).openframe.core.health—HealthCheckProtocol withping()andis_ready()(removed in v3.0.0).openframe.core.telemetry—setup_telemetry(),get_tracer(),get_meter(),record_lifecycle_event(). Removes_grafana_headers()— authentication handled natively viaOTEL_EXPORTER_OTLP_HEADERS. ReplacesMODAL_ENVwithOPENFRAME_ENV.openframe.core.tracing—TracingProxywith fixed method caching. Original template capturedmethodat first access (stale snapshot). This implementation resolves fresh inside_tracedon every invocation — safe for reconnecting adapters.openframe.core.middleware—TelemetryMiddlewareas pure ASGI middleware (not StarletteBaseHTTPMiddleware). Duration metric uses unit"s"per OTel HTTP semantic conventions. Five metric instruments.x-session-idinjection. Does not callsetup_telemetry().openframe.core.middleware.types—ASGIScope,ASGIMessage,Receive,Send,ASGIAppstdlib-only type aliases.- 112 tests across 8 modules.
conftest.pyresets OTelOnce._doneguards between tests — without this,set_tracer_provider()silently fails from test 2 onwards. - Published to PyPI as
openframe-core==1.0.0.