Repository navigation
Remove auth_status from PersonNode seeding - #1402
Conversation
…gsNode)
auth_status ('local'/'connected') describes whether this *database* is
synced, not who the person is. Per the revised ADR-037 model it lives on
DatabaseSettingsNode (#1398), not PersonNode. The seeded PersonNode now
has empty properties; the seed test asserts auth_status is absent rather
than checking for 'local'.
Co-Authored-By: Claude <[email protected]>
Code Review SummaryThis is a clean, targeted fix. The change correctly removes Verdict: Approved. One improvement item noted for follow-up. FindingsSuggested Improvements
The struct-level doc comment still describes This is now incorrect — The fix is a one-line doc update, e.g.: This does not block merge — the runtime behavior is correct — but it should be cleaned up in a quick follow-on commit or folded into the next time this behavior is touched. Nitpicks
What Was Verified
|
Doc comment still described auth_status as a PersonNode property. Updated to reflect revised ADR-037 model: auth_status → DatabaseSettingsNode, role → has_role edge (PersonNode → DatabaseSettingsNode). Co-Authored-By: Claude <[email protected]>
|
Fixed the stale doc comment on |
* Remove auth_status from PersonNode seeding (belongs on DatabaseSettingsNode)
auth_status ('local'/'connected') describes whether this *database* is
synced, not who the person is. Per the revised ADR-037 model it lives on
DatabaseSettingsNode (#1398), not PersonNode. The seeded PersonNode now
has empty properties; the seed test asserts auth_status is absent rather
than checking for 'local'.
Co-Authored-By: Claude <[email protected]>
* Address review: fix stale PersonNodeBehavior doc comment
Doc comment still described auth_status as a PersonNode property.
Updated to reflect revised ADR-037 model: auth_status → DatabaseSettingsNode,
role → has_role edge (PersonNode → DatabaseSettingsNode).
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Michael Libio <[email protected]>
Co-authored-by: Claude <[email protected]>
Summary
Follow-up to #1401. The seeded PersonNode incorrectly included
auth_status: "local"in its properties. Per the revised ADR-037 model (updated this session),auth_statusbelongs onDatabaseSettingsNode(#1398), not PersonNode — it describes whether the database is synced, not who the person is.auth_statusfromseed_local_person_if_needed— seeded node now has empty propertiesperson_seed_test.rsto assertauth_statusis absent from the seeded PersonNodeauth_statuslivesTest plan
cargo test -p nodespace-core person_seed— 2 tests passcargo clippy -p nodespace-core— clean🤖 Generated with Claude Code