Skip to content

feat: fully integrate embedded and standalone SurrealDB - #3

Merged
GQAdonis merged 8 commits into
mainfrom
codex/optional-surreal-graph-backend
Aug 31, 2026
Merged

GQAdonis merged 8 commits into
mainfrom
codex/optional-surreal-graph-backend

Conversation

@GQAdonis

@GQAdonis GQAdonis commented Aug 31, 2026 •

Copy link
Copy Markdown
Owner

Summary

Phase 2: fully wire optional SurrealDB through Compass, supporting both embedded
SurrealKV (optional RocksDB) and standalone servers. This PR targets
GQAdonis/compass:main, not the upstream repository.

  • Shared publication for init/update/extract/watch, persistent configuration,
    immutable generation staging and exact reference pinning, repair, and GC.
  • Native typed queries, CompassQL, MCP connection reuse, capabilities, and
    digest-bound store validation/backup/restore.
  • YAML, environment, and CLI configuration with explicit credential precedence;
    standalone-server support remains opt-in alongside embedded engines.
  • Compatibility, migration, security, licensing, performance, and install docs.

Motivation and merge order

The adapter must be usable end to end, not merely exist as an isolated crate.
Merge this Phase 2 PR before the separate Phase 3 legacy-artifact boundary PR: #4.
The Phase 3 branch already descends from this head, so its diff against main
will narrow automatically once this PR lands with its ancestry preserved.

Verification

The combined release was installed before the operator-requested reduced checks.

  • Latest installed embedded/standalone integration suite: 30 checks passed.
  • Complete changed configuration targets: 11 tests passed.
  • Formatting and Surreal feature-isolation checks passed.
  • Earlier complete embedded/native-query/MCP verification is recorded in
    .kbd-orchestrator/changes/surreal-integration/verification.md.
  • Two earlier standalone-suite subprocess timeouts remain documented; the
    unchanged complete suite subsequently passed. Their cause was not established.
  • Broad final workspace/TCK/Clippy/all-engine reruns and independent certification
    were explicitly deferred, not claimed as passed.

Current Phase 2 head: a7d715f. Product changes include 68d6341, dee8824,
and 90a0a4c. Phase 3 is excluded from this PR.

Compatibility and documentation

Upstream default feature closures remain Surreal-free. Canonical JSON remains
portable; explicit/native Surreal queries never use it as a fallback. Remote
credentials are not persisted in references. Versioned projection/configuration/
reference/bundle contracts and migration instructions are documented.

Existing fork-owned execution records remain in the fork PR; local runtime
state, generated repository graphs, and credentials are excluded. The upstream
submission will require an isolated branch excluding fork-only history.

Checklist

  • Behavior and integration coverage included
  • Configuration, public contracts, migration and security documented
  • Reduced verification and deferred gates distinguished
  • No new credentials, private source inputs, or generated repository graph included
  • Contributions retain the repository's MIT OR Apache-2.0 licensing

…l-graph-backend

# Conflicts:
#	AGENTS.md
#	CHANGELOG.md
#	Cargo.lock
#	Cargo.toml
#	PERFORMANCE.md
#	crates/compass-cli/tests/history_cli.rs
#	crates/compass-graphdb-surreal/README.md
#	crates/compass-graphdb-surreal/src/projection.rs
#	crates/compass-graphdb-surreal/tests/projection.rs
#	crates/compass-model/src/code_graph.rs
#	deny.toml
#	docs/README.md
#	docs/implementation/surreal-graph-projection.md
#	scripts/qualify_code_graph_v1.sh
#	scripts/qualify_compass_store_release.sh
#	scripts/qualify_react_frontend_graph.sh
Publish generation-pinned projections, native typed queries and CompassQL, configuration, operations, and integration coverage. Preserve graph-digest binding during restore and scope generation GC by repository. Record operator-directed immediate deployment with remaining targeted verification and certification explicitly pending.
@GQAdonis
GQAdonis merged commit bff4418 into main Aug 31, 2026
9 of 16 checks passed
@GQAdonis
GQAdonis deleted the codex/optional-surreal-graph-backend branch October 11, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant