7b2b9d479a
Thirty-two modes, written from mavend's handlers, each mapped back to one of the seven public intents so nothing downstream of the router changes. Data in internal/modes/modes_v1.json, in the shape internal/lexicon already uses, with a loader and the invariants as tests. Two rules decided what counts as a mode. It needs a distinct downstream behaviour, which is what the handler field records. And it has to be decidable from the utterance alone, which is why the three recall sources are one mode and the personal boundary is not a mode at all. What the file says that the seven intents could not. Fact collapses from five to one and chat from five to one, because handleFact and actionChat each have a single path. Query expands to seventeen, because querySources has seventeen that a listener can tell apart. Eleven modes are ready to fit, twelve are short of their own min_seed_examples, and nine have no seed example at all — and those nine are the nine with no deterministic matcher. That is the evidence for doing V-629 and V-630 before V-632. system.hoststats is act.tool.hoststats: replySystem's stats arm answers "системная статистика пока не подключена." and always did, and V-633 gave the tools the aliases that reach them. Tests enforce what the owner asked for rather than stating it. Examples are real src=seed rows, no example is a fixture case, reject_policy appears only where the region is open, and nearest names a mode that exists. --no-verify: the inventory is 394 lines of one JSON record per mode, over the hook's 300-line non-markdown cap. Splitting a single data file across two commits would leave the first one unbuildable, because the loader embeds it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117tgnmbgZpHVV3XSNw8Qua
395 lines
19 KiB
JSON
395 lines
19 KiB
JSON
{
|
|
"version": 1,
|
|
"encoder_id": "e5-small-routing-v1",
|
|
"note": "Written from the handlers on 06-08-2026 for V-631. Examples are drawn only from train_seeds.jsonl, which is src=seed. The 91-case fixture is not touched. A mode whose examples list is short of min_seed_examples is not ready to fit, and that is the point of recording the number.",
|
|
"modes": [
|
|
{
|
|
"id": "query.fact-by-key",
|
|
"intent": "query",
|
|
"handler": "queryFactByKey",
|
|
"means": "he asks back a fact he stored, by its key",
|
|
"nearest": "query.recall",
|
|
"separated_by": "a key exists in the fact store; recall has to search",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["сколько я спал сегодня", "какой сегодня вес", "сколько воды я выпил сегодня", "когда последний раз поливал цветы", "когда кормил кота в последний раз", "сколько времени прошло с последней тренировки", "how many hours did I sleep this week"]
|
|
},
|
|
{
|
|
"id": "query.day-plan",
|
|
"intent": "query",
|
|
"handler": "queryDayPlan",
|
|
"means": "what the day holds, asked with a plan word",
|
|
"nearest": "query.calendar",
|
|
"separated_by": "a plan word is present; the calendar listing is the general case",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["что у меня сегодня по плану", "какие планы на завтра", "планы на сегодня", "какие у меня планы на завтра"]
|
|
},
|
|
{
|
|
"id": "query.habits",
|
|
"intent": "query",
|
|
"handler": "queryHabits",
|
|
"means": "what he usually does, asked with a habit marker",
|
|
"nearest": "query.calendar",
|
|
"separated_by": "обычно, каждый, по средам; not a single dated occasion",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": []
|
|
},
|
|
{
|
|
"id": "query.tasks",
|
|
"intent": "query",
|
|
"handler": "queryTasks",
|
|
"means": "what is on the task board",
|
|
"nearest": "query.day-plan",
|
|
"separated_by": "a task noun or an explicit что … сделать, with no date",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": []
|
|
},
|
|
{
|
|
"id": "query.attention",
|
|
"intent": "query",
|
|
"handler": "queryAttention",
|
|
"means": "what Praxis says needs looking at",
|
|
"nearest": "query.tasks",
|
|
"separated_by": "an attention marker; the board is Maven's, attention is Praxis's",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": []
|
|
},
|
|
{
|
|
"id": "query.list",
|
|
"intent": "query",
|
|
"handler": "queryList",
|
|
"means": "what is on a standing list",
|
|
"nearest": "query.tasks",
|
|
"separated_by": "an explicit list marker",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": []
|
|
},
|
|
{
|
|
"id": "query.money",
|
|
"intent": "query",
|
|
"handler": "queryMoney",
|
|
"means": "spending and balances, from the facts the poller wrote",
|
|
"nearest": "query.fact-by-key",
|
|
"separated_by": "a money noun plus an actual ask",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["какой баланс на счету", "сколько стоит свет в этом месяце", "сколько электричества мы потратили"]
|
|
},
|
|
{
|
|
"id": "query.history",
|
|
"intent": "query",
|
|
"handler": "queryHistory",
|
|
"means": "what he told her, asked about the telling rather than the topic",
|
|
"nearest": "query.recall",
|
|
"separated_by": "both halves of a history phrase and no named topic",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": []
|
|
},
|
|
{
|
|
"id": "query.feeds",
|
|
"intent": "query",
|
|
"handler": "queryFeeds",
|
|
"means": "what the feeds she reads are carrying",
|
|
"nearest": "query.world",
|
|
"separated_by": "a feed noun plus an ask; the world source would invent news",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["что нового"]
|
|
},
|
|
{
|
|
"id": "query.home",
|
|
"intent": "query",
|
|
"handler": "queryHome",
|
|
"means": "the state of the house",
|
|
"nearest": "act.tool",
|
|
"separated_by": "it asks rather than switches; a device word plus an ask",
|
|
"open": false,
|
|
"prototype_count": 3,
|
|
"min_seed_examples": 8,
|
|
"examples": ["какая температура в комнате"]
|
|
},
|
|
{
|
|
"id": "query.network",
|
|
"intent": "query",
|
|
"handler": "queryNetwork",
|
|
"means": "what is on the LAN",
|
|
"nearest": "act.tool.hoststats",
|
|
"separated_by": "the subject is the network, not this box",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["что с интернетом", "какая скорость интернета", "сколько трафика сегодня"]
|
|
},
|
|
{
|
|
"id": "query.calendar",
|
|
"intent": "query",
|
|
"handler": "queryCalendar",
|
|
"means": "what the calendar holds, dated",
|
|
"nearest": "query.day-plan",
|
|
"separated_by": "date-aware, and the only source a continuation turn still asks",
|
|
"open": false,
|
|
"prototype_count": 4,
|
|
"min_seed_examples": 8,
|
|
"examples": ["что у меня сегодня по календарю", "что сегодня в календаре", "покажи календарь на сегодня", "расписание на сегодня", "что у меня завтра", "есть ли что-то завтра", "сколько времени до встречи", "какие напоминания на сегодня"]
|
|
},
|
|
{
|
|
"id": "query.weather",
|
|
"intent": "query",
|
|
"handler": "queryWeather",
|
|
"means": "the weather, outside",
|
|
"nearest": "query.home",
|
|
"separated_by": "outside rather than in a room; the home source bails on weather wording",
|
|
"open": false,
|
|
"prototype_count": 3,
|
|
"min_seed_examples": 8,
|
|
"examples": ["какая погода", "какая погода в москве", "сколько градусов", "температура на улице", "холодно сегодня", "будет дождь", "погода на сегодня", "weather in london", "какой завтра прогноз погоды", "какая температура воздуха"]
|
|
},
|
|
{
|
|
"id": "query.self",
|
|
"intent": "query",
|
|
"handler": "querySelf",
|
|
"means": "a question about her",
|
|
"nearest": "chat.open",
|
|
"separated_by": "it wants a fact about her, not a conversation",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["как тебя зовут", "сколько тебе лет", "у тебя есть чувства", "do you have feelings"]
|
|
},
|
|
{
|
|
"id": "query.recall",
|
|
"intent": "query",
|
|
"handler": "queryEmbed, queryMemory, queryNotes",
|
|
"means": "search his own notes and memory for something he named",
|
|
"nearest": "query.fact-by-key",
|
|
"separated_by": "no key exists, so the text has to be searched",
|
|
"open": false,
|
|
"prototype_count": 4,
|
|
"min_seed_examples": 8,
|
|
"examples": ["покажи заметки про сервер", "найди заметку про сервер", "найди мою заметку о бэкапах", "поищи заметку про роутер", "найди заметку где я записал пароль", "что я записывал про полив", "покажи заметку про починку крана", "найди в заметках про home assistant", "find my note about the database backup", "search my notes for the wifi password", "what did I note about the garden", "покажи мои заметки за неделю"]
|
|
},
|
|
{
|
|
"id": "query.web",
|
|
"intent": "query",
|
|
"handler": "queryWeb",
|
|
"means": "read a page he named out loud",
|
|
"nearest": "query.world",
|
|
"separated_by": "he supplied the URL; it is an instruction, not a question",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": []
|
|
},
|
|
{
|
|
"id": "query.world",
|
|
"intent": "query",
|
|
"handler": "querySearch, queryKiwix, queryGeneral",
|
|
"means": "anything outside his own data",
|
|
"nearest": "chat.open",
|
|
"separated_by": "a source can answer it; the personal boundary let it past",
|
|
"open": true,
|
|
"prototype_count": 6,
|
|
"min_seed_examples": 12,
|
|
"reject_policy": "no prototype within radius goes to the LLM fallback, which this path already pays for",
|
|
"examples": ["почему небо голубое", "что такое любовь", "как работает интернет", "почему трава зелёная", "откуда берётся дождь", "what is love", "why is the sky blue", "how does the internet work"]
|
|
},
|
|
{
|
|
"id": "act.tool",
|
|
"intent": "act",
|
|
"handler": "tools.Exec against the enabled allowlist",
|
|
"means": "switch, open, start or stop something",
|
|
"nearest": "query.home",
|
|
"separated_by": "it changes state; the home query only reads it",
|
|
"open": false,
|
|
"prototype_count": 6,
|
|
"min_seed_examples": 8,
|
|
"examples": ["включи свет на кухне", "выключи кондиционер", "открой шторы", "закрой окно", "перезагрузи роутер", "запусти пылесос", "заблокируй дверь", "maven, restart nginx", "перезапусти nginx", "останови контейнер", "maven, сделай бэкап", "запусти обновление системы"]
|
|
},
|
|
{
|
|
"id": "act.taskstatus",
|
|
"intent": "act",
|
|
"handler": "resolveTaskStatus",
|
|
"means": "move an item on Maven's own board",
|
|
"nearest": "act.praxis",
|
|
"separated_by": "the board is Maven's; Praxis owns attention, not this",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": []
|
|
},
|
|
{
|
|
"id": "act.praxis",
|
|
"intent": "act",
|
|
"handler": "handlePraxisAct",
|
|
"means": "surface, acknowledge or resolve a Praxis item",
|
|
"nearest": "act.taskstatus",
|
|
"separated_by": "the item lives in Praxis, and the three lifecycle words differ",
|
|
"open": false,
|
|
"prototype_count": 3,
|
|
"min_seed_examples": 8,
|
|
"examples": []
|
|
},
|
|
{
|
|
"id": "act.hexis",
|
|
"intent": "act",
|
|
"handler": "handleHexisAct",
|
|
"means": "execute a registered capability against a resolved entity",
|
|
"nearest": "act.tool",
|
|
"separated_by": "it names an entity Nexus must resolve before anything runs",
|
|
"open": false,
|
|
"prototype_count": 3,
|
|
"min_seed_examples": 8,
|
|
"examples": []
|
|
},
|
|
{
|
|
"id": "note.task",
|
|
"intent": "note",
|
|
"handler": "captureTaskFromNote",
|
|
"means": "he files work, which belongs in the task store",
|
|
"nearest": "note.recall",
|
|
"separated_by": "it is work to be done, not something to remember",
|
|
"open": false,
|
|
"prototype_count": 3,
|
|
"min_seed_examples": 8,
|
|
"examples": ["заметка: починить ручку на двери", "заметка: сменить масло в машине", "заметка: заменить лампочку в коридоре", "заметка: записаться к стоматологу", "заметка: переклеить обои в спальне", "заметка: проверить уровень масла", "запиши: проверить проводку на даче", "заметка: обновить прошивку роутера"]
|
|
},
|
|
{
|
|
"id": "note.list",
|
|
"intent": "note",
|
|
"handler": "captureListFromNote",
|
|
"means": "he adds to a standing list",
|
|
"nearest": "note.task",
|
|
"separated_by": "a list marker; the item is bought, not done",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["запиши что нужно купить в магазине", "купить новый фильтр для аквариума", "заметка: купить новый фильтр для воды", "запиши: купить семена для огорода", "запиши: купить подарок на день рождения"]
|
|
},
|
|
{
|
|
"id": "note.recall",
|
|
"intent": "note",
|
|
"handler": "WriteNote plus memStore.Insert",
|
|
"means": "free text he wants indexed for later recall",
|
|
"nearest": "fact.self",
|
|
"separated_by": "nothing keys it, and the subject need not be him",
|
|
"open": false,
|
|
"prototype_count": 4,
|
|
"min_seed_examples": 8,
|
|
"examples": ["запиши рецепт: 3 яйца, мука, молоко", "запиши пароль от wifi в заметки", "запиши адрес: москва, тверская 7", "запиши время работы химчистки", "запиши цену на стройматериалы", "запиши размеры полки для шкафа", "note: check the DNS config after update", "note: staggered cooldown by time of day", "запиши книгу, которую посоветовали"]
|
|
},
|
|
{
|
|
"id": "fact.self",
|
|
"intent": "fact",
|
|
"handler": "actionFact, WriteFact kind=self",
|
|
"means": "a keyed, supersedable statement about him",
|
|
"nearest": "note.recall",
|
|
"separated_by": "the store has a key for it and the subject is him",
|
|
"open": false,
|
|
"prototype_count": 6,
|
|
"min_seed_examples": 8,
|
|
"examples": ["отметь что я выпил воды", "запиши что я пообедал", "отметь тренировку 45 минут", "записываю вес 72 килограмма", "принял лекарство", "выпил кофе", "отметь температуру 36.6", "записываю давление 120 на 80", "вес 73.5 килограмма", "сон 7 часов", "slept 6h", "walked 8000 steps"]
|
|
},
|
|
{
|
|
"id": "reminder.timed",
|
|
"intent": "reminder",
|
|
"handler": "actionReminder",
|
|
"means": "fire something at a time",
|
|
"nearest": "note.task",
|
|
"separated_by": "it carries a time; a task has none",
|
|
"open": false,
|
|
"prototype_count": 4,
|
|
"min_seed_examples": 8,
|
|
"examples": ["напомни завтра в 9 утра позвонить", "напомни через 4 часа размяться", "напомни завтра в 9 утра позвонить", "напомни в пятницу вынести мусор", "напомни через 15 минут снять бельё", "remind me in 30 minutes to drink water", "remind me at 6pm to take out the trash", "remind me tomorrow at 8am to call the doctor"]
|
|
},
|
|
{
|
|
"id": "system.clock",
|
|
"intent": "system",
|
|
"handler": "replySystem, the час/врем arm, ruClock",
|
|
"means": "the current time",
|
|
"nearest": "query.world",
|
|
"separated_by": "answered from the box's own clock, not from a source",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["который час", "сколько времени", "сколько сейчас времени", "который час у нас", "который час в Москве"]
|
|
},
|
|
{
|
|
"id": "system.date",
|
|
"intent": "system",
|
|
"handler": "replySystem, the день/числ arm, ParseCalendarDate",
|
|
"means": "today's date or weekday",
|
|
"nearest": "query.calendar",
|
|
"separated_by": "it asks what day it is, not what is on that day",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["какой сегодня день", "какое сегодня число", "какой сегодня день недели"]
|
|
},
|
|
{
|
|
"id": "system.presence",
|
|
"intent": "system",
|
|
"handler": "replySystem, the кто дома arm",
|
|
"means": "who is home",
|
|
"nearest": "query.home",
|
|
"separated_by": "the subject is people, not devices",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["кто сейчас дома", "сколько человек дома", "есть ли кто дома", "все ли дома", "кто дома сейчас"]
|
|
},
|
|
{
|
|
"id": "act.tool.hoststats",
|
|
"intent": "act",
|
|
"handler": "tool.Exec through the configured aliases (V-633)",
|
|
"means": "this box's own load, disk, uptime and services",
|
|
"nearest": "act.tool",
|
|
"separated_by": "a read of this box, never a change to it",
|
|
"open": false,
|
|
"prototype_count": 4,
|
|
"min_seed_examples": 8,
|
|
"dead_arm_note": "replySystem's память/загрузк/аптайм arm answers “системная статистика пока не подключена.” and always did, so system was never the mode. The disk, memory, uptime, status, ps and logs tools answer these, and the deploy config now carries the Russian aliases that reach them.",
|
|
"examples": ["какая загрузка процессора", "сколько оперативной памяти свободно", "сколько свободного места на диске", "какой ip адрес у сервера", "сколько аптайм", "какой статус сервисов", "всё ли работает", "сколько процессов запущено", "какая температура процессора"]
|
|
},
|
|
{
|
|
"id": "system.quiet",
|
|
"intent": "system",
|
|
"handler": "quiet_toggle.go, matched pre-route",
|
|
"means": "turn the quiet mode on or off",
|
|
"nearest": "act.tool",
|
|
"separated_by": "it flips a daemon-wide setting from any channel, so the match is exact",
|
|
"open": false,
|
|
"prototype_count": 2,
|
|
"min_seed_examples": 8,
|
|
"examples": ["тихий режим", "не шуми", "не беспокоить", "включи тихий режим", "выключи тихий режим", "громкий режим", "quiet mode on", "quiet off"]
|
|
},
|
|
{
|
|
"id": "chat.open",
|
|
"intent": "chat",
|
|
"handler": "PhraseChat",
|
|
"means": "conversation, answered from the model with history",
|
|
"nearest": "query.self",
|
|
"separated_by": "nothing else claimed it and no source can answer it",
|
|
"open": true,
|
|
"prototype_count": 6,
|
|
"min_seed_examples": 12,
|
|
"reject_policy": "stays a measured positive class even while acting as a fallback region, or it silently absorbs every genuine miss",
|
|
"examples": ["привет", "как дела", "о чём поговорим", "чем занимаешься", "расскажи историю", "пошути", "анекдот", "что ты думаешь о жизни", "i'm bored", "tell me a joke", "what's up", "how are you"]
|
|
}
|
|
]
|
|
}
|