Each lesson can carry its situation: a moment of work (work.deliver,
work.finish, ...) or a typed trigger on the act (path, command, tool,
keyword, matched as rule triggers are). A pass proposes, a person judges:
- lesson_situations (migration 0137): one row per lesson, kind and value,
suggested / confirmed / rejected; `none` records that no situation fits;
- MCP: lessons_to_situate, propose_lesson_situations,
lesson_situation_proposals, judge_lesson_situations;
- Settings > Moments lists waiting proposals with Apply / Not this /
Apply all; a lesson page lists its situations and lets a writer add one
or take one off (kept as rejected, never proposed again).
Delivery: the moment doors (the plugin catch-all hook and MCP replies) add
the lessons whose confirmed moment the act reached or whose trigger it
matches. The plugin door shows each once per session, using the record
ledger, and records it as pushed (source lesson_situation); the tool filter
now includes the tools a lesson trigger listens on.
The edit door no longer finds lessons by meaning: lesson leaves the
work.change default kinds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pointer before a payload:
- the notes arms fetch a few results past the menu; those that cleared
the floor but were held back by the gate, the band or the budget are
named by id per kind, with the call that opens each kind, in one line
("Also resembling this, not shown: ...") at the message and the write
path;
- they are recorded in the record ledger as `pointed`, so an open that
follows is counted apart from pushed lines;
- setting a task in progress returns records_in_area: the notes and open
issues tagged to the task's areas, by id (a work.start row in the
kind x moment table says which kinds; it answers in a tool reply, so it
is shown as unmeasured).
The static context says what a pointer line means. Plugin version minted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before a write, the write path now looks up issues by structure:
- an issue whose body or a log names the file (any status: a closed one
is the record of what was already tried there);
- an open issue tagged to an area whose path patterns cover the file.
At most two, listed first, withheld from the search by meaning, which
fills only what is left and only past the gate. Measured under
write_path_linked. The lookups follow the kind x moment table: no issue
lookup when issues are off at work.change, no nearby-snippet lookup when
snippets are.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>