Repository navigation
Move the daemon's settings into each database's settings node and delete daemon.toml (ADR-095) - #3664
Conversation
Code Review SummaryReview Type: Initial review (no prior reviews or comments on #3664). The shape is right: the settings live as declared fields of Requirements CheckThe type
Consumers
Removal
Guidance and docs
Findings🔴 Critical
🟡 Important
🟢 Nits
RecommendationREQUEST CHANGES. Finding 1 breaks the acceptance criterion that a database serves external tools only when its own flag is true; fix it with a test before merge. Findings 3 and 4 are strong recommendations; the rest is optional. |
malibio
left a comment
There was a problem hiding this comment.
Review verdict: REQUEST CHANGES (self-authored PR, so posted as a comment). The MCP passthrough honours an explicit --database/--socket in tool args, which bypasses the per-database external_tools_enabled gate. See the full review comment on the PR.
Review addressed (d0299c7)✅ 🔴 Passthrough bypass — Re-Review DecisionDecision: NO RE-REVIEW NEEDED — hmm, see below. |
|
Correction — Re-Review Decision: RE-REVIEW NEEDED. The critical fix changes how the MCP passthrough binds and parses routing flags (new logic plus an e2e test), so the new commit needs a review. |
Code Review: Re-Review of d0299c7 (PR #3664)Review Type: Re-Review (scope: SummaryThe critical bypass is closed. Bypass verification (packages/cli/src/commands/mcp.rs
|
malibio
left a comment
There was a problem hiding this comment.
Re-review verdict: APPROVE (posted as a comment, self-authored PR). The MCP passthrough bypass is closed; see the full re-review comment.
|
Re-review addressed: added the three suggested refusal rows ( Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: the re-review approved with no critical findings; the only change since is three test rows. |
…ete daemon.toml (ADR-095) database-settings declares capture_enabled, capture_content, external_tools_enabled and providers beside required_extensions; the local agent, session capture and nodespace mcp each read the database they are routed to. The settings gRPC service, daemon.toml and its Tauri commands are deleted. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… the schema defaults Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
- A tool call may not name another --database/--socket (refused in both flag spellings); the server forwards the resolved database id, so a later change of the default cannot move it. Only the bound values are accepted, so a printed delete command still replays. - uninstall removes client configs before it needs the daemon. - An unreadable stored provider list clears routing verdicts rather than keeping them. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…efix and quoted-flag forms Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
a695d53 to
d1639f1
Compare
Closes #3649. Implements ADR-095.
Type:
database-settings, now a structured core type (leaf, singletondatabase-settings-singleton, not embedded).Fields added (base bucket):
capture_enabled(bool,false),capture_content(enummetadata_only|summary|full,metadata_only),external_tools_enabled(bool,false),providers(list ofProviderConfig {id, name, base_url, api_key, model, routing_ok},[]), besiderequired_extensions. Nested config is snake_case,deny_unknown_fields; ids must be UUIDs.Behaviour
base_url/modeldrops itsrouting_ok.openai-compat:<uuid>against the chat's database; discovery cache is per database; probe verdict stored in the config.nodespace mcpserves a database only when itsexternal_tools_enabledis on;mcp install/uninstall/statusact on--database(else default) and name it.Removed:
daemon.toml,DaemonConfig, reader/writer/lock, theSettingsServicegRPC service and proto, the four Tauri commands, hand-copiedOpenAiCompatConfigTS type.Docs: node-types sheet, daemon protocol, agent-eval, ADR-056 sentence (docs repo, pushed before merge); skill CLI reference; eval preflight message.
bun run test:changedpasses; new tests cover defaults, write/clear/reject, retyped singleton, verdict lifetime, and two open databases with different settings.🤖 Generated with Claude Code