Owner projects
Owner projects keep each request of the owner in one project that every channel shares, and this page explains the companion turn and the Kanban tasks.
Updated
Purpose
Owner projects put each piece of work that the owner asks for into a project that every channel shares. A message of the owner on text message, Slack, Telegram, jChat, email, or a phone call becomes one companion turn on the Hermes gateway. The turn answers a quick request at once, and it makes a task for any other request. A task is a goal-mode Kanban task on the project board of its project, and its result or its one question comes back to the owner through the owner inbox and the owner outbox.
All of this runs only while switch JOSHU_OWNER_PROJECTS is on. The switch is off by default, and with the switch off a box runs the realtime-goal broker of realtime-goals.md as before.
Motivation
Before owner projects, the box kept the work of each channel in its own place. An owner text passed about seven handlers in src/twilioSmsGateway.ts, and a small router model of the realtime-goal broker answered many owner messages before the companion saw them. Slack and Telegram reached the same router through plugin joshu-realtime-goals. Fourteen code paths sent to the owner without the owner outbox. The owner explained the same project again on each channel, an answer to a question could reach the wrong place, and on a call the owner waited in silence while the companion looked something up. In one review of 31 nudges, only 5 got an owner reply on the right Kanban task.
These facts shaped the design:
- Since Hermes v0.22, one gateway owns every session, and each surface is a client: the api_server, and each messaging platform. A session is keyed by platform and chat, so the gateway does not link the sessions of one owner across platforms, and it has no platform for phone calls.
- A Hermes plugin can add a messaging platform with
ctx.register_platform, and apre_llm_callhook of a plugin can add text to each turn. Neither needs a change to Hermes. - Kanban in Hermes v0.23.5 runs a goal-mode Kanban task in one worker session until a judge agrees that the work is done, or until the worker blocks it for a person. A subscription of a Kanban task to a platform chat in mode
wakewakes the companion in that chat when the Kanban task is done or blocked. A Kanban task without an assignee is never dispatched. - A Kanban worker runs in its own process outside the gateway, and its goal loop reads only the title and the body of its Kanban task. A running worker cannot be steered through the gateway.
- Hermes Kanban cannot move a Kanban task between boards. The Kanban transfer exports and imports only a whole board, and the slug of a board cannot change.
- Joshu wants each new Hermes release without a merge, so this design uses only public interfaces of Hermes: plugins, platform plugins, hooks, the Kanban CLI and tools, the api_server, and config. It adds no Hermes patch and no task database.
Architecture
Source of the diagram: diagrams/owner-projects.json.
The components, and what each one owns:
| Component | What it does | Data that it owns |
|---|---|---|
Twilio webhook (src/twilioSmsGateway.ts) | Checks the Twilio signature and the sender, answers STOP, START, and HELP, gives an approval reply to the action guard, and posts every other owner text to the listener of platform joshu_sms. | A small pending file of texts that the listener did not take yet. |
Plugin joshu-owner-projects (.hermes/plugins/joshu-owner-projects/) | Registers platforms joshu_sms and joshu_inbox, the pre_llm_call hook that adds the project block, the pre_gateway_dispatch hook that adds the Slack channel window and writes Slack and Telegram messages to the owner message record, and the cron delivery guard. | Nothing durable. It remembers the task id of the current owner inbox turn. |
| Hermes gateway | Runs one companion turn for each owner message, queues a second message while a reply runs, and wakes the companion in the owner inbox. | Sessions, the Kanban boards, and the subscriptions of Kanban tasks. |
Connectors MCP (scripts/lib/owner-projects-mcp.mjs) | Lists the task tools, the project tools, and nudge_settings while the switch is on, and calls the Joshu task API for each. | Nothing. |
Joshu task API (src/ownerTasks/) | Starts, reads, and changes tasks through the Kanban bridge, keeps the project names, and builds the project block. | The task files and the project names in the owner-projects state folder. |
| Project board | Holds the tasks of one project as goal-mode Kanban tasks with tenant owner. Tracks and ingress tasks stay Kanban tasks without that tenant. | The state of each task. |
Owner outbox (src/ownerChannel/outbox/) | Takes each message that the box starts about a task, picks the route, sends it with a delivery receipt, and keeps an item that no route delivers open for jChat. | The outbox items of tasks. |
Owner message record (src/ownerChannel/messageRecord.ts) | Keeps each message between the owner and the box, on every channel, with channel, chat or thread, time, direction, project, task, and delivery. | messages.jsonl, the latest 2,000 messages. |
Voice service (packages/voice-realtime/) | Starts tasks with start_task during a phone call or a voice chat in jChat, and posts the transcript after the talk. See voice-agent-tools.md. | The transcript of a talk until the talk ends. |
The owner-projects state folder is owner-projects/ in the Joshu state folder, outside the files folder of the owner, or the folder that JOSHU_OWNER_PROJECTS_STATE_DIR names. It holds tasks/<task id>.json, projects.json, messages.jsonl, the open approval prompts, and the pending owner texts.
A second view of the paths of each channel:
flowchart LR
sms["Text message"] --> hook["Twilio webhook<br/>safety replies"] --> smsp["Platform joshu_sms"]
slack["Slack, Telegram"] --> plat["Hermes Slack and<br/>Telegram platforms"]
jchat["jChat text"] --> api["api_server"]
mail["Owner email"] --> ingress["Mail ingress worker"]
voice["Phone call,<br/>jChat voice"] --> vs["Voice service"]
smsp --> turn["Companion turn<br/>with project block"]
plat --> turn
api --> turn
turn -->|"task_start"| tasks["Joshu task API"]
ingress -->|"task_start, task_answer"| tasks
vs -->|"start_task"| tasks
tasks --> board["Project board<br/>goal-mode Kanban task"]
board -->|"done or blocked, mode wake"| inbox["Owner inbox turn"]
inbox --> outbox["Owner outbox"]
outbox --> owner["Owner"]
Theory of operation
The model to keep in mind: every owner message is one companion turn on the gateway, every piece of work is a Kanban task, and every message that the box starts about a task goes through the owner outbox. The companion judges what a message is about. Code keeps the safety rules and the delivery rules.
A request from start to finish
- The owner sends a message. Each channel reaches the gateway in its own way:
- Text message. Twilio posts the text to the Joshu API. With the switch on, the webhook answers Twilio at once, checks that the sender is the owner mobile, gives a reply to an approval request to the action guard, and answers STOP, START, and HELP with fixed texts. It writes every other text to the owner message record and posts it to
POST /inof thejoshu_smslistener on127.0.0.1, with the Bearer key of the gateway. The chat id of the owner onjoshu_smsis the owner mobile in E.164. When the listener is down, the text waits in the pending file, the owner gets one short text that the box will answer shortly, and the box posts the text again every 30 seconds. - Slack and Telegram. The Hermes platforms receive the message. The
pre_gateway_dispatchhook writes it to the owner message record, and for a mention at the top level of a Slack channel it adds the Slack channel window (see "Slack channels" below). - jChat text. jChat keeps its client of the api_server, because the jChat app shows tool events that a platform plugin does not carry. The Joshu API writes each owner message and each reply to the owner message record.
- Email. An email of the owner goes through mail ingress as before. The ingress worker of an owner email gets the project block and the task tools, so "the second hotel is fine" by email answers the open question of the hotel task.
- Phone call and voice chat in jChat. The voice service is the client. See "Voice" below.
- Text message. Twilio posts the text to the Joshu API. With the switch on, the webhook answers Twilio at once, checks that the sender is the owner mobile, gives a reply to an approval request to the action guard, and answers STOP, START, and HELP with fixed texts. It writes every other text to the owner message record and posts it to
- Before the model runs, the
pre_llm_callhook fetches the project block (GET /api/owner-projects/block) and adds it to the turn. The hook runs onjoshu_sms,joshu_inbox, Slack, Telegram, and the api_server, and in a Kanban worker of a task (tenantowner) or of an owner email. It does not run in a Hermes cron job, the team stand-up, or another Kanban worker. It fails open: when Joshu does not answer in 3 seconds, the turn runs without the block. - The companion reads the block and the message. It gives a quick answer when it can answer from the context or with one quick read. For any other request it calls
task_startwith the project: a project that exists, a new project that it names, or none for projectother. It tells the owner that it is on it, names the project, and, except by email, says that the owner does not need to wait. When a message fits more than one project or open question, it asks which one. task_startmakes the task:kanban create --goalon the project board, with tenantowner,created_byset to the creator, the assignee of the default profile, and the project folder as the workspace. It writes the task file, subscribes the Kanban task to chatownerofjoshu_inboxin modewake, and writes the start to the owner message record. A request with a message id gets an idempotency key, so a retried message makes no second task.- The dispatcher of the gateway starts a worker for the Kanban task. The worker runs in one session until the judge agrees that the work is done, or until it blocks the Kanban task with block kind
needs_inputfor the owner or another person. - When the Kanban task is done or blocked, Hermes wakes the companion in the owner inbox with the Kanban event. That turn has the project block and the origin of the task, and it writes the result in plain words. Mode
wakekeeps the raw Kanban notice away from the owner. For a question, the owner gets the block reason that the worker wrote, not the text of the turn (see the decision of 2026-12-04). - The
sendofjoshu_inboxposts the text with the task id toPOST /api/owner-projects/outbox/platform-send. The owner outbox makes an outbox item of kind result, question, or failed, and the next pass routes and sends it (see "The owner outbox" below). The text of an outbox item of kind question is the block reason of the Kanban task, and the text of the turn only when the Kanban task has no block reason (inboxMessageTextinsrc/ownerChannel/outbox/routes.ts). - The owner answers on any channel. The companion turn on that channel sees the open question in the project block and calls
task_answer, which adds the answer as a Kanban comment and unblocks the Kanban task, so the worker continues.
The next step of a task
The next step comes from the Kanban status and the task file. A closed task is done or archived. Status ready, todo, or running means that the companion acts next. Status blocked with block kind needs_input (or a block by the worker) means that the owner acts next, or another person when the task file names one in waitsOn. Any other block, for example a capability or a transient block, means that the companion acts next or says why it cannot.
The task file adds only what Kanban has no field for: the kind of the task (work or question), the creator, the origin of the request, the person that the task waits on, whether the owner held the task with skip, the callback yes, and a linked Kanban task on another board. A task whose file is missing still works with the defaults: next step the owner when blocked, not held, origin unknown. The morning cleanup of the proactive tick removes each task file whose Kanban task is gone or archived.
Changes to a task
Each tool that changes a task needs the task id, and it returns the state of the task after the change. The companion says a change to the owner only after the tool returned it. A failed Kanban call returns an error and no change.
task_answeradds the answer as a comment, completes a question task, or unblocks a work task. For a task with a linked Kanban task, it also adds the answer to the linked Kanban task and unblocks it.task_add_detailadds the detail as a comment. When the worker of the task runs, it also reclaims the Kanban task (kanban reclaim): Hermes stops the worker and puts the Kanban task back toready, and the next run reads every comment.task_wait_onblocks the task for another person, or clears the wait.task_completeis the owner input complete. It closes the Kanban task with a comment.task_deleteis the owner input delete. It cancels the Kanban task, which stops the worker and archives the Kanban task. When a team asked for the task, the companion tells the team. The owner outbox drops the open items of the task.task_holdis the owner input skip. It setsheldon the task file, so the task stays open and gets no nudge until the owner brings it up.
Projects
A project is a folder <files>/Projects/<project slug>/ and its project board project-<project slug>. The project names that the owner sees are in projects.json. Project other holds the tasks that fit no project. The project of a team is board team-<team slug>.
project_createmakes the project folder, the project board, and the name that the owner sees.project_mergemakes each open Kanban task of the first board again on the second board, with its title, body, comments, tenant, creator, assignee, and block, and archives it on the first board. It reclaims a running Kanban task first. Then it moves the files and archives the first project and its board. Mail ingress files a thread of a merged project into the project that it was merged into.project_renamemakes a project with the new name and merges the old project into it, because the slug of a board cannot change and the folder and the board must keep the same project slug for mail ingress.
The project block
The project block is at most 4,000 characters. It has a short rule text, the project that the owner talked about last with its channel, up to six open questions to the owner, and the active projects. An active project has an open task or an owner message or a task in the last 30 days. Each project line has the counts of open tasks by next step and up to four tasks with their ids. The projects are ordered by their latest owner message or task, and when the block must shorten, the oldest projects leave first, with a line that says how many are not listed.
The owner outbox
The owner outbox takes each message that the box starts about a task: the result and the question from the owner inbox, the nudge, the team message, and the updates of a recurring report by text, Slack, or Telegram. An update by email stays a direct send, because it carries the PDF. A reply in a chat turn is not an outbox item. On joshu_sms, the send of the platform hands the reply to the owner outbox, which sends it at once by SMS with the delivery receipt.
A pass runs every 10 seconds and after each new item. It routes each open item in this order, with the first route that can deliver:
- Where the owner is active now: a live phone call, or the channel of a written message of the owner in the last 10 minutes.
- The channel that the owner asked for: the channel named for the item, a callback after the callback yes, or the channel choice in the Telephone settings.
- The origin chat of the task, while the latest written message of the owner is in that chat.
- The channel of the latest written message of the owner in the last 14 days. A phone call does not count.
- A second channel: email, then a text, then jChat.
A phone call is a route only while the call is live or after a callback yes. The box texts the owner only when the owner asked for texts or wrote a text in the last 14 days. A route that failed twice is skipped. Slack and Telegram items go out with hermes send --to <platform>:<chat>[:<thread>], which uses the credentials of the gateway, so a bot token that only sits in the Hermes settings works. A text keeps the SMS receipt and the 10-minute settle of the owner outbox. An item that no route delivers stays open, and jChat shows it as a surface event the next time the owner opens jChat. It counts as heard when jChat showed it. Each send goes to the owner message record.
With the switch on, the realtime-goal broker does not start its goal ticks. Only a pass of its outbox runs every 10 seconds, because it keeps the presence of a live call and places callbacks for the owner outbox of tasks.
Voice
On a phone call and in a voice chat in jChat, the voice agent starts a task with start_task, which answers within 900 milliseconds also while Joshu still files the task, and it keeps talking. A think call that passes the voice time budget becomes a task with the words of the owner. The opener and each think call get the project block. When the work takes long on a phone call, the voice agent offers a callback, and callback_yes records the yes on the task file. When the talk ends, the voice service posts the transcript to POST /api/owner-projects/voice/transcript. The route writes each turn to the owner message record, answers at once, and starts one api_server run that makes a task for each request of the talk that has no task yet and adds the notes of the talk to the journals of the projects. voice-agent-tools.md has the details.
Nudges and Multiplayer
The proactive tick reads the Kanban tasks with tenant owner that are blocked with needs_input, and it leaves out each task that is held or waits on another person. It keeps its daily limit, its quiet hours, and its morning cleanup. The nudge goes through the owner outbox, with no reference line, and the owner answers in plain words on any channel. The nudge reply words (DONE, CLOSE, KEEP, MORE, LESS, USEFUL, and the others) are not parsed. The owner changes the nudge settings in plain words, and the companion calls nudge_settings.
A team board team-<team slug> is the project board of the team project. A team question and a team commitment are tasks with creator team:<team slug>. team_tell_owner sends through the owner outbox with no reference line, and the limit of 3 messages for each team each day stays.
The boards ea-scheduling and ea-owner-reply keep their Kanban tasks. When a worker of those boards needs the owner, it calls task_start with kind question in the project of the thread, or in project other, with a link to its own Kanban task. task_answer on that question adds the answer to the linked Kanban task and unblocks it.
Gateway settings
While the switch is on, ensureJoshuHermesConfig in src/hermesApi.ts puts plugin joshu-owner-projects into plugins.enabled, takes plugin joshu-realtime-goals out, and writes these settings into the Hermes config:
display.busy_input_mode: queue, for the whole profile, so that a second message waits for the running reply and gets its own answer, also across a gateway restart.streaming.enabled: true, withdisplay.platforms.<platform>.streaming: falseforjoshu_sms,joshu_inbox,slack, andtelegram, so that only jChat streams.platforms.joshu_smsandplatforms.joshu_inbox, with the one allowed senderowner.gateway_restart_notification: falseand a home channel forjoshu_sms,joshu_inbox,slack, andtelegram, so that the owner gets no restart notice and no notice that a home channel is not set. The home channel ofjoshu_smsis the owner mobile, ofjoshu_inboxchatowner, and of Slack and Telegram the first allowed user, unless the box sets one.strict_mention: truefor Slack, so that the companion answers a channel message only on a mention.
With the switch off, the same code removes the two platforms from the config when a rollback left them there.
Approval prompts of Hermes
Hermes sends an approval prompt, for example for execute_code, to the chat of the turn. The send of joshu_sms and joshu_inbox sees metadata is_approval_prompt and does not pass the prompt text on. It posts the prompt to POST /api/owner-projects/approval-prompt. Joshu keeps the open prompt with its platform and chat for 10 minutes and asks the owner by text message in plain words. When the owner answers yes or no, the SMS ingress of the action guard posts the decision to POST /decision of the joshu_sms listener, and the plugin writes /approve or /deny into the chat of the prompt. Slack and Telegram keep the approval prompts of Hermes as before.
Slack channels
In a Slack channel, the companion answers only a message that mentions it. For a mention at the top level of a channel, the pre_gateway_dispatch hook reads the channel history with the bot token in the Hermes process and adds the Slack channel window to the message: the last 20 messages of the channel, none older than 24 hours, each line cut to 500 characters. A mention inside a thread already gets the thread from the Slack adapter of Hermes. The window is a read of the moment, so a message that the owner wants the companion to see from earlier must be pasted or linked. slack-chat.md describes the rest of Slack chat.
Switch, migration, and rollback
Switch JOSHU_OWNER_PROJECTS (1, true, yes, or on) turns on every path of this document. The task routes of the Joshu API answer 404 while it is off, the connectors MCP does not list the task tools, and the voice service keeps the paths of realtime goals.
When the switch turns on, the box start does three things:
- It removes the Hermes Admin shortcut from the desktop of a box that Joshu runs (a box with a control plane URL and an instance id). A self-hosted box keeps the shortcut.
- It writes the gateway settings above.
- It moves each open realtime goal to a task in its project or in project
other, and archives boardrealtime-goals, without a message to the owner. The migration runs once, and a marker file in the owner-projects state folder records the run. A run with a failed goal writes no marker, and the idempotency key of each Kanban create keeps a second run from making a second task.
Rollback: turn the switch off and restart the gateway. The old paths stay in the code until a follow-up change removes the switch, src/realtimeGoals/, and plugin joshu-realtime-goals. Tasks made while the switch was on stay on their project boards as ordinary Kanban tasks.
Channel choice
The channel choice of the owner says how the box reaches the owner when the box starts a text: sms or email. The box keeps it as ownerChannelChoice in .joshu/telephone/settings.json, and resolveOwnerChannelChoice in src/telephoneSettings/resolve.ts returns email only for a saved email, so a box without the field texts as before. The owner sets the channel choice in Welcome (step "Schedule & email", shown next to the owner mobile), in the Telephone app, or by asking the companion, which calls the connectors MCP tool owner_channel_set. That tool calls the localhost route PUT /api/owner-channel. All three paths use validateOwnerChannelChoice in src/ownerTextChannel.ts, which refuses sms without an owner mobile and email without the companion mailbox and a work email of the owner.
With the switch on, the owner outbox of tasks reads the channel choice as step 2 of its route order. With the switch off, these texts follow the channel choice:
- The owner text channel (
sendOwnerText): nudges, owner reminders, recurring research reports, Multiplayer texts, and app events. With channel choiceemailit sends email only and never falls back to SMS. - The realtime-goal outbox, wherever the box picks a text on its own: a phone request without a callback, a missed callback, phone unreachable, callback backoff, outside call hours, and a Slack or Telegram send that failed twice.
boxTextRouteinsrc/ownerChannel/outbox/outboxPolicy.tsreturns email for channel choiceemail, and otherwise SMS when SMS is usable for the item, else email. - Texts during a phone call: the links of an answer and an answer that finished after a hang-up, and the lines that the voice agent speaks about them. The voice service reads the same settings file, so "I'll text you" becomes "I'll email you", and the voicemail notice of a missed callback plays clip
voicemail_notice_email. - The intake reply on a phone call names the delivery route that the owner outbox will use: a callback, a text, an email, or the next call.
What stays on SMS: approval requests of the action guard, the replies to an SMS of the owner, an outbox item from an SMS request, and a result for which the owner said "text me". These are answers on a channel that the owner chose for that message, or a safety check that must reach the phone.
Delivery route email sends from the companion mailbox to the primary work email of the owner through sendOwnerEmail, with a subject that names the title of the item. The outbox item counts as heard when the companion mailbox accepts the email. A reply by email goes through mail ingress, as each email of the owner does.
Design decisions of the channel choice:
- 2026-11-23: the channel choice lives in the Telephone settings. The voice service already reads that file on each call, and Welcome already writes the owner mobile there, so no new file and no new API call were needed. The agent profile of the companion mailbox was rejected, because the voice service does not read it. The owner-wide route of the owner outbox (
defaultRoute) was rejected, because it expires after 24 hours and covers only the owner outbox. - 2026-11-23: one check for "the box starts an SMS".
ownerSmsAllowedis true only with the Twilio SMS gateway, an owner mobile, and channel choicesms. The gateway checktwilioSmsGatewayEnabledkeeps its meaning, so approval requests and SMS replies do not change. Making the gateway check follow the channel choice was rejected, because approval requests would stop and the Telephone app would show the owner mobile as not linked. - 2026-11-23: approval requests stay on SMS. An approval request holds a write until the owner answers, and the reply YES or NO binds to the request by SMS. An email approval path would need a new way to bind the reply, so it is left for later.
- 2026-11-23: one text fallback in the owner outbox. Before, five branches of
planOwnerDeliverieseach picked SMS, and a phone item on a box without an owner mobile waited with reasonsms_unavailablewithout a time limit, although the box could email the owner.boxTextRoutenow picks the route in one place,planOwnerDeliveriesstays pure, and table tests cover each branch. - 2026-11-23: Welcome asks only next to an owner mobile. Without an owner mobile, the owner text channel already sends email, and saving
emailwould keep the owner on email after a mobile is added later.
Format of owner SMS text
Each SMS to the owner goes through sendSms (src/twilioSmsSend.ts), which folds the text to GSM characters (smsGsmFold) and splits a long text into SMS parts (smsGsmParts). Two kinds of text are prepared before that:
- The reply of a chat turn, and each text that the owner outbox sends by SMS while switch
JOSHU_OWNER_PROJECTSis on (src/ownerChannel/outbox/taskSenders.ts), goes throughsmsModelReplyPlaintext(src/smsModelReplyPlaintext.ts). It removes markdown marks (bold, italics, inline code, code fences, headings, and quotes), changes a markdown link tolabel: url, changes each bullet to-, and keeps each line break. - The completion summary of a realtime goal goes through
formatOwnerCompletion, which puts one fact on each line, keeps each line that starts with a URL as it is, and adds a missing handoff link under "Open the live browser here:". It ends a line at the end of a sentence only when the next word starts with a capital letter or a digit and the word before the period is not a short abbreviation such as "Est." or "a.m.". It keeps one blank line where the summary has a blank line, and it keeps the space before a file extension such as ".png".
smsGsmFold drops the characters that are not GSM before it folds spaces, so a dropped emoji leaves one space. smsGsmParts ends each SMS part at a blank line, then at a line break, then at the end of a sentence, then at a space, so a list item stays in one SMS part.
Design decisions of the SMS text:
- 2026-10-21: SMS text has its own markdown cleaner. Before,
smsModelReplyPlaintextused the cleaner for text to speech, which folds each line break into a space and changes each blank line to ". ". A list of nine direct messages arrived as one line of 1,596 characters in 3 SMS, with one list item cut across two SMS. The cleaner for text to speech also dropped the URL of each markdown link. Changing that cleaner was rejected, because text to speech must fold lines. - 2026-10-21: the completion SMS keeps links unchanged. A handoff link on its own line became
Https://, and the owner got the link twice. Now a line that starts with a URL keeps its case, the check for a missing link ignores case, and the label is neutral, because most browser handoffs are a sign-in or a code. - 2026-11-02: the completion text keeps words and paragraphs whole. A worker summary reached the owner as "saved as.png", with "Est." and "1636" on two lines and no blank lines between paragraphs. Now the layout removes a space only before a mark that ends a word, ends a sentence only before a capital letter or a digit and not after a short abbreviation, and keeps one blank line between paragraphs. A sentence splitter library was rejected, because one regular expression with a short list of abbreviations keeps the code small.
Limits: sendSms sends the SMS parts one after the other with no wait, and carriers do not promise the order of separate SMS. An emoji is dropped, not changed to a word.
Design decisions
2026-11-29: A task is a goal-mode Kanban task with tenant owner on its project board
Decision: the task tools make each task with kanban create --goal on the project board of its project, with tenant owner as the owner-task mark, created_by set to the creator, and the assignee of the default profile. The next step comes from the Kanban status. A small task file in the owner-projects state folder adds the three fields that Kanban lacks: the person that a task waits on, whether the owner held the task with skip, and the origin of the request. Kanban stays the record of the state.
Alternatives: a Joshu task database, which an earlier design planned. Block kind dependency for "waits on another person".
Reason: a task database would be a second record of the same work, and every change would need to reach both. Hermes Kanban already runs the work, keeps the status, and survives a restart. A Kanban task without an assignee never runs, so the assignee is required. Block kind dependency was rejected, because Kanban turns a dependency block without a parent into needs_input, and a second block of the same kind goes to triage. A task whose file is missing still works with the defaults, so a lost file never loses a task.
2026-11-29: The companion changes tasks and projects with tools
Decision: the connectors MCP server has the task tools task_start, task_list, task_answer, task_add_detail, task_wait_on, task_complete, task_delete, and task_hold, and the project tools project_list, project_create, project_rename, and project_merge. Each tool that changes a task needs the task id and returns the state after the change, and the companion reports only that state. The companion judges which project and which task a message is about.
Alternative: a router model before the companion, as the realtime-goal broker had.
Reason: in one review, the router answered 12 of 18 owner replies after a nudge itself, and none of the 12 reached the Kanban task of the nudge. The companion sees the project block, the message, and the session, so it can tell what a short reply answers, and a tool result is the only proof that a change happened.
Two details of the tools follow from Hermes v0.23.5:
- A detail restarts a running worker. A Kanban worker runs in its own process, and its goal loop reads only the title and the body of the Kanban task, so a comment does not reach a running worker.
task_add_detailadds the comment and reclaims the Kanban task, and the next run reads every comment. The new run starts from the task, its comments, and its workspace, so work in progress that is not in a comment or a file is done again. The worker is told to note progress in comments. When the reclaim fails, the comment stays, and the worker reads it on its next run. - A merge makes the open Kanban tasks again. Hermes Kanban cannot move a Kanban task between boards, so
project_mergemakes each open Kanban task again on the second board and archives the old one. The new Kanban task has a new id, and a running worker of the old Kanban task is stopped and starts again on the new board. The owner sees the same task names in the same project.project_renameis a merge into a new project, because the slug of a board cannot change and mail ingress needs the folder and the board to share the project slug.
2026-11-29: Each turn gets the project block from one hook
Decision: one route of the Joshu API builds the project block from the project folders, the open tasks, and the owner message record. Plugin joshu-owner-projects registers a pre_llm_call hook that fetches the block for each turn that answers the owner. The voice service fetches the same block for its opener and for each think call.
Alternatives: one shared session for all channels. A block that each channel builds in its own code.
Reason: the gateway keys sessions by platform and chat, and Hermes has no way to join them, so a shared session would need a Hermes patch. The hook fires on every surface of the gateway, so text message, jChat, Slack, Telegram, the worker of an owner email, and the owner inbox get the same block from one place. The block stays short (at most 4,000 characters), and turns on a test box read most of the prompt from the cache.
2026-11-29: Code keeps the safety and delivery rules, and the companion judges the rest
Decision:
| Fixed in code | Judged by the companion |
|---|---|
| Tasks change only through the task tools | Which project and which task a message is about |
| STOP, START, HELP, and approval replies | Whether a request is a quick answer |
| Results and questions go through the owner outbox | When to ask and what to ask |
| The nudge limits and the team message limit | The words of each message |
| A callback needs the yes of the owner | Whether a mail thread holds an action |
Alternative: keep the keyword handlers, the reference line of a nudge, and the router model of the realtime-goal broker.
Reason: the fixed rules protect the owner or keep a promise about delivery, so a model must not be able to skip them. The rest is language, and fixed rules for language misread owner replies: the nudge reply words and the router sent many answers to the wrong place. Each rule that stays in code is one that a test can check.
2026-12-04: The owner gets the question of a task as the worker wrote it
Decision: for a message of the owner inbox whose task waits on the owner, the owner outbox sends the block reason of the Kanban task and drops the text of the owner inbox turn. The text of the turn goes to the owner only when the Kanban task has no block reason. A result keeps the text of the turn.
Alternatives: a rule in the platform hint of the owner inbox that the companion copies the question word for word. A pre_gateway_dispatch hook that skips the owner inbox turn for a block and posts the block reason itself.
Reason: on a test box, the owner inbox turn rewrote the question "Approve them and I'll make the scene 1 clip" into an offer to make all three clips in one pass, and for an earlier question of the same task it added a note about an older task from the same long session. The platform hint already asked for the one question in plain words, so a rule for the model does not keep the words. The owner says yes to the exact words of a question, and the worker already writes the block reason for the owner, so the box sends those words. The hook was rejected because whether a Kanban wake passes pre_gateway_dispatch depends on the delivery path of the Hermes version, while the route of the owner outbox is one place in Joshu that every question passes. The cost is one owner inbox turn for each question whose text is dropped. The worker can write markdown in a block reason, so the SMS route of the owner outbox passes each text through smsModelReplyPlaintext, which removes the marks and keeps the words, the line breaks, and the links.
Shorter decisions
- 2026-11-29: text messages become a Hermes platform of a Joshu plugin (
joshu_sms). The Twilio webhook stays in Joshu for the signature check and the safety replies. The gateway then gives text messages the same session, queue, and hooks as Slack and Telegram, and Joshu drops its own turn deadline for SMS. The alternative, SMS as an api_server client withPOST /v1/runs, works too, but Joshu would keep its own session ids, turn deadline, and second-message handling for one channel. - 2026-11-29: results come back through the owner inbox (
joshu_inbox).task_startsubscribes the Kanban task to chatownerin modewake, not to the chat where the owner asked. A subscription to the origin chat was rejected, because a Slack or Telegram reply would then skip the owner outbox, and a request by voice or by email has no chat to subscribe. Modenotify+wakewas rejected, because it sends the raw Kanban notice to the owner. - 2026-11-29: the owner outbox chooses the route and sends Slack and Telegram through Hermes. The owner outbox left
src/realtimeGoals/forsrc/ownerChannel/outbox/.hermes senduses the credentials of the gateway, so a bot token that only sits in the Hermes settings works. A Telegram token that lived only there once left results stuck on a box. - 2026-11-29: voice is a scribe. The voice agent starts a task with
start_taskand keeps talking, athinkcall past the voice time budget becomes a task, one pass over the transcript makes the tasks that the talk missed, and a callback needs the yes of the owner. Seevoice-agent-tools.md. - 2026-11-29: gateway settings for owner channels. Joshu writes the settings of section "Gateway settings" because the gateway sends notices of its own to a platform chat (a missing home channel, a restart, a raw Kanban notice, and approval prompts), and all four were seen on a test box.
busy_input_mode: queueholds for the whole profile, which is the setting the design wants on every owner channel. Approval prompts onjoshu_smsandjoshu_inboxgo to the approval path of the box, which asks the owner in plain words. - 2026-11-29: linked Kanban work keeps its boards.
ea-scheduling,ea-owner-reply, andteam-<team slug>keep their Kanban tasks. A worker of the first two asks the owner with a question task that links to its Kanban task, and a team board is the project board of the team project. Tracks stay Kanban tasks without tenantowner, so they are not tasks. - 2026-11-29: nudges read the open questions of tasks. The proactive tick reads the Kanban tasks with tenant
ownerthat are blocked withneeds_input, leaves out held tasks and tasks that wait on another person, and sends through the owner outbox without a reference line and without reply words.
Limits and failure modes
- Each owner message costs one companion turn, also a one-word reply. The project block is short and most of the prompt comes from the cache, but the time to the first reply is longer than a fixed keyword handler.
- The companion can misjudge a request. It can start a task for a request that it could answer, or answer at length a request that needed a task. The prompt and the acceptance tests cover both, and a long chat turn still ends, because Kanban work never runs in the chat turn.
- A message waits behind a long reply.
busy_input_mode: queueholds for the whole profile, so a second message waits until the running reply is done. - A detail restarts a running worker, and work that is not in a comment or a file is done again.
- A merge gives the open Kanban tasks new ids. An old Kanban task id in a message or a note points to an archived Kanban task.
- The owner inbox session grows with every result. Hermes compacts idle gateway chats in the background, and each wake turn needs only the event and the project block. A result can still pick up a fact of an earlier task from the session. A question cannot, because the owner gets the block reason.
- A task file can be missing or stale. The defaults keep the task usable, and the morning cleanup removes each file whose Kanban task is gone.
- The Slack channel window is short. The companion reads at most the last 20 messages of the channel, none older than 24 hours. The owner pastes or links an older message.
- The
joshu_smslistener can be down. The webhook keeps the text in the pending file for up to 24 hours and posts it again every 30 seconds. The owner gets one short text that the box will answer shortly. - Hooks fail open. When Joshu does not answer within 3 seconds, a turn runs without the project block, and a Slack or Telegram message is not in the owner message record.
- Telegram was not run on a test box with the switch on before the first release with this design.
Code map
| Part | Files |
|---|---|
| Switch | isOwnerProjectsEnabled in src/ownerTasks/switch.ts |
| Task service, next step, projects, merge | src/ownerTasks/service.ts, src/ownerTasks/projectsStore.ts |
| Task files | src/ownerTasks/taskFile.ts, src/ownerTasks/paths.ts |
| Project block | src/ownerTasks/block.ts, GET /api/owner-projects/block in src/ownerTasks/routes.ts |
| Routes of the task API | src/ownerTasks/routes.ts (/api/owner-projects/*, localhost only) |
| Task and project tools | scripts/lib/owner-projects-mcp.mjs, scripts/joshu-connectors-mcp-http-server.mjs |
| Kanban bridge | src/hermesKanbanBridge.ts, scripts/hermes-kanban-bridge.py (create with goal_mode, tenant, created_by; notify_subscribe, reclaim, archive_board) |
| Plugin | .hermes/plugins/joshu-owner-projects/ (platforms.py, hooks.py, cron_guard.py) |
| Gateway settings and plugin list | syncOwnerProjectsPlugins and syncOwnerProjectsGatewaySettings in src/hermesApi.ts |
| SMS intake | handleOwnerProjectsSms in src/twilioSmsGateway.ts, src/ownerChannel/outbox/smsPlatform.ts |
| Owner message record | src/ownerChannel/messageRecord.ts, src/ownerChannel/outbox/recordWriters.ts |
| Owner outbox | src/ownerChannel/outbox/ (index.ts, taskPolicy.ts, taskDispatcher.ts, taskSenders.ts, hermesSend.ts, routes.ts) |
| Approval prompts | src/ownerChannel/approvalPrompt.ts |
| Voice scribe | packages/voice-realtime/src/ownerProjects.ts, src/ownerTasks/voiceRoutes.ts |
| Nudges | src/proactive/tick.ts, src/proactive/sweep.ts, src/proactive/ownerOutbox.ts, src/proactive/settings.ts |
| Multiplayer | src/teams/service.ts |
| Migration of realtime goals | src/ownerTasks/migration.ts |
| Hermes Admin shortcut | hermes_admin_shortcut_hidden in scripts/lib/arozos-desktop-shortcuts.sh |
| Configuration | JOSHU_OWNER_PROJECTS, JOSHU_OWNER_PROJECTS_STATE_DIR, JOSHU_OWNER_SMS_PLATFORM_PORT (see .hermes/plugins/README.md) |
| Tests | npm run test:owner-tasks, test:owner-nudges, test:owner-projects-migration, test:owner-projects-plugin, test:owner-approval-prompt, test:owner-projects-hermes-config, test:owner-channel-outbox, test:voice-scribe |
This page comes from docs/technical-reference/owner-projects.md in the open-source Joshu repo.