Repository navigation
Describe the access gate and daemon seams without naming the Pro daemon - #3401
Conversation
Automated pragmatic-code-review (medium) — commit d0b63a3Review Type: Initial Review Requirements Check:
Truthfulness verification (every new sentence checked against code at HEAD):
Code Review Findings Critical Issues: None. Suggested Improvements: None. Nitpicks (all optional, prose only):
FYI, out of scope and not blocking. These untouched comments still carry the old wording or now disagree with the new convention, so they belong to sibling issues: Recommendation: APPROVE. The change is comment-only, every Scope item is covered, and the rewritten sentences are true at HEAD. The nits are optional. |
mstomar125
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above: 0 critical, 0 improvements, 4 optional prose nits.
Address-review — commit 2893008The review returned APPROVE with 0 critical and 0 important findings and 4 optional prose nits. I checked each nit against the code before acting, and all four are addressed (4/4 addressed, 0 skipped). The commit changes comments only.
Verification after the fixes:
Re-Review DecisionDecision: RE-REVIEW NEEDED. The address-review criteria alone would not require one, but core's merge policy does. The diff is comments only and small, but one sentence changes what it claims (the proto relationship comment now describes the watcher rather than a removed forwarder), so a second reviewer should check it against the code. |
Automated pragmatic-code-review (medium) — Re-Review of commit 2893008Previous Review Summary: 4 previous recommendations, 4 addressed, 0 not addressed, 0 new issues (one optional nit below). Per-nit status
Mechanical checks:
Code Review Findings Critical Issues: None. Suggested Improvements: None. Nitpicks (optional):
FYI, out of scope: Recommendation: APPROVE. All four nits are addressed. The commit is comments only, and every new sentence is true at HEAD. |
mstomar125
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review re-review: APPROVE (posted as a comment — GitHub blocks self-approval). 4/4 previous nits addressed, 0 new issues; one optional nit. Full report in the comment above.
Address-review — re-review round (no new commit)The re-review returned APPROVE: 4/4 previous nits addressed, 0 new issues, and one optional nit. I made no code change in this round.
Re-Review DecisionDecision: NO RE-REVIEW NEEDED. Nothing changed in this round, and the PR head ( |
Reword the docs of the subtree access gate, the shared router factory, DbManagerLayer and the per-database gate factory, NodeServiceImpl's registry id and accessor, the empty database_id event convention (daemon through proto to the Tauri watcher and window router), and the EmbeddingsService status-bar degrade so each describes the hook and names no product or repository. Two docs were also stale (db_routing's claim that a daemon skips DbManagerLayer, and the embeddings degrade reason) and now state what the code does. The watcher's empty-id note pointed at a NodeIdPayload::database_id doc that does not exist; it now points at the NodeEvent.database_id comment in node_service.proto, which states the convention. Drop the issue citations from node_service.proto. Comments and docs only; no behaviour, signature or wire change. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
- NodeServiceImpl.database_id / with_database_id: name the real cause of an empty id (an impl built outside DatabaseManager, or a test) instead of DbManagerLayer, which does not stamp the id. - NodeEvent relationship comment (proto) and the watcher's matching comment: "a writer inside the daemon" replaces the undefined "in-process writer", and the proto no longer cites the removed in-process DomainEventForwarder; it says the desktop watcher forwards these as the relationship:* Tauri events. - NodeService.subtree_access_gate: disambiguate "it" (the gate). - run_installer_with_runtimes: a changed process-global setting can race tests that read it concurrently, not every test. Comments only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
2893008 to
f1fca93
Compare
Summary
Rewords the docs of core's daemon extension points, and of the host conventions around them, so they describe the hook and name no product or repository (ADR-081 section 2a, ADR-082 section 4). Comments and docs only: no behaviour, signature, test or proto field change.
Covered:
access_gate.rs, plus theNodeService.subtree_access_gatefield doc, the access-gated delete test comment andDenyIfPresentGatedoc innode_service/mod.rs, and thedelete_nodedoc incrud.rs;router.rs, including therust,ignoreexample (ExtraServiceServer,with_message_limits!advice kept);DbManagerLayerand the per-database gate factory (ADR-053):db_routing.rs,SharedContext.subtree_gate_factoryand the per-database open-path comment inassembly.rs, and thespawn_idle_reaperdoc;NodeServiceImpl's registry id and accessor docs, and the two "not tenant-scoped" comments;database_idconvention: theNodeEventcomments innode_service.proto,watcher.rsandwindow_routing.rsinapp-lib. Thenon_emptydoc inwatcher.rspointed at "NodeIdPayload::database_id's doc comment", which does not exist (that field has no doc), so it now points at theNodeEvent.database_idcomment innode_service.proto, which states the convention;EmbeddingsService(commands/embeddings.rs);run_installer_with_runtimesdoc inskill_setup.rsnow states the constraint (a test that narrows a process-global setting races every other test in the process) instead of an anecdote;node_service.protoare gone.Two of these docs were stale and now say what the code does:
db_routing.rsclaimed a daemon skipsDbManagerLayer.nodespacedinstalls it in all four serve paths inmain.rs; the single-database fallback it describes is still real (handlers find no manager and serve their own service set, as directly-constructed test impls do).commands/embeddings.rsnamed a specific daemon as the one withoutEmbeddingsService. The real reason isshared.has_model.then(..)inassembly.rs: a daemon registers the service only when an embedding model was present at startup (BaseServices::embeddingsis anOption). TheUnimplementedtoOk(0)match arm and its test are untouched.Deviations from the issue
packages/desktop-app/app-lib/src/(cratenodespace-app-lib) after the crate split, so the issue's<desktop>/paths resolve there.main; the docs cite ADR-082 ahead of its merge, as the epic's standing decision allows. ADR-041, ADR-043 and ADR-053 are on docsmain.BASELINESis not lowered, per the coordinator's standing rule for the Pro-boundary epic (parallel PRs collide on those lines; Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371 tightens everything). The ratchet exits 0 with no count raised.assembly.rsorigin comment namingis_sync_originatedis untouched (left to the origin-rename issue, as the issue says).Ratchet delta
Counts at
origin/mainvs this branch (bun run scripts/check-pro-boundary.ts), matching the decreases the issue measured:cloudWordingproWordingtenantWordingeditionBranchingproProtocolNo count rises, so no baseline edit and none of the three CLAUDE.md "may add Pro lines" classes applies.
Verification
git diff origin/main -- '*.rs' '*.proto' | grep '^[+-]' | grep -v '^[+-]\s*//' | grep -v '^[+-][+-]'prints nothing: only comment lines changed.nodespaced-pro|nodespace-sync|pro daemon|tenant|supabase|cloud-?sync|community|CloudSync|RLS|Pro) over the edited files prints nothing; the listed symbols innode_service/mod.rsandcrud.rsare clean (other, out-of-scopemod.rscomments still carry sync wording and belong to sibling issues).node_service.protohas nocore#,issue #or#NNNNcitation left.bun run scripts/check-code-references.ts: 71 / 71 issue references, 0 doc-path references (unchanged).cargo fmt -p nodespace-core -p nodespace-daemon -p nodespace-proto -p nodespace-app-lib --checkclean.cargo clippy -p nodespace-core -p nodespace-daemon -p nodespace-proto -p nodespace-app-lib --all-targets -- -D warnings -D clippy::unused-asyncclean (re-run fornodespace-app-libafter thewatcher.rspointer fix).bun run test:changed(Rust and scripts tiers) green.Closes #3363
🤖 Generated with Claude Code