Changelog¶
All notable changes to Vertebra are documented on this page.
Unreleased¶
Added¶
- Standalone optional PyO3 native wheel
vertebra-sqlite(vertebra._sqlite,[sqlite]) with bundled modern SQLite 3.45+,GIL_USED = Falsecompatibility on free-threaded Python3.14t/3.15t, single-writer / multi-reader WAL OS worker pool, SQLite 3.45+ binaryJSONB, fast< 50msInterruptHandlequery cancellation, onlinebackup_toandrestore_from, and zero-copyVTBARROWArrowCursorstreaming (select_to_arrow) andload_from_arrow. - Delayed-commit
SyncSQLitePipelineandAsyncSQLitePipeline(driver.pipeline()) supporting batch statement execution with nestedSAVEPOINTisolation. - Dual-mode MCP version negotiation (
SUPPORTED_PROTOCOL_VERSIONS = ("2026-07-28", "2025-11-25", "2025-06-18", "2025-03-26")),MCPSessionStore, legacyinitialize/ping/logging/setLevel/2025-03-26JSON-RPC batch arrays,DELETE /mcp, and structured-32022negotiation payloads (#109). - Server-initiated
GET /mcpSSE notification streams (McpHttpResponse.streamacross nativeApp, ASGI, Starlette, WSGI, Flask, and Django),Last-Event-IDreplay, level-gatedMCPCore.log, progress event relay, authorizedresources/subscribe,notify_resource_updated, and2026-07-28subscriptions/listen(#109, #112). SKILLS_EXTENSION(io.modelcontextprotocol/skills) filtering/URI resolution acrossSkillCatalogand framework mounts (#111), plus SEP-1865UI_EXTENSION(io.modelcontextprotocol/ui) metadata (McpIcon,ToolSpec.meta,ToolRegistry.validate_ui_links,MCPCore.validate()) and app-only tool filtering (#110).- Google Cloud
IapIdentitySourceES256 signed JWT header verification (vertebra-core[iap]),OidcTokenSource(AsyncGcpIdTokenCache+401single retry) forvtb ai mcp bridge --audience, incremental cancellablerun_stdio_server, andresolve_app_mcp_core/is_litestar_mcp_appdiscovery invtb ai mcp serve --app(#114). Tool.authorizesingle-pass guard splitting (-32004/-32005),Mcp-Param-*header validation (-32020), and single-use expiring confirmation consumption (ConfirmationGate.consume_call_approval).SyncGcsBearerSecretProviderandAsyncGcsBearerSecretProviderinvertebra.storagewrappingSyncGcpTokenCacheandAsyncGcpTokenCache(from_config,token_cache,generation,needs_refresh,invalidate) forDuckDBSecretConfig(secret_type="gcs", value_provider=...)OAuth2 bearer-token rotation.- Shared-memory connection broker lifecycle hardening across Rust and Python:
ShmOwnerHeaderstale-owner reclamation,LeaseState::Quarantined/LeaseQuarantinedError, authenticated Unix domain socketSCM_RIGHTSattachment (BrokerAttachServer,BrokerAttachClient,0700/0600permission checks,VERTEBRA_BROKER_SECRET),BrokerHost(vtb broker serve,vtb broker status,ShutdownReport) crashROLLBACKcleanup, andBrokerEngineCapsuleABI v1 (BrokerEngineDiscovery,BrokerEngineRegistry) acrossvertebra._postgres,vertebra._mysql,vertebra._oracle,vertebra._mssql,vertebra._duckdb, andvertebra._sqlite. - Standalone PEP 249
vertebra.db.dbapi(SyncDBAPIConnection,AsyncDBAPIConnection,SyncDBAPIModule,AsyncDBAPIModule), isolatedSQLAlchemyAsyncDBAPI(vertebra.extensions.sqlalchemy.async_adapter), partitioned SQLAlchemy pooling (BrokerPool,AsyncBrokerPool,broker_creator), andDbPoolMetricSamplequarantine counters (quarantined,total_quarantined,total_disposed). - Native standalone
vertebra-redis(vertebra._redis,vertebra-core[redis]) PyO3 extension module with RESP2/RESP3 wire protocol support, atomic/non-atomic pipeline batching,CLIENT TRACKINGL1 cache invalidations, Sentinel primary discovery, and Cluster hash-slot routing. SyncRedisDriverandAsyncRedisDriver(vertebra.db.adapters.redis) with connection pooling, transaction pipelines, and pub/sub notification sources (SyncRedisNotificationSource,AsyncRedisNotificationSource).- Native standalone
vertebra-valkey(vertebra._valkey,vertebra-core[valkey]) PyO3 extension module with RESP2/RESP3 wire protocol support, Valkey 9.0 hash-field expiration (hexpire,hpexpire,hexpireat,hpexpireat,httl,hpttl,hpersist),CLIENT CAPA redirect, atomic/non-atomic pipeline batching,CLIENT TRACKINGL1 cache invalidations, Sentinel primary discovery, and Cluster hash-slot routing. SyncValkeyDriverandAsyncValkeyDriver(vertebra.db.adapters.valkey) with connection pooling, transaction pipelines, and pub/sub notification sources (SyncValkeyNotificationSource,AsyncValkeyNotificationSource).- Cut
RedisQueueBackend(vertebra.framework.queues.redis) over tovertebra._redisnative Streams/ZSETs and extracted self-containedValkeyQueueBackend(vertebra.framework.queues.valkey) cut over tovertebra._valkeynative Streams/ZSETs. - Split
NotificationSourceinto@runtime_checkableSyncNotificationSourceandAsyncNotificationSourceacrosscapabilities.py,driver,adapters.postgres(SyncPostgresListener,SyncPostgresNotificationSource), andadapters.oracle(SyncOracleListener,SyncOracleNotificationSource). - Cache-line-aligned seqlock shared-memory
ShmCacheandShmCacheStats(vertebra._vertebra), Advanced AlchemySyncCacheBackendandAsyncCacheBackend(shm://,memory://,valkey://,redis://,file://), dogpile.cache backends (vertebra.shm,vertebra.memory,vertebra.valkey,vertebra.redis,vertebra.file,create_dogpile_region), and DjangoCacheBackend(vertebra.extensions.django.cache.CacheBackend). - Per-engine SQLAlchemy 2.1 dialects (
vertebra.extensions.sqlalchemy.dialects.{postgresql,sqlite,mysql,oracle,mssql,duckdb,bigquery,spanner}), split AlembicDefaultImplsubclasses andOperations(vertebra.extensions.sqlalchemy.alembic),register_alembic_autogenerate_hooks(), and Django 6.0+DatabaseWrapperbackends (postgresql,sqlite3,mysql,oracle, andspannerviadjango-google-spanner). SyncAwsRdsDialer,AsyncAwsRdsDialer,SyncAwsAuroraDsqlDialer, andAsyncAwsAuroraDsqlDialer(vertebra.db,vertebra.db.dialer) for Amazon RDS, Aurora, RDS Proxy, and Aurora DSQL withverify-fullTLS, the bundled AWS RDS Global Root CA bundle (aws_rds_root_ca_pem()), andconnection_kwargs()forPostgreSQLConfigandMySQLConfig.AwsRdsIamTokenProviderandAwsAuroraDsqlIamTokenProviderresolve explicit keys,AWS_*environment variables, shared~/.awsprofiles, Web Identity STS, ECS and Pod Identity endpoints, and EC2 IMDSv2 without an AWS SDK (#67).SyncAzureEntraDialerandAsyncAzureEntraDialerfor Azure Database for PostgreSQL, Azure Database for MySQL, and Azure SQL withverify-fullTLS, including the matching scope and Entra authority for Azure Government and Azure China hostnames.AzureEntraTokenProvidersupports service principal credentials, Workload Identity Federation (AZURE_FEDERATED_TOKEN_FILE), App Service and Container Apps Managed Identity (IDENTITY_ENDPOINT), and VM IMDS without an Azure SDK (#68).vertebra.agent.okf(OkfDocument,OkfBundle,OkfSource,OkfValidationError) for parsing, validating, digesting, and exporting OKF v0.2 bundles as directories or reproducible ZIP archives, andSyncKnowledgeCatalogClient/AsyncKnowledgeCatalogClient(vertebra.agent.knowledge_catalog) for Dataplex entry groups, context-set resolution, entry CRUD, digest-awaresync_bundle, andsearch_entries/search_entries_pageovergcp_http2_request_sync/gcp_http2_request_async.sync_bundle(delete_stale=True)removes only entries it wrote, and a failed sync raisesCatalogSyncErrorcarrying aCatalogSyncSummaryof what completed (#116).ArrowCursor.__arrow_c_schema__(), lazyArrowCursor.__arrow_c_stream__(),ArrowCursor.from_ipc_bytes(),columns, andto_pylist()onvertebra._vertebra.ArrowCursorandvertebra.db.ArrowCursor, so Polars, DuckDB, DataFusion, and other Arrow PyCapsule consumers read query results withoutpyarrow(#128).EventLoopMetricSampleandEventLoopRecorder(vertebra.telemetry) for per-shard scheduling lag and active-task counts, with optionalopentelemetry.metricsinstruments (vertebra.loop.lag_ms,vertebra.loop.active_tasks) through the new[opentelemetry]extra andzuvlooptelemetry callbacks. Workers sample their loops whenVERTEBRA_LOOP_TELEMETRY=1(VERTEBRA_LOOP_TELEMETRY_INTERVALseconds, default1.0), or throughEventLoopPool.attach_recorder()andrun_worker(loop_recorder=...).LoopTaskSnapshot,capture_loop_task_snapshots(), andformat_task_call_graphs()back the new/taskzdiagnostic page using Python 3.14asyncio.capture_call_graph(#130).- Streaming CSV output and
overwrite=Falseon SQLSpecObjectStoreBackend.write_arrow_*andwrite_arrow_cursor_*, plus an Arrow storage pipeline benchmark intools.benchmarks.microcomparing direct streaming with buffered writes (#100). - Native PEP 249-shaped cursors on the eight SQL extensions (
vertebra._postgres,vertebra._mysql,vertebra._sqlite,vertebra._duckdb,vertebra._oracle,vertebra._mssql,vertebra._bigquery,vertebra._spanner) throughclient.cursor(), andOracleConfig.enable_reset_relay. - Bounded jittered exponential retry support (
connector_retry_count=3,connector_retry_delay=0.5,connector_retry_max_delay=5.0) onCloudSQLConfig,AlloyDBConfig,SyncCloudSQLDialer/AsyncCloudSQLDialer,SyncAlloyDBDialer/AsyncAlloyDBDialer,PostgreSQLConfig,MySQLConfig,MSSQLConfig, and SQLSpec adapterdriver_features(PostgresDriverFeatures,MySQLDriverFeatures,MSSQLDriverFeatures), exportingis_transient_connector_error(),calculate_connector_backoff_seconds(), andvalidate_connector_retry_config()fromvertebra.db.dialer.
Changed¶
OracleSyncADKArtifactStore,OracleAsyncADKArtifactStore,PostgresSyncADKArtifactStore, andPostgresAsyncADKArtifactStoreacceptsession_idandversionpositionally inget_artifact_reference(), matching the other SQLSpec adapters.OracleSyncADKMemoryStore.delete_entries_older_than()andOracleAsyncADKMemoryStore.delete_entries_older_than()defaultscopetoNone, which deletes across scopes as"all"did.create_event_loop()attachesasyncio.eager_task_factoryon every loop backend (uvloop,winloop,rloop,zuvloop, andasyncio), andvertebra.utils.sync_tools.run_()creates its loop throughcreate_event_loop()so it honorsVERTEBRA_LOOPand free-threaded loop quarantine (#129).EventLoopPoolnames shard tasksvertebra.loop.shard.{idx}.task.{seq}andWorkerRunnernames tasksvertebra.worker.runnerandvertebra.worker.lane.{lane}.{seq}(#130).- With an AWS or Azure token provider on a remote host,
PostgreSQLConfigandMySQLConfigdefault toverify-fulland reject SSL modes that can fall back to plaintext (disable,allow,prefer); explicitrequireandverify-castay allowed.MSSQLConfigwith an Entra token provider rejects unencrypted or login-only encryption andtrust_server_certificate=Trueon remote hosts. Both PostgreSQL and MySQL apply the Azure database scope to an unscopedAzureEntraTokenProviderand attach the bundled AWS RDS root CAs for remoteAwsRdsIamTokenProviderhosts.token_providerand CA settings pass through PEP 249connect_args, SQLAlchemy+vtbURLs, and SQLSpecderive_pool(#67, #68). MySQLConfig.ssl_modeisNoneuntil set and no longer rewritten at construction;canonical_ssl_modereports the effective mode, including a mode given in the DSN.SyncObjectStoreandAsyncObjectStoreraiseImproperConfigurationErrorat construction for incomplete Azure service principal or SAS options, partial OCI API signing fields, and blank or unreadable explicit GCS credential options.ArrowCursor.to_polars()passes the cursor to Polars through the Arrow C Stream capsule instead of building apyarrow.Table(#128).- Cut
SyncSQLiteDriverandAsyncSQLiteDriverover from stdlibsqlite3to nativevertebra._sqlite(ensure_module), replacing per-query thread offloading with native async completion task dispatch. - Consolidated
MCPCorewell-known discovery andSkillCatalog/ UI validation wiring acrossAgentPlugin, Starlette, FastAPI, Flask, Django, andlitestar-mcp>=0.20.0(create_mcp_plugin) (#110, #111). DuckDBSecretConfigrejectspersistent=Truewith dynamicvalue_providercallables and validatesrefresh_interval_secondsas a positive finite number;SyncDuckDBDriverandAsyncDuckDBDriverinvalidate dynamic secret providers on(HTTP 401)/(HTTP 403)httpfserrors and close the underlying_clientif startup initialization fails.ProxySyncDriverandProxyAsyncDriver(vertebra.extensions.sqlspec) inheritSyncDriverAdapterBaseandAsyncDriverAdapterBasewith aligned upstream method signatures andArrowResultreturns, and_BaseSQLSpecProviderreplacesinspect.signature/ suppressed exits with@runtime_checkablebroker Protocols and fail-loud lease quarantine (#98);create_sync_alchemy_configandcreate_async_alchemy_configwireBrokerPool/AsyncBrokerPoolwhen a broker is provided.- SQLSpec, SQLAlchemy, and
vertebra.db.dbapirun statements through the native cursor; broker leases are taken per connection checkout and embedded engines take none; and the DB-API exception names are the nativevertebra.dbdriver classes, soInterfaceErroris a subclass ofDatabaseErrorandErrorisDatabaseError. - Raised the minimum
sqlspecdependency floor to>=0.74.1, switched cached statement executor registration inBaseSyncDriverandBaseAsyncDrivertoset_cached_statement_executor(..., owner=...), normalizedbooland empty-stringlastrowidvalues toNoneinsideBaseSyncDriver._normalize_last_inserted_id(), alignedresolve_last_inserted_id()acrossBigQuery*Driver,Spanner*Driver, andProxy*Driver, migrated all eight extensionreconcile.pymodules onto publicsqlspec.extensions.events.resolve_backend_nameandsqlspec.extensions.adkconfiguration helpers, switchedObjectStoreRegistryandregister_storage_alias()toStorageRegistry.register_backend("vertebra", ObjectStoreBackend)and pre-configured instance aliases, thinned all eight sync and asyncdata_dictionary.pymodules (mysql,sqlite,postgres,oracle,spanner,duckdb,mssql, andbigquery) onto sharedsqlspec.data_dictionary.dialects.<dialect>.dictionarybase classes, and removed unusedsqlite_index_rows_to_metadata. - Optimized GitHub Actions CI and release pipelines around build-once wheel artifacts (
tools/scripts/build_ci_wheels.py), reusable composite Rust/Python setup actions (.github/actions/setup-rust-build,.github/actions/setup-python-env),ubuntu-slimrunners for non-native lint/docs/TS jobs, Cargo[profile.ci]and[profile.release]thin LTO (lto = "thin",codegen-units = 4),uv sync --no-install-localacross non-building jobs, pull-request matrix tiering (full-ciandmacosopt-in labels, full coverage onmainpushes and nightly schedule when commits landed), intra-run ephemeral artifact cleanup, closed-PR cache cleanup (.github/workflows/cache-cleanup.yml), and opt-insccacheremote cache configuration (vars.SCCACHE_BACKEND). - Raised the minimum
advanced-alchemydependency floor to>=1.13.0b3, adopting late-bound SQLAlchemy engine factory lookup (for OpenTelemetrySQLAlchemyInstrumentor().instrument()compatibility on single-engine and routed configs) and AES-256-GCM cursor token encryption behind the optionalcryptographyextra.
Fixed¶
- Fixed
SQLiteCore.initialization_pragmasto validate pragma values directly without suppressed native call defects, removing legacysqlite_initialization_pragmasbinding fromvertebra-pyand_vertebra.pyi. SyncOracleNotificationSourceandAsyncOracleNotificationSourceexecute an idleSELECT 1 FROM DUALsession liveness probe whenever anOracleNotifyConfig.wait_timeout_secondspoll cycle yields no queued messages so dropped connections trigger reconnect backoff immediately.- A single-loop inline
EventLoopPool.stop()cancels tracked tasks, runsshutdown_asyncgens(), and closes the loop, matching multi-shard pools (#129). ArrowCursor.to_pyarrow()andto_arrow_table()raiseValueErrorafterrelease(), andto_pylist()raisesValueErrorfor a dictionary key outside the dictionary values (#128).- A corrupt Arrow IPC stream raises
ValueErrorfromArrowCursor(or an Arrow error through the C stream interface) instead of terminating the process. - MySQL
ssl_ca,ssl_cert, andssl_keygiven as inline PEM text load from memory; previously they were treated as file paths and the connection failed.
Removed¶
- Removed legacy RESP3 bindings (
encode_resp_command,encode_hello3_handshake,crc16_xmodem,redis_hash_slot,parse_cluster_redirect) fromsrc/rs/vertebra-pyandsrc/py/vertebra/_vertebra.pyi, and deletedsrc/rs/vertebra-db/src/resp3. - Deleted empty compatibility alias
MCPService(MCPCore)and--nameflag onvtb ai mcp serve(#114). - Removed in-memory fallback broker transports (
SyncInMemoryBrokerTransport,AsyncInMemoryBrokerTransport,use_shm=False), duplicate embedded PEP 249 classes insidevertebra.extensions.sqlalchemy.dialects, and unsupported Django database backend stubs (bigquery,duckdb,mssql). - Removed Python and native client symbols superseded by native cursors:
SyncDBAPICursor,AsyncDBAPICursor,is_read_only_sql,is_insert_sql,coerce_dbapi_rows_and_desc,NATIVE_CURSOR_ENGINES,query_with_columns, protocol membersexecute_with_description,execute_tuples, andselectonSyncSQLDriverProtocol/AsyncSQLDriverProtocol, adapter helpers (DuckDBCore.normalize_parameters,DuckDBCore.param_len,PostgreSQLCore.normalize_parameters,PostgreSQLCore.project_query_rows,OracleCore.split_out_bind_parameters,OracleCore.is_dml_or_plsql),vertebra._vertebra.classify_sql_statement, and unused native client query methods (fetch_allonSyncSQLiteClient/AsyncSQLiteClient;fetch_all,fetch_one,fetch_optional,execute_tuples,execute_with_description, andselect_valueonSyncDuckDBClient/AsyncDuckDBClient;execute_with_description,fetch_all,fetch_one,fetch_optional,fetch_many, andselect_valueonSyncMySQLClient/AsyncMySQLClient;execute_with_description,query,fetch_all,fetch_one,fetch_optional, andselect_valueonSyncMSSQLClient/AsyncMSSQLClient; andqueryandquery_oneonSyncOracleClient/AsyncOracleClient).
0.3.0¶
Release introducing shared-memory vector embeddings, zero-copy PEP 3118 vector views, binary database vector codecs, active Google Cloud ADC credential refresh, and the vtb ai CLI. It also adds co-located background worker lanes, dynamic A2A AgentInterface origin URL resolution, updated isometric axial vertebrae branding, and expanded topic documentation.
Added¶
- Shared-Memory Vector Primitives & PEP 3118 Views (
vertebra-core,vertebra._vertebra): - Cache-line-aligned POSIX shared-memory
VectorSlab(VTBVSLABheader), set-associative seqlockVectorCache,SimilarityMatch,StaticEmbedderCore, Matryoshkamrl_truncate_and_normalize_f32,quantize_f32_to_int8,quantize_f32_to_binary, and SIMDtop_k_*kernels (PR #64). - Zero-copy PEP 3118
VectorViewandVectorBatchViewwith.truncate(),.quantize(),.top_k(),.to_pgvector_bytes(),.to_oracle_bytes(),.to_sqlite_blob(), and.to_arrow_shm()(PR #64). - Binary Database Vector Codecs (
vertebra-db,vertebra.extensions.sqlalchemy): - PostgreSQL
pgvectorbinary wire codecs (encode_pgvector_f32,decode_pgvector_f32,encode_pgvector_f16,decode_pgvector_f16,encode_pgvector_bit,decode_pgvector_bit), Oracle 26ai0xDBbinaryVECTORcodecs (encode_oracle_vector_f32,decode_oracle_vector_f32,encode_oracle_vector_int8,encode_oracle_vector_binary), and SQLAlchemyVectorbind/result pushdown (PR #64). - Google-First, SQL Pushdown & Local Shared-Memory Embedders (
vertebra.embeddings,vertebra-http): - Native HTTP/2 gRPC packed-
f32framing (encode_gemini_embed_grpc_frame,decode_gemini_embed_grpc_frame_to_batch),Embedder,VertexEmbedder,GeminiEmbedder,PushdownEmbedder(wrapping adapter-ownedBigQueryEmbeddingPushdown,SpannerEmbeddingPushdown,PostgresEmbeddingPushdown, andOracleEmbeddingPushdown),RemoteEmbedder,EmbeddingError, andcreate_embedding_grpc_service(PR #64, PR #75, PR #76). EmbeddingBroker(1xRAM model hosting across workers,BackendFactory, token-budgeted length-sorted dynamic batching, and3.14t/3.15tsubprocess GIL quarantine),GemmaEmbedder,FastEmbedder(FastEmbedder.build_backend),StaticEmbedder, andModelSpeccatalog (PR #64, PR #76).- Active Google Cloud ADC Credential Refresh & Non-Blocking Storage (
vertebra-core,vertebra-storage,vertebra.storage,vertebra.db.adapters.duckdb): GcpTokenSnapshot,GcpAuthSource,SyncGcpTokenCache,AsyncGcpTokenCache, andRefreshingGcpCredentialProviderwith caller-supplied default OAuth scopes, proxy environment support,300sproactive refresh skew, single-flight refresh deduplication, generation-checked401invalidation, and automatic DuckDBCREATE OR REPLACE SECRETtoken rotation inSyncDuckDBDriverandAsyncDuckDBDriver(PR #64, PR #77).- Standalone Google Cloud Native Wheels & Adapter Capabilities (
vertebra-bigquery,vertebra-spanner,vertebra.db): - Standalone optional PyO3 wheels
vertebra-bigquery(vertebra._bigquery,[bigquery]) andvertebra-spanner(vertebra._spanner,[spanner]) powered by officialgoogle-cloud-bigqueryandgoogle-cloud-spannercrates, zero-copyShmCapsuleVTBARROWcursors (select_to_arrow,load_from_arrow),SpannerConfig.admin_endpointREST DDL,ca_pemcustom CA support, and multi-base exceptions (GoogleCloudError,GoogleCloudAuthError,SpannerError,SpannerAbortedError,BigQueryError,BigQueryRowError,TaskPanicError) (PR #71, PR #77). - Per-engine adapter packages under
vertebra.db.adapters.<engine>, native statement pipelining (SyncPipelineCapable,AsyncPipelineCapable,driver.pipeline()), adapter-ownedToolProviderimplementations (BigQueryToolProvider,SpannerToolProvider) consumed viavertebra.agent.tools.build_tools,SpannerQueueBackend, andChannelBus(PR #71, PR #72, PR #73, PR #76). vtb aiCLI, Co-Located Workers & Dynamic A2A Discovery (vertebra.cli,vertebra.agent.a2a):vtb ai models list|pull|stage|warmandvtb ai mcp serve|bridgeinvertebra.cli.ai(PR #64).- Co-located
WorkerRunnerexecution invtb runandvtb dev(--with-workers,--queues,--lane-concurrency,[tool.vertebra.workers]) and--oneshot/--payloadinvtb workers run(PR #64). - Automatic default
AgentInterfacesynthesis onAgentCardand dynamic request-origin URL resolution (Forwarded,X-Forwarded-Proto,X-Forwarded-Host,HostwithVaryheaders) inA2AHttpHandlerandA2AService(PR #64). - Object Storage Content Integrity, Streaming Arrow & Wheel Isolation (
vertebra-storage,vertebra.storage,vertebra.extensions): PutConditionalOptions,PutResult, andObjectMetaSHA-256, Castagnoli CRC32C, and MD5 receipts (checksum=True), write-time digest verification (expected_sha256,expected_crc32c,expected_md5), verified reads (get,get_file,get_stream,open_readerwithexpected_sha256), andvertebra.typing.IntegrityError(StorageError::Integrity).- SQLSpec
ObjectStoreBackend.supports_direct_arrow_write, normalizedformat_hint/compression/write_optionsArrow streaming (write_arrow_*,write_arrow_cursor_*), Advanced Alchemysave_object/save_object_asyncintegrity arguments plussave_arrow/save_arrow_async, andDjangoStoragecontent.{sha256,crc32c,md5}digest forwarding. - Companion wheel/sdist verifier
tools/scripts/verify_storage_wheel.py({storage,bigquery,spanner,bundler}-wheel-checkMakefiletargets,release.yamlnon-leakage checks) and Criterionput_checksummicro-benchmark (put_memory_default,put_memory_checksum).
Changed¶
- Database tool providers live under
vertebra.db.adapters.<engine>and implement the sharedToolProviderprotocol, consumed generically viavertebra.agent.tools.build_tools(provider)(PR #72, PR #76). - Engine-neutral
ChangeFeedbounds its spill cache, PostgreSQL notification settings live onPostgresNotifyConfig, Spanner change-stream sources live onvertebra.db.adapters.spanner, andChannelBusinvertebra.server._channelspowers realtime channel fan-out (PR #71, PR #73). - SQLSpec statement stacks use
SyncPipelineCapable/AsyncPipelineCapable(driver.pipeline()) or transactional/sequential execution (PR #73). TenantScopeConfig.setting_namereplacesguc_name; generic tenant fragments use ANSI placeholders and optionalCAST, while PostgreSQL and Oracle adapters own session SQL and BigQuery/Spanner reject unsupported session-level tenant predicates upfront (PR #73, PR #76).- Replaced blocking
runtime().block_on(...)calls invertebra-storageasync PyO3 operations with non-blocking Tokiospawn_rust_taskexecution (TaskCompletionCallback) (PR #64). - Replaced top-level
vtb mcpCLI command group withvtb ai mcp(serveandbridge) (PR #64). - Updated brand logo and icon assets (
docs/assets/) to an isometric axial vertebrae mark (#EDB641), pinned persistentVERTEBRA / <Current Page>header context indocs/stylesheets/extra.css, and split usage documentation into 14 focused topic guides underdocs/usage/(PR #64). - Updated
.github/dependabot.ymlto use nativebunanduvpackage ecosystems with grouped minor/patch updates andopen-pull-requests-limit: 1, gated CI test matrices onlintwithfail-fast: truein.github/workflows/ci.yml, and upgraded workspace dependencies viamake upgrade(anyio,bump-my-version,platformdirs,pytest-databases,python-dateutil,sqlparse,crc32fast) (PR #64). - Browser WebMCP exposure is opt-in per tool (
mcp_tool(webmcp=True),Tool(webmcp=True)), andbuild_webmcp_manifestemits only explicitly opted-in tools (PR #75, PR #76). VertebraConfig.swap_memory_channelsandVertebraConfig.swap_memory_response_cachedefault toFalse;KeyValueStore, LitestarMemoryStore, and StarletteCacheStoreprefix Redis/Valkey keys withkey_prefix(default"vertebra"), andSQLAlchemyCacheBackendprefixes Redis/Valkey keys withkey_prefix(default"vtb:aa:") (PR #75, PR #76).SyncSpannerClient.partitioned_queryandAsyncSpannerClient.partitioned_queryreturn rows whileSyncSpannerDriver.select_to_arrowandAsyncSpannerDriver.select_to_arrowmaterialize theArrowCursor(PR #77).
Fixed¶
- Fixed
dorny/paths-filter@v4shallow-clonegit fetchfailure onpushevents tomainby settingfetch-depth: 2in.github/workflows/ci.yml, and removed failinggit pushcommit step from.github/workflows/benchmark.yml(PR #64). - Scoped
[tool.bumpversion.files]search/replace inpyproject.tomltoversion = "{current_version}"somake releasedoes not rewrite dependency version floors, and automateduv.lockandCargo.locksynchronization inMakefilerelease/pre-releasetargets (PR #64). DatabaseRegistry.parse_urlacceptsspangres://URLs, andSyncSpannerChangeStreamSourceandAsyncSpannerChangeStreamSourcebind positional$1..$4parameters in Spangres mode (PR #75, PR #76).MCPService,AgentRuntime, andvertebra.agent.tools.build_toolsenforceConfirmationGateapproval binding to the tool name, caller identity, and canonical argument hash (_meta["vertebra/confirmationToken"], JSON-RPC error-32003);MCPHttpHandlerrejects mismatchedMcp-Nameheaders and routing headers on JSON-RPC batches;JSONRPCRouterpreserves handlerTypeErrorfailures (PR #75, PR #76).KeyValueStore.delete_all, LitestarMemoryStore.delete_all, StarletteCacheStore.delete_all, andSQLAlchemyCacheBackend.clear/clear_asyncdelete only their prefix viaSCAN+UNLINK; sub-second expiries usePXmilliseconds;expires_inreturnsNonefor keys without expiry (PR #75, PR #76).PushdownEmbedderand adapter-ownedBigQueryEmbeddingPushdown,SpannerEmbeddingPushdown,PostgresEmbeddingPushdown, andOracleEmbeddingPushdownvalidate SQL identifiers, preserve input offset ordering (ORDER BY idx), propagate driver errors, and raiseEmbeddingErroron empty or malformed vector rows (PR #75, PR #76).EmbeddingBrokerruns the configured model in the free-threaded sidecar viaBackendFactoryorbackend_fn, andFastEmbedderdefersTextEmbeddinginitialization to worker execution (PR #75, PR #76).EventLoopPool.stopdelivers task cancellation, runsshutdown_asyncgens, and closes loops after shard threads exit; buffered sharded ASGI mounts honorVERTEBRA_ASGI_BATCH_TIMEOUT(default30s,0/nonedisables) and return504 Gateway Timeout(PR #75, PR #76).- Cancelled async Rust database tasks abort cleanly via
AbortHandle, background panics surface asTaskPanicError, andgcloudCLI token refreshes run non-blocking with30stimeouts. BigQuery REST queries with warnings succeed, BigQuery job/table URLs percent-encode path segments, and optional native wheel manifests (vertebra-bundler,vertebra-storage,vertebra-bigquery,vertebra-spanner) package isolated module files (PR #77). - Create-only
copy(..., overwrite=False)andrename(..., overwrite=False)enforce destination non-existence on S3/B2 via conditional multipart completion and on R2 viacf-copy-destination-if-none-match: *, andwrite_batches_sync/write_batches_asyncabort active multipart uploads cleanly on mid-streamRecordBatchReadererrors.
0.2.0¶
Comprehensive release introducing zero-copy serialization bridges, real-time database channels, Advanced Alchemy object storage and cache services, bidirectional Protobuf/gRPC tooling, multi-framework extensions, OpenAPI documentation portals, WebMCP auto-registration, and modernized repository security tooling.
Added¶
- Zero-Copy C-API Serialization & Row Hydration (
_zero_copy.py,vertebra.server): - Direct C-API decoding into
msgspec.Structwithout intermediate Python allocations viaRequest.decode_msgspec,WsgiInput.decode_msgspec, andAsgiScope.decode_msgspec(PR #58). - Vectorized row hydration via
hydrate_rows_vectorcalland thread-local scratch arenas in_zero_copy.pyfor high-throughput batch query results (PR #58). - Direct struct-to-wire response serialization via
encode_msgspec_response(PR #58). - Database Channels & Multi-Node Synchronization (
vertebra.db,vertebra.server): - Database-backed multi-node channel transport via
DatabaseChannelDriver,DatabaseChannelConfig,DatabaseChannelSubscription, andDatabaseChannelPublishersupporting PostgreSQLLISTEN/NOTIFY, MySQL advisory locks, SQLite WAL triggers, and message queuing (PR #58). - Advanced Alchemy Storage & Cache Integrations (
vertebra.extensions.advanced_alchemy): - Object storage repository service bridge via
ObjectStorageBackend,ObjectStorageConfig, andObjectStorageFileService(PR #58). - Async cache manager for repository query caching via
AsyncCacheManagerandAsyncCacheConfig(PR #58). - Zero-copy service mixin via
ZeroCopyServiceMixinproviding vectorized ORM-to-wire DTO transformations (PR #58). - Bidirectional Protobuf/gRPC Tooling & Binary Framing (
vertebra.server._proto,_lpm): - Protobuf parser and code generation via
ProtobufParser,ProtobufPythonGenerator,ProtobufTypeScriptGenerator, and route-to-proto inspection viaProtobufGenerator.from_routes(PR #58). - Length-prefixed message (LPM) binary framing (
encode_lpm_frame,decode_lpm_frame) for gRPC and streaming RPC transports (PR #58). - Multi-Framework Extensions (
vertebra.extensions): - Native Vertebra server integration and lifecycle management across Starlette (
StarletteExtension), FastAPI (FastAPIExtension), Flask (FlaskExtension), and Django (DjangoExtension) (PR #58). - Six native Django database backends with Arrow acceleration via
DatabaseWrapperMixin,ArrowQuerySetMixin,VertebraPostgresBackend,VertebraMysqlBackend,VertebraSqliteBackend,VertebraOracleBackend,VertebraMssqlBackend, andVertebraDuckdbBackend(PR #58). - OpenAPI & Interactive Documentation Portals (
vertebra.server._openapi,_docs_portal): - Unified interactive API documentation via
OpenAPIPortalandDocsPortalsupporting Scalar, Swagger UI, ReDoc, Stoplight Elements, and RapiDoc (PR #58). - AsyncAPI 3.0 specification generation and Model Context Protocol (MCP) server manifest discovery endpoints (
/.well-known/mcp.json) (PR #58). - WebMCP Auto-Registration & Browser Discovery (
@vertebra/client/webmcp,vertebra.server._webmcp): - Client and server WebMCP discovery via
registerWebMCPTools,WebMCPManifest, and/.well-known/webmcp.json(PR #58). - CI Modernization, Dependabot & Security Automation:
- Automated weekly dependency update configuration via Dependabot (
.github/dependabot.yml) for GitHub Actions, Cargo, npm, and pip ecosystems (PR #58). - Automated GitHub Actions security workflow (
.github/workflows/security.yml,.github/zizmor.yml) with Zizmor analysis and GitHub Advanced Security SARIF reporting (PR #58).
Changed¶
- Decoupled
vertebra.extensions.litestarfrom internalvertebra.framework.*modules, routing shared routing primitives throughvertebra.server._routing(RouteMatch,RouteEntry,compile_route_pattern,match_path) (PR #58). - Removed redundant
frameworkoptional dependency extra frompyproject.tomlnow thatmsgspec>=0.18is a core runtime dependency (PR #58). - Modernized all GitHub Actions workflows (
.github/workflows/*.yml) to latest major versions (actions/checkout@v7,astral-sh/setup-uv@v7,dorny/paths-filter@v4,actions/upload-artifact@v7,actions/download-artifact@v8,softprops/action-gh-release@v3,pypa/cibuildwheel@v4.3.5) on Node 24 runners with credential persistence hardening (PR #58). - Upgraded workspace dependencies via
make upgrade(includingpytest-databases) (PR #58).
Fixed¶
- Handled dynamic code object syntax errors in
coverage xmlgeneration by enablingignore_errors = trueinpyproject.toml(PR #58). - Restored
@vertebra/client/routerexport documentation parity indocs/reference/typescript-client.md(PR #58). - Fixed TypeScript
WebMCPManifestvsRegisterWebMCPOptionsoptions typing union resolution insrc/ts/vertebra-client/src/webmcp.tsfor DTS builds (PR #58). - Fixed wheel bundle sync fallback handling when local distribution wheels are present in debug environments (PR #58).
0.1.0¶
Initial release of Vertebra (vertebra-core on PyPI with bundled @vertebra/client).
Added¶
- Rust HTTP Ingress & Shared-Memory IPC (
vertebra-core,vertebra-http): - Hyper HTTP/1.1 and HTTP/2 server, ALPN TLS, optional HTTP/3 over QUIC, gRPC wire framing, WebSocket, and Server-Sent Events (SSE).
- Lock-free SPSC and MPMC shared-memory ring buffers (
ShmHeader,SpscRing,MpmcRing,TieredRingSet) and embeddedBatchBridgewith adaptivefutex/ulockandeventfdsignaling. - Opt-in
BackpressureControllerwith bounded in-flight permits, queue timeouts, and sliding-window circuit breaking. - Python Application Framework & Multi-Protocol Runners (
vertebra.framework,vertebra.server): App,Controller,Router,Route,Procedure,ProcedureRouter,Container/DependencyGraph/Provide/Injectdependency injection,Guard/SecurityConfig,OpenAPIConfig,LiveState, andQueueService/CronScheduler.- Multi-protocol worker execution supporting native
RequestBatchhandlers, ASGI 3.0 (AsgiRunner), RSGI 1.6 (RsgiAdapter), and PEP 3333 WSGI (WsgiAdapter) across isolated worker lanes (fast,async,cpu,blocking). - Free-Threaded Python Support (
3.14t/3.15t): - Native PyO3 extensions (
vertebra._vertebra,vertebra._bundler,vertebra._storage) compiled withgil_used = falseand PEP 561.pyitype stubs. - Frontend Bundler, QuickJS SSR & TypeScript SDK (
vertebra-bundler,@vertebra/client): - Embedded Rolldown/Oxc bundler (
Bundler,BundleConfig) and pooled QuickJS server-side rendering engine (SyncEmbeddedSSRClient,AsyncEmbeddedSSRClient,SSRConfig) with Inertia v3 and HTMX integration. @vertebra/clientTypeScript SDK providingHttpClient,SseClient,WebSocketClient,LiveStateClient,ApexRegion,WASMClient,ArrowStreamClient,McpClient,A2aClient, and framework adapters for React, Vue, Svelte, Angular, HTMX, and Vite.- Native Storage, Database Drivers & Telemetry (
vertebra.storage,vertebra.db,vertebra.telemetry): - Multicloud and local object storage (
SyncObjectStore,AsyncObjectStore) backed by Rustobject_store(S3, GCS with ADC, Azure, R2, OCI, HTTP, Local, Memory) with presigned URLs and PyArrow range readers. - Native database drivers (
PostgreSQLConfig,MySQLConfig,SQLiteConfig,SyncSQLiteDriver,AsyncSQLiteDriver) with OpenTelemetrysqlcommentertrace propagation. - Agent Protocols (
vertebra.agent): - Model Context Protocol (
MCPRegistry,MCPConfig,MCPSkillsConfig,MCPTaskConfig,run_stdio_http_bridge) and Agent-to-Agent (A2AService,A2AConfig,AgentCard) support plusAgentRuntimeandWorkflowEngine. - CLI & Packaging (
vertebra.cli,vertebra.build): vtbCLI (run,dev,init,build,js,mcp,workers) and standalone/single-file binary builders (StandaloneBuilder,OnefileBuilder,BuildOrchestrator).