# Settings `/settings` lists the two pages. The rail's Settings opens `/settings/system`. ## Generation, `/settings/generation` The generation policy (`settings.generation`), read from and written through the EDITOR's settings action; an editor that does not answer is said ("The editor did not answer …, so the policy is unknown. Start it, then reload."). - **policy**: the presets (`code`, `balanced`, `api`, `local`; the chosen one pressed — choosing one writes its routes; a route set by hand makes it `custom`); **routes** (where each task runs: `code` = Claude Code, `api` = the Claude API, `local` = the local model); **models** (the API model, the local model, the extractor an API sweep reads its batches with); **caps** (USD per task, the daily cap, **Save caps** — the editor refuses a cap it will not take); **API key**: the key FILE's path and whether it is there — never the key. - **Spend today**: the editor's usage ledger for the UTC day, job by job (time, task, the article's iteration, the models, USD), against the daily cap; **Last 7 days** on a Meter bar. The head says the policy in one line ("Generation: balanced · Claude Code: sweeps · API: report revisions, research · local: video revisions, drafts"); Create's chip, an article's **policy** chip and a `tick-held` card's **Raise cap** link here. OPERATING.md, "Generate and iterate", has the presets, caps and key rules. ## System, `/settings/system` The machine and the collection at a glance, read from the index, the job registries and a few stats; nothing here probes but **Check**. What is a call (a required tool absent, under 5 GB free) is an Inbox card linking here. | Panel | Says | Acts | |---|---|---| | **Tools & disk** | free space under the reports root; each tool's version or "absent" (red only when the report pipeline needs it), from the doctor's cache | **Check** / **Check again** (`POST /api/doctor`) | | **Roots** | reports, media (or "= reports · UMTOOL_MEDIA_DIR unset"), the cache and whether an index exists, an old cache "not read; safe to delete" | — | | **Index** | "N records · rebuilt " (and how many are for projects that are gone), or "No index — every read walks the disk." | **Rebuild…** (`umtool index --rebuild`, as a job in Running), **Prune…** (drops the stale records) | | **Activity** | umtool's own running job (live) and the newest that ended | — | | **Projects** | per kind, the six states as proportional segments (`stale` the one coloured state); the same header line as `/projects` | **Every project →**, a segment opens `/projects?kind=&state=` | | **Deliverables** | built count and bytes, the newest, how many are stale | **Built →** | | **Sources** | report projects never checked, older than 30 d, with dead or missing sources | **Re-check N projects** (one `check-sources` job) | | **Storage** | every project's `out/` (here, on media, DRIVE MISSING, none) and its deliverables switch | **Move every out/ to the media root…**, **Move every out/ back…**, per project **Move out…**, **Move back…**, **Deliverables to media…** / **Deliverables home…** | **Plan, then confirm** (`components/system/ActionPlan.tsx`): every action that changes or moves anything asks for its plan first (`POST /api/system/{index,storage} {…, dryRun: true}`: what it touches with sizes, what refuses, what is worth knowing). The plan takes the focus; only its confirm (named for the result: "Drop 2 records", "Rebuild the index", "Move out") acts, and it re-reads the plan and refuses (409) if it now refuses. **Keep it** or Escape closes it with nothing written. A project is named by id, never a path; a busy one is refused alone, skipped in an "all". The moves run `umtool storage …` as umtool jobs, the same CLI a terminal runs. ## `umtool doctor` `umtool doctor [--json]`: the roots, then every tool with its version, exit 1 if the report pipeline is missing a tool it cannot run without (ffmpeg, ffprobe, yt-dlp, qrencode). ImageMagick is probed as `magick` (IM7); a machine with only `convert` cannot build a card, and the report says so. The app's cache of it is `lib/doctor.ts` (ten minutes). ## `/api/jobs` `GET` → `{ running, jobs }`, one shape over umtool's two registries (`lib/jobs.ts` chain jobs, `lib/mix.ts` renders), `no-store`. Their one-at-a-time rules differ (a chain is process-wide exclusive; a render is one ffmpeg call). The rail's Running list adds the editor's jobs ([inbox.md](inbox.md#the-running-list-the-rails-foot)).