Repository navigation
Report the hosting binary's version beside the core version in daemon diagnostics - #4405
Merged
Merged
Conversation
…monVersion Add an optional binary_version field (3) to GetDaemonVersionResponse, set by the host through DaemonExtensions::binary_version; the existing version field stays the core library version. nodespace diagnostics prints both on separate lines, with unknown when the field is empty. nodespaced sets its own version. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mstomar125
force-pushed
the
issue-diagnostics-binary-version
branch
from
November 27, 2026 10:04
4bb9d00 to
63bbed4
Compare
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.
What changed
GetDaemonVersionResponsegains a second version:binary_version(field 3), the version of the binary that hosts the daemon. The existingversionfield is unchanged and stays the core daemon crate's version, so the version-skew checks (version_skew.rs,diagnostics_version) still read it and are unchanged.DaemonExtensions::none().binary_version("0.1.9")(documented on the method). The assembly code copies it into every database'sNodeServiceImpl(with_binary_version), both the per-database and the unrouted set. A host that does not call it leaves the field empty.nodespacedsets its own version at its four serving paths.nodespace diagnosticsprintsDaemon binary:andCore version:on separate lines (replacing the singleDaemon version:line); a missing or empty binary version printsunknown. JSON output keepsdaemon_version(core version) and addsdaemon_binary_version(null when unreported).Compatibility: additive
This is an additive change: one new optional proto field with a new tag, no existing field renumbered or retyped.
versionandsupported_extensionsas before.Daemon binary: unknown; no warning, no failure.Tests and mutation results
nodespace-protodaemon_version_wire_tests(2): a local old-shape message (fields 1 and 2 only) decodes a new response and ignores field 3; a new message decodes an old-shape reply with emptybinary_version. Mutation (swap field numbers 1 and 3): both fail.get_daemon_version_reports_the_hosting_binary_version_apart_from_the_core_version(node_service): mutation (response sends empty string): fails.the_binary_version_is_empty_until_the_host_sets_it(extensions): mutation (getter returns empty): fails.required_extensions_e2eassert (unrouted set) andthe_binary_version_is_reported_by_every_database(per-database set): removing thewith_binary_versionline at each assembly site fails the test guarding it (the e2e survived the first site, which the new fixture test then caught).version_lines_show_binary_and_core_on_separate_lines,an_unset_binary_version_shows_as_unknown: mutations (drop "unknown" fallback; drop empty filter) fail;diagnostics_collect_reports_counts_and_recencyextended: mutation (collect ignores the field) fails.nodespacedcall sites inmain.rs(they pass the crate's ownCARGO_PKG_VERSION).Checks run:
cargo fmt --check,cargo clippy -D warningson proto/daemon/cli,bun run test:changed(all green).Not security-sensitive.
🤖 Generated with Claude Code