fix(backend): pick summary events across the whole session, and label chatter (#603) #605
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/compose-fill-and-chatter"
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?
Closes #603.
The bug
select_beats_for_composetook one beat per time bucket, then filled the spare slots story kinds first, then earliest first, and within a bucket it also picked earliest first. So:othercame last whatever the cap was;The fix
table_admin, the kind that now means "not part of the story", instead of being expected to disappear. This is #596's lesson again: the model didn't omit the Phasmophobia talk, it recorded it asother.The result is still deterministic, re-sorted chronologically, and the identity function at or under the cap.
Measured without the GPU
A replay of the old and new selectors on the real stored events of three dev runs at cap 36 (the script and data stay out of the repo):
In ace1414f the Cant is the 4th of five reveals in a bucket that gets two picks. The spread takes the 1st and 5th, so it's a better sample of the session, not a guarantee for any one event, and the docstring says so.
Still to measure: the chatter label changes model output, so it gets one live summary-only rerun on dev after merge.
Tests
_spreadchecktest_one_event_comes_out_of_each_slice_of_the_clocktest_table_admin_does_not_take_a_slice_of_the_clocktest_within_one_slice_the_kind_that_carries_it_wins, now using a middle slicecheckandformat --checkare clean.Deferred: renaming the event log's "table-admin notes" line to "table notes" is a frontend change, waiting on #602.
🤖 Generated with Claude Code