feat(webapp): facts the session may have changed, suggested by the local model for the GM to use (#1280) #1325
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/1280-fact-suggestions"
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 #1280 (D323–D326; the drawing is lane 6j, also in this PR).
What it does
summarisation_runs.fact_suggestions).try, so it can't fail or slow that path. Without an LLM configured, a session is skipped.Privacy (three security-review findings, all fixed with tests)
seqof its quoted line or lines, so erasing a member's lines removes the suggestions quoting them, however the scrub matched the speaker. A mixed erasure is tested.Server: migration
f1280a0b1c2d(revisese1279a0b1c2d) addsfact_suggestionsandsummarisation_runs.fact_suggestions; it has a real downgrade, and Alembic has a single head. New routes:GET /api/campaigns/{id}/wiki/fact-suggestions, plus…/{sid}/use,/undoand/dismiss, all for GMs only. The article read (GM only) and the GM session read carry the waiting suggestions, and the attention count includes them. The bot is unaffected.After the deploy (D325, on the owner's say): run this once over past sessions, newest first. It's safe to repeat.
Checked
tests/wiki,tests/export, attention, transcript bin, member erasure, enqueue-off-loop, sessions, audio tasks and retention gave 3,056 passed and 0 failed. ruff format and check are clean; the version and changelog checks are OK.src/pages/wikiandsrc/wiki, 43 files and 625 tests passed. eslint has 0 errors.New wording goes on the Wording Review page before merge.
🤖 Generated with Claude Code
Render check of
4352bfff, on the seeded journeys stack built from this branch. The migration reachedf1280a0b1c2d. Suggestions were inserted directly, since that stack has no LLM. Light and dark, 1280, 820 (queue only) and 390, 44 shots./use200), and Undo brings it back (200)./dismiss200).GET …/wiki/fact-suggestionsreturns 403. The article read carries nofact_suggestions, and the page shows Status "Alive", nothing suggested.Fixed after the check (latest commit): a long new value left "— →" alone on a line; on a phone, Undo stretched across the receipt; and a quote-less row drew empty "“”". There are two new tests.
Seen, as designed:
CI:
tests/test_transcript_bin_readers.pyfailed. That file is the transcript-bin guard (#680): a binned transcript must never be served, searched or sent to a model.1a008cd7:sessions_to_backfillreadSession.transcriptto find processed sessions. It now picks sessions with transcript lines (an EXISTS) whose transcript isn't binned, and never reads the text. A new test covers that a binned session is skipped and a restored one comes back.08da4836: the guard's sibling check lists every use of the transcript rows. The suggestion task reads rows only oncereadable_transcript(session)is not None, as it already did. The backfill's EXISTS is filtered on the bin, and the other four uses are type annotations.Checked: the fact-suggestion and transcript-bin tests passed on the dev host, apart from the listing fixed in
08da4836, which I checked with the guard's own collector. ruff is clean. The PR is re-scheduled to merge when CI passes.