Repository navigation
Describe core's person, AI-chat and access-walk docs without Pro, tenant or cloud wording - #3407
Conversation
|
Review Type: Initial Review Requirements Check:
📝 Deviations, each checked against the code:
Code Review Findings:
Verified accurate, no change needed:
Recommendation: APPROVE |
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.
Address-review summaryVerdict addressed: APPROVE, with four 🟢 suggestions. Fix commit: ✅ Addressed (2)
⏭️ Skipped (2), out of this issue's listed scope
Checks after the fix
Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: Both fixes are documentation-only: one doc sentence corrected to match code the reviewer already read, and comment reflow. No logic, test or string literal changed. |
|
Merge queue: #3407 was taken out of the queue — the merge gate failed on it, rebased onto main. Reproduce with |
Reword the data-model and local-identity docs that explained core through Pro, Supabase, RLS, tenants, the Postgres schema or the cloud walk: - person schema: email description is now "Email address (optional)" - PersonNodeBehavior / AiChatNodeBehavior docs and the aiChatNodePlugin doc: drop the ACL, cloud-sync and semantic-search claims - seed_local_person_if_needed / get_local_person docs and the multiple-has_role test comment: drop the Supabase binding and tenant roles - person_seed_test module doc, conflicts.rs archive-the-loser step and the embedding_roots.rs walk docs: state the local rule only Add test_person_email_field_is_optional pinning the seeded description. The shorter description line lets rustfmt format get_core_schemas(), which rewraps a few unrelated lines (whitespace and one trailing comma only). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…omments - MAX_ACCESS_WALK_DEPTH: the walk's `seen` set already stops a `member_of` cycle, so the cap bounds a pathologically deep chain, not a cycle - Reflow the archive-the-loser step, the get_local_person doc and the multiple-has_role test comment, which the rewording left ragged Co-Authored-By: Claude Opus 5.5 <[email protected]>
7c38c74 to
ece3a1a
Compare
Summary
Closes #3365.
Rewords core's data-model and local-identity docs that explained core through Pro, Supabase, RLS, tenants, the Postgres schema, server-side RBAC or "the cloud walk". Each doc now gives the local meaning and names no consumer. Behaviour does not change.
core_schemas.rs, thepersonschema'semaildescription"Email address (optional)"(was "…required in practice for invited teammates")behaviors/mod.rs,AiChatNodeBehaviordocbehaviors/mod.rs,PersonNodeBehaviordochas_roleedge. Drops theauth_statusand tenant-role sentence.core-plugins.ts,aiChatNodePlugindocnode_service/mod.rs,seed_local_person_if_neededdocauth_identitiesbinding and theauth_statusnotenode_service/mod.rs,get_local_persondochas_roleedge" instead of "tenant roles … for upcoming RBAC work"node_service/mod.rs, the multiple-has_roletest commenttests/it/person_seed_test.rs, module docsqlite_store/conflicts.rs, the archive-the-loser stepsqlite_store/embedding_roots.rs, docs ofMAX_ACCESS_WALK_DEPTH,restricted_collection_sqlandaccess_candidate_sqlmember_ofchain; a text-stored flag still restricts; a person'smember_ofedges grant access and are not content membershiptable-view-headers.test.ts,schema-field-label.test.tsqueryByTextregex matches the new text.What is not a comment change
Everything except the following is comment-only. I checked this with a token-level diff of each file against
origin/main, with comments and whitespace removed.core_schemas.rs:emaildescription string;test_person_email_field_is_optional, which pinsrequired: Some(false)and the new description;rustfmtchurn inget_core_schemas(). The old description line was too long for rustfmt to wrap, so rustfmt skipped the whole function. With the line shorter,cargo fmtnow formats it. It collapses thecollectionschema's single-elementfields: vec and rewraps three other long lines. That is whitespace and punctuation only. I realigned one\-continued string literal by hand, which leaves its value unchanged.Deviations from the issue
collectionschema comment incore_schemas.rsis not touched. Rewrite the restrictedToMembers and member_of permission comments as storage contracts #3301 (merged in Rewrite the restrictedToMembers and member_of permission comments as storage contracts #3389) already rewrote it as ADR-083 §4's storage contracts, per the epic's plan correction 1. Main already meets that acceptance criterion.BASELINESis not lowered. The drain's standing rule is not to editBASELINESunless a count must rise, because parallel PRs collide on those lines and Drive every Pro-boundary ratchet count to zero and make the check a hard ban #3371 tightens them all. No count rises.PersonNodeBehaviornamesfirst_nameandlast_name, notname. Those are the person schema's actual fields; the issue's suggested text saidname.conflicts.rssays "a third lifecycle value" instead of keeping "a fourth concept". With the cloud tombstone clause gone, "fourth" lost its referent (active,archived, then a new one makes three).MAX_ACCESS_WALK_DEPTHis not called "a backstop against amember_ofcycle", the issue's suggested text. The walk'sseenset already stops cycles, so the cap bounds a pathologically deep chain. Review caught this.emaildescription, because core schemas are seeded only when missing. This is cosmetic, and nothing parses it. There is no migration, per CLAUDE.md.Left alone (other issues own them)
bun run scripts/check-pro-boundary.ts --changedstill lists these hits in files this PR touches:node_service/mod.rs, thenodespaced-proline in a batched-apply doc: Reword core's batch-write, event and collision docs without naming the sync daemon #3364.node_service/mod.rs, the "sync into one tenant" lines in the personal AI-chat collection docs and test: Sweep the Pro and sync wording C7 leaves around replicated writes and AI-chat privacy #3367.node_service/mod.rs, two inline comments insideget_local_personthat still say "once multi-role RBAC lands". They are not markers, and the issue listed only the doc.behaviors/mod.rs, theDatabaseSettingsNodeBehaviordoc ("carries the tenant role"). The issue assigned it to Replace DatabaseSettingsNode's Pro fields and accessors with a generic settings accessor #3340, which merged without rewording that line, so it is still open.Ratchet
No count rises. Marker counts in the changed files,
origin/main→ this branch:proWordingcloudWordingtenantWordingcloudBindStatecheck-pro-boundary.tsexits 0.check-code-references.ts: issue-number references 71 (baseline 71), doc-path references 0.Test plan
cargo fmt -p nodespace-core --checkcargo clippy -p nodespace-core --all-targets -- -D warnings -D clippy::unused-asynccore_schemasunit tests (nextest), including the newtest_person_email_field_is_optionalemaildescription failstest_person_email_field_is_optionalbun run --cwd packages/desktop-app test table-view-headers schema-field-label: 5 passedemaildescription in a<span>beside the header label (table-view.svelte) failstable-view-headers.test.tsat the newqueryByText(/Email address \(optional\)/)assertion. Reverted.bun run --cwd packages/desktop-app quality:fix: 0 errors, 0 warningsbun run test:changed(frontend, rust, scripts)git grep -n 'invited teammates' -- packagesreturns nothing🤖 Generated with Claude Code