Repository navigation
Description
Summary
After #3345 has applied ADR-083 and ADR-085 (both proposed) to core's data model, reword whatever Pro, cloud or nodespace-sync wording survives around the things #3345 removed or renamed.
This is a candidate-site checklist, not a final scope.
- Move Pro-owned data out of core's data model (ADR-083) #3345's sub-issues rewrite most of these docs themselves.
- This sweep owns the prose they leave behind: callers, tests and frontend docs.
- At pickup, check what Move Pro-owned data out of core's data model (ADR-083) #3345 left, then edit this issue's Scope down to the sites that still need work before you open the PR.
Context
#3345 decides, per ADR-083 and ADR-085, which of these stay in core and under what names:
| #3345 sub-issue | What it decides |
|---|---|
| #3337 | The embedding provenance code and its SQL comments |
| C7.2 | ConflictKind::SupersededEdit and DuplicateReactiveCreate |
| #3338 | SYNC_SERVICE_CLIENT_ID and the push channel. #3338's "keep" option closes it and hands the docs to #3372 |
| #3340 | DatabaseSettingsNode's fields, and auth_status |
| #3343 | get_multi_membership_edges |
| #3344 | The personal AI-chat collection and ai_chat_privacy_play |
The prose around them still says, for example:
- "the convention
nodespace-sync's real apply path uses"; - "
nodespaced-pro's catch-up/reconnect path"; - "
nodespace-syncwrites to the local DB in-process viaNodeService::with_client(\"sync-service\")"; - "installs that later sync into one tenant";
- "a permanently tenant-open chat".
Follow the parent's wording guide, and use #3345's new identifier names. "sync" may stay as the ADR-060/ADR-073 term for a write that arrived from another device. Name no product, repository or sync-internal function.
Scope: candidate sites (finalize at pickup)
Line numbers are hints at af8ddb6. Locate each site by the symbol or text named.
A. Sites #3367 owns, if they survive #3345
-
packages/core/src/playbook/engine.rs:- the comment ending "the sync-apply path (via
RuleClass::Invariantin its own lookup)" (~540-546); - the log string "deleted after sync apply?" (~681).
Reword them only if they name a product, or if Rename the origin-filtered event channel to subscribe_to_events_excluding_origin #3338 renamed the origin; then use its term, such as "replicated apply".
- the comment ending "the sync-apply path (via
-
packages/core/src/playbook/core_plays.rs, theai_chat_privacy_rulesdoc (~125-130, "permanently tenant-open chat"). If Reword the AI-chat privacy Play description without tenant wording #3344 kept the Play (ADR-085 option 3), write "a permanently unrestricted chat". -
packages/core/src/services/node_service/mod.rs: theseed_personal_ai_chat_collection_if_neededdoc (~1754-1756), and the doc oftest_personal_ai_chat_collection_id_is_not_deterministic(~9417-9422).- They say "collide across installs that later sync into one tenant".
- If kept, write "would collide when two installs' data meet in one database".
-
packages/core/tests/it/playbook_invariant_integration_test.rs:- the doc at ~415-421 ("the exact
with_client(SYNC_SERVICE_CLIENT_ID)tagging conventionnodespace-sync's real apply path uses"); - ~500-505, ~2706-2708, ~3037-3043, ~3243-3251 and ~3327-3335, but only where they name a product or repository.
- the doc at ~415-421 ("the exact
-
packages/core/tests/it/playbook_engine_integration_test.rs: ~395-401 and ~440-446 ("nodespaced-pro's catch-up/reconnect path", "apply_node_upserts_batched"). -
packages/core/src/services/node_service/mod.rs, the push-channel test comments (~8140-8417, "sync-service origin"). Only where Rename the origin-filtered event channel to subscribe_to_events_excluding_origin #3338 renamed the identifiers but left the prose. -
packages/desktop-app/src/lib/services/remote-update-policy.ts. Rename the origin-filtered event channel to subscribe_to_events_excluding_origin #3338 leaves this file to Remove Pro, Supabase and nodespace-sync wording from core comments, docs and the skill #3372 explicitly.- The module doc (~33-43): "
nodespace-syncwrites to the local DB in-process viaNodeService::with_client(\"sync-service\")" becomes "an in-process writer tagged with the reserved replicated-write origin (ADR-027), which does not go over the app's gRPC connection". - The
decideRemoteUpdatedoc (~69-71): "a sync-service replay" becomes "a replicated-write replay". - Keep the
incomingIsNewerguard.
- The module doc (~33-43): "
-
packages/desktop-app/src/tests/services/remote-update-policy.test.ts: ~76-80 and ~94-99, the same wording.
B. Sites a #3345 sub-issue rewrites; check only for leftovers
If a #3345 sub-issue closed with its "keep, docs only" option, move its sites into group A and record that in the PR.
-
Delete the dead embedding push/pull seam; keep embedding.origin for existing databases #3337:
node_service/embedding.rs;sqlite_store/embeddings.rs;- the
SCHEMA_SQLcomments onembedding.origin,idx_emb_modifiedandnode.sync_seqinschema.rs; - the embedding round-trip test in
sqlite_store/mod.rs; - the
idx_emb_modifiedtest intests/it/schema_test.rs.
If you touch a
SCHEMA_SQLcomment, never put a;in it.execute_schema_sqlsplitsSCHEMA_SQLon;, and a debug assertion fails when a comment splits a statement. -
C7.2:
- the
SupersededEditandDuplicateReactiveCreatedocs inmodels/conflict.rs; - the no-detection arm in
services/node_service/conflicts.rs; - the header comment of
packages/desktop-app/src/lib/components/conflict-indicator-badge.svelte.
That comment should end with no mention of the deleted Recovered Items badge or of rollout stages such as "S1".
- the
-
Rename the origin-filtered event channel to subscribe_to_events_excluding_origin #3338:
- the
SYNC_SERVICE_CLIENT_IDdoc indb/events.rs, under its Rename the origin-filtered event channel to subscribe_to_events_excluding_origin #3338 name; - the ADR-073 gate comments and
is_sync_originateddoc inplaybook/engine.rs(~455-480, ~1508-1526); - the origin comment in
packages/daemon/src/services/assembly.rs(~404-410); - the
subscribe_for_pushandset_push_excluded_origindocs.
- the
-
Replace DatabaseSettingsNode's Pro fields and accessors with a generic settings accessor #3340: the
DatabaseSettingsNodeBehaviordoc, andperson_seed_test.rsline 7 and itsauth_statusassertion (31-38). -
Generalize get_multi_membership_edges into member_of_edges with caller-supplied filters #3343: the
get_multi_membership_edgesdoc, or its replacement's, and its test doc inservices/collection_service.rs. -
Reword the AI-chat privacy Play description without tenant wording #3344: the
ai_chat_privacy_playdescription string (~178-182). It is user-visible in the Playbooks UI.
Out of scope
- Renaming or removing any identifier, API, column or index. That is Move Pro-owned data out of core's data model (ADR-083) #3345's call. If this sweep finds an identifier that still names Pro or sync but has no ADR-083 decision behind it, stop and raise it on Move Pro-owned data out of core's data model (ADR-083) #3345 rather than renaming it here.
- The frontend files of Remove Pro and cloud-sync wording from frontend comments, tests and the fly-out tooltip #3366, apart from the
remote-update-policypair and the badge check above.
Steps
- Follow CLAUDE.md's startup sequence:
- pull
main; EnterWorktree({name: "issue-<N>-post-c7-wording"});bun install, then thebun run testbaseline;- self-assign at pickup and set In Progress.
- pull
- Confirm every Move Pro-owned data out of core's data model (ADR-083) #3345 sub-issue, and Describe core's access gate and daemon seams without naming the Pro daemon #3363 to Reword core data-model and identity docs that cite Pro, Supabase, RLS or tenants #3365, has merged or been closed. Then list what survived:
git grep -n -I -P '(?i:supabase|pgvector|nodespace[-_]sync|nodespaced-pro|apply_node_upserts?|\bpro daemon|\btenant|cloud[- ]?(?:sync|push|pull)|push sweep|re-push|cold pull|sync-service|recovered[- ]items)|\bRLS\b|\bPro\b' -- packages/core packages/daemon/src/services/assembly.rs packages/desktop-app/src/lib/services/remote-update-policy.ts packages/desktop-app/src/tests/services/remote-update-policy.test.ts packages/desktop-app/src/lib/components/conflict-indicator-badge.svelte bun run scripts/check-pro-boundary.ts --list cloudWording bun run scripts/check-pro-boundary.ts --list tenantWording bun run scripts/check-pro-boundary.ts --list proWording - Finalize the scope. Edit this issue's Scope to the sites that still need work, and note in the PR description which candidates were already gone or fixed by Move Pro-owned data out of core's data model (ADR-083) #3345.
- Reword each remaining site, using Move Pro-owned data out of core's data model (ADR-083) #3345's identifier names.
- Run
bun run scripts/check-pro-boundary.tsand paste the printedBASELINES. - Verify, then finish:
bun run quality:fix, and commit;git push origin HEAD:issue-<N>-post-c7-wording;gh pr create --head issue-<N>-post-c7-wording;- merge only with
bun run merge <PR#>once approved.
Acceptance criteria
- The issue body's Scope was edited to the final list before the PR was opened.
- The grep in step 1 prints nothing under
packages/core,assembly.rs, the tworemote-update-policyfiles or the badge. The one exception is a line whose identifier ADR-083 deliberately kept; in that case the prose around it is neutral. - No comment names an identifier that no longer exists. Check every Move Pro-owned data out of core's data model (ADR-083) #3345 old name with
git grep -n '<old name>'. -
SCHEMA_SQL's executable statements are byte-identical toorigin/main: only--comment lines differ, and no edited comment contains a;. -
BASELINESinscripts/check-pro-boundary.tsis lowered to the counts the CLI prints, and the CLI exits 0.
Tests and verification
cargo fmt --all --checkcargo clippy -p nodespace-core -p nodespace-daemon --all-targets -- -D warningsbun run test:changed. It runs the Rust, frontend and scripts tiers, as far as the diff reaches.bun run scripts/check-pro-boundary.ts, thenbun run scripts/check-code-references.ts.- No test logic changes. If a site turns out to need one, it belongs to the Move Pro-owned data out of core's data model (ADR-083) #3345 sub-issue that owns it.
Dependencies
- Move Pro-owned data out of core's data model (ADR-083) #3345: every one of its sub-issues. This sweep follows their renames and removals.
- Describe core's access gate and daemon seams without naming the Pro daemon #3363, Reword core's batch-write, event and collision docs without naming the sync daemon #3364, Reword core data-model and identity docs that cite Pro, Supabase, RLS or tenants #3365: they reword the rest of the core crate, so the core-wide grep in step 1 can come back empty here. Guardrail: stop new Pro code from landing in core #3302 comes through them.
Risks and rollback
- Rewording can freeze a name Move Pro-owned data out of core's data model (ADR-083) #3345 has not finished changing. Start only after all of Move Pro-owned data out of core's data model (ADR-083) #3345 has merged.
- User-visible text. If Reword the AI-chat privacy Play description without tenant wording #3344 kept the privacy Play and left its description to this sweep, that description is user-visible, and ADR-085 decides its meaning. Existing databases keep the old text, because
seed_core_plays_if_needednever overwrites an existing play node. - Rollback. Revert the PR. It changes comments and docs only.
Plan key: C10.5 (pro-boundary DAG).
🤖 Generated with Claude Code
Activity
mstomar125 commentedon Oct 1, 2026
Superseded by #3412 (umbrella against the final ADR-081–085)