feat: perspectives Go layer -- the O(1) reference-architecture entity (goal 0095 slice 1, ADR-0041) - #224
Merged
Merged
Conversation
…ce 1, ADR-0041) Perspective per ADR-0041's shape (explicit MemberCardIDs/MemberLinkIDs, no DeletedAt -- delete is immediate, not soft). Pure helpers: AncestorChain (ancestry-closure computation), DescendantsAndSelf (removal cascade), FilterByPerspective (membership + the link-renders-iff-self-and-both-endpoints rule), DiffPerspectives (set difference, order-stable). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FW5GkkAG8du7tNdYLk2zSd
…ice 1) wails3 generate bindings picks up AtlasService's new Perspective CRUD/ membership methods and the atlas.Perspective type. One mechanical frontend fix rides along: AtlasSessionState's new required activePerspectiveID field means the one existing SetAtlasSession call site needs it too (always "" here -- the switcher UI is a later slice); no behavior change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FW5GkkAG8du7tNdYLk2zSd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Perspective entity per ADR-0041: named, ordered views over one space's LIVE card set — member sets for cards AND links (a target-state connection between two existing systems must not leak into Current), ancestry closure on add, removal cascade, authoring-while-active joins the active perspective, purge strips member sets in the existing tombstone pass, export/import round-trips with unknown-member filtering, session carries the active id with degrade-on-read. Default 'everything' view = absence of any record: zero perspectives, zero behavior change, zero migration.
Pure helpers (FilterByPerspective with the link-visibility rule, DiffPerspectives as set difference) + 41 tests across the layers; Card/Note untouched so every seed fingerprint stays byte-identical. UI lands in slice 2 (switcher absorbs the Lens per ADR-0041's naming rule); the seeded three-perspective example in slice 3.
Goal: docs/goals/0095-atlas-perspectives.md · ADR: docs/adr/0041.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FW5GkkAG8du7tNdYLk2zSd