Skip to content

Remove vestigial SettingsService daemon-config RPCs (ADR-053) - #1600

Merged
mstomar125 merged 1 commit into
NodeSpaceAI:mainfrom
mstomar125:ns/adr053-settings-rpc-cleanup
Jul 9, 2026
Merged

mstomar125 merged 1 commit into
NodeSpaceAI:mainfrom
mstomar125:ns/adr053-settings-rpc-cleanup

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Summary

Follow-on cleanup after ADR-053 removed active_database_path (#1595). The SettingsService.GetDaemonConfig/UpdateDaemonConfig RPCs and their sole remaining field grpc_address are vestigial — zero callers, and grpc_address is never consumed (the daemon binds its UDS via socket_path()/NODESPACED_SOCKET, not this field).

Deletes the two RPCs + their GetDaemonConfigRequest/UpdateDaemonConfigRequest/DaemonConfigResponse messages from the proto, and the matching handler impls, config_to_response, the now-dead default_socket_path helper, the grpc_address field on DaemonConfig, and the now-unused imports. Keeps DaemonConfig.capture and the live GetCaptureSettings/UpdateCaptureSettings RPCs.

Net: 2 files, +5 / −66.

Validation

  • Tree-wide grep (incl. the nodespace-sync repo) confirms zero callers of any removed symbol — only generated build artifacts referenced them.
  • cargo fmt --check + cargo clippy -p nodespace-daemon --all-targets -- -D warnings clean.
  • cargo test -p nodespace-daemon green (51+... 0 failed).
  • cargo check -p nodespace-cli and cargo check -p nodespace-app (against the regenerated proto) both clean.

Closes #1596

After ADR-053 dropped active_database_path, the SettingsService
GetDaemonConfig and UpdateDaemonConfig RPCs had only grpc_address left,
which nothing consumes: the daemon binds its UDS via socket_path() /
NODESPACED_SOCKET, not this field. Both RPCs had zero callers.

Delete the two RPCs and their GetDaemonConfigRequest,
UpdateDaemonConfigRequest, and DaemonConfigResponse messages from the
proto (removing grpc_address), and remove the matching handler impls,
the config_to_response helper, the now-dead default_socket_path helper,
and the grpc_address field on the on-disk DaemonConfig struct. The
DaemonConfig struct and its capture section remain for the live
GetCaptureSettings/UpdateCaptureSettings RPCs.

Closes #1596

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@mstomar125

Copy link
Copy Markdown
Contributor Author

APPROVE (confirming re-review)

Read the full diff — a clean, minimal greenfield deletion. Both RPCs, their three request/response messages, grpc_address, the config_to_response + now-dead default_socket_path helpers, the DaemonConfig.grpc_address field, and the unused imports are all removed; DaemonConfig.capture + the capture RPCs are untouched and the write_lock doc comment was correctly narrowed to UpdateCaptureSettings. Verified zero callers of any removed symbol across core (cli/app/daemon) and the sync repo.

Validation (mine, warm checkout with sidecars staged): cargo clippy -p nodespace-daemon -- -D warnings clean; cargo test -p nodespace-daemon green; cargo check -p nodespace-cli and cargo check -p nodespace-app clean against the regenerated proto. Pre-push gate passed (serial).

1 similar comment
@mstomar125

Copy link
Copy Markdown
Contributor Author

APPROVE (confirming re-review)

Read the full diff — a clean, minimal greenfield deletion. Both RPCs, their three request/response messages, grpc_address, the config_to_response + now-dead default_socket_path helpers, the DaemonConfig.grpc_address field, and the unused imports are all removed; DaemonConfig.capture + the capture RPCs are untouched and the write_lock doc comment was correctly narrowed to UpdateCaptureSettings. Verified zero callers of any removed symbol across core (cli/app/daemon) and the sync repo.

Validation (mine, warm checkout with sidecars staged): cargo clippy -p nodespace-daemon -- -D warnings clean; cargo test -p nodespace-daemon green; cargo check -p nodespace-cli and cargo check -p nodespace-app clean against the regenerated proto. Pre-push gate passed (serial).

@mstomar125
mstomar125 merged commit 18d0db7 into NodeSpaceAI:main Jul 9, 2026
2 of 4 checks passed
@mstomar125
mstomar125 deleted the ns/adr053-settings-rpc-cleanup branch July 9, 2026 17:44
@mstomar125

Copy link
Copy Markdown
Contributor Author

APPROVE (post-merge — opened+merged between watcher polls). Clean, well-verified dead-code removal; the zero-caller claim holds up to independent check.

Verified

  • Genuinely zero callers. Independent GitHub code search across nodespace-core returns 0 hits for both GetDaemonConfig and UpdateDaemonConfig (post-merge), matching the PR's tree-wide grep (incl. nodespace-sync) — only generated build artifacts referenced them. After Remove vestigial active_database_path daemon setting (ADR-053) #1595 removed active_database_path, these RPCs had nothing left to carry.
  • grpc_address is genuinely dead — the daemon binds its UDS via socket_path()/NODESPACED_SOCKET, never this config field; removing it (plus the now-orphaned default_socket_path helper + config_to_response + unused imports) is correct.
  • Scope is surgical and non-destructive to live surface: deletes the two RPCs + GetDaemonConfigRequest/UpdateDaemonConfigRequest/DaemonConfigResponse, keeps DaemonConfig.capture and the live GetCaptureSettings/UpdateCaptureSettings. So SettingsService now cleanly owns only capture settings. +5/−66, 2 files.
  • No client breakage from the proto change: cargo check -p nodespace-cli and -p nodespace-app against the regenerated proto are clean (per PR), so the removed messages weren't referenced by shared client types. RPC removal is name/path-based (not wire-number) and client+daemon are co-bundled, so no cross-version skew.
  • CI green (test:all + test:e2e); cargo test -p nodespace-daemon 0 failures; clippy/fmt clean. Closes Remove vestigial SettingsService daemon-config RPCs (GetDaemonConfig/UpdateDaemonConfig/grpc_address) #1596.

Correct follow-on to the ADR-053 settings cleanup. Approve.

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.

Remove vestigial SettingsService daemon-config RPCs (GetDaemonConfig/UpdateDaemonConfig/grpc_address)

1 participant