Records reach work: the record ledger and the kind×moment table (milestone 642, steps 1 and 3) #230

Merged
bvandeusen merged 3 commits from dev into main 2026-11-24 14:40:01 -05:00
Owner
  • Step 1 (#7831): every note, snippet, issue, lesson or process a session is shown, searches for, or opens on its own is recorded per session, by kind (record_deliveries, migration 0136). It has a new plugin hook and a readout in Settings › Moments, "How records reach the work". Plugin version 2026.11.24.1827.
  • Step 3 (#7833): each point where a record search fires declares which kinds it may consider. The table is editable in Settings › Moments, "Which records each moment considers", and shows each kind's lines and opens. The defaults are today's behaviour.

🤖 Generated with Claude Code

- **Step 1 (#7831):** every note, snippet, issue, lesson or process a session is shown, searches for, or opens on its own is recorded per session, by kind (`record_deliveries`, migration 0136). It has a new plugin hook and a readout in Settings › Moments, "How records reach the work". Plugin version 2026.11.24.1827. - **Step 3 (#7833):** each point where a record search fires declares which kinds it may consider. The table is editable in Settings › Moments, "Which records each moment considers", and shows each kind's lines and opens. The defaults are today's behaviour. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bvandeusen added 3 commits 2026-11-24 14:39:53 -05:00
feat(7831): every record a session is shown, asks for or opens on its own is recorded per session, by kind
CI & Build / Plugin hooks (push) Successful in 18s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 38s
CI & Build / Python tests (push) Successful in 1m59s
CI & Build / integration (push) Successful in 2m6s
CI & Build / Build & push image (push) Successful in 32s
b0fab00fe2
A ledger beside the rule deliveries (record_deliveries, migration 0136):
- every note, snippet, issue, lesson or process line a plugin door pushes
  is recorded against the session, only when the payload kept it;
- a search the session runs itself records its results as asked, matched
  to the server log of that call;
- an open is stamped on the delivery it followed, or recorded as direct
  when nothing showed the record first.

The plugin reports opens and searches from the tool calls
(grimoire_record_read.sh). The readout is in retrieval_telemetry
(record_reach), at /api/retrieval/record-reach, and in Settings > Moments
as "How records reach the work". Plugin 2026.11.24.1827.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(7833): each moment declares which kinds of record its search may consider, editable in Settings > Moments
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Python tests (push) Failing after 1m35s
CI & Build / integration (push) Successful in 1m58s
CI & Build / Build & push image (push) Skipped
9cbdfb205c
The kind x moment table (services/record_kinds.py):
- every record search fires at a door: the operator message, or a
  catalog moment (work.change for the write path);
- each door considers a set of kinds (snippet, note, lesson, process,
  task:issue/work/spike/plan); a kind left out is never searched there;
- the shipped defaults are today's behaviour; a user's change is stored
  per door, and putting a door back removes it.

Both note arms read it, replacing their fixed kind lists, and a reserved
slot whose kind is turned off is not reserved. The review re-run
searches the same kinds. Settings > Moments shows and edits the table,
with each cell's lines shown and opens from the record ledger.
list_moments returns it as record_kinds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
test(7833): the write path is pinned to the kinds its door considers, not the retired fixed lists
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Successful in 2m4s
CI & Build / integration (push) Successful in 2m14s
CI & Build / Build & push image (push) Successful in 39s
1363936ed7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bvandeusen merged commit 312d838661 into main 2026-11-24 14:40:01 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/FabledGrimoire#230