Merge main: read state and tags meet per-agent votes and affinity

The per-agent migration becomes v6 behind main's v5. A vote still stamps
the role's read_at, tag counts hide the agent's hidden companies, and
/api/filters takes the agent like /api/roles.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-28 12:59:41 +02:00
commit c69fb0b6c4
23 files changed
+2270 -717

No files matched your search

+6
View File
@@ -268,11 +268,17 @@ class Role(Model):
#: unjudged, else -1 pass, 0 neutral, 1 like.
vote: Literal[-1, 0, 1] | None = None
voted_at: str | None = None
#: NULL unread, else when the feed opened it or judged it. A vote stamps
#: this too, see `Store.set_vote`: voting is reading.
read_at: str | None = None
summary: str = ""
summarised_at: str | None = None
#: The posting page as plain text, for a role whose description is a teaser.
article_text: str = ""
article_at: str | None = None
#: The open vocabulary `summarise` read off the posting, sorted. Not a
#: column: loaded from `role_tags` alongside the row, see `Store.role`.
tags: list[str] = []
class ExtractResult(ModelTaskResult):