Download this file
| 1 | -- The Assistant's abilities (spec 2026-11-26-assistant-abilities §5.3): |
| 2 | -- each person's board as their Base last answered it, kept per person and |
| 3 | -- origin. source is base (Base's board) or legacy (the defaults, renewed |
| 4 | -- while a Base older than the board honours the host token). |
| 5 | -- authoritative_seen: the origin has ever answered the board, never |
| 6 | -- cleared. A job held because building was off records when |
| 7 | -- (ability_held_at, §6.3), and a host the newest Base-Capabilities it |
| 8 | -- sent (capabilities). A refused step attempt is marked (ability_held). |
| 9 | CREATE TABLE chat_assistant_abilities ( |
| 10 | person text, origin text, revision integer, abilities text, admin numeric, ask text, source text, |
| 11 | fetch_seq integer, confirmed_at datetime, revoked_at datetime, authoritative_seen numeric, |
| 12 | PRIMARY KEY (person, origin) |
| 13 | ); |
| 14 | ALTER TABLE chat_handoffs ADD COLUMN ability_held_at datetime; |
| 15 | ALTER TABLE chat_assistant_hosts ADD COLUMN capabilities text; |
| 16 | -- A step attempt the build hold refused at its start: Carry on gives |
| 17 | -- exactly these a fresh attempt. |
| 18 | ALTER TABLE chat_steps ADD COLUMN ability_held numeric; |
| 19 | |