Docs / How it works

Local admin app (the agent's own interface)

Status: built (app/apps/admin and app/apps/server; screens Overview, Mail (home), Messengers (Chats, Settings), Activity, Knowledge, Settings (Sending, Checks, Mail, Agent, Connections, This Mac), Help; Client planned). Next.js (decision 0015). English UI only.

What

A small local web app (Next.js + React) on the owner's Mac. It shows what the agent did and holds the owner's decisions, nothing else (decision 0025): the drafts the agent left unsent in Mail, each with its reason and checks; what the agent did with every client, one group per session; the project's standing. The owner reads, then sends one draft at a time (or the Checked drafts of one batch with Send all Checked, one at a time on the server, P85b: 14-bulk-send-interface.md), skips, holds, marks done, flags a client or stops sending. Preparing (choosing clients, a brief, enrolling in follow-ups, sorting) is a phrase in a session; the admin has no form for it and shows the result. The agent may also change the app's own screens while the owner uses it (live edit); the dev server's hot reload shows the change at once.

Agents reach Mail and Notion through their own connectors (mail-mcp for Apple Mail, the session's Notion connector); the hub gives them local tools (draft_write's record and client_record (hub mcp), hub sequences, the knowledge MCP, the hub MCP with draft_write for Mail drafts, the guard) and the database; the admin shows the state those leave.

It replaces a hosted helper app and, over time, the screens of a hosted back office that the agent now covers.

Why local

Components

Base: coss ui (https://coss.com/ui), built on Base UI + Tailwind v4, shadcn-like registry plus a particle catalogue of ready patterns. Skills coss and coss-particles are installed globally (~/.agents/skills, symlinked to Claude Code). Rules from the skill that bind us:

The core workspace also has app/apps/storybook (@hub/storybook) as the visual theatre for these shared surfaces. It runs Storybook 10.6.8 (the current stable release recorded for this workspace), composes public @hub/ui subpaths with local fixtures, and never imports admin features, generated clients, project data or runtime sessions. The baseline stories include the agent panel (AgentPanelFrame, the terminal view, resize dock and dictation control), the shared Mail/Messenger conversation frame, the visual Markdown editor, list/detail shells, identity and filter controls, tooltips, themes and the main page/product surfaces. Use pnpm storybook for the interactive theatre, pnpm storybook:typecheck for its TypeScript boundary and pnpm storybook:build for the production artifact. A new reusable product surface is not complete until its named light/dark, narrow and interaction states are represented there; Storybook is an adopter and contract, not a second place to implement UI.

Messenger settings have one compact project-level policy (language and global instruction; the response mode and provider were deleted, P119 C2). Per-chat reply mode, language, pre-analysis and instruction controls are advanced exceptions under linked chats (the follow-up rule is gone since migration 0040); nothing delivers in the background, and every Messenger response is an unsent draft until the owner's Send, or decision 0046's owner word, passes the guarded send door (P112 S2). Decision 0048's autopilot (P139 A5) is the one exception, in chats the owner switched on: the stock Switch (through SettingSwitch) "Autopilot" in a linked chat's conversation header and on its line under Linked chats, with a state line under the header's facts ("Autopilot · answering", "Autopilot · dry run", "Autopilot · paused: ,

Shape

One source per fact (decision 0009)

Notion is the one place for client records; Mail is the one place for the text of a draft. The admin database holds only what exists nowhere else.

Data Lives in Admin database
Client profile, leads, tasks, documents (reports are documents, decision 0022) Notion (the agent writes it through the connector) only the key: a clients row (project, email, name, replies owed, last contact, updated_at), made when the agent records a draft for that client. Nothing is copied in bulk; there is no sync
Draft text Mail (an unsent draft the person edits and sends) no copy: drafts.body is empty for a recorded draft (an optional 240-character preview at most); mail_ref points at the message
Draft review state ("I read the checks", done, hold, skipped), marks, batches, sequence enrolments, follow-up plans and sweeps (decision 0050), the agent's run log admin database only yes
Project facts, filters, knowledge files under <projects folder>/<slug>/ (<HUB_HOME>/projects; see 08-local-app-stack.md) an index rebuilt from them

A session reports each unsent draft it leaves with draft_write's record (hub mcp, P129 A3; one JSON answer, 0 only when it says "ok":true). The command writes straight to the database (no server needed), makes the client row if it is missing, and keeps one open draft per client: the same mailRef again updates it, another one marks the old draft skipped and inserts the new one. It never deletes a client (marks and the log hang on that row) and never writes sent. Sent detection (14) finds a recorded draft in the project's Sent mailbox in Apple Mail once the person has sent it from Mail, by its own recorded Message-ID only. A reply in its thread that is not the Hub's (a teammate on a shared mailbox), or another person's Notion Last sent by newer than the client's last message, is one line on the open card ("… · your draft may be out of date", P90); it never changes the draft. Because Notion owns the client record, the admin has no company or deal-value column, no "High value" filter and no {company} placeholder.

Manual reply editor

When a client has written and no unsent draft exists, Mail shows the owner's Markdown editor alongside the conversation. It has formatting actions and a live preview, keeps the saved value as Markdown/plain text, and supports Cmd/Ctrl+Enter and Escape. Saving calls POST /api/projects/:slug/clients/:id/draft, which writes one unsent draft through the same Mail writer as agent drafts; it never sends. Prepare reply remains the optional agent path, and the send door remains a separate owner confirmation.

The routes behind the screens

Everything the server answers here is local: the database, the project folders and the server's own loops, read in the request. No route reads Mail or Notion to show a number, so no number carries a freshness stamp.

A refusal is { error, code } (@hub/contract/errors). Every refusal the Hub states is a HubError (@hub/config/errors, P126 E1) whose kind gives the status: invalid 400, not_found 404, wrong_state 409, unavailable and busy 503, forbidden 403, upstream 502 (wire code server). The server's onError answers it, so a route catches only to add words (a Telegram or WhatsApp failure is named, Mail's slow save is explained) or a header (retry-after on a second core check, 429). A repository's invalid is 400 and its unknown_project 404.

Route What it does Cost
GET /api/overview One row per project (status word, to review, sent today) with its standing (statusDto: level, the worst fact as one sentence, at most one place that fixes it, reply owed, last triage), a sentence that counts projects, and the health snapshot. With one project the admin shows the standing as the Mail status line; with two or more, as the Overview table milliseconds
GET /api/projects/:slug/inbound, GET …/inbound/:id, GET …/inbound/:id/text, POST …/inbound/check, POST …/inbound/:id/dismiss, POST …/inbound/undismiss, POST …/mail/inbound/:id/move P96 Inbox: the clients who wrote and have no draft (at most 30, the total, the reader's state); one message's state from the Hub's record (P98: open or not, their drafts, the draft that answers it, other messages; refreshed by the live topics, so a draft the agent records turns the open card into "Draft ready" at once) and, as its own read, the client's text from Mail now (read only, on open and on focus); Check now (one read pass, awaited); No reply needed and its Undo; Spam and Delete (P147 3n, `{to: junk trash}, the admin's Origin only, never refused for who sent it). The reader also records the Message-ID Mail gave a mail the Hub sent (send_log.sent_message_id, drafts.sent_message_id`), so a reply to it matches its thread.
GET /api/projects/:slug/conversations, GET …/clients/:id/conversation, GET …/clients/:id/conversation/mail, GET …/clients/:id/conversation/text?m= P99: the list of people (one row per client, its state word, its open draft; view needs_you, waiting, all or sequences; search, batch, paged), one conversation's header and unsent message from SQLite, the history read from Mail now (their messages by sender contains, ours from Sent narrowed by the thread subjects; threads by References, else the subject without Re:; the last 30 messages, earlier the rest; source: hub with the reason when Mail cannot be read) and one body read on demand SQLite; the history about 1 s of AppleScript per open (spike of 2026-11-21: 0.9 s for 13 messages on saas, 1.1 s on realty), the body one read, then the server's memory
POST …/clients/:id/conversation/refresh P140 R5: the conversation header's Refresh (stock ActionButton, "Refreshed" for 2 s). One Mail reader pass and the Sent pass, the client's cached Mail locations and bodies forgotten, the client's linked WhatsApp chats refilled (Telegram has no per-chat catch-up, so none is faked); answers { ok, ms, mailRead, chats, stored } and writes one ops line conversation refreshed. Inbox's Check now also refreshes the open conversation (it touches mail, inbox, sends and messengers) and writes mail checked by hand
GET /api/activity P73: the agent's client decisions as one timeline, newest first, 100 a page (view all, needs_you, drafts or skipped; client; before, the previous page's next): one row per decision (who, what happened: drafted, updated the draft, skipped, escalated or flagged, the agent's reason, the draft it points at, the skill the event names), the counts per view and the narrowed client. Runs are not read: a run is not a session milliseconds
GET /api/projects/:slug/follow-ups, POST …/follow-ups/sweep, PUT …/follow-ups/:clientId P142 (decision 0050): the follow-up plans with their derived state and the sweep line (Overview's "Follow-ups today", Activity ▸ Follow-ups at ?kind=follow-ups), Run follow-ups now (at most 3 a day, joins a running sweep), and the owner's Change date, Stop or Resume (exact admin Origin, Sec-Fetch-Site: same-origin, no ticket). Live topic follow-ups: 30-follow-ups.md
GET /api/watch, GET /api/projects/:slug/watch, POST …/watch/groups/:username/join P144 (decision 0052): the projects that watch public groups (the nav draws Watch only when one does), one project's Watch page (?days=, ?trigger=, ?group=; 404 without a watch.md, 503 with the reason while its list or lens is broken), and Join (exact admin Origin, Sec-Fetch-Site: same-origin, loopback Host). Live topic watch: 31-watch.md
GET /api/instance, GET /api/instance/logo The brand header's name and whether a logo exists; the logo file itself (404 when none), so the browser never learns a path milliseconds
GET /api/connections The Notion token and the Telegram bot, derived per request from state/secrets/*, the projects' settings and the in-memory test results, and each project's mail accounts with whether Apple Mail has them. No value: a row says where a key stands, never what it is milliseconds
PUT /api/connections/:id/secret Body { value } (a Notion or Telegram token). Checks the shape, writes the file (temp and rename, mode 600), forgets the old test result, returns the row. 400 for a key that cannot be one, 409 where a key cannot be set. Nothing returns the value milliseconds
POST /api/connections/:id/remove Deletes the key file and returns the row. 409 for a key set by an environment variable or a row with no file milliseconds
GET /api/instance/autostart, POST /api/instance/autostart {enabled} Settings ▸ This Mac (P67, decision 0033): the instance's LaunchAgent (installed, on, loaded, running, started by launchd or by hand, the last start, the start guard, whether mail-mcp answers) and the switch: Off is launchctl disable plus state/autostart/off, On is launchctl enable (and bootstrap when not loaded); never bootout, kill or kickstart, never a plist write; the label is the server's; the POST is the exact admin origin's; live topic autostart; HUB_LAUNCHCTL=fake (needs HUB_DB) for e2e milliseconds (two launchctl calls)
GET /api/instance/core, POST /api/instance/core/check The core update notice (P68, decision 0034): the server's cached answer from state/core-update.json (pin, newest tag, level and reason, the newer tags' subjects, the facts, the command, checkedAt, error); GET never runs git. The POST runs one check now (git ls-remote of the core's origin, one fetch --tags when a newer tag is missing) and answers 429 within a minute of the last; the check bumps the live topic core. Under the fake Mailer no timer runs and a check reaches no origin (the offline answer) GET milliseconds; POST about 1 s, up to 15 s offline
GET /api/projects/:slug/knowledge?filter=&q= The Knowledge table (P70, @hub/contract/knowledge): every entry of the project's knowledge index, one row each (the Open key knowledge:<path>, title, audiences, brands, category, kind, valid until and a status computed on the project's local day: expired, not approved, expires within 14 days, approved), filtered by view (all, attention, expired, unapproved) and by title on the server, with every view's count; at most 500 rows. Read from knowledge_docs only, no file read and no body: whether the index matches the files is the project overview's consistent. 404 for an unknown project.
GET /api/scheme The Hub's parts and how each stands (P63 O1, @hub/contract/scheme): the core, the CLIs, the Notion token and a set Telegram bot, and per project its mailboxes, mail-mcp, the Hub tools, the guard, the knowledge base, the mail filters, the setup, the Notion databases and the send door, each ok, warn, fail or unknown ("Not checked here") with the source's own fix line and the page that fixes it ({ nodes } only since API 29, P81: the drawing's links are the contract's fixed model, never the server's). It runs no check: the Agent tools rows and the CLIs come from the server's caches (none cached: unknown, "Run the check on Settings ▸ Agent"; Agent sessions, kind session, is every row no other part covers, such as the Notion connector's sign-in), Mail's account list is waited for at most 0.4 s milliseconds
GET /api/projects/:slug/agent-tools, POST .../agent-tools/refresh Settings ▸ Agent's Agent tools (P70; the Agents page in P63, on Connections before): the last agentChecks rows of both CLIs for the project (computed on the first GET) and capabilities (P62: the attached connectors, from the resolver that writes the session files), and a rerun (each MCP server asked once per CLI) (24-terminal.md) milliseconds; refresh about 10 seconds
GET /api/terminal, POST /api/terminal/sessions, POST /api/terminal/ensure, DELETE /api/terminal/sessions/:id, POST /api/terminal/sessions/:id/drops, POST /api/terminal/tickets, upgrade /terminal The embedded terminal, always on (decision 0032); a file dropped on a tab is copied under state/drops/ and its path pasted (P76, decision 0041, multipart, 10 files and 20 MiB); the state carries what the CLI detector found (P57) and problem when no tab can start (P66: the starts then answer 503 terminal_unavailable with the fix), ensure starts the best ready CLI when the column opens; the socket goes straight to the API port with the admin's exact origin and a single-use ticket (24-terminal.md) milliseconds; the first ensure after a server start up to about 2 seconds (the CLIs' own --version and sign-in), never more than 8
POST /api/focus The shared focus (P51, P72 decision 0038): this tab's route id and its title from the route table, and refs (<kind>:<id>): the subject (what the address or the open card names), the row he is on, the selection, the rows on screen with the list's total, the view and search, and the outcome of the agent's last highlight; exact admin Origin and Sec-Fetch-Site: same-origin, strict body; kept in memory and in state/focus.json (schema: 2, ids only) for hub focus and hub mcp (24-terminal.md). No GET milliseconds
GET /api/pointer The agent's pointer (P72): what highlight in hub mcp wrote to state/pointer.json (up to 5 refs, a note, 30 s), each ref's title resolved inside the pointer's project, or {pointer: null}. Read on the live topic pointer; the admin never writes it milliseconds
POST /api/local/:action The local Open actions (P61) of the registry @hub/contract/local whose transport is server: finder.open (a folder key: project, knowledge, workflows), finder.reveal (any key, selected in Finder), file.open (project.md, knowledge:<entry>, log:<YYYY-MM-DD>; only .md .txt .csv .json .jsonl). The body is a project and a KEY, never a path: @hub/projects/local-open resolves it inside the key's own root (a knowledge entry must be in the project's index; a link, a bundle folder, .. and anything outside is refused) and runs /usr/bin/open with an argv array. Exact admin Origin and Sec-Fetch-Site: same-origin (the focus door), strict body; one open per action and key per 500 ms (429); 501 off macOS and for agent.openInDesktop (declared, not offered: owner item 7); an href id is 404 (the browser opens message:, mailto: and notion: links itself). The reply is {ok, opened: "<label>"}; no reply holds a path. GET /api/instance carries localOpen milliseconds
GET /api/projects/:slug/drafts/:id/mail, PUT the same, POST .../mail/restore The open draft as Mail holds it (decision 0013: read live, never stored): the thread decides (P65): the one draft of the project's accounts whose In-Reply-To is the mailRef and whose To holds the client, whoever last edited it; two or more are shown without a hash, naming which one the Hub wrote (its mail_versions record), unless they are all the Hub's: the read first adopts the Hub's own late saves (P65 S5: matched by hash to mail_writes and mail_versions), keeps Mail's newest version and moves the Hub's older ones to Trash, then reads again; others of the same subject are named (aside) and never touched; Mail holding no draft at all is gone, with the newest version the Hub recorded in Trash (found by its Message-ID) for Restore. The card shows exactly the Mail text: nothing of the Hub's is in it (decision 0031). A read that shows another text than the one Checked was bound to turns Checked off. PUT {text, hash} is the owner's Save (P56 S1) and restore writes the Trash copy again (P56 S0): both through the agent's one writer (reviseDraft), each recorded as a Mail version, the send ticket's door (exact admin Origin, Sec-Fetch-Site: same-origin), Checked off, live topic mail; a Save over a hash Mail no longer holds is 409 one or two osascript calls (about 0.3 s a read; a write several seconds)
GET /api/messengers/telegram-user, POST /api/messengers/telegram-user/login/{start,code,password,cancel}, POST /api/messengers/telegram-user/:account/disconnect The Telegram user account (P71 M1, decision 0036): the supervisor's state (also telegramUser in /api/health: one row per account, running, error or parked with logged_out, banned or flood_wait and its fix line; a parked account is a Telegram part that is broken on Overview, never reconnected by itself, not even after a restart). The login is one call per step: {apiId, apiHash, phone} asks Telegram for the code, then {flow, code}, then {flow, password} when the account has 2FA; the values stay in server memory for the flow (10 min) and are never logged or returned; only the final session is written, to state/secrets/sessions/telegram_user-<id>/session (mode 600), and the account connects. Disconnect stops it and removes that folder. Every POST is the exact admin Origin's with Sec-Fetch-Site: same-origin; 409 without one messenger project. Messengers ▸ Settings drives them (P71 M3) milliseconds; a login step is one Telegram call (about 1 s)
GET /api/messengers/whatsapp, POST /api/messengers/whatsapp/connect, POST /api/messengers/whatsapp/connect/{state,cancel}, POST /api/messengers/whatsapp/:account/disconnect, POST /api/projects/:slug/messengers/whatsapp/:account/{dialogs,link} WhatsApp as a linked device (P71 M5, decision 0036): the supervisor's state (also whatsapp in /api/health, the same rows as the Telegram accounts; the account is the number's digits; 401 parks as logged_out, 403 as banned). Connect opens a pairing only on the owner's click; {flow} reads its state every 2 s: waiting, qr with the code as module rows (0/1, never the QR string), done with the number and his WhatsApp name, or failed with the sentence (an expired code: press Connect again); nothing is written before the phone scans; then Baileys' creds and keys go to state/secrets/sessions/whatsapp-<number>/ (files 600, folder 700) and the number connects. The picker lists the private chats seen since the connection opened (memory only, never a text of an unlinked chat); Link writes the whatsapp identifier, allows the chat and imports what the phone answers to a history request (15 s at most). Disconnect logs the device out on WhatsApp's side and removes the folder. Every POST is the exact admin Origin's with Sec-Fetch-Site: same-origin milliseconds; Connect opens a socket to WhatsApp (about 1 s); a link waits up to 15 s for the phone
POST /api/projects/:slug/messengers/telegram-user/:account/dialogs {clientId}, POST .../link {clientId, chatId, title?} The link picker (0036 point 3): the account's newest 200 private chats with people, read on demand and never stored, each suggested when its Telegram id or phone equals one of the client's identifiers (never linked for him) and linked when already allowed. Link writes client_identifiers (kind telegram), allows the chat on telegram_user, imports its last 30 days through the one ingest and answers how many were stored; it mints a HumanActor behind the same gate (0036 point 7). A chat that is not linked leaves no row anywhere. Nothing here sends picker about 1 s; link one history read
GET /api/projects/:slug/messengers/chats?filter= (waiting, all), PUT .../messengers/drafts/:id/text {text}, POST .../drafts/:id/skip, POST .../drafts/:id/restore, PUT .../messengers/chats/:id/rules, GET .../messengers/clients?q= The Messengers section (P71 M3, @hub/contract/messenger-panel): the project's linked chats, waiting first, each with its client (by client_identifiers), rules, newest stored message, owed and the agent's open draft, with both views' counts; the owner's Edit of a draft that still waits (reviseDraft), Skip (discarded) and its Undo (back to draft); one chat's rules through setChatRules (the bounds of @hub/config/chat-rules, checked again); the link picker's client lookup (two or more characters, at most 8, never every client). Every write is the exact admin Origin's with Sec-Fetch-Site: same-origin, since an instruction steers the agent and a draft's text is what Send will carry. Nothing here sends milliseconds
POST /api/projects/:slug/messengers/autolink/{state,preview,records,link,create,hide,unhide}, POST .../messengers/chats/:id/{unlink,never} Chats link themselves (P84, decision 0036 point 3 as amended 2026-11-20, apps/server/src/messengers/autolink/autolink.ts): state is the project's messengers.autolink, the Notion client directory's state (read only into memory, never stored) and, from memory only, the unlinked dialogs the accounts saw since the server started (name, why not linked, the matching records) and their count; preview is the dry run, counts only per account (dialogs, linked, unique, ambiguous, no email, unique by Relationship), nothing written and no name, number or text in the reply; records finds up to 8 Notion records by two or more characters of a name, email, Telegram username or phone, in memory and by one live read-only Notion query (P100; hits are put into memory; live and liveError say whether Notion answered); link {channel, account, chatId, key} links a seen dialog to a record (the client row from its email and name, a HumanActor behind the gate, 30 days imported) and fills the record's empty Telegram or WhatsApp with the chat's username or number (P100, never a filled one; the reply's notion says what was done); create {channel, account, chatId, name, email} (P100) makes one Clients page in Notion (Name, Email, Relationship Lead, the chat's username or number), or links to the page that already has that email, then links the chat (a 409 with the fix when Insert content is refused); unlink removes the identifier, the chat, its messages and drafts; never does the same and stores the chat's HMAC in messenger_link_refusals. hide (Hide: not a client, P84c) stores an unlinked chat's HMAC there too, and unhide removes it. Every route is the exact admin Origin's with Sec-Fetch-Site: same-origin. Nothing here sends milliseconds; preview reads the dialog lists (about 1 s); link one history read
POST /api/projects/:slug/messengers/drafts/:id/send {apply:false} or {apply:true, confirm:{chatId,text}, ticket} The send door for one messenger draft (P71 M4, decision 0036 point 7, packages/messengers/src/door.ts, P126 D1): the dry run answers the chat, the account, who and the exact text, or 409 wrong_state with every refusal in words (the draft no longer waits; no inbound message in the chat; not linked; the account not connected; Stop sending; draft.recipients: test and no telegram:<id> entry in allow_list; 30 sends in 24 h or one under 20 s ago on the account); the apply needs a ticket from POST /api/sends/tickets with kind: "messenger", refuses a text or chat that changed since the dry run, writes its send_log row first (channel, messenger_draft_id; the cap and spacing checked again in the same write), sends once and never retries; a failure is recorded and the draft waits again a second (the send)
POST /api/projects/:slug/batches/:id/send, POST /api/sends/batch-tickets, GET /api/ops/errors Send all Checked of one batch (P85b: dry run, one ticket for the confirmed drafts and text hashes, the run on the server with progress and Stop): 14-bulk-send-interface.md; Overview's Recent errors from the ops log (P86): 28-ops-log.md a send per draft, 20 s apart; the errors read milliseconds
POST /api/sends/tickets A single-use ticket for one draft's Send (60 s), only for the admin's exact origin with Sec-Fetch-Site: same-origin; the apply of the send route needs it (P49 S12) milliseconds
GET /api/live The live stream (P50, below): text/event-stream of tiny frames that name what changed (hello, change {seq, changes: [{topic, project}]}, reset), never the data; resume by Last-Event-ID or ?since=; a : ping every 15 s; at most 16 streams (then 503). Read-only, same Host guards, no CORS header open while a page is
POST /api/connections/:id/test One read-only probe of one connection (Notion users/me, Telegram getMe). At least 30 seconds between two probes of the same connection; the result is kept in memory for an hour. 404 unknown id, 409 when the connection has nothing to test seconds

The standing of a project is a pure function of local facts (for example Stop sending, a failing Sent loop or doctor check, held suspicious mail, failed or stuck sends, the project still a draft, sends limited to the test list, the fake Mailer, the auto-send cap, expired knowledge, never triaged), so the status line and the Overview read one source and a model writes no sentence. The worst fact wins and is said once ("Sending is stopped", "Test mode: sends go to the test list only", "All clear"); test mode is a setting the owner chose, so it is level clear: said when nothing worse is, never a dot or a "Needs you" item (UX pass 2026-11-20), while expired knowledge is attention. next names the one page that fixes it (P70: Settings ▸ Sending for sending, the cap and test mode; Overview for what is fixed by a phrase in a session, a failing setup check, a draft project; Knowledge for expired entries; the other Settings panes for their parts), and that page carries a dot in the nav (a child's dot also lights its parent, and a parent in the phone's More lights More); an Agent tools row that needs a fix or a look puts the dot on Settings ▸ Agent, and every part Overview lists under "Needs you" lights the page it links to, so a dot and its item always come together. The to-review count belongs to the nav and the View menu and is never repeated in the line. Paused and archived projects raise nothing.

The Notion token is optional for setup (hub setup asks for nothing; hub setup --automation, ./run.sh token notion or Settings ▸ Connections store it in state/secrets/notion-token, or in the file a project names in its settings; a project that names its own file never falls back to the shared one). It is read by the project doctor's database check, notion-dump and backups; the admin's home shows no Notion count.

What the Overview never carries: a client's name, address, subject or body, a deal value, a Notion property or a Notion page id of a record. The schemas have no field for them and refuse a stray one.

Live updates (P50, decision 0028 in the owner's plan repo)

While the agent works (in the terminal column or another window) the screens update by themselves, within about a second, with no reload:

What a screen shows by default

Each screen opens on what the next decision needs and keeps the rest one step away (app/@rules/admin-principles.md). Mail has one View menu with counts (DRAFT_VIEWS, app/apps/admin/src/routes/search.ts; the view is ?filter=; P99): Needs you (needs_you, the address default: Wrote you and Draft ready), Waiting (waiting), All, then the filters Follow-ups (sequences, the open steps of a follow-up sequence, 23-sequences.md) and Not by email; Hold, Sent and Finished are words and chips on a row, and the batches read-only (?batch=). Above the list sits one status line, never a paragraph or an accordion. A row is three lines (name and time, the subject on the full width, a line of chips); selecting turns the list's header line into "N selected · Skip · Hold · Clear" in place, so nothing moves. The list footer "N of N loaded" shows only when there is more to load. A failing setup check is a "Needs you" item on Overview, named with its detail; passing checks are not listed (hub project doctor <slug> lists them all). An Open lives on the thing it opens (P70, app/@rules/admin-principles.md rule 12): Knowledge's header has Open folder and each entry row its Open; the files no screen lists (project.md, the project folder, Workflows, today's agent log) are on Help; off macOS (localOpen false) none of them renders. A mechanical cap holds the first viewport to 36 tab stops and the first draft on a phone to 200 px down (app/@rules/ui-specifications.md rule 4a).

Rules

Not built

The Client screen (profile and correspondence chain).

Open questions for the owner

Update this page when the architecture changes.

Source: @docs/core/06-local-admin-app.md