Skip to content

feat: perspectives Go layer -- the O(1) reference-architecture entity (goal 0095 slice 1, ADR-0041) - #224

Merged
alicoding merged 2 commits into
mainfrom
perspectives-go
Aug 18, 2026
Merged

feat: perspectives Go layer -- the O(1) reference-architecture entity (goal 0095 slice 1, ADR-0041)#224
alicoding merged 2 commits into
mainfrom
perspectives-go

Conversation

@alicoding

Copy link
Copy Markdown
Owner

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

alicoding and others added 2 commits August 18, 2026 00:01
…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
@alicoding
alicoding enabled auto-merge (squash) August 18, 2026 04:03
@alicoding
alicoding merged commit 17d0618 into main Aug 18, 2026
26 checks passed
@alicoding
alicoding deleted the perspectives-go branch August 18, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant