PR3: Schema-version observability - #88
Closed
Diego Colombo (colombod) wants to merge 1 commit into
Closed
Conversation
This was referenced Aug 26, 2026
Record the graph data-model version the server writes and report drift on
/status. Stacked on the session-node data-quality work; carries only the
schema-version subsystem (working_dir non-overwrite already shipped, blob
carrier-allowlist and cursor/queue work live in other changes).
SCHEMA_VERSION is the compiled model version, distinct from the server release
version. At startup, after the rest of the schema is established, the server
writes a single :SchemaMeta{id:'singleton'}.schema_version baseline
(create-if-absent, backed by a uniqueness constraint, kept off the per-worker
flush path so it fires once per boot rather than per worker). read path
(read_graph_schema_version) is structurally separate from the write path so no
comparison or migration logic can creep into either; it returns None on any
read failure so /status never raises.
GET /status now reports schema_version (compiled), graph_schema_version
(stored, or null when the graph is unreachable / never baselined / no driver),
and schema_version_current (true in sync, false on mismatch, null when
unknown). Advisory only: reported, never gated or migrated.
Tests: neo4j baseline idempotence + uniqueness-constraint + concurrent-writer
proofs; /status drift reporting unit tests (in-sync, drift, unknown).
Version 7.2.0.
🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)
Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
Diego Colombo (colombod)
force-pushed
the
feat/schema-version-observability
branch
from
August 26, 2026 17:06
f1a1736 to
e40a572
Compare
Diego Colombo (colombod)
marked this pull request as draft
August 27, 2026 15:30
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.
Third of the progressive split of #79. Stacks on PR2 (#87, session-node data quality) → PR1 (#85) → #81 → #78.
Delivers
SCHEMA_VERSIONit wrote as a singleton baseline node (create-if-absent, no clobber, uniqueness-constrained), and/statusreports expected-vs-observed drift (schema_version/graph_schema_version/schema_version_current).Scope
Surface
schema_version_currentfield to/status→ version 7.1.0 → 7.2.0 + CHANGELOG.Verification
/version→ 7.2.0,/status→schema_version=1 graph_schema_version=1 schema_version_current=True).