Docs / Setup
Setup checklist
Work top to bottom. hub doctor runs every box below that is not an optional extra and prints PASS, WARN or FAIL per step id; hub doctor --automation adds the extras. A FAIL names its own fix. hub guide prints the by-hand steps. Which access goes to what: @docs/setup/access.md.
Tools
- Node.js 22.20 or newer (
tools.node)- Proves:
node --versionreports 22.20 or newer. - You: Install Node 22.20 or newer: with nvm
nvm install 22 && nvm alias default 22, else with Homebrewbrew install node. Open a new terminal and runnode --version.
- Proves:
- pnpm (
tools.pnpm)- Proves:
pnpm --versionanswers. - You: Run
corepack enable pnpm(ships with Node) ornpm i -g pnpm.
- Proves:
- Claude Code CLI (
tools.claude)- Proves:
claude --versionanswers. - You: Install Claude Code from https://claude.com/claude-code and sign in once interactively with
claude.
- Proves:
- git (
tools.git)- Proves:
git --versionanswers. - You: Run
xcode-select --install(Apple's command line tools bring git), orbrew install git.
- Proves:
- GitHub CLI (optional) (
tools.gh)- Proves:
gh --versionanswers. Missing is a WARN, never a FAIL. - You:
brew install gh, thengh auth loginwith your own GitHub account.
- Proves:
- At least 5 GB free (
tools.disk)- Proves:
df -kon the instance folder reports 5 GB or more available. Less is a WARN with the numbers. - You: Free space (empty the Trash, delete old node_modules, check
sysctl vm.swapusage), then rerun ./run.sh setup.
- Proves:
- The instance folder is not in a synced cloud folder (
files.unsynced)- Proves: The instance folder is not under ~/Library/CloudStorage, ~/Library/Mobile Documents, ~/Google Drive, ~/My Drive, ~/Dropbox, ~/OneDrive or a Google Drive volume.
- You: Clone the instance again into a local folder:
git clone --recurse-submodules <repo> ~/workspace/hub-<name>, then./run.sh setupthere; delete the synced copy once nothing local is left in it.
Files
- Working folders (
files.dirs)- Proves:
state/runs,state/clients,state/historyandstate/secrets(the git-ignored secrets folder, not readable by others) exist. hub installfixes it: Creates the folders; the secrets folder gets mode 700.
- Proves:
- Config files (never overwritten) (
files.config)- Proves:
config/mcp.jsonexists and parses. hub installfixes it: Copies a default fromapp/apps/installer/templates/only when the file is missing.
- Proves:
- Settings file (never overwritten) (
files.settings; optional extra,--automation)- Proves:
config.jsonexists, parses and has every required key. hub installfixes it: Copies a default fromapp/apps/installer/templates/only when the file is missing.
- Proves:
- Settings file holds no key nothing reads (
files.config-keys)- Proves: Every top-level key of
config/config.jsonis one the hub reads (name,logo,account,mailboxes,sent_mailbox,allow_list,extra_dirs,admin_port,api_port,backup_dir,backup_repos,log,agent,llm). An unknown key is a WARN naming it, never a FAIL. A retired key (agent.unattended: one permission mode since 2026-11-25) is a WARN too: read by nothing, it changes nothing. Nothing is changed or deleted.
- Proves: Every top-level key of
- Instance brand (name and logo) (
files.brand)- Proves: When
logois set, the file exists (a relative path is read from theconfig/folder). No logo, or no name, is a PASS: the admin says "Hub" and draws a monogram. A missing file is a WARN. - You: Put the logo file (svg, png, jpg or webp) where
logoinconfig/config.jsonpoints, or removelogo.
- Proves: When
- No mail login files left (
files.mail-logins)- Proves:
state/secrets/holds nomail-*.json. One is a WARN naming the files; nothing is deleted. - You: Delete the
mail-*.jsonfiles the row names fromstate/secrets/.
- Proves:
- Project .mcp.json (
files.mcp-json)- Proves:
.mcp.jsoncontains every server ofconfig/mcp.jsonand the core'shubserver (stdio programs as absolute paths under the core,hubon the hub's own Node), every stdio server command in it exists, and it holds no server the core no longer ships (knowledge-mcp, whose tools are thehubserver's since P129). hub installfixes it: Merges the servers ofconfig/mcp.jsonand the core'shubserver into.mcp.jsonwith stdio paths made absolute under the core, drops the servers the core no longer ships, keeps your other servers, saves a one-time.mcp.json.bak.
- Proves:
- App database (
files.app-db)- Proves: The database file exists (
data/app.dbof the instance). hub installfixes it: Runs the app'sdb:migratescript (pnpm --dir app run db:migrate).
- Proves: The database file exists (
Skills
- Agent skills linked into the instance (
skills.runtime)- Proves: Every core skill is a symlink in
<instance>/.claude/skills/that resolves to the core's skill (a real folder of the same name is the instance's own and passes). hub installfixes it: Relative symlink per skill into<instance>/.claude/skills/(git-ignored, regenerated;hub agentdoes the same on every start). A real folder of the same name is never replaced.
- Proves: Every core skill is a symlink in
- No hub skill links left in the user's home (
skills.legacy)- Proves:
~/.claude/skillsholds no symlink into a hub core. Read only: the hub never deletes outside the instance; the warning prints the one command to run.
- Proves:
Projects
- Projects (one folder each) (
projects.registry)- Proves: Every
<projects>/<slug>/has a non-emptyproject.mdand aknowledge/folder. With no project yet there is nothing to check. hub installfixes it: Creates the missingknowledge/folders.project.mdis written by the project-setup skill, never by the installer.
- Proves: Every
- The knowledge index says what the entry files say (
knowledge.index)- Proves: Every indexable entry file of every project has its index row with the file's content hash and canonical
brands, and no row is left without its file. Read only (the database opened read-only). FAIL names the paths that differ and the fix:hub knowledge index <slug>.
- Proves: Every indexable entry file of every project has its index row with the file's content hash and canonical
- Project development kanban (@dev) (
dev.kanban)- Proves: Every project has
@dev/(WARN when missing;hub dev init <slug> --applycreates it), its README track table matches the directories (hub dev index <slug>regenerates it) and no plan'sStatus:contradicts its directory (FAIL otherwise). Read only:hub installnever creates it.
- Proves: Every project has
Instance
- Instance matches the core (
instance.core)- Proves:
core.versionexists and names the core in use (core clean at that commit), the instance holds no core files, the core tracks no instance files, and generated skill links point at existing core skills. Newer cores: the server's last update check (state/core-update.json, P68) when it is about this pin: WARN for an update recommended or required, PASS with a note for a patch (update available) or a followed branch, never FAIL for an origin that did not answer; with no such answer, WARN when the core checkout has newervX.Y.Ztags than the pin (local tags, no fetch). The doctor itself reads no network.
- Proves:
- Open buttons reach Finder (
local.open)- Proves: This is macOS and
/usr/bin/openexists: PASS. Otherwise WARN (the Open buttons are hidden andhub openexits 2); never a failure, since nothing else depends on it.
- Proves: This is macOS and
Admin
- The admin listens on this machine only (
admin.loopback)- Proves: If the admin is running, the instance admin port (admin_port in config/config.json, or HUB_ADMIN_PORT; default 5173) answers on 127.0.0.1 and no listener is bound to every interface. Not running is fine.
- You: Stop whatever listens on the admin port, then start the admin with
hub up; it always binds 127.0.0.1.
Server
- The local server answers (
server.health)- Proves: If something listens on the instance API port (api_port in config/config.json, or HUB_PORT; default 4317), it listens on 127.0.0.1 only and
GET /api/healthanswers 200 withok. Not running is a WARN (hub upstarts it), never a pass: this step says nothing about a server that is not there. - You: Start it with
hub up(it binds 127.0.0.1). If the port is held by something else, changeapi_portinconfig/config.json.
- Proves: If something listens on the instance API port (api_port in config/config.json, or HUB_PORT; default 4317), it listens on 127.0.0.1 only and
- The Hub starts after a restart (
autostart.agent)- Proves: macOS only. The instance's plist in ~/Library/LaunchAgents parses, names this instance and a node folder that still has node and pnpm, the instance is not under ~/Desktop, ~/Documents or ~/Downloads, its ports are explicit and not the default pair, no other Hub agent names it or its ports; then: switched off is a WARN; loaded in the login session; not stopped by the start guard (5 failed starts in 15 minutes); it ran since the last boot (else a WARN naming Login Items > Allow in the Background); its log is under 10 MB.
hub installfixes it: write ~/Library/LaunchAgents/com.reforms.hub..plist and state/autostart/, then launchctl bootstrap it (a running agent is left running). It needs admin_port and api_port set in config/config.json (not 5173/4317) first; if macOS shows "Background Items Added", leave it allowed (Login Items > Allow in the Background)
MCP
- hub mcp starts (
mcp.hub)- Proves: The
hubcommand of.mcp.jsonis started exactly as a session starts it (nodeis the hub's own Node) and answers an MCPinitialize. It opens a throw-away empty database, read-only, so the realdata/app.dbis never opened; the process is closed at once. - You: Run
hub install --only files.mcp-json(writes the server with absolute paths), thenpnpm installin the core'sapp/if the program is missing.
- Proves: The
- mail-mcp daemon (
mail.daemon)- Proves:
localhost:8787answers an MCPinitialize(however mail-mcp was started). - You: Install:
brew install dastrobu/tap/mail-mcp. Start it as a service:brew services start mail-mcp.
- Proves:
- Mail account and permissions (
mail.account; optional extra,--automation)- Proves: mail-mcp lists the account named in
config/config.jsonand reads one message from its first mailbox. - You: Open Mail.app and add the account (System Settings > Internet Accounts). Keep Mail.app running. Put the account's exact name in
config/config.json(account) and the allowed sender addresses inallow_list. When macOS asks, allowmail-mcpto control Mail (Privacy & Security > Automation) and allow Accessibility (needed to create drafts). Full Disk Access is only needed if a tool reads~/Library/Maildirectly; the default setup does not.
- Proves: mail-mcp lists the account named in
Messengers
- Telegram bot token for the receive-only poller (optional) (
messengers.token; optional extra,--automation)- Proves:
state/secrets/telegram-bot-tokenholds one<digits>:<secret>line and is mode 600. The value is never printed. - You: Open @BotFather in Telegram, send /newbot and make a bot just for this app. Store the token alone in
state/secrets/telegram-bot-token(pnpm hub token telegramif available, otherwise paste into the file) and runchmod 600on it.
- Proves:
- Telegram accepts the bot token (
telegram.getme; optional extra,--automation)- Proves: Telegram's
getMeanswers for the token instate/secrets/telegram-bot-token(one read-only call; the bot's @name is shown, the token never). WARN when there is no token file (the feature is off) or Telegram cannot be reached; FAIL when Telegram refuses the token or the shape is wrong. - You: If Telegram refuses the token: in @BotFather send /token (or /revoke) for the bot, then store the new one with
pnpm hub token telegram.
- Proves: Telegram's
- The messengers poller is running inside the server (
messengers.poller; optional extra,--automation)- Proves:
GET /api/healthon the local server reportsmessengers.state=runningwith a poll in the last 5 minutes. WARN when the server is down or the feature is off without a token.
- Proves:
- The server can read the Mac's WhatsApp app (history refill, read only) (
whatsapp.app; optional extra,--automation)- Proves:
GET /api/healthreportswhatsapp.appHistoryas the server's own process found it (this check does not open the file itself: your shell's access says nothing about the server's). PASS when it is on; WARN with the one fix when macOS refused it, when the app is not installed, or when its database changed; PASS when no WhatsApp number is connected. - You: If macOS refused it: System Settings ▸ Privacy & Security ▸ Full Disk Access, add the node binary the row names, then
./run.sh restart.
- Proves:
Notion
- Notion integration token (
notion.token; optional extra,--automation)- Proves: The token file is stored with mode 600 and Notion accepts it (
GET /users/me). Which databases it reaches is the next step,notion.access. - You: Easiest: Settings ▸ Connections in the admin, or
pnpm hub setup --automation(plainhub setupasks for no token); both check it withGET /users/me. By hand: Open https://www.notion.so/profile/integrations and create an internal integration; copy its secret. In Notion, open the CRM teamspace (or each CRM database), choose Connections and add the integration. Store the token:pnpm hub token notion(hidden prompt; writesstate/secrets/notion-token, mode 600). Which databases it must reach, and what to share, is checked bynotion.access.
- Proves: The token file is stored with mode 600 and Notion accepts it (
- The integration reaches every database of every project (
notion.access; optional extra,--automation)- Proves: For every project that lists Notion databases: each database in project.md answers to the integration (shared, readable, capability Read content), is not archived and not in the trash, and every database its relations point at (Leads, People, ...) is reachable. A failure names the database and says to share it with the integration under Connections. A relation target project.md does not list that is archived (an optional or legacy module such as Organizations, P145 verdict 9) is a WARN naming the property: the Hub never writes it. Read only: GET requests. WARN when there is no token to test with.
- You: In Notion open the project's teamspace root page, choose
...> Connections and add the integration. Sub-pages and databases inherit it; a database that was moved out loses it, so share again after a move. The integration needs the capability Read content (Notion > Settings > Integrations > your integration > Capabilities). It never writes. An archived database is not a grant problem: point project.md at the live database (## Notion databases) or restore it in Notion.
- Clients carry the client map's date (
notion.client-map)- Proves: Each project's Clients database (project.md,
clients) has the property "Map updated" of type date. Read only: one GET per project. WARN when there is no token to read with, or the name is taken by another type. hub installfixes it: Adds the date property "Map updated" to each Clients database that lacks it (one PATCH of the data source; no other property is touched, nothing is deleted). The integration needs Update content.
- Proves: Each project's Clients database (project.md,
- Clients carry the follow-up properties (
notion.follow-ups)- Proves: Each project's Clients database (project.md,
clients) has "Next follow-up" (date), "Follow-up status" (select), "Follow-ups sent" (number) and "Waiting on" (select). Read only: one GET per project. WARN when there is no token to read with, or a name is taken by another type. hub installfixes it: Adds the missing ones to each Clients database (one PATCH of the data source; the selects with their options; no other property is touched, the CRM's Follow-up on and Waiting since stay the CRM's, nothing is deleted). The integration needs Update content.
- Proves: Each project's Clients database (project.md,
- Leads carry the lead pass properties (
notion.lead-pass)- Proves: Each project's Leads database (project.md,
leads) has "Hub decision" (select) and "Hub reason" (text). Read only: one GET per project. WARN when there is no token to read with, or a name is taken by another type. hub installfixes it: Adds the missing ones to each Leads database (one PATCH of the data source; the select with its options; Status, Owner and Notes are never touched, nothing is deleted). The integration needs Update content.
- Proves: Each project's Leads database (project.md,
- Live property descriptions match the pack (
notion.descriptions)- Proves: Each project database that has descriptions in the pack (
schema/<db>.json,description) holds the same text live. Read only: one GET per database. WARN when there is no token to read with. hub installfixes it: Sets the pack's description on each property that differs: one PATCH per data source, a select's options sent back exactly as Notion holds them (no option, colour or type changes), nothing deleted. The integration needs Update content.
- Proves: Each project database that has descriptions in the pack (
- Every brand is a project option (
notion.projects; optional extra,--automation)- Proves: For each project with
## Brands: Clients hasProjects(multi_select), and every brand row has an option of its key in Clients.Projects, Leads.Brand and theProjectsof the other listed databases. Read only: one GET per database. WARN for an option no brand row claims (another project's brand, or a project with no brand row), for a database whose property is missing or not a multi_select, or with no token. hub installfixes it: Adds the missing options (and creates ClientsProjectswhen missing): one PATCH per data source, the live options sent back unchanged with the new ones; nothing is removed or renamed. The integration needs Update content.
- Proves: For each project with
- Brands, keys and options agree (
notion.project-keys; optional extra,--automation)- Proves: Per project and database:
<brand>-><key>-><matched options>. FAIL when a brand matches no option or two; WARN for an option no brand row claims (neverOther) and for a Clients database withoutProject signals(a formula the API cannot create: its text is in the pack's schema/clients.json). Read only.
- Proves: Per project and database:
- Bug reports database (
notion.bug-reports; optional extra,--automation)- Proves: Each project with a Clients database lists
bug-reportsin project.md, and that database has every property and option of the pack's schema/bug-reports.json, withClientspointing at the project's Clients. Read only. WARN with no token, or for a property of another type (renamed by hand in Notion). hub installfixes it: Creates "Bug reports" under Clients' parent page with the pack's properties and a one-way relation to Clients, then writesbug-reports: <id>into project.md; on a listed database adds only the missing properties and options (nothing renamed or removed). The integration needs Insert content.
- Proves: Each project with a Clients database lists
- Notion connector in the session (
notion.connector)- Proves:
.mcp.jsonlists thenotionserver (hint only: whether you have signed in to it is seen inside a session, with/mcp). - You: In Claude Code run
/mcponce and sign in tonotion; in Claude Desktop enable the Notion connector in Settings > Connectors.
- Proves:
Leads
- Lead form list parses (
leads.config)- Proves:
config/lead-forms.jsonis valid when present (each form has an id, domain, page and endpoint; a signed canary names its secret file bysecretRef, never the secret). No file: PASS, the instance lists no forms. - You: Fix the error the row names in
config/lead-forms.json(shape:@docs/core/22-lead-forms.md).
- Proves:
- Every registry domain has a form entry or an explicit none (
leads.registry)- Proves: Every host in the first column of the registry named by
registryinconfig/lead-forms.jsonis a form'sdomainor is listed undernonewith a reason. WARN, never FAIL, naming each uncovered host. - You: For each host the row names: add its form to
config/lead-forms.json, or add it undernonewith the reason (no form, or another instance checks it).
- Proves: Every host in the first column of the registry named by
- Each public lead form answers (one row per form) (
leads.forms)- Proves: GET only: the page answers 200; a static form carries its listed fields; the page or its own scripts reference the endpoint; the page's CSP lets a script reach it; Turnstile, when configured, is on the page with its sitekey and allowed by the CSP; the endpoint answers a GET with no 404 or 5xx. Silence (
silence.sourcenotion-leadsormailbox, read only): a lead arrived withinsilence.days(or max(14, 3 x the median gap of the last 90 days)), else a WARN, never a FAIL. With--canary: the signed canary is stored, a recipient resolves and the route is configured ({stored, recipient_ok, route_ok}); a handler without canary support is a WARN and gets no POST. Each request 5 s with one retry on a network failure, a form at most 25 s, all forms at once; the row shows the form's own time. - You: Read the row: it names the first thing that failed (page, field, endpoint reference, CSP, Turnstile, endpoint route, canary). Fix it in the site that owns the form, deploy, and run
hub doctor --only Leadsagain (--canarybefore you report done).
- Proves: GET only: the page answers 200; a static form carries its listed fields; the page or its own scripts reference the endpoint; the page's CSP lets a script reach it; Turnstile, when configured, is on the page with its sitekey and allowed by the CSP; the endpoint answers a GET with no 404 or 5xx. Silence (
Watch
- Each watch list names a lens that loads (
watch.lens)- Proves: Every
projects/<slug>/watch.mdreads (a lens name, the on switch, the account, the poll minutes, at most 15 public group usernames), and its lens loads and passes the check:packages/<lens>/lens.json(version, title, prompt, triggers, keep, window, budget) andpackages/<lens>/src/index.ts(declaration, strict schema, facets). PASS when no project has a watch list. - You: Fix the line the row names: in watch.md, in the lens's
lens.json, or in its code (packages/<lens>/src/index.ts). Run./run.sh doctor --only watch.lensagain. The running server takes a fixed watch.md or lens.json within seconds; a change to the lens's code needs a server restart.
- Proves: Every
Agent
- Agent tools (one row per project and CLI) (
agent.tools;hub doctoronly; setup and install never run it)- Proves: For each project and each CLI (Claude Code, Codex): the CLI is found by the owner's login shell and answers
--version(another version than the measured one is a WARN), it is signed in (claude auth status,codex login status), the session files exist, each hub MCP server is configured and answerstools/list(Notion not signed in is a WARN), no tool that sends is reachable, the skills are linked, the mode is in place (the OS sandbox, approval never with the hub's writing tools approved by name; no Codex sandbox bypass), the send policy file parses, Claude's guard hook is set and the session log hooks are in the session files (P54). - You: Run the fix the row names (most often
hub agent <project> --prepare, with--cli codexfor Codex). Runhub doctor --only Agentagain, or Refresh on Settings ▸ Agent in the admin.
- Proves: For each project and each CLI (Claude Code, Codex): the CLI is found by the owner's login shell and answers
- Embedded terminal (
agent.terminal)- Proves: node-pty is installed in the core and loads on this Node, its spawn-helper is executable, the shell a tab starts (
$SHELL, else /bin/zsh) exists, the API port listens on 127.0.0.1 only, and a running server reports no problem (GET /api/terminal,problem: null). The same check the server runs at start (terminalReadiness), so the doctor and the column cannot disagree. hub installfixes it: sets the execute bit on node-pty's spawn-helper in the core (adds only +x)
- Proves: node-pty is installed in the core and loads on this Node, its spawn-helper is executable, the shell a tab starts (
- Claude Code and Codex on the login shell (
agent.clis)- Proves: One detection (each CLI directly first, the login shell
$SHELL -l -ionly for one that is not settled, 45 s): each CLI found, answering--versionand signed in, and what opening the column in a project starts (agent.default's order). Not ready is a WARN with the install or sign-in line, never a FAIL: the terminal works with Shell alone. - You: Install a missing CLI with the line the row names (
npm i -g @anthropic-ai/claude-codeornpm i -g @openai/codex). Sign in withclaude auth loginorcodex login(the sign-in is yours). Runhub doctor --only Agentagain, or Refresh on Settings ▸ Agent in the admin.
- Proves: One detection (each CLI directly first, the login shell
- The dock's tips match the installed CLIs (
agent.tips;hub doctoronly; setup and install never run it)- Proves: Each detected CLI's version against the version its tips were checked on (
verifiedOnin@hub/contract/tips). Newer is a WARN until the tips are checked again; never a FAIL. - You: Read the CLI's
--helpand its docs for each tip of that CLI, fix any row that changed, and set itsverifiedOnto the installed version.
- Proves: Each detected CLI's version against the version its tips were checked on (
Backup
- Code and instance are pushed off this machine (
backup.git;hub doctoronly; setup and install never run it)- Proves: For the instance and the core (and any path listed in
backup_reposofconfig/config.json): anoriginremote exists and the local HEAD commit is on it (git ls-remote origin: the tip, or an ancestor of a tip already fetched). FAIL: no origin, or HEAD not pushed. WARN: origin cannot be reached. Nothing is pushed. - You: No remote: create a PRIVATE repository,
git remote add origin <url>, then push. HEAD not on origin:git push(for the core, push the commit the instance pins). Other repositories to watch (for example the plan repository): list their paths inbackup_reposinconfig/config.json.
- Proves: For the instance and the core (and any path listed in
- The app database can be copied and the copy is sound (
backup.db;hub doctoronly; setup and install never run it)- Proves:
data/app.dbis opened READ-ONLY,VACUUM INTOwrites a copy into a temporary folder, the copy passesPRAGMA integrity_checkand its rows are counted; the temporary folder is then removed. The live file is never written. It proves a good copy is possible, not that one is kept: copydata/app.dbsomewhere off the machine yourself. - You: Integrity failure: stop the server (
hub upwindow), keepdata/app.dbanddata/app.db-waluntouched and restore the last good copy. Keep a regular off-machine copy:sqlite3 data/app.db "VACUUM INTO '<folder>/app-<date>.db'"(safe while the server runs).
- Proves:
- The Notion dump is recent and restorable (
backup.notion;hub doctoronly; setup and install never run it)- Proves: For every project that lists Notion databases: the newest dump (a folder with
manifest.json) is at most 7 days old and recorded no database error, andnotion-dump restore <project> --dry-runpasses (it reads the dump and the live databases and says what a restore would do; it never writes to Notion, and a restore itself is never run). WARN when there is no token to read the live databases with. - You: Dump:
pnpm --filter @hub/notion notion-dump dump <project folder>(needs the integration token andnotion.accessgreen). Dry run by hand:pnpm --filter @hub/notion notion-dump restore <project folder> --dry-run.
- Proves: For every project that lists Notion databases: the newest dump (a folder with
- A recent, intact
hub backupsnapshot exists off the repo (backup.snapshot;hub doctoronly; setup and install never run it)- Proves: The newest snapshot under the backup folder (
backup_dirinconfig/config.json, default<instance>/backups/) is at most 7 days old (WARN), itsmanifest.jsonhashes and sizes match every file (FAIL), itsdata/app.dbRESTORES (FAIL when it does not: the file is copied into a temporary folder, opened with the current migrations, integrity-checked and its table and row counts compared with the manifest; the temporary folder is removed), the backup folder is not inside the instance folder (WARN: the backups would sit next to the data they protect;backup_dirshould point outside this computer's disk, e.g. a Google Drive folder). No snapshot at all is a FAIL, a WARN on an instance with no database yet. FAIL when the folder is inside the instance and git tracks a file under it or does not ignore it, or when it is insidestate/or the core. FAIL too when the backup folder lies under a stale Google Drive mount (GoogleDrive-<account> (dd.mm.yyyy hh:mm), which Drive can expose after a restart): a snapshot made there is not in the live Drive. Nothing in the instance or the snapshot is written or sent. - You: Make one:
hub backup(dry run), thenhub backup --apply; check it withhub backup --verify. Inside the instance: setbackup_dirinconfig/config.jsonto an absolute path outside this computer's disk, e.g. a Google Drive for desktop folder (no~). Secrets are never in a snapshot: keep your own off-machine copy ofstate/secrets/(seebackup.secrets).
- Proves: The newest snapshot under the backup folder (
- Secret files exist with the right modes (
backup.secrets;hub doctoronly; setup and install never run it)- Proves: The secrets folder is mode 700, every secret file in it is mode 600, and each token file a project names (
notion.token_file) exists. Only names and modes are read; no value is opened. Keeping an off-machine copy of the folder is yours to do and to remember: nothing here can see it. - You:
chmod 700 state/secretsandchmod 600 state/secrets/*. Keep one off-machine copy ofstate/secrets/(a password manager or an encrypted drive).
- Proves: The secrets folder is mode 700, every secret file in it is mode 600, and each token file a project names (
Log
- Nothing failed in the last day (
log.errors;hub doctoronly; setup and install never run it)- Proves: The ops log (state/log/ops-
.jsonl) has no error line in the last 24 h (FAIL with the most frequent messages), and at most 50 warnings (else WARN). - You: Read the lines:
./run.sh logs --level warnor Activity ▸ Errors in the admin. Each names its part and the page that fixes it. Fix the cause; the row passes once a day has passed without a new error.
- Proves: The ops log (state/log/ops-
Update this page when the architecture changes.