Skip to content

Rotari FAQ

Rotari is a lightweight workflow runner for repeatedly executing shell commands while managing dependencies, parallelism, logs, and run history.

This FAQ gives short answers about rotari's behavior. See the README and the user guides it links to for usage. Detailed contracts are in the contracts documentation.

Quick navigation

Why is it called rotari?

It is short, easy to type, and suggests repeatable workflow execution.

Projects, queues, runs, and registry

Do I need to install a database server?

No. State, history, and locks are stored in the filesystem. Shared multi-host use requires a filesystem that correctly supports locking and atomic operations.

Can an older or newer rotari read my saved runs?

A newer rotari reads runs and queues written by older versions. queue.json, a run's commands.json, and its summary.json record a state_version; if a file comes from a newer rotari with a format this binary does not know, commands stop with an error asking you to upgrade instead of misreading it. This matters when several hosts share a basedir with different rotari versions.

I upgraded rotari. Why does my run, or my Web server, still behave the old way?

A run keeps the binary that started it until it ends, and a detached rotari web keeps its binary until it stops. rotari wait, rotari web --detach, and rotari web --shutdown say so when they reach one that runs another binary than theirs: Note: run R is managed by rotari v0.1.15 (/opt/old/rotari), not this rotari v0.1.16 (...). Restart the Web server (rotari web --shutdown, then start it again) to use the new binary. A run picks it up with its next rotari run or retry.

Can rotari manage jobs for multiple users like Slurm?

No. Rotari has no accounts, permissions, quotas, or fair-share scheduling. Use a separate --basedir per user and do not share writable state or Web UI tokens between untrusted users. Slurm, PBS, LSF, or SGE remains responsible for scheduler-side identity and resource policy.

Which workflow-orchestrator features does rotari provide?

Rotari provides dependencies, parallel execution, retries, logs, history, array jobs, local/SSH/Slurm/PBS/LSF/SGE execution, a Web UI, completion webhooks, and an optional declarative workflow manifest.

The manifest is a constrained representation of the existing queue, not a programming language: commands remain argument arrays. Rotari does not provide file freshness checks, artifact caching, scheduled or event triggers, data lineage, RBAC, or quotas. Use tools such as Snakemake, make, or Airflow when those features are needed.

What's the difference between a project, a queue, and a run?

A project groups the current queue and run history. The queue (queue.json) contains waiting commands; a run is an immutable snapshot taken when execution starts.

Why doesn't add start a job immediately?

Rotari treats the queue as a workflow being defined, not as a continuously executing scheduler queue. add lets you assemble jobs and dependencies; run starts that definition as one execution. A run groups the commands, results, logs, and attempts from that execution, even when it contains only one job. It also uses the directory and environment of the shell that calls run unless a job specifies its own. In an idle project with an empty queue, you can run a single job with rotari add -p demo ./build.sh && rotari run -p demo, or use run --async to start it in the background.

Why does add ask whether I accidentally added the same command twice?

The same command and inputs appear more than once in the resulting queue, which may indicate accidental duplicate submission. The warning lists their job IDs and names, but both jobs remain queued. It is shown on stderr even with --quiet; --dry-run also warns about the proposed addition without writing it. Existing duplicates unrelated to the addition do not warn.

Fingerprints compare the command, explicit environment and working directory, matrix parameters, and array task number. Different names, executors, timeouts, or retry settings do not make fingerprints different. Array tasks are compared individually, so overlapping arrays can warn for matching tasks.

Can I add another job to a project while its run is active?

Yes, for the next run. A run takes its jobs from the queue when it starts, so add, copy, change, remove, and import prepare the next run while it is active; run waits until the active run ends, since a project has one active run at a time. Jobs prepared together can execute concurrently within the same run; an independent job that must start before the current run finishes needs another project. That keeps its run history separate. retry --to-project NAME reruns a finished run's failures there, and copy --to-project NAME copies its jobs into that project's queue; see Rerun failed jobs while the project is running. Rotari does not provide a continuously accepting queue for jobs added after a run starts.

I didn't pass --project-name — which project does rotari use?

Selection uses --project-name, ROTARI_PROJECT_NAME, basedir/workspace/global config defaults, the only project in the resolved state directory, and then default. Multiple candidates require a selection. Use rotari projects to list projects; rotari show inspects the selected project's details.

How do I list projects in a state directory?

Run rotari projects. Use --basedir DIR to limit the list to a state directory, --masterdir DIR to select the registry, and rotari show -p PROJECT to inspect a project.

How do I delete a project?

Run rotari delete -p PROJECT --project, or use Delete on the project's row of the Web UI's All projects page. It deletes the project's queue, saved runs, and project-scope config.* and notifications.toml, and removes its runs from the run registry; other projects and basedir, workspace, and global configuration stay. The project must be named with -p on the command line, and a running or interrupted project is refused. Add --dry-run to see how many runs would be deleted. rotari delete -p PROJECT --all instead deletes only the saved runs and keeps the project.

Why does show NAME mention a missing project?

show NAME tries an attempt ID, registered run ID, latest, and an existing project before searching run names, job IDs, and job names. Without --basedir, read-only commands try the basedir selected by options or defaults first. If the requested project or selector is not found there, they also search the default and registered basedirs. Multiple matches in that fallback search are reported as ambiguous; use --basedir to limit the search. With -p, job lookup stays within that project; an environment or config project default is only preferred, so an unmatched job can fall back across projects. If no match is found, the error names the selector and project.

Missing-project errors list the projects in the selected basedir, or (none) if there are none. If --basedir limits the search and the named project is in another registered basedir, the error gives a --basedir hint.

I don't know which basedir contains my jobs. How do I find it?

Run rotari basedirs, then list jobs/runs across known directories with rotari jobs or rotari runs. Use --basedir DIR on either command to narrow the view, and --masterdir DIR to select the registry. Without --basedir, read-only commands also look beyond the basedir selected by options or defaults when the requested target is not found there; if multiple targets match, use --basedir to choose.

Where can I put option defaults?

Put config.yaml, config.toml, or config.json in $XDG_CONFIG_HOME/rotari (normally ~/.config/rotari), the basedir, or projects/<project>/, and .rotari.toml in cwd. Ordinary values merge global → workspace → basedir → project; CLI options and environment variables override them. Use rotari init [BASEDIR [PROJECT]] to write relative workspace location defaults without creating state. Parent workspace files are not inherited. Notification configuration instead selects one file; see Configuration.

How do I find every config file below a basedir?

Run rotari config --list --basedir DIR. It includes separate notifications.toml files and groups global, cwd workspace, and basedir paths under Common:, then project paths under Projects: with each project name followed by indented paths. Add --project-name NAME to limit project-specific entries to that project. This inventory includes unselected project files.

How do I see every configurable option?

Run rotari config, or use --output FILE to save a template. Each run saves the canonical merged file values as configs/config.toml, excluding CLI/environment overrides and built-in defaults, so historical views retain stable file configuration.

How can I notify another service when a run or job finishes?

The easiest way is Settings → Notification config in rotari web, which creates and edits notifications.toml as a form. Alternatively, generate the file with rotari config --notifications, then set webhook.url there or ROTARI_WEBHOOK_URL. Use job_failure, job_success, run_failure, and run_success to choose the events; jobs are reported once, after their retries end. Slack, Teams, and Discord formats are supported; see Notifications.

How are concurrency and executor options selected?

--local-concurrency applies to local jobs; --batch-concurrency is the default for other executors. SSH, Slurm, PBS, LSF, and SGE also have executor-specific settings, with job-level settings taking priority.

Can I limit CPU or memory for a local job without Slurm?

On Linux hosts with a working systemd user manager, use systemd-run as the local job's command. It places the command in a systemd scope with cgroup resource limits; no separate rotari executor is needed:

rotari add -p demo systemd-run --user --scope \
    -p MemoryMax=4G -p CPUQuota=200% -- ./train.sh
rotari run -p demo

CPUQuota=200% allows up to two CPUs' worth of CPU time; it does not reserve two CPUs. --local-concurrency still only limits the number of local jobs, not their combined resource usage. This requires access to the systemd user bus and permission to set the limits, which may be unavailable in containers or on some hosts. Check cancellation and out-of-memory behavior on your host before relying on it for long-running jobs. Unlike Slurm, this does not queue jobs until the requested resources become available.

rotari show displayed my queue, not the run I expected — why?

Use rotari projects to list projects. show inspects the selected project, run, job, or attempt; use --project-name/-p for a project, --run-id for a run, and --run-id latest for the latest run.

How do I read a running job's details without following its output?

Use rotari show JOB_ID --no-logs (or rotari show ATTEMPT_ID --no-logs). It shows the status, timestamps, command, notes, and artifacts without log contents or automatic following. --no-pager only disables the pager; it does not disable automatic following.

Why does show prefer a run over the queue when a project is running or interrupted?

Because the queue is only the active work target while the project is idle. When a run starts, it takes the queue: the jobs move into the run's own record of what it was supposed to execute, and the queue is left empty for the next run. During running and interrupted states, the current subject is the run itself.

In short: idle means queue-first, while running and interrupted mean run-first. This is why show often resolves the active run before the queued commands after a start or crash.

A job ID or name is the exception: show -j, --job-name, and a positional job selector look in the queue first in every state, then in the active, interrupted, or latest run. Jobs queued during a run belong to the next run, so a queued job with the same name as a running one is the one found; add --run-id RUN_ID to select the running one.

How do I clean up run registry entries left by manual deletion?

Run rotari gc --dry-run [MASTERDIR] to review candidates, then rotari gc [MASTERDIR] to remove them. Reappeared or changed candidates are skipped.

Language and implementation choices

Why is rotari written in Go instead of Python?

Go handles many small CLI operations, process actions, and filesystem updates with low startup overhead and can be distributed as one binary.

Why not C++?

C++ could work, but Go provides the preferred balance of iteration speed, maintainability, and straightforward process and filesystem handling.

Why not Rust?

Rust is also a strong option, but Go is currently a better balance of safety, implementation speed, and maintenance for this project.

Does rotari run on Windows?

No. Rotari supports Linux and macOS, and on Windows it runs inside WSL. WSL2 also supports CUDA, so GPU experiments on a Windows machine can run there. Native Windows support is not planned: rotari relies on POSIX file locks, signals, sessions and process groups, and shell wrapper scripts, and Slurm, PBS, LSF, and SGE run on Linux.

Retries, copying, arrays, and dependencies

How do I add a command and run it asynchronously?

Add it with rotari add ..., then run rotari run --async.

Do I have to run add and run separately for one command?

Usually, yes. For one command, chain them:

rotari add --project-name demo ./build.sh && rotari run --project-name demo

Can rotari rerun jobs when input or output files change, like Snakemake?

No. Rotari does not inspect file timestamps, hashes, or contents. Use Snakemake or make for file-based freshness decisions.

What exit status does rotari run return when a job fails?

Synchronous runs return 0 if all jobs succeed and 1 if any job fails. --async returns 0 once the run starts; use rotari wait PROJECT or rotari wait --run-id RUN_ID for the result. --quiet only suppresses output.

Can an array run only selected task IDs?

Yes. Use --array 1,3,4; ranges such as 1-10 are also supported. Slurm uses its native sparse array for selected task IDs; PBS, LSF, and SGE submit those tasks independently.

I ran rotari retry — which jobs actually rerun?

Failed and unfinished jobs rerun, while successful jobs carry their results forward. Add --success to rerun successful jobs too.

If the queue is non-empty, retry uses it as-is. Its preview and output list failed or unfinished jobs from the latest run that are not in that queue and show copy --failed --unfinished --append to include them. Use retry --run-id RUN_ID to build the retry directly from a saved run without changing the next queue; --overwrite is not accepted by run or retry.

Do I need to copy the old run, or can I add the commands again?

Both work. retry on an empty queue uses the latest run, and copy preserves explicit links to the earlier results so you can edit jobs before retrying. Alternatively, regenerate the queue with add: fingerprint matching can find earlier results even though the new jobs have new IDs. The default --match-by id-and-fingerprint tries IDs first and fingerprints second.

Use retry or run --failed --unfinished to carry matched successes forward and execute failures and new work. An unfiltered run executes the whole queue; matching alone does not skip jobs. See Rerunning a job-generating script for when this helps, an example, matching inputs, and repeated-command rules.

Does changing a script or dataset invalidate a fingerprint?

No. Fingerprints compare recorded command inputs, not file contents. Changing a script, data, inherited environment, caller directory, or source revision can leave the fingerprint unchanged. If that change requires fresh results, execute the whole queue with an unfiltered run, or select the affected jobs explicitly. See Fingerprint limitations.

What's the difference between a job ID and an attempt ID?

A job ID identifies a job in a project. An attempt ID identifies one specific execution of that job and has the form att_<run-id>-<job-id>-<attempt-number>. If a job is retried, its job ID usually stays the same while each execution gets a different attempt ID. Job IDs are scoped to a project; an attempt ID also identifies its run, so it can be used to locate that execution without naming the project separately.

How can I edit a previous queue before rerunning only failed jobs?

Run rotari copy to restore every job from the latest run, edit the queue with change or remove, then run rotari run --failed. Use copy --run-id ID to restore a specific run. The result filter belongs on run, so the restored queue remains available for inspection and editing before execution. With an empty queue, run --failed builds the new run directly from the latest run's snapshot without changing the queue.

For a reproducible, reviewable edit, export and import a workflow manifest:

rotari export -p sweep -r RUN_ID > experiment.yaml
rotari import -p sweep --dry-run experiment.yaml
rotari import -p sweep experiment.yaml
rotari retry -p sweep

retry selects failed and unfinished jobs and carries other completed results forward. An unfiltered run executes the entire queue, even when imported jobs have successful source results. A changed definition alone does not make a previously successful job run again; mark its manifest status as unfinished when it should execute.

Can I mark a failed job as successful after reviewing its log?

Yes. In a run-exported manifest, change that unchanged job or instance from status: failed to status: success. The next run records it as success (accepted) and follows the original attempt for logs. The source run and its non-zero exit code remain unchanged.

attempt_id is provenance and should normally not be edited. Import validates its embedded run and job IDs against the source state. A malformed, missing, or unreachable attempt rejects the import before the queue is written. Because a different real attempt of the same job cannot be told apart from an intentional choice, check the source_attempt_id that import --dry-run prints for each reused or accepted job before importing.

Does retrying an array job rerun every task?

By default, only matching tasks rerun. Use --partial-array=false to rerun the entire array.

Can I submit a matrix of jobs?

Yes. Repeat --matrix KEY=VALUE[,VALUE...] with add. Rotari registers each Cartesian-product combination as an independent job and exposes its values as ordinary KEY=VALUE environment variables. Matrix jobs can be combined with --array; the array is applied to each matrix combination. Workflow manifests can use matrix_exclude to omit selected combinations; the rule is retained by queue and run exports. rotari add also accepts repeatable --matrix-exclude KEY=VALUE[,KEY=VALUE...] rules, which require --matrix and are retained in queue and run exports.

Can I reference a matrix value inside the command string, like $KEY?

Not directly. Rotari never parses the command as a shell string, so each argument is passed through literally and $KEY is not expanded. Since the matrix value is exported as an ordinary environment variable, invoke a shell explicitly to expand it, for example:

rotari add --matrix VALUE=1,3 sh -c 'echo hello > $VALUE.log'

add, and change with a new command, warn when an argument of a command that no shell runs refers to a variable such as $KEY or ${KEY}.

Why did copy reuse the same job ID instead of generating a new one?

A new ID is assigned only when the original would collide in the destination. Otherwise the ID and copied dependency relationships are preserved.

Can I copy a job without its prerequisite?

Yes, unless the omitted prerequisite has not succeeded. Copy the prerequisite as well in that case.

If a prerequisite job (--depends-on) fails, what happens to the jobs that depend on it?

Dependent jobs become blocked and are not executed. They can run after the prerequisite succeeds in a later run or retry.

Can only some jobs be retried automatically?

Yes. rotari add --retry N gives a job its own retry limit, which replaces run --retry for that job; --retry 0 keeps a job from being retried even when the run retries others. Retries start as soon as the job fails, or after --retry-delay with optional --retry-backoff and --retry-max-delay. See Automatic retries.

How do I stop jobs that hang?

Add them with --timeout DURATION, for example rotari add --timeout 2h python train.py. rotari stops the job that long after it starts running, on any executor, and records it as failed with exit code 124. See Job timeouts.

Can a job run after its prerequisites finish even if some failed?

Yes. Use --depends-on-finished NAME instead of --depends-on NAME. The job starts once every listed job or stage member has a final result, including failed, blocked, or cancelled ones, which suits collecting partial sweep results or cleanup. A prerequisite that will still be retried by run --retry is not final yet. See Dependencies and stages.

Can jobs wait for a whole stage instead of listing every prerequisite?

Yes. Give related jobs the same --stage NAME, then use --depends-on NAME. Stage jobs run in parallel and dependents wait for all of them to succeed. Stage and job names cannot overlap.

Can a job depend on a job in a different run or project?

No. Dependencies are limited to the current queue. Chain separate runs with rotari wait --run-id RUN_ID && rotari run --project-name PROJECT or a completion webhook.

Failure diagnosis

Does rotari diagnose failed jobs?

Yes. When a run finishes, each failed job is checked locally against diagnosis rules, and the result is shown by rotari show --run-id RUN_ID --job-id JOB_ID, reports, and the Web UI. It needs no network access or API key and does not affect execution or retries.

How do I report a bug in rotari itself?

Run rotari bug-report -p PROJECT --job-id ATTEMPT_ID --output report.tar.gz and attach the file; without --output it prints a Markdown summary to paste instead. It collects the executable identity, registered basedirs, recent Web startup and sign-in outcomes, the basedir's filesystem type and clock offset, configuration, server.log, and the run's state files, job output tails, and scheduler query history, and runs the scheduler's queue and accounting queries again. Without --job-id it covers the jobs that did not succeed in the run show would show: the active run, then an interrupted one, then the latest. It also includes the run's cancels.jsonl, which records every cancel request: who asked, which jobs, and what happened to each. Secrets in configuration and job environments are always replaced; paths and hostnames are too unless you add --no-redact. Job output and command lines are not checked for secrets, so review the file before sharing it.

For a Web problem, also say which browser and version you used, whether it was a private window, and what the browser console and Network panel showed. rotari cannot collect browser-side console messages, request details, saved-cookie policy, or extensions.

Interrupted runs and locking

How can I check whether a project is ready to run without changing it?

Run rotari check PROJECT (or rotari check --project-name PROJECT). Its status and output identify active runs, stale locks, interruptions, and empty queues. --deep also checks required local executables but does not connect to remote hosts. An uncreated project is reported as empty (exit status 1); check does not create it.

What happens if runners on multiple hosts use the same project?

It works when the shared filesystem correctly provides locking and atomic operations, but it is not a distributed lock service. After a host failure, preview with rotari unlock PROJECT --dry-run --json and inspect coordinator and execution evidence. Verified live ownership or execution blocks recovery; unknown evidence requires independently confirming stopped work and explicitly using --assume-stopped.

A runner or supervisor process died mid-run — what do I do?

Inspect rotari show --run-id RUN_ID and rotari info, then preview with rotari unlock PROJECT --dry-run --json. unlock checks durable coordinator identity even without a lock and assesses managed executions for both finalization and ordinary release. A verified live coordinator or execution always blocks; unknown ownership or execution evidence needs explicit --assume-stopped after independent confirmation. A complete matching summary can repair metadata to finished without rerunning jobs. Local, scheduler, and SSH probes inspect relevant attempts and carried origins within their stated scope; terminal job outcomes alone do not prove termination. Legacy identities, missing remote SSH token state, failed remote process queries, and escaped process-group descendants limit what can be verified. Preview distinguishes finalize from release and explains incomplete summaries. Release returns to collecting without making up results; rerun failed and unfinished jobs separately with rotari retry --run-id RUN_ID, which unlock prints after release. Both actions preserve the next queue. See finalization repair and probe limits. Use rotari cancel to stop a live run, not unlock. Without --run-id, unlock of a project with no lock or a project not yet created succeeds without changing state.

A remote host's lock looks stuck even though the job actually stopped — why won't unlock go away automatically?

A lock from another host, or from another PID namespace such as a sandbox or container, cannot be cleared by checking its PID. Inspect from the original host and the same PID namespace if accessible, or independently confirm that both the coordinator and jobs stopped, then run rotari unlock PROJECT --assume-stopped. Merely changing hosts may not restore visibility. See the automation migration guide.

Client control and job cancellation

Is it safe to Ctrl-C a synchronous rotari run?

Yes. Ctrl-C returns code 130 immediately while the supervisor continues stopping jobs and finalizing the run. Operations on the same project may be rejected briefly during cleanup.

What happens if a run client disconnects unexpectedly?

By default, run and wait detach: the run continues and can later be found by an unselected rotari wait. Use --disconnect-action cancel or ROTARI_DISCONNECT_ACTION=cancel to cancel when the client is killed or its terminal closes. Ctrl-C always explicitly cancels; Ctrl-D always detaches. You can also start a run with rotari run --async.

run/retry and wait register independent client sessions after resolving the run ID; an unselected wait skips a run while any session is live. On the supervisor's host, a released session lock lets it detect even SIGKILL and apply the configured policy. A remote wait client's liveness cannot be verified locally, so that session is conservatively treated as live.

What happens if I press Ctrl-Z during a synchronous run?

Only the client is suspended; the run continues. Use fg to resume it. If the suspended client is later closed, that is an unexpected disconnect and follows --disconnect-action (default detach).

Why did rotari run print Run detached and exit right after starting?

Its standard input is a terminal that reported the end of input, which run and wait treat as Ctrl-D. Some background or tool-managed terminals do this at once. The run was created and continues; the message names its run ID and the rotari wait command that follows it. To wait in such a terminal, run rotari run </dev/null or rotari wait </dev/null. See Controlling runs from the terminal.

Can wait find the run ID for me?

Yes. With no selector, it finds a running project and lists candidates when multiple projects are running.

How does rotari actually stop a running job on Ctrl-C or rotari cancel?

Local and SSH jobs receive SIGTERM through their process groups. Slurm, PBS, LSF, and SGE use their native cancellation commands. Rotari does not automatically escalate to SIGKILL.

Why do cross-host cancel/suspend/resume fail for local jobs?

A local job's PID is meaningful only on the host that started it, and only in the PID namespace it started in (on Linux; macOS has a single PID space per host, recorded as none). Run these commands on the runner host, and outside any sandbox or container the job was not started in; the error names the host, or the job's namespace and yours.

Does whole-run cancel have the same cross-host problem?

Yes. A runner PID on another host cannot be used; rotari reports the host mismatch instead.

Why do scheduler jobs fail from a different Web/CLI host?

Scheduler control requires the relevant Slurm, PBS, LSF, or SGE client command. Use a host where those scheduler clients are installed and configured.

Does running mean a scheduler job is already executing?

Not necessarily. Rotari's running means submitted but unfinished, which includes scheduler-pending jobs. cancel works for pending jobs; suspend may be rejected until execution starts.

Python interface

Is there a Python API?

Yes. The python/ package is a thin subprocess wrapper around the rotari executable. Install it with python3 -m pip install --no-deps ./python. It does not serialize Python functions as jobs.

Web UI

Does closing/stopping rotari web stop my jobs?

No. The Web UI is a separate process and closing it does not affect runs. It does stop the commands it launched on artifacts with --allow-exec, even when it is killed, and it ends the shells of its terminal (--allow-terminal).

Can I start a run from the Web UI?

No. The Web UI controls existing runs and edits queues; execution starts through rotari run.

Can I run a script or viewer on an artifact from the Web UI?

Yes. TensorBoard, Jupyter Lab, MLflow, Aim, Streamlit, Datasette, marimo, Panel, Gradio, and VS Code for the Web are built in, and commands you register in your global launchers.toml appear too, as a button per command in each row of a job's Artifacts, of the run page's Files view of the directory holding the basedir, and of the directories opened from them (a job's working directory is the first row of its Artifacts), when rotari web --allow-exec is running; the browser cannot send any other command. A command whose program is not installed is shown disabled. See Launching commands. A command that serves HTTP, such as TensorBoard, opens through the rotari web port, so it needs no extra SSH port forward. See Services. A delimited or JSON Lines table, Markdown or script file, PDF, or directory opens in the built-in Table viewer from the same menu even without --allow-exec, and rotari tableview PATH opens one directly; see Viewing tables.

Why does a job runner have a terminal?

Running experiments is more than running jobs. Between runs you read logs, edit a script, cd into an output, and run rotari retry, usually in a pile of terminal tabs, one or more per experiment. rotari web --allow-terminal keeps those shells beside the jobs they are about: each shell belongs to a project, starts where its last run started, and has ROTARI_BASEDIR and ROTARI_PROJECT_NAME set, so rotari commands in it need no -p. A project's page shows its shells, and All shells lists every project's shells with what each runs and how each project's last run is doing. Run IDs, job IDs, and paths a shell prints are links to the run, the Explorer, or the Table viewer, and a prompt that marks its commands shows each one's exit code beside it, as a block to copy or go back to.

The shells themselves are ordinary: rotari does not run jobs through them or log what you type, and jobs run the same with or without them. bash and zsh start with a few lines of rotari's after your own startup files, which mark where each command starts and ends for its blocks and leave your files alone, and pass the same on to a bash or zsh started inside them; --terminal-shell-integration=false starts them as plain login shells. It remembers only the directories each project's shells have been in, in memory, for Recent directories, and forgets them when every shell ends. The terminal is off unless you pass --allow-terminal, and it does not replace tmux or your terminal emulator. See Terminal.

Do my Web terminal shells survive closing or reloading the browser tab?

Yes. The shells run in the rotari web process on the host, not in the browser. Reloading the page, following links, closing the tab, or opening the page in another tab or browser connects to the same shells, which show their last 256 KiB of output again, up to 10,000 lines; programs in them, such as vim, keep running.

They all end, with what runs in their foregrounds, when you sign out or when rotari web stops; no page needs to stay open. With --terminal-idle-timeout, they also end that long after the last rotari web page closes. A rotari run started in a shell carries on regardless. To keep shells overnight or through a dropped SSH connection, press Ctrl-D in rotari web, or start it with --detach, so that the server outlives your session; see Keeping shells through a disconnect.

It lists unfinished jobs, which stay at the top whatever you select, and jobs that finished in the last 24 hours, as rotari jobs does by default. When the state directory's latest run ended before that, it opens on the 24 hours up to that run's end instead, so you see the last work without searching. Choose 1h, 6h, or 24h above the table for a window before now. To look further back, drag on the bar below them, which shows this state directory's runs: the jobs that finished inside the range you drag are listed. A click selects the day under it; drag the selection's edges to resize it or its middle to move it. 1d, 7d, and 30d set how much the bar shows, and ‹ and › move it to earlier or later times. The choice stays in the URL, so the link can be shared. The line under the page title names what is listed. Select a job name to open its run page. rotari jobs PROJECT --since 90m takes any window from a terminal. A static export lists the same default, without the bar.

Where did I run jobs recently?

Open Activity in the Web sidebar. It shows a month calendar of runs across every registered state directory, and for a selected day one lane per project with each run's span, coloured by result; hover a run for its working directory, host, source revision, and first note, and click it to open the run. It opens on today, or on the latest day with runs. Below it, Where you worked lists each project's last run, working directories, and source revision. From a terminal, rotari runs --json gives the same facts.

Can I search old jobs across projects?

Yes. Open History search in the Web sidebar to search project, run, and job history in selected scopes. Choose a basedir, then optionally narrow it to a project and run, or choose All basedirs to search every registered basedir; any it cannot read are named beside the results. Add more scopes to include additional ranges. Scope selection is independent of notification monitoring. Choose a time window and add field/word conditions joined by AND or OR. History search runs on the rotari web server, so a static Web export leaves it out of the sidebar.

What do Create queue and Append to queue do on a run page?

Create queue replaces the queue with the selected jobs; Append to queue adds them to the current queue. A separate runner executes the queue.

Can I create a config file from the Web UI?

Yes. Generate config on the all-projects or project page offers the valid global, workspace, basedir, and project locations and writes TOML at the selected location after confirmation. View config lists actual sources by scope/path, opens one directly or lets you select among several, and saves only that source. There is no merged current viewer/editor. Content is validated as JSON, TOML, or YAML according to the file's extension; invalid edits leave the existing file unchanged. Historical run pages only display their recorded config copies. Read-only Web mode and the static demo present the same flow but reject the final file write with the standard read-only message.

How do I view an older job attempt in the Web UI?

Use the arrow beside the attempt ID and select an attempt. Its status, timestamps, result, and log are shown.

Why does a run show as unreadable in the Web UI?

Its summary.json or commands.json was written by a newer rotari, whose state format this version cannot read safely. The run's page shows the message; upgrade rotari to see it. The CLI refuses the same run with the same message, and the project's other runs are unaffected.

Does the Web UI have a light theme?

Yes. By default it follows the operating system's light or dark setting. The Theme choice in the Settings menu at the top right sets Light or Dark instead; the browser remembers it for every page of the live server and the static export, and System returns to following the operating system.

Does the Web UI send run details to an AI service?

No. On a run page, the Report button in the toolbar (for the run, or for the selected jobs) or in a job's row previews a Markdown report with execution details, saved diagnosis, and recent relevant output. The copy button copies it. Rotari never submits the report; paste and send it yourself. Reports redact known hostnames and paths plus common absolute-path and hostname patterns in logs, but redaction is best-effort, so review the report before sharing it. A Redact: On / Redact: Off button in the report dialog lets you turn redaction off for a trusted team; it starts on by default and is not offered in the static (GitHub Pages) export, which always serves its precomputed, redacted report. Log dialogs can also copy only the last 100 lines.

What does the project page's “Project runtime” panel show?

It shows the saved runner lock and the supervisor's PID record. It is not a liveness probe.

Is rotari web safe to expose beyond 127.0.0.1?

Set ROTARI_WEB_AUTH_TOKEN (or --auth-token). Beyond a direct loopback connection from the same host, browser login requires HTTPS; API token authentication may be used only on a trusted network or over HTTPS. Do not expose the UI without a token. The browser shows a sign-in form; use rotari as the user name and the token as the password. After sign-in, a 12-hour session cookie keeps the Web UI authenticated. API clients send Authorization: Bearer TOKEN or X-Rotari-Token: TOKEN; Basic authentication is not supported. This is authentication, not encryption. Environment variable values are never exposed; the UI shows only whether each variable is set.

Why does Chrome warn that my Web token was found in a data breach?

That warning comes from Chrome's password check, not from rotari reporting a breach. The token entered on the sign-in page is treated as a password. If it was reused elsewhere or matches a credential Chrome knows about, replace it with a unique random token; do not try to hide or ignore the warning. For example, generate one with python3 -c 'import secrets; print(secrets.token_hex(32))', set it as ROTARI_WEB_AUTH_TOKEN, and restart rotari web. Keep the token out of source control and update or remove Chrome's saved rotari credential.

When --allow-exec or --allow-terminal is used without a configured token, rotari generates a new cryptographically random token at startup and prints it to stderr. If Chrome still warns for that generated token, check which saved credential Chrome is warning about and whether it belongs to this rotari server.

Can I run the Web UI read-only?

Yes. --allow-control=false (or ROTARI_WEB_ALLOW_CONTROL=false) keeps state, logs, recent jobs, and docs pages available and returns 403 Forbidden for control and file-write APIs.

Can I switch projects or state directories in the Web UI?

Yes. The sidebar groups projects under the startup basedir and other basedirs registered in rotari's master registry; each basedir is labelled by its parent directory and its own name, with the full path on hover. Expand a basedir to see its project names, then select a project to load its runs and jobs. The Web UI reads full state for only the selected basedir; expanding another one lists directory names without scanning its run history. rotari web --project-name is not supported; choose the project from the sidebar instead. Static exports remain limited to the basedir used to generate them.

A basedir registered after rotari web started appears after Refresh or a page reload; the server does not need a restart. The automatic 2-second update does not reread the basedir list.

Notifications

What's the difference between the Inbox, desktop notifications, and Webhooks?

They are three ways to see the same events: job results (after their retries end) and run completions. The Inbox in rotari web lists what runs recorded in the master directory over the last 10 days, including what happened while no page was open. Desktop notifications are pop-ups for entries that arrive while a page is open, if the browser allows them. Webhooks are sent by the run itself to Slack, Teams, Discord, or any HTTP endpoint, whether or not rotari web runs. The Inbox and desktop notifications follow the [browser] settings and Webhooks the [webhook] settings of notifications.toml. See Notifications.

Can the Web UI notify me when a run finishes?

Yes. Runs record their job results and completion, and the live Web UI shows them in its Inbox (N); a browser that allows it also shows desktop notifications. Nothing is sent to an external service. See Notifications.

What do the bell icons next to the basedirs do?

A bell selects a basedir for the Inbox and desktop notifications; it does not change what is recorded. Every run records its notifications whatever the bells say, so turning a bell on shows that basedir's recorded entries, including older unread ones, without popping them up. The main Web UI always includes the basedir it shows, plus the basedirs whose bell is on; Recent jobs shows only the basedirs whose bell is on. The bell beside Registered basedirs turns all of them on or off. Only the current basedir starts selected, and the selection lasts until rotari web restarts. Webhooks and rotari notifications ignore the bells.

Why did an entry appear in the Inbox without a desktop notification?

Desktop notifications show only entries that arrive while the page is open. Entries already recorded when the page loads, or when you turn on a basedir's bell, enter the Inbox quietly. A pop-up also needs the browser's permission, the Notification on toggle, and HTTPS or a localhost address; the toggle's tooltip says which is missing. The Inbox needs none of these.

Do notifications work in VS Code's internal browser?

The live Web UI's Inbox (N) works without browser notification permission, including in embedded browsers. It shows an unread count and the latest 50 notifications that runs recorded, including those from while no page was open; opening the inbox marks them read, and reloading keeps them. Desktop popups, for notifications that arrive while the page is open, additionally require a browser that supports the Notification API and grants permission; use an external browser if the embedded one does not. See Notifications.

Are notifications lost when no Web page is open?

No. The run's own process records them in <masterdir>/notifications/, and any page opened within 10 days shows them, unread. They are missing only for runs whose process used another master directory (for example on a host with a different home directory) or an older rotari version, and for a run killed before it could record them.

Why did opening the Inbox in one tab mark it read in another?

Read and cleared entries are shared through rotari web by every page, browser, and server that uses the same master directory, so they survive reloads and restarts. They are kept per basedir: opening or clearing the Inbox affects only the basedirs it shows. A server started with --allow-control=false cannot save them, so its pages keep them only until reloaded. rotari notifications never marks anything read.

Why was there no notification when my run's process was killed?

A killed process cannot report itself. While rotari web runs, it checks every 30 seconds for such runs and records rotari: run interrupted in the Inbox, but only for runs whose coordinator ran on the same host as rotari web; a run on another host looks the same as a running one. Webhooks never report interrupted runs, and recovering a run with rotari unlock (or Recover… in the Web UI) sends nothing, since you already know it stopped.

Why do job notifications arrive a few seconds late?

A run combines its job results within ten seconds of the first into one notification, so a burst of failures becomes one entry rather than many. The run's completion is added at once, so the final notification is not delayed. Webhooks use the same batches.

Which settings decide what the Inbox shows?

The [browser] section of the project's notifications.toml (or the basedir's or global one) selects the events, fields, and max_jobs. rotari web applies the current file whenever it shows the Inbox, so a change also applies to entries already recorded. Webhooks instead use the settings a run saved when it started. Edit both in Settings → Notification config.

Can I read notifications from the command line?

Yes: rotari notifications lists what the Inbox shows, oldest first, across known basedirs; add a project name, --basedir, --since 7d, --unread, or --json. It marks entries unread as the Inbox does but never marks them read. See Notifications.

Background server (supervisor)

Do I need to start a server manually?

No. run and retry start a supervisor for each run, and it exits when the run ends; other commands never start one. rotari server status, list, and shutdown are for inspection or manual cleanup. server shutdown leaves an active run interrupted with its jobs still running, so use cancel to stop a run.

Can other users control my run through its supervisor?

No. A supervisor has no socket or port: only the run command that started it talks to it, over inherited pipes. cancel, suspend, and resume act through the state files and job processes, so they need the same file and process permissions as the run's owner.

Can other people on the cluster read my job logs/commands?

By default, state uses 0755/0644, so others may be able to read it. Set ROTARI_PRIVATE_STATE=true for owner-only permissions on newly created state.

Timestamps and environment

What timezone are the times shown by show/web in?

Stored times are UTC. Display uses the valid IANA timezone from TZ, or the system's local timezone when TZ is unset.

A CLI option and its matching ROTARI_* environment variable are both set — which wins?

The explicit CLI option takes precedence over the environment variable.

Which working directory and environment do my jobs run with?

Those of the shell that runs rotari run or rotari retry, unless a job sets its own with add --working-directory or add --env. They are not part of the queue or an exported workflow, so the same jobs can be run again from another directory. Each run has its own supervisor, so a run started while another is active still uses its own shell's directory and environment. See Workflow and execution environment.