Repository navigation
chore: move to oneiriq-surql 0.34 and SurrealDB 3.3 - #114
Merged
Merged
Conversation
Workspace surql 0.34, MSRV 1.95 (surql's), surrealdb floors 3.3, and the compose, conformance, and scale-bench engines at v3.3.0. - Boot routes ModifyIndex, which surql 0.34 reports for a changed index, through the backgrounded CONCURRENTLY path with AddIndex. Routing only adds sent a new embedding width's HNSW rebuild down the synchronous path. The routing is a pure plan_schema(), tested. - run_ddl retries SurrealDB 3.3's "still being reclaimed" refusal on a ~30 s backoff, and apply_schema runs statement by statement so a retry repeats only the refused statement instead of overwriting the indexes ahead of it again, which would restart the reclaim. - The engine assumption that a schemafull option<array> refuses object items now pins 3.3's acceptance. - The MCP face routes the sub-collection tools kayak's manifest now declares (file_versions_list, webhook_deliveries_list) through the dispatcher's sub_list. - Re-blessed artifacts from kayak main: wire-named TypeScript client fields, the files state filter's enum in OpenAPI, the two new tools. - .cargo/audit.toml carries RUSTSEC-2026-0194/0195 (quick-xml through object_store 0.13 in surrealdb-core 3.3.0); upstream surrealdb/surrealdb#7568.
Kayak main moved to surql 0.34 in Oneiriq/kayak#54; the lock now takes it, surql 0.34.1, and surrealdb 3.3.0, so one surql version serves both.
albedosehen
marked this pull request as ready for review
October 1, 2026 19:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves Copal to oneiriq-surql 0.34 (lockfile: 0.34.1) and SurrealDB 3.3, with kayak at
main268ac8d, which moved to surql 0.34 in Oneiriq/kayak#54. Kayak and Copal have to name the same surql minor, or kayak's schema types and Copal's are different crates.What changes
Floors
oneiriq-surql0.34; MSRV 1.95 (surql's).surrealdb3.3 in copal-store, copal-flow, and copal-server.surrealdb/surrealdb:v3.3.0.Boot schema apply (
copal-store/src/store.rs)ModifyIndex, where it used to be an add. Boot only sent adds down theCONCURRENTLYpath, so a new embedding width would have rebuilt the HNSW index synchronously and held boot for the whole rebuild.AddIndex | ModifyIndexnow both go throughindex_add_statement. The routing moved into a pureplan_schema(), and a unit test diffs a 768-wide snapshot against a 384-wide one and asserts that the rebuild ends inCONCURRENTLY;.DEFINE INDEXwhile it reclaims the table's document ids.run_ddlretries that refusal on a backoff of 0.5, 1, 2, 4, 8, and 15 s.Engine assumption (
copal-store/tests/engine_assumptions.rs)option<array>field accepts object items and keeps their keys. The test that pinned the refusal now pins acceptance.file_version.markersandfile_text.withheldstayTYPE anyuntil a migration moves them.What kayak
mainbrought along (generators changed between 29f24b0 and 268ac8d)file_versions_listandwebhook_deliveries_list.mcp.rsgainsRoute::SubList, dispatched throughDispatcher::sub_list, and the route-parity test failed until it was added. The end-to-end agent test now lists the version its upload created.clients/client.ts, and so the TypeScript SDK, names fields the way the wire does (content_type,created_at, …). The old camelCase names were never on a response. Nothing insdks/orconsole/read them, and the assembled TypeScript SDK passestsc --noEmit.docs/openapi.jsonlists the values thestatefilter takes.Audit
.cargo/audit.tomlignores RUSTSEC-2026-0194 and RUSTSEC-2026-0195: quick-xml 0.39, pulled in byobject_store0.13 in surrealdb-core 3.3.0.Local verification
The
ci.ymlrust job's gates, plus a build ofcopal-serveralone. They ran on Windows with rustc 1.95.0 at 13bdab5, against the committed lock: kayak 268ac8d, surql 0.34.1, surrealdb 3.3.0.cargo fmt --all --checkcargo clippy --workspace --all-targets -- -D warningscargo build -p copal-server(alone)cargo test --workspace --no-fail-fastcargo audittsc --noEmitconformance/run.shagainst v3.3.0Caveat: on Windows the build compiles
aws-lc-sysfrom source and wants NASM, so it ran withAWS_LC_SYS_PREBUILT_NASM=1. The Linux runners don't need that.Live check against a real SurrealDB v3.3.0 server
conformance/run.shbuilt the server image: a Linuxcargo build --release --locked -p copal-serveragainst the committed lock, done in 10m17s. It then stopped atminio/minio:latest, which no longer pulls from Docker Hub ("pull access denied … repository does not exist"). This PR doesn't cause that, and it stops the conformance workflow onmaintoo. Swapping the migration source is its own change.Without MinIO, the conformance stack's
surrealdb/surrealdb:v3.3.0and the built image (engine sessions on, engine access key set) showed:ws://, with every non-unique index logged asindex build backgrounded (CONCURRENTLY). It was ready in about 2 s, with no errors or warnings.tools/listincludesfile_versions_listandwebhook_deliveries_list.file_create, followed byfile_versions_liston the new draft file, returned{"items":[],"next_cursor":null}withisError: false.