feat: shelf carry-forward pins + session navigation — PR 1 of 2 (#254) #255
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/shelf-carry-forward"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The manual carry-forward spine for the Session Reference Shelf (#254), PR 1 of 2 (core). PR 2 will add the completion note-harvest, cancel handling, and copy-from-session.
Carry-forward pins
A
ShelfPinis a campaign-level interval over the session timeline (start session → optional end session, ordered by scheduled date; proposed sessions count as future). Reading a session's shelf lazily materializes every active pin that covers it — one card per pin, deduped against manual cards; canceled sessions are skipped (and aren't a boundary).Navigation
Notes
b7c8d9e0f1a2(shelf_pins + shelf_cards.pin_id/notes_harvested_at + partial unique index). No bot-contract change.Part of #254 and #235.
🤖 Generated with Claude Code
The manual carry-forward spine (PR 1). A ShelfPin is a campaign-level interval over the session timeline (start session → optional end session, ordered by scheduled date). Reading a session's shelf lazily materializes every active pin that covers it — one card per pin, deduped against manual cards, canceled sessions skipped. - Model: shelf_pins table + shelf_cards.pin_id/notes_harvested_at + a partial unique index (one wiki card per session; manual adds are now idempotent). Migration b7c8d9e0f1a2 (de-dupes any pre-existing wiki dupes first). - Live wiki: lore cards render the current entry each read; generated cards stay frozen to their snapshot. - Pin/unpin API: POST .../{card_id}/pin | /unpin. Unpin ends the interval at the current session; sessions after it lose the card, and any wiki notes on those dropped cards are swept into the entry's GM notes. The boundary session keeps its card + notes (those harvest at completion — PR 2). - 16 endpoint/service tests (carry-forward by date order, unpin truncation + note migration, live rendering, uniqueness, canceled-skip, GM-only). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>