User guide: contents

7. Settings and safety

Where to find it. Settings and the pages about people and access are under Administration. Admins see it in the sidebar when they use the Admin view (choose the view in the account menu). Administration opens on Overview, and a row at the top of the page lists its pages in three groups:

GroupPagesAddress
OperationsOverview, Problems, Watchers, Models, Dashboard#/operations, #/problems, #/watchers, #/models, #/dashboard
People and accessUsers, All repositories, Credentials, Audit, Autonomy#/users, #/all-repos, #/credentials, #/audit, #/autonomy
SystemSettings, Maintenance#/settings, #/maintenance

To change a setting, open Administration in the sidebar, then Settings under System. Users with the role user never see Administration; the server refuses its calls for them (see Roles and permissions).

The Settings page under Administration, System

Saving. Next to Save the page says "Saving…", then "Saved at …" or "Not saved.". A message also appears. Cleaning up old workspaces is not on this page: it is on Maintenance (see Disk below).

Saving keeps your file. A save changes only the settings you changed in config.yaml: your comments and the order of the keys stay, and a setting you put back to its default is removed from the file. If someone else saved, or the file was edited by hand, since you opened the page, the save is refused with "the settings changed since you loaded them — reload first". Reload the page and make the change again. A hand edit shows on the page at once, but the server uses it only after the next save or a restart.

Restart when no change is running. Some settings, such as Listen on, take effect only after a restart. After a save that changed one, the page says "A restart is needed" with the running and the saved value. When the server runs under the supervisor (also when you started it with scf ui in a terminal), the page offers Restart when no change is running. Otherwise it says to stop the server and start it again. The restart works like a new version: no new runs start until the active runs are done, then the server starts again by itself. If that wait lasts longer than restarts.drain_limit_minutes (see Longest wait for a restart), the restart switches to a restart at a safe moment: the runs stop at their next step that may be cut and resume after the restart. The watchers keep checking during the wait (a watcher that was removed or changed stops, and none starts); only a move of the data folder stops them all. While it waits, the box says why, how many runs are still active, and offers Cancel the restart; cancelling starts the runs and watchers again. A restart for a new version or a moved data folder takes over a waiting restart, and then it cannot be cancelled. The box is refreshed every 5 seconds. Asking for the restart and cancelling it are written to the audit log (restart-request, restart-cancel).

Controls and their help. Every control shows its default, one sentence on what it does and when it takes effect ("at once", "when a run starts or resumes" or "after a restart"). The Agents card sets isolate_agents and the failure summary (failure_summary.enabled, failure_summary.model). The User runs card sets step_env.pass and step_env.agent_pass (at most 100 names each) and sandbox.user_read (at most 50 absolute paths). A value the server would refuse, such as a name starting with GH_, a relative path or a list that is too long, is marked at its field and cannot be saved. Metrics sharing is a card of its own: metrics_sharing.allowed (default on). Off, nobody is asked whether the metrics of their runs may be shared, nothing is counted or sent, and the answers already given are kept for when it is on again. The card's help says the same. The address and the timeout of the receiver (metrics_sharing.endpoint, metrics_sharing.timeout_ms) have no control on this page; they are read from config.yaml. A save that changes it is written to the audit log first; if the log cannot be written, the save fails and config.yaml is unchanged. Set at start-up is a read-only card: the data folder, port, repository and program paths are set when the server starts (change them there and restart), not on this page.

Every setting has a control. Each setting that you can change in the interface has a control here, with its default, its help and when it takes effect. The few settings without one stay in config.yaml: the lists of accounts that may not ask Ask Foundry or may ask in the pilot stage (help.disabled_accounts, help.pilot_accounts), the list of texts Ask Foundry keeps out (help.sensitive_patterns), and the prices of a provider that reports tokens but no cost.

Start-up settings. The data folder, the port, the repository and the program paths are read only when the server starts, so they are not changed on this page. To change one, stop the server, change it where it is set, and start the server again; the Set at start-up card shows the values in use. Two things are set up once, not in settings: the first admin is made on the setup page when the server starts for the first time, and the login service is installed with scf service install (see Upgrading).

Budget & capacity — the daily budget stops new work when today's (estimated) spend reaches it; paused runs continue the next day. An admin can also set a daily budget per user (Administration › People and access › Users). Flows can also cap one run (limits.max_cost_usd).

Load governor (priority of runs) — governor.priority (low by default, or normal or background) sets how much processor time the agents, builds and tests of a run leave to your other programs. low starts each run process at nice 5 and, on macOS, at utility quality of service; background uses nice 15 and background quality of service, which can slow runs a lot. normal starts them as they always did. The server itself stays at normal priority, and the setting applies when a run starts or resumes. A Mac without taskpolicy, or a process that cannot be started at a priority, runs with nice only or unchanged, so a run never fails because of it. This is not the helper that lowers the runs at once (the helper "governor" under "Helper processes" above).

Simple view (Help contact) — simple.help_contact is the line under "Who to ask" on the Help page (in the sidebar of every view): a name and an e-mail address, for example. It is up to 300 characters, without line breaks or control characters, and shown as plain text. Empty (the default) hides the line. The control is the Simple view card on the Settings page, between Ask Foundry and Delivery. Users read the text through GET /api/me/view (field helpContact); they cannot change it.

Starters (simple.hidden_starters, simple.projects_folder) — simple.hidden_starters is a list of ids of built-in starters that are not offered for a new project (an own starter is always offered; empty offers all, at most 50 ids). simple.projects_folder is an absolute path outside the Foundry data folder where new projects from a starter go; not set means scf-projects in the home folder of the person who runs the Foundry. See Starters in section 1.

Lowest runs at the same time (load governor) — governor.floor is the lowest number of runs at once the load governor may go down to, from 0 to Runs at the same time (concurrency). Not set, it is half of that number, at least 2, as before. 0 means that when the machine is overloaded no new run starts (an architect run and a schedule chore too), while the runs that are going on, and the runs that resume, go on. Starts come back when the machine is calmer. A value above the configured number counts as that number, and the setting is never rejected: lowering concurrency later does not make the configuration invalid. scf governor report and scf governor status say "0 runs at once, so nothing new starts" for a cap of 0. The governor's cap still ends four minutes after its last check, so a governor that stops cannot keep 0 for good.

Slow down at this share of a weekly limit (load governor) — governor.usage_percent is a whole number from 1 to 100. Once about this share of the Claude or Codex weekly limit is used (from the reading, see "Usage limits" under Helper processes), the limits helper keeps the runs at once at 1, or at governor.floor when that is set and higher, until the reset. It works only with scf limits auto on and a reading (scf limits set), and only while the threshold holds: below it, the forecast alone decides. The cap is global, so one tool at the threshold slows all runs, Codex runs included. The scf limits report says "at or above your threshold" for each tool at or above it. Not set, the setting does nothing and only the forecast slows down.

Cores kept free (load governor) — governor.reserve_cores is how many cores the load governor leaves free for your other programs when it works out how many runs fit (see "The load governor" under Helper processes). The default is 2. A higher number means fewer runs next to your other programs. A configuration without the setting works as before, with 2.

Runs while you use the machine (load governor) — governor.busy_runs is the most runs at once while busy mode is on, from 0 up. The default is 2. 0 stops new runs while you use the machine. Busy mode is the switch Pause the Foundry while I work in the account menu, which admins see on the admin display. Choose Off, 1 h or 2 h. While it is on, the Paused flag in the top bar says "Paused by you" (or, when a listed program runs, "Paused: <program> running"), and its tooltip gives the end time. A state set elsewhere, such as until a time or for 4 hours, is still shown with its end time, but the switch offers only Off, 1 h and 2 h. The cap holds even when the load governor is not installed, and while busy mode is on every new run process starts at background priority. Processes that are already running keep their priority. The switch set by hand survives a restart of the server.

Programs that mean you use the machine (load governor) — governor.busy_apps is a list of program names, as Activity Monitor shows them (default: none). While one of them runs, busy mode is on by itself, and it goes off when the last one ends. The check needs the load governor (scf governor install). A switch you set by hand is not turned off by a program ending. A configuration without these two settings works as before, with 2 runs and no programs.

Promotion gate (governance.promotion) — governance.promotion holds the four numbers of the promotion gate: min_runs (default 10), evidence_completeness (0.95), eval_pass_rate (0.9) and within_days (30, from 1 to 90). They only decide what the gate shows; nothing is enforced by them yet (Promotion gate). governance.owner is the admin account that approves promotions; unset, the first active admin does (Change a level).

Retries after a time limit (auto_retry) — auto_retry.timeouts is how often a story of a watcher is tried again by itself when a step ran out of time: default 2, 0 turns it off. The count is per story, over all runs of its issue. With 0, a time-out goes to Needs you at once, as before. Otherwise, when implement times out after its last retry, the story goes to the planner to be split (see "When something goes wrong"). A run that a person started is never retried. The settings page shows this as the card "Retries".

Longest wait for a restart (restarts.drain_limit_minutes) — when a restart waits for active runs for longer than this, the server does not keep waiting: it restarts at a safe moment (see Restart when no change is running in section 7 and "The health line"). Default 60 minutes, 0 turns it off (the server waits for the runs as before), up to 10080 (7 days). A restart waits for active runs in four cases: a new version, a self-update, a changed setting and a moved data folder. Once the limit is passed, the server checks every 30 seconds and asks for the safe-moment restart: the runs stop at their next step that may be cut (a push, merge or release step finishes first), the server restarts, and the stopped runs are queued to resume after the restart. New jobs start again only after the restart, so they no longer wait for hours behind one long run. Without the supervisor the server cannot restart itself: it logs the reason once and keeps waiting. The settings page shows this as the card "Restarts", after "Retries".

Safety

  • Protected branches — pushes to these branches (default main, master, develop, release/*) are refused during runs, whoever tries. Claude Code is not allowed to run git push at all, and Codex's sandbox has no network access by default — pushing is a flow step. This stops ordinary pushes from steps and agents; for a hard block use branch protection on GitHub (and allow the Foundry's account when hotfixes are on).
  • Hotfixes — off by default. When on, bug stories (label from hotfix_labels) of the built-in issue-gitflow are merged into main and develop without a person, after tests and reviews. This is the one exception to Protected branches: only the merge-to-main step of the unchanged built-in flow may push main; flows you write never can. Stored as hotfix_to_main in config.yaml (an older build rejects that key).
  • Repository access — shell steps that call gh or the remote carry repo_access: true, so only they will get the repository's credential (see Step types).
  • Self-update — off by default. When on, the Foundry builds and tests new commits of main of the repository you name and restarts on them without a person (see Self-update). Stored as self_update in config.yaml (an older build rejects that key).
  • Audit log — "Keep the audit log for … days": a whole number from 1 to 3650, default 180. Older lines are removed when the server starts and once a day (see "How long the audit log is kept" below). Stored as audit.retention_days in config.yaml (an older build rejects that key).
  • Move old runs to the archive — "Move old runs to the archive after … days": a whole number from 1 to 3650, default 30. Housekeeping moves finished runs that ended this many days ago to runs-archive/ once a night (failed and stopped runs only after 90 days; see "Old runs move to runs-archive/" in chapter 4). Stored as runs_archive_days in config.yaml; an install without the key gets 30.
  • Secret scan — every push is checked for API keys, tokens, private keys, connection strings and .env/key files in the new commits. Findings are shown masked and the push is refused. A private-key header only counts when key data follows it, so code (or a test) that writes a PEM around a key it generates is fine. For a false positive, add factory:allow-secret to the line or a pattern to .claude-factory/secret-allow in the repository.
  • Risk gate — in issue-gitflow, every plan gets a risk score (0–100) from Opus and from Codex; above 75 (risk_threshold) a human must /approve it before any code is written. See The risk score.
  • Sandboxing — Sandbox agents' shell commands limits what agents' shell commands can write to the run's workspace. Shell steps marked Run in Docker (like the test steps) run in the Docker image you set, with only the workspace mounted.
  • Approval steps in flows let you decide before anything irreversible happens (the risk gate and the split approval are approval steps).

Skills — the Skills card (after Safety) changes the skill folders, the sources and the limits without editing config.yaml. It has one control for each skills.* setting: the sources, the catalogue, the selection, the review checks, the skills that cannot be used, and the group Tools a skill may ask for (shell, network, file access, and what to do when a tool is not available), and the group Skill source checks (the catalogue clone for the scheduled checks and how often the server looks; see Let the server run it). Approved releases (skills.releases.approved) is a row editor: each row has a catalogue, a version and a digest; Remove deletes a row and Add a row adds one (at most 50). Empty rows and fields are left out, and a row problem from the server is shown at its row, for example "Row 1, digest: …". Each control's hint gives the default; changes take effect when a run starts or resumes. Before a save, a change that lowers safety asks first in a dialog that names each risk, and Cancel saves nothing. The risky changes are: turning on repository skills or unreleased releases, adding a folder to roots, setting an unresolved case to warn (a skill that is unknown, not installed, not from an approved release, in conflict or too large no longer stops a run), removing a term from the high-risk list, turning on network access for skills, setting a missing tool to degrade (a run continues without a tool a skill asked for), and setting or changing the folder of Catalogue clone for source checks (the server then commits, pushes branches and opens pull requests there). Turning a risky value back off, or removing a folder, asks nothing. The dialog exists because those settings let skills the approved catalogue does not vouch for reach the agents, or let a run continue past a skill it should stop for. If the server cannot describe the skills settings, the card says so and a save keeps them unchanged. When the server refuses a save, each skills problem is shown under the control it belongs to (for a list, at its line, for example "Line 2: …"); a problem outside the skills settings stays in the banner at the top. A successful save clears all of these messages. Stored as skills in config.yaml.

Notifications — macOS notifications and a Slack webhook tell you only when something new lands under Needs you on Today (a question, a risky plan or split, a release pull request, a failure, a watcher error). Nothing is sent for progress. A run that succeeds is told only if you switch on "Also notify when a run succeeds" (off by default; runs that finished before you switched it on are not told).

The Slack webhook is set in Settings → Notifications. The page shows only set or not set. Enter a new address to replace the webhook, leave the field empty to keep it, or tick Remove the Slack webhook to remove it. The webhook is never shown again, and no API answer contains it (GET /api/config says only notify.slack_webhook_set).

No notification and no notify.command is sent for a run whose issue is known to be closed on GitHub. When the state is unknown or open, they are sent as before.

  • Message: it says who has to do what, for example "acme/app#7 — The step run_tests failed: its command ended with an error — look at the output of the step and fix the cause, then remove the factory:failed label to start over, or resume the run on its page to continue at the failed step." It is at most 300 characters; a long title or reason is shortened, the action never.
  • Grouped and throttled: at most one notification every N minutes (default 5, at least 1). Items that appear in that time come as one message, for example "3 things need you". Each item is told once; it is told again only when its situation changes.
  • Quiet hours: set "from" and "to" (this machine's clock, may cross midnight). Nothing is sent in that time; what is still waiting afterwards is sent then.
  • Daily summary (optional): set a time. Once a day you get a short message, for example "Done since yesterday: 3 stories, 2 other runs. Waiting for you: 1. Expected today: 2 stories being built, release pull request around 17:00." It follows the throttle and quiet hours, and is skipped when there is nothing to say.
  • Click: on macOS a click opens the item, if terminal-notifier is installed (brew install terminal-notifier, allow it in the macOS notification settings). It must be on the PATH the server runs with; run scf service install again after installing it. Without it the notification shows but a click does nothing. Settings says which case applies. Slack messages always carry an "Open" link.
  • Links: the links in these messages open the Foundry at the address set as Public address (server.public_url, in the Network section of Settings), so they work from another device. Unset, they use this Mac's local address.
  • Command: your own command still runs for every finished run, as before, for the outcomes you tick ("Run the command when a run is:"), with FACTORY_STATUS, FACTORY_RUN_ID, FACTORY_FLOW and FACTORY_MESSAGE set.
  • Who sends: the server (scf ui / scf serve) sends the macOS and Slack messages, also for runs started with scf run. Without a running server only the command runs.

Bot identity — by default commits and comments are made as you. Set a bot name/email and a token (or a GitHub App) to make them as a bot instead. In a run that never uses the machine's login (every user's run, and an admin's run on a repository with a stored sign-in) the bot's token is never used; the bot name and e-mail are, else the name and e-mail of the run's owner. An agent step never gets the bot's token, in any run; a shell step gets it when the run uses the machine's login.

GitHub App — one app for the whole Foundry. It lets users connect a repository without a personal token (the method "GitHub App" on My repositories). Set it up once:

  1. Create a GitHub App. Give it the repository permissions Contents, Issues and Pull requests, each "Read and write". Download its private key (a .pem file) and keep it readable only by the server's account.
  2. Fill in Settings → GitHub App: App ID; App name (slug), the last part of https://github.com/apps/<name>; Private key file, the path of the .pem; and, only if you want the bot identity, Installation ID (optional). With an installation ID, runs commit and comment as the app (this works as before). Without one, the app is used only for the repository method.
  3. Without an app ID, a key file and a name, the method is not offered, and the API answers 400.
  4. Under the settings, Repositories that use the app opens the list of repositories that use the app (#/all-repos?method=github-app). A repository whose app was removed says "The administrator removed the GitHub App" as its attention state; its owner chooses another authentication.

The server finds the installation with the app's own key, so a user needs no rights on GitHub. That is why each account has a list of the repositories it may connect through the app. Set it on the account's page (Administration › People and access › Users, then the account's name) with the "App repositories" button: one entry per line, owner/name, or owner/* for every repository of an owner. An admin's own connections are not limited. A user cannot read or change any list, or these settings.

  • Adding a repository, changing its method to the app and testing an app connection answer 403 when the repository is not on the account's list. GitHub is not asked.
  • An account without a list can connect nothing through the app. After an upgrade, set the list of every account that needs the app.
  • The list is checked only when a connection is added, changed or tested. Existing connections keep working in runs and watchers, also when you later remove an entry. To cut one off, remove the connection. The admin's Repositories page marks an app connection that is not on its account's list with "not on the app list".
  • Still install the app only on repositories that Foundry users may work in, and choose "Only select repositories".

After the first save with a name, an older build of the Foundry rejects the new slug field in config.yaml.

Disk — every run keeps its workspace so you can inspect or resume it. Remove old ones on the Maintenance page (Administration › System › Maintenance, #/maintenance; it is not on Settings) or with scf clean (branches in your repositories are kept). Preview lists what would go; Clean up asks first in a dialog.

Accounts. scf user keeps accounts in users.json in the data folder. Each account has an id, name, e-mail, role (admin or user), status (active or blocked), password hash, created time and last sign-in. An account can have no password yet: it has no hash, it cannot sign in, and it may have a passwordLink (id, the SHA-256 of the link token, and expires) instead. Only you can read the file (mode 0600). A data folder that does not exist yet is created with mode 0700. Passwords are never stored: each one is hashed with scrypt, a 16-byte random salt per account, N=32768, r=8, p=3 and a 64-byte key. The parameters are stored with each hash (scrypt$N=32768,r=8,p=3$<salt>$<key>). A hash in any other form makes the file invalid. Anyone who can run commands on the machine as you has admin rights: they can read the file or run scf user create --admin. This includes the agent and shell steps of flows, which run as your user. A file that cannot be read or is not valid is an error, never "no accounts".

The last admin that is not blocked cannot be demoted, blocked or deleted: the command says "make another admin first", changes nothing and exits 1. An admin that has no password yet does not count as another admin. Change a role with scf user role <e-mail> admin|user. scf user list shows the last sign-in of each account ("never" when there is none).

Service accounts. A service account is an account for a program, such as an integration. Admins make one in the Service accounts section of the Users page, or with scf service-accounts add <name>. scf user list shows service accounts apart from people, with their scope, token state and last use. A service account has no password and no browser session, and never has the admin role. It signs in with a bearer token, sent as Authorization: Bearer <token> from this computer only. The token is shown once, when it is made or rotated; the server keeps only its SHA-256 hash.

A service account may call only the routes in its scope, a list of rule keys from the permission table such as GET runs. A request outside the scope gets 403 and is still written to the audit log with the account's name. A route inside the scope works as it does for a user of the same workspace. Some routes can never be granted: credentials, users, settings, autonomy, self-update, plugins and the audit export, among others. A scope that names one is refused when it is saved. An admin-only route can be in a scope only when it is listed by itself.

Every route has a data class, shown in the Data column of the permission table and by scf api routes: inbox (answering and deciding changes), summary (lists and status), log (live events, transcripts and the audit), diff (the changes of a run), admin (settings and administration) and secret (routes that can never be granted). A scope may also name a class, such as class:summary, which covers the GET routes of that class. A class never covers a change: a POST, PUT or DELETE route needs its own key. class:secret is refused.

A repository can be closed to service accounts: in its Run settings, tick Closed to service accounts (services: none). Then no service account can read or change anything about it. A request that names the repository, a run of it or a list that would include it gets 403, and the refusal is audited. Ask Foundry answers nothing while a repository is closed. Untick the box to open the repository again.

Acting for a person. A service account can act for one person, so a program can follow that person's runs, repositories and Your-turn items, and answer them. Set Acts for in the account's dialog, --acts-for <person> on scf service-accounts add or set (--acts-for "" clears it), or actsFor in the API (null clears it). actsFor is the id of a person's account, not of another service account. With it, a bearer request sees and acts as that person for the owner and workspace checks: their runs, repositories, Your turn items (the list, the detail and the answer), change requests, the queue and the feed. The account stays a service account. It is never an admin, its scope still decides which routes it may call, and an admin-only route is still refused unless its key is in the scope. Without actsFor, nothing changes. Each service-request audit line names the person (acts for <id>).

If the person is blocked, removed, or cannot sign in under the current sign-in mode, the account's requests get 403 with the reason, and an open stream ends. Health shows the same reason for a running managed service. The check runs on every request, so a block takes effect at once.

Audit lines and the client label. Every request of a service account is in the audit log as one service-request line: the account, the method and route, the status and, with actsFor, the person. A change (POST, PUT, PATCH, DELETE) gets its one line when its response is done, with the status ok or failed. A read (GET) gets its line before it runs. A refusal keeps its line. Bodies, answer texts and tokens are never written to a line.

A program may send the optional header X-SCF-Client: <label> to say which of its devices or clients made the request, such as X-SCF-Client: kiosk-2. The label is written at the end of the line as client <label>. It is a label the program chooses, not proof of which device sent the request. Control characters are removed, surrounding spaces are trimmed, and a label longer than 64 characters is cut to 64; a label is never refused. A request without the header writes no client part. The label shows as the Client field of an entry on the Audit page and in GET /api/audit, and the Client filter and the client filter of GET /api/audit and GET /api/audit/export find lines by it.

Lines a program writes itself. A service account can write its own line for what it decided, including a request it refused or a thing it handled without calling the Foundry, so that everything it decides is in one place. It sends POST /api/audit/service-line with { "event": "<name>", "result": "ok" | "refused" | "failed", "code": "<code>", "detail": "<text>" }; code and detail are optional. event and code are lower-case words of letters, digits, _, - and ., at most 64 characters; detail is printable text of at most 300 characters. Any other key, or a bad value, answers 400. The route is for service accounts only: a person gets 403, also an admin. Its key must be in the account's scope (a class: entry does not grant it). A successful call answers 201 { "written": true } and writes one line with the action service-line, the account as the actor, the event as the target, and the detail with the result, the code, the text, the person (acts for <id>) and the client label (client <label>). The audit file holds only ok and failed, so refused and failed are both stored as failed; the program's own word comes first in the detail. The line is written even when a repository is closed with services: none, because it names no repository.

The text is the program's claim, not something the Foundry checked. The Foundry checks only the shape, the length and that the text holds no service token. Read such a line as what the program reported.

A service account may write at most 120 lines a minute. Above that the call answers 429 with Retry-After, and the Foundry writes one service-line-dropped line a minute, not one per refused call. The count is kept in memory, so a restart starts it again. A busy audit log answers 503 with Retry-After: 1; any other storage problem answers 500. Each call still gets its usual service-request line. GET /api/audit and the Audit page show both actions, and the action, user and client filters find them.

Rotate gives the account a new token; the old one stops at once. Revoke ends the token until you rotate again. A token expires 30 days after its last use, and then it is refused until it is rotated. Cookie sign-in for people is not changed.

The Users page under Administration, People and access

The Users page. Admins only: open Administration in the sidebar, then Users under People and access (#/users). It lists name, e-mail, role, status, last sign-in and the number of runs. The status is blocked, account system (an account of the identity provider), no password yet, locked (too many wrong tries) or active; when more than one is true, the first in this list wins, so a blocked account reads "blocked" even if it is also locked. An account of the identity provider has no Edit, New link or Reset password: its name, e-mail and password live in the account system. Your own account is marked "(you)". The list has no action buttons: press a name to open the account page (#/users/<id>). It shows the same facts and the actions in three groups: Actions (Edit, Limits, App repositories, New link, View as user), Security (Reset password, Unlock, Block or Unblock) and Danger (Delete). The buttons below are on that page. An address for an account that does not exist shows "This account does not exist." with a link back to Users.

Simple accounts and their caps. The Users page has a View column: an account that uses the Simple view shows a "Simple" mark. Tick Only Simple accounts to show only those accounts (the address becomes #/users?view=simple). Under the filtered list, each Simple account lists its projects, with today's spend, the daily cap in effect (its own cap, or the default simple_project_daily_budget_usd when it has none) and a field with a Save button. Type a number above 0 to set the cap, or leave the field empty and save to clear it and use the default. A value that is not a number above 0 is refused before anything is sent. If the server refuses a value, the message shows on that project's row. Read-only pages show the values without the field. The "Cost limits are off in Settings" note appears when cost_limits is off, because the caps are then not enforced.

Invite someone who is not an engineer. In + Add user, tick Simple account. It sets the role to user and the Simple view, and the role menu is then off. The dialog shows the set-password link as usual. The link works once, for 24 hours; send it to the person yourself, and an expired link is refused (use New link). When they set their password, the sign-in page says "Your password is set. Sign in with it to start the guide." After they sign in, the guide opens at step 1, Welcome. Only the first sign-in after the link does this; an account that has signed in before, or that was reset, is not sent to the guide. Starters are for admins only, so at steps 3 and 5 the guide tells the person to ask their admin. The admin then makes the project, and it belongs to that admin: work on it uses the admin's limits, and the daily cap is set on the project (see "A daily cap per project" in the cost chapter). An account made without Simple account is not changed by this.

  • + Add user asks for name, e-mail and role, or Simple account (see above). Then the dialog shows the set-password link once. The link works once, for 24 hours, and you must send it to the user yourself. Copy needs HTTPS or localhost; otherwise select the link in the field and copy it. Close the dialog too early and the link is gone: use New link.
  • New link (only for an account without a password) shows a fresh link; the earlier one stops working. For a blocked account the link works only after you unblock it.
  • Reset password (only for an account with a password) removes the password, signs the account out everywhere and shows a one-time link, like Add user. Until the link is used the person cannot sign in. The last admin that can sign in cannot be reset; resetting your own account signs you out (the link is in the dialog). If the dialog shows an error and the account now reads "no password yet", the reset happened but its link was not shown: use New link.
  • Unlock (only for a locked account) removes the lock and the wrong tries of the account. A wait of up to a minute for the address the wrong tries came from can remain, so the person may need to wait a moment. It leaves no line in the audit log.
  • Edit changes name, e-mail and role. After an e-mail change, set a watcher's owner again (see above).
  • Block signs the user out, cancels their queued runs and lets running runs finish. Also stop all their work now also cancels running runs and runs that wait for approval. The page then says how many runs were cancelled.
  • Unblock lets the user sign in again. Cancelled runs are not restarted.
  • Delete asks first, names the account, wipes its stored credentials and keeps its runs (they show deleted user). It cannot be undone.
  • Limits (per account) and Default limits (toolbar) set three limits: runs at the same time, runs per day and the daily budget in USD. An empty field means "no limit". The defaults apply to every account, admins too; an account's own value wins over the default. The Limits column shows each account's effective limits and marks its own values with "(own)". Clear a field in the account's dialog and the default applies again. Deleting an account removes its own limits. All three limits are enforced. A job over a limit waits in the queue and starts by itself when the limit allows; the queue and the run page say which limit it is. Free slots are shared between users: the next slot goes to the user with the fewest working runs, then to the user whose last start is oldest. Only new runs count for "runs per day" (local day); resuming, answering or approving a run does not. Architect runs of a refinement session count for "at the same time" but not for "runs per day". Runs of a watcher count for the watcher's owner. Runs without an owner (the command line) are not limited in the queue, but a run that falls to the first admin counts for that admin, so an admin who uses the command line may need to raise their own limits. The daily budget counts the cost of the user's runs that started today (local day). When it is reached, no new job of that user starts and a working run stops before its next agent step (shell and approval steps still run); it continues the next day, or when you raise the budget. A watcher starts no new work for that owner and holds the issue. The user sees "waiting — your limit for today is reached", with no amount; you see the amount. cost_limits: false turns the budget off, and the global daily_budget_usd still applies on top. Runs without an owner are only under the global budget. Lowering a limit does not stop working runs; nothing new starts until usage is below it. Only admins can see or change them, and no answer to a user contains them. Each change writes a limits-change line to the audit log with the account (or "defaults") and the field names, not the amounts. Without a limits.json in the data folder, everything is "no limit".

A refusal (the last admin, an e-mail that is taken, bad input) shows in the dialog and the list does not change. An error from Block or Delete can come after the change was made; close the dialog to see the list again. Blocking or deleting your own account signs you out, and the page reloads.

Managing accounts over the API. Admins only (a user gets 403). GET /api/users lists the accounts (id, name, email, role, view (simple, advanced or admin), status, created, lastSignIn, runs, hasPassword, lockedUntil: an ISO time while the account is locked, else null; a blocked account can have both). POST /api/users {"name": …, "email": …, "role": "admin"|"user"} adds an account without a password and answers 201 with the account and its one-time token (400 for bad input, 409 for a taken e-mail). The token is shown once; the link is <address>/#/set-password/<token>. PUT /api/users/<id> changes name, email or role: leave a field out to keep it; null is not accepted (400). POST /api/users/<id>/block {"stopWork": true} blocks, signs the account out and answers with cancelled: {queued, running, waiting}. POST /api/users/<id>/unblock unblocks. POST /api/users/<id>/link gives a new token for an account without a password (409 if it has one). POST /api/users/<id>/reset removes the password, ends the account's sessions and answers like /link (user, token, expires); 409 for an account without a password or for the last admin that can sign in. POST /api/users/<id>/unlock removes the lock and wrong tries of the account and answers with the account. Everyone signed in may call POST /api/password {"current": …, "password": …} to change their own password (400 for bad input, 403 for a wrong current password, 429 when waiting). DELETE /api/users/<id> deletes as scf user delete does. An unknown id is 404, the last admin that is not blocked is 409. An admin may act on their own account within the last-admin rule; blocking yourself signs you out. If an old key stays in the Keychain, delete answers 500 and the account is gone; run scf credential rotate-key. A watcher's owner is an e-mail: after changing an account's e-mail, set the owner again, or its new runs go to the first admin.

What a block or delete stops. Through the API the server acts at once and answers with the numbers; running runs are told to stop and show as cancelled a moment later. A blocked or deleted account cannot start anything new. The jobs it queued are cancelled (the server checks every 2 seconds; a block made while the server was down is handled at the next start, before any job starts). A job it queued never starts, also after a restart. Its running runs finish, and runs that wait for approval stay as they are. An admin can still resume, approve or reject such a run, and that job runs. scf user block <e-mail> --stop-work also cancels the account's running runs and its runs that wait for approval; workspaces are kept. The server acts on --stop-work once, when it sees it (about 2 seconds, or at the next start), and it covers every run the account owns at that moment. An admin's resume made in that gap is cancelled too. scf user unblock restarts nothing and removes a stop-work request the server has not handled yet. Watchers of the account keep working: disable the watcher or change its owner. The server log says how many runs it cancelled, with the account id only.

Audit log. Every scf user action and every users API call that changes something (create, password, role, edit, block, unblock, delete, reset; also link, when a new set-password link replaces the old one) adds one line to audit.jsonl in the data folder (mode 0600), for example {"time":"2026-10-02T09:46:46.000Z","by":"cli","action":"role","userId":"<id>","oldRole":"user","newRole":"admin"}. by is cli or the id of the admin. An edit line is a name or e-mail change. A password set through a link is a password line made by the account itself (by is its id), and so is a password changed with Change password. A reset line has the admin's id (or cli) in by. Only a role change has oldRole and newRole. A block line has stopWork (true when --stop-work was given). No line holds a name, e-mail, password, hash, key or token, and a failed account change is not logged. A block or delete that stops with an error may already have signed the account out or removed its repositories and stored credentials; the server log names the problem, and the same action made again finishes the job and writes the line. If the file cannot be written, the command stops before it changes anything. In the rare case that the line cannot be added after the change (for example a full disk), the command says so and exits 1. The file is a record, not a protection: anyone who runs commands as you can edit it.

Every sign-in is also a line, for example {"time":"2026-10-02T09:50:00.000Z","by":"<id>","action":"sign-in","result":"ok","userId":"<id>"}. A sign-in that works has result ok, and by and userId are the account id. A sign-in that fails (wrong password, unknown e-mail, blocked account) has result failed and by anonymous; it has userId only when the e-mail belongs to an account, so a wrong password and an unknown e-mail each write one line. The typed e-mail and password are never written. A try that is refused with 429, a bad request and an over-long e-mail write no line. The first admin made on the setup page writes a create line with by set to its own id (no sign-in line); if audit.jsonl cannot be opened, setup stops with an error and makes no account. Event lines can also hold a short target (instead of userId) and a detail (only with a target); sign-ins use neither. A sign-in line that cannot be written (for example while another scf command holds the lock) does not stop the sign-in; the server log says auth: audit.jsonl cannot-write.

What people do in the web interface is also logged, with result ok, by set to the account that made the call, and a target (and sometimes a detail). An Ask Foundry line never holds a question, an answer, a confirmation token or the text of a model:

actionWhentargetdetail
run-startA run is startedrun id
run-cancel, run-approve, run-reject, run-resumeA run is cancelled, approved, rejected or resumed (a cancel that cancelled nothing writes no line)run id
run-archive, run-unarchiveA finished run was archived or taken out of the archive (a repeat call writes a line too)run id
run-answerAn answer to the questions of a run was accepted (a refused call writes no line; the text is never logged)run id
refinement-publishReady drafts of a refinement session were publishedsession idrepository and issue numbers
repo-add, repo-change, repo-removeA repository is added, its sign-in is changed, or it is removedrepository idstored address
repo-change (admin)An admin changes the settings of a repositoryrepository idsettings: and the names of the changed fields
repo-change (admin)An admin changes a watcher of a repositoryrepository idone line per changed option: watcher <id>: <option>: <old> -> <new>
repo-transfer (admin)An admin moves a repositoryrepository idid of the new owner
credential-add, credential-removeA credential is added or removedcredential idits type
flow-publishA published flow is saved with a new versionflow nameversion
autonomy-set-initial (admin)A repository is connected with a chosen starting autonomy level (POST /api/repos with autonomy)repos:<id>the level and the reason
component-promote (admin)An admin promotes a component with a passing report (ok), or the promotion is refused because suites block it (failed)<kind>/<id>v<version> sha256:<hash> report:<id>; on failed the blocking codes
settings-changeSettings are savedconfig.yamlone line per changed setting: <key path>: <old> -> <new> (see below)
settings-changeAn account changes its metrics sharing answermetrics-sharing<old> -> <new> (unasked, yes or no); the same answer again writes nothing
restart-request, restart-cancel (admin)A restart is asked for after a settings change, or cancelled (see Restart when no change is running in section 7)serveron a request: the settings that need the restart, as <key>: <running> -> <saved>
help-actionAn approved action of Ask Foundry ran (ok) or was refused (failed). A token, request text and model text are never loggedconversation <id><action>; run <id>; <result>, or refused: <code>
help-askA question to Ask Foundry was taken, or a failed answer was tried again (result ok), or it was refused: switched off, not for this account, busy, the queue is full, a limit (result failed). The question and the answer are never loggedconversation <id> (conversation when a refused question had none yet)ask or retry; then turn <id>; try <n>, or refused: <code>
help-deleteAn account deleted one of its Ask Foundry conversationsconversation <id>
help-exportAn account exported its Ask Foundry conversationsconversationshow many
help-actionAn account followed an offer of an Ask Foundry reply (opened a page). Refused when the thing is gone (404), not allowed now (403) or the conversation is deleted (410)conversation <id><type> (for example open-run), or refused: denied or refused: stale
turn-answer, turn-approve, turn-reject, turn-retryAn action under Needs you on Today (defaults and answer are turn-answer; retry and a retry with a hint are turn-retry)owner/repo#issue

A line is written when the change is made. A call that is refused or fails before any change writes no line, and neither does a call that changes nothing (the same repository settings again, a flow saved without a change, an unpublished flow). If an old key is left in the Keychain, the change was made, so its line is written even though the answer is an error. Tokens, passwords, keys, notes, task text, credential names and the values of the masked settings (below) are never written. A line that cannot be written does not stop or undo the action, and a line is not written while another scf command holds the lock; the server log then says audit: <file> <kind> (<action>). Runs that a watcher starts, scf run, scf approve, scf reject, evals, deleting or unpublishing a flow, blocks, clean-up and running a watcher now are not logged. A target can be up to 255 characters.

Settings and watcher lines. A save of the settings writes one line per setting that changed, with the full key path, the old value and the new value, for example monitor.stuck_run.extra_minutes: 30 -> 60. A setting that was not set shows (not set). A watcher in config.yaml is named watchers.<id>.<option>. A change to a repository watcher is written the same way, as watcher <id>: every: "5m" -> "10m". Three settings never show a value, only changed: notify.slack_webhook, notify.command and agent_env (the environment of a watcher, on any path). A watcher's owner (an account's e-mail) and task (free text) say only changed too. A value longer than 80 characters is cut and ends with …; a line is at most 2,000 characters.

The Audit page with its filters and the newest entries

The Audit page. Admins only: open Administration in the sidebar, then Audit under People and access (#/audit). It shows who did what, newest first: time, who, action, target and result. "Who" is the account's name, "command line" for scf, or "not signed in" for a failed sign-in. An account that is gone shows as "deleted user". A detail, such as user -> admin for a role change, is under the target.

  • Filters. User (a list of the accounts; it finds what the account did and what was done to it), action, and a from and a to date. The dates are days in your browser's time zone; both days are included. Changing a filter reloads the list.
  • Export CSV downloads every line that matches the filters shown, oldest first.
  • The page shows the newest 500 lines. When there are more, it says so: narrow the filters or use Export CSV.
  • An empty result says "No entries." An error, such as a log that cannot be read, shows on the page.

An account with the role user never sees the link or the page; a user who opens /#/audit lands on Changes.

View as user. An admin can open the display of one user and see what that user sees, read-only.

  • Start. Open the account's page (Administration › People and access › Users, then the name) and press View as user under Actions. Only an account with the role user has the button. The user display opens at /user/?as=<id> with that user's Today, Changes, Ideas, Releases and My repositories, and the pages of their changes.
  • The bar. A bar at the top says "You are viewing as <name>. Nothing can be changed here." Press Back to the admin display to end the view and go back to the Users page. The top bar still shows your own name and Sign out.
  • Read-only. Buttons that only change things are not shown: Start, Add repository, Remove, Approve, Reject, Retry, Cancel, Send answer and the buttons of a refinement session (an idea on Ideas). A button that is still there, such as Change password, shows "This is a preview. Nothing can be changed here." and sends nothing. The page sends no changing call in this mode.
  • When the view ends. A view ends after 30 minutes, or when the server restarts. The page then says so and offers View again (a new start, a new audit line) and Back to the admin display. It never shows your own data instead. A view opened in another tab, or when the browser cannot keep the user's name, also shows this card.
  • Other cases. /user/ without as sends an admin in the Admin view to the admin display; an admin in Simple or Advanced stays there. If a user opens /user/?as=…, the parameter is ignored.

View as user (server). The part below is what the server does for the page above.

  • Start. POST /api/admin/view-as with {"userId": "…"} starts a view for your session and answers {id, name} of the user. It writes one audit line with the action view-as (you as the actor, the user as the target). If that line cannot be written, the view does not start (503 when the log is busy, 500 otherwise). An unknown account answers 404; an account with the role admin, or your own account, answers 400. A blocked user can still be viewed.
  • Use. While the view runs, a GET call with ?as=<userId> is answered as it would be for that user: the same rules (a call marked no for users is 403), and the same cut-down answers (no costs, no folders, no runs of other accounts; a foreign run is 404). This holds for flows, queue, runs, runs/:id, runs/:id/events, runs/:id/diff, repos, repos/methods, credentials, refinement and refinement/:id. Unexpected errors show the user's fixed sentence. GET /api/session still shows you as the admin. Calls without as= are not changed. Reads leave no audit line.
  • Refused. as= without a running view for that user is 403, and so is as= from a user. Any call that is not a GET and has as= is 403 "the preview is read-only", and nothing changes.
  • End. A view lasts 30 minutes and ends with the session. DELETE /api/admin/view-as ends it now. It also ends when the user is deleted or made an admin, or when you are no longer an admin. Views are kept in memory only: after a restart a new one must be started, which writes a new audit line. An open log stream started with as= is closed when the view ends.

The Audit page. Details on a line opens a row with every field of the entry: time, who (with id), action, target (with id), detail and result. It makes no new call. When the actor or target is an account, its id links to the account page. Hide closes it; a filter change closes all opened lines.

Reading the audit log over the API. Admins only; a user gets 403. GET /api/audit answers {entries, more}. An actor is {type: "cli"}, {type: "anonymous"} or {type: "account", id, name}; a target is an account in the same form, {type: "text", text}, or null. Account lines show result: "ok" and the account as target; a role change has detail like user -> admin, and a block that stops work has stop work. name is the current name, or deleted user; the file keeps ids only. Filters: user (the account id exactly as stored; it matches the actor or the target account), action, client (the label of a service request, part of it, case-insensitive; client is set per entry in the answer), from and to (ISO times with seconds, such as 2026-10-02T09:00:00Z; both are included). A + in an offset must be written %2B. An unknown, empty or repeated filter, a user that is not an id, an action that is not an audit action, a bad time, or from after to answers 400. At most 500 entries come back, newest first by the order of the lines; when more is true, narrow the filters or use the export. GET /api/audit/export takes the same filters and downloads every matching line as audit.csv, in the order of the file (oldest first), with the header row time,actor,actor_name,action,target,target_name,result,detail. A cell that starts with =, +, - or @ gets a ' in front. Stored secrets are hidden as in every other answer; a CSV row that would show one is hidden whole. Lines that do not parse are left out. An unreadable file answers a plain 500, and the log says audit: audit.jsonl unreadable. A download that breaks half-way is cut off, not ended early.

How long the audit log is kept. Lines older than audit.retention_days (Settings → Safety, "Keep the audit log for … days"; 1 to 3650, default 180) are removed when the server starts and once a day after that. A changed setting counts at the next round, without a restart. There is no "keep for ever": download the log with GET /api/audit/export, or copy audit.jsonl, before lines age out. Only a line that can be read and is too old is removed. Lines that cannot be read stay, also a line with bytes that are not valid UTF-8; the order and the mode 0600 stay. The file is replaced in one step and is not touched when no line is old enough. If the clean-up fails or auth.lock is busy, the server keeps running, the log says audit: <file> <kind> (clean-up), and the next round tries again. scf commands never remove lines. The first start after an upgrade removes lines older than 180 days; to keep more, set audit.retention_days in config.yaml before that start.

Sign-in and sessions. The UI and its API need a signed-in account; only the sign-in, sign-out, first-admin and set-password calls and the static files are open. A session is kept on the server in sessions.json (mode 0600): it holds only a SHA-256 of the session token, never the token. It lasts 7 days from sign-in and is not renewed. Sessions survive a restart and move with the data folder. The browser holds the token in the cookie scf_session_<port> (HttpOnly, SameSite=Strict); the port is in the name because localhost cookies are shared between ports. The cookie gets the Secure flag when you reach the UI over HTTPS (through a proxy, see Access from other computers); over plain HTTP on this machine it has none.

  • CSRF. Every call that changes something must send the header X-CSRF-Token with the token the server gave at sign-in; otherwise it gets 403. The UI does this for you. Requests from a foreign origin or host are refused as before.
  • Wrong passwords. Every try is counted before the password is checked, per e-mail and per client address. From the 5th wrong try, sign-in answers 429 (with Retry-After) until a wait is over: 1, 2, 4, 8, 16 and 32 seconds, then 60 seconds. The 20th wrong try for an e-mail locks it for 30 minutes, also against the right password. A try with the right password is given back for the address and clears the count of the e-mail. Counts are forgotten 30 minutes after the last try. Change password counts as a sign-in try for the e-mail, and a wrong current password can delay or lock sign-in for that account. Unlock removes only the lock and the count of the account; a wait of up to a minute for the address can remain. A server restart clears all waits and locks (the CLI cannot unlock). Anyone can lock an e-mail with 20 wrong tries, so the only admin can be locked out: wait 30 minutes, ask another admin to unlock, or restart the server. The answer for a wrong password and for an unknown e-mail is the same.
  • Set-password links. Only a SHA-256 of the link token is stored. The token sits after # in the address, so it is in no request line or log. A link lasts 24 hours (a link made before the upgrade keeps its stored end time). POST /api/set-password shares the per-client wait with sign-in (16 password checks at once); a refused password with a live link does not count, and using a link clears the wrong-tries count of that e-mail.
  • Ending sessions. Signing out, expiry, scf user password and scf user block end sessions, and so do block, delete and Reset password through the API. Change password ends the other sessions of the account and keeps the one that made the change. A run log that is open in the browser stops within 5 seconds. A role change does not end sessions; the new role counts from the next call.
  • Problems with the files. If users.json or sessions.json cannot be read or written, or another scf process holds the lock, sign-in shows "sign-in is not working; see the server log". The log names the file and the kind of problem, never a password or a hash. The users API answers a plain 500 for such a problem and logs the same way (for example users: audit.jsonl cannot-write).

Roles and permissions#

Every account has a role, admin or user. The server checks it on every call. A call that is not in the table below answers 404, also for an admin.

  • An admin may make every call and sees every page.
  • A user works on the user display at /user/. Its sidebar has Today, Changes, Ideas, Releases and Help, plus My repositories in the Advanced view, and the top bar has + New change. The Setup check and the Get started guide are there too. A user may use the calls marked yes or own runs in the table. Every other call answers 403 {"error":"not allowed for your role"}. Board, Flows and Administration are not part of the user display. A user who opens / is sent to /user/, and any other address there goes to Changes (#/runs); in the Simple view it goes to Today.

What a user does not see. The server cuts these from every answer a user gets, so the page cannot show them: costs, tokens, budgets and prices; the model, provider and agent; step output and transcripts (GET runs/:id/transcript/:n is for admins only); tool arguments in the log; settings, folders and the raw reason of a failure; hidden variables of the flow. A user sees the status, the log (steps and tool names), the questions and approvals, the steps with their result, and the changes. A limit reads "the administrator's limit was reached". An unexpected error answers "something went wrong on the server; ask the administrator" and the details go to the server log. Notifications are not changed: they go to your channels with your wording, also for runs users started, so the Slack webhook should not point at a channel users read.

Your own runs. A run has an owner: the account that started it. A user sees and may follow, cancel, resume, approve, reject and read only their own runs. Another account's run, an unknown run and a run without an owner all answer 404 {"error":"run not found"}, so a guessed id tells nothing. A run started by a watcher belongs to the watcher's owner (an account's e-mail, set by an admin; empty: the first admin). Runs from the command line and from evals belong to the first admin. A queued run that has not started yet already counts as its owner's. An admin may use every run. A user also sees and acts only on the runs, repositories and watchers in their own workspaces (see "Workspaces" below): one outside them answers the same 404, and the lists leave them out.

After an upgrade. Runs from older versions have no owner. The first admin gets them at the next server start, when the first admin is created on the setup page, and within a minute of scf user create --admin while the server runs. A run that is still live is handed over after it ends.

The queue. A user sees only their own queued runs. Runs of other accounts in front of them show as "n runs ahead of you", without ids.

Answering a run. On a run that waits, a user can approve or reject it with a note (POST /api/runs/<id>/approve or /reject with {"note": "…"}). The note reaches the run. A user whose run stopped with questions answers them on the run page (see "Answer a run's questions"); in Changes the change is listed under Needs you, at the top.

The repository list with authentication and connection status

What runs sign in with. In a run you own, every step marked repo_access signs in to the repository named by github_repo with the sign-in you chose for it, and nothing else: not the bot's token, not the server's gh login or git settings. Other steps and the agents never get it.

Runs that never use the machine's login. Every run owned by a user is isolated, and so is an admin's run on a repository with a stored sign-in (a token, a deploy key or the GitHub App). In such a run no step acts with the server's login, the bot's token or the Mac's git identity. Every step, agents and shell steps without repo_access too, has no GH_TOKEN, GITHUB_TOKEN, GH_ENTERPRISE_TOKEN or bot token, an empty gh folder of its own, no git settings or credential helpers of the machine, no ssh agent and no ssh keys of the account, and no prompts. Only a step marked repo_access gets the repository's own credential. An admin's run on a repository with the method "none", one that is not in the list, or a local folder is not isolated: shell steps keep the machine's login and the bot's token as before.

What an agent step can reach. In every run, an agent step (Claude or Codex) never signs in to Git or GitHub:

  • it has no GH_TOKEN, no other token variable, no ssh agent or keys, and no gh login; its gh folder is empty and removed after the step;
  • git may use only the file protocol for network work, so an agent cannot clone or push over https with the machine's login;
  • it keeps the bot's commit name. In an admin's run on the machine's HOME it also keeps the machine's global git settings; in a user's run, and in a Codex clean folder, it does not;
  • repository work goes to repo_ops (the broker carries it out after the step) or to a shell step.

Limit: for an admin's run without an OS sandbox this is the environment only. A determined agent could still reach the machine's keychain or the gh folder of the account. The OS sandbox of a user's run holds that.

  • Commit name. Commits in these runs use the bot name and e-mail from Settings when they are set (each on its own), else the name and e-mail of the account that owns the run. If the account was deleted and the bot name and e-mail are not both set, the step ends with "the account that owns this run could not be found, so its commits have no name": set the bot name and e-mail in Settings, then resume the run.
  • After the upgrade. An unflagged step or an agent in these runs can no longer call gh or the remote. The machine's git settings (signing, aliases, proxy) are not used; if you need a proxy or a certificate file, list HTTPS_PROXY or SSL_CERT_FILE in step_env.pass (see "Environment of the steps").
  • Environment of the steps. A step of a run owned by a user does not get the server's environment. A shell step gets PATH, HOME, USER, LOGNAME, SHELL, TMPDIR, TMP, TEMP, LANG, LANGUAGE, LC_ALL, TZ and TERM, the Foundry's own FACTORY_… variables, and the names an admin lists. An agent step gets the same plus what its own agent and provider need (for example ANTHROPIC_API_KEY for Claude on an Anthropic provider, OPENAI_API_KEY for Codex on OpenAI); keys of other providers are not passed. Admin runs are unchanged.
    • Admins add a variable in Settings → User runs (Variables for all steps, Variables for agent steps; a refused name is marked at its field) or in config.yaml: step_env.pass lists names for all steps, step_env.agent_pass names for agent steps only. A name may end in _* (for example AWS_*). Names starting with FACTORY_, SCF_, GH_, GITHUB_, GIT_ or SSH_ are refused, and provider keys are never passed by a list. SCF_STEP_ENV_PASS in the server's environment (comma separated) adds names too. A name on pass can be read by every user's shell steps, so use agent_pass for a secret that only agents need (such as CLAUDE_CODE_USE_BEDROCK with the AWS_… keys).
    • After the upgrade, a flow that relied on an inherited variable such as JAVA_HOME or NVM_DIR in a user's run needs that name added.
    • Hidden in output. The values of the provider key variables named in the config (api_key_env) are hidden in logs, live output and API answers. A value shorter than 8 characters is not hidden; the server logs a line when it finds one.
    • The limit. The agent's own key is still visible to the agent's shell tool unless the agent program hides it.
  • OS sandbox for steps of a user's run. On macOS, every shell step of a user's run starts inside a sandbox-exec profile. The step cannot read the Mac account's home, the data folder or other runs, cannot write outside its run folder (and not run.json, live.log, logs/ or the evidence files), and cannot use the Keychain, unix sockets or open apps. The network stays open. Its HOME is <run folder>/home and TMPDIR, TMP and TEMP are <run folder>/tmp, so caches in ~ start empty. A shell step marked Run in Docker is held by the container instead. Claude and Codex steps are held by the same profile. Their own sandbox is off, each run has its own empty agent folders, and they sign in by a token variable set for the server only (see "Trust"); without one the step is refused. Admin runs are unchanged.
    • Settings. Tick Allow user runs without the OS sandbox (sandbox.user_runs: off) to run user runs without it. If no sandbox works (not macOS, or sandbox-exec fails) and the box is not ticked, a user's run does not start: "This computer cannot hold a user's run in a sandbox, so the run was not started. An admin can allow user runs without it in Settings." The server variable SCF_USER_SANDBOX=off (or FACTORY_USER_SANDBOX=off) does the same.
    • Extra read paths. sandbox.user_read (Settings → User runs, Extra readable paths, or config.yaml) lists up to 50 absolute paths a user's shell step may also read (for example a tool installed in the home). Saving Settings keeps it.
  • The limit. Agent steps are not in an operating-system sandbox yet, and neither are runs with the sandbox switched off. For them, this is done through the environment of the steps. It is not an operating-system sandbox. A step runs as the server's macOS account, so it can still read that account's files and Keychain (~/.ssh, ~/.netrc, a gh login kept in the Keychain), call ssh itself, or set the variables again. With isolate_agents on, Codex agents skip the account's ~/.codex/config.toml too (see "Codex and your personal setup"); with it off, or in a step the OS sandbox holds, keep GitHub tokens and GitHub MCP servers out of that file. Claude Code agents skip the personal setup in these runs. A step marked Run in Docker gets nothing of the machine but the commit name; as before, the push hook does not run inside the container. A separate account or container per run is not included.
  • A token ("GitHub token" or "HTTPS token"): gh and git use it. Give it Contents, Issues and Pull requests, read and write, then press Test connection; a token made for reading only fails at the first push or comment.
  • A deploy key: git uses it over ssh, and nothing else (no ssh agent, no key or ssh settings of the server's account; host keys are kept in known_hosts in the data folder). The key is a file in the folder sign-in of the run folder, outside the workspace. It exists only while the marked step runs and is deleted when the step ends. A deploy key gives git access only: a step that calls gh fails with "a deploy key gives git access only; choose a token or the GitHub App under My repositories". Call gh by name; the check does not see gh called by its full path.
  • The GitHub App: each marked step gets a new token from the app, limited to this repository, for gh and git. It is never stored and is hidden in the output. A token lives one hour, so a marked step with the app must finish within one hour. A step that runs longer and is then refused fails with "the app's token ran out during the step"; resume the run to get a new token. If the app is not set up, not installed on the repository or GitHub cannot be reached, the run fails with a sentence that says so.

With the method "none" an admin's run uses the server's own access; a user's run fails with "set a token for this repository under My repositories". If the sign-in is missing, cannot be read or is refused by GitHub (expired, revoked, no access), the run fails and tells you to reconnect the repository here. A push to a protected branch is still refused and the secret scan still applies.

The sign-in folder. The sign-in folder is removed when the step ends and when the run ends, however it ends. A folder left by a crash is removed when the run is resumed and when the server starts. If a folder cannot be removed, the step or the resume fails with "the sign-in folder of this run could not be removed"; ask an admin to delete the folder sign-in in the run folder, then resume the run. A background process that a step starts is stopped when the step ends.

After the upgrade. An admin's repository with a deploy key or the app no longer uses the server's own access in marked steps. A deploy-key repository cannot run steps that call gh, such as the first steps of the built-in issue flows; choose a token or the app for it.

Test connection. The button on My repositories calls POST /api/repos/<id>/test (the owner, or an admin for any repository). It runs up to three checks and shows each with a short message: Read (a shallow clone), Write (git push --dry-run to a scratch branch name; nothing is pushed and no branch is created) and, for GitHub repositories, GitHub API (the repository, its issues and its pull requests can be read). The last result is saved as the connection status and returned by GET /api/repos as connection. It is cleared when the token, key, method or address changes, when the repository is transferred, and when its stored token or key is deleted. A test stops after 60 seconds. A second test of the same repository while one runs, and a repository changed during its test, answer 409. The messages tell wrong or expired tokens, a repository not found, read-only access (for a deploy key: "added without write access"), an unreachable host, host key problems, timeouts and a token without the Issues or Pull requests permission, and say what to do. A deploy key gives git access only, so for a GitHub repository with a deploy key the API check is skipped; issue and pull request work needs a token or the GitHub App. The API check only reads: the Foundry still needs "Read and write" for Issues and Pull requests, and the test does not prove that. A dry run does not check branch rules, so a protected branch can still refuse a real push. In an empty repository the push check uses a local commit that is never sent. Only an admin can test a repository with the method "none", whoever owns it; for a user the test answers 409. For that method the test uses the server account's git configuration, credential helpers, SSH configuration, keys and gh sign-in; GIT_* variables of the server are not used. SSH host keys: the first key seen is trusted and kept in known_hosts in the data folder; remove the host's line there after a real key change (for "none", the file is ~/.ssh/known_hosts of the server's account). The server's SSH configuration is not used for a deploy key. For the method "GitHub App" the test looks up the installation again and asks GitHub for a new short-lived token limited to that repository; clone, push check and API check use it (it is passed to git and gh through the environment only, and is never stored, logged or shown). If the app is no longer installed, the result says so (app-not-installed); if the app was removed from the settings, app-not-set-up; if its key or ID is wrong, app-broken. A changed installation ID is kept.

Provider, identity and scope. Every external connection is shown the same way: on a repository's Connection section, in the Authentication cell of the repository lists (provider, a separator and identity, with the scope under them) and on the Credentials page. Three parts:

  • Provider: GitHub for github.com; otherwise the host name of the address (for example git.example.com).
  • Identity: who the Foundry acts as: "GitHub App <slug>" (or "GitHub App" when the settings have no name), "token of <user name>" for an HTTPS token, "fine-grained token" for a GitHub token, "deploy key <type and comment of the public key>" (the key itself is not shown here), or "the server's own access" for an administrator's repository with no sign-in. A user with no sign-in sees "Needs authentication".
  • Scope: Read, Write and GitHub API, each "works", "failed" or "not checked", from the last connection test. A check that was skipped (the API check of a deploy key) is "not checked". A deploy key or the GitHub App adds "limited to this repository".

On the repository lists, a filter Authentication (?method=<method> in the address) narrows the list by method, with its own chip. With no repository that uses the method the list says "No repository uses this authentication." and offers Clear filters.

The My repositories page. Open My repositories in the sidebar (Advanced view) or Repositories (Admin view); the address is #/repos. The Simple view has no repository list: a project opens from Today. The page lists your repositories with the URL, how the Foundry signs in (the authentication method) and the connection status, which is "Not tested yet" until it is tested (see below). Add repository works in steps. Step 1 asks for the address; press Next. Steps 2 and 3 ask for the method and its details; Back returns to the address and keeps what you typed. Press Add repository to save. The Foundry then tests the connection by itself, and the dialog shows what it stored: the address, the method, the user name, the public key of a deploy key, the result of each check, and "A token is stored. It is never shown again." If the test fails, the repository is kept; press Test again, or Change details to enter new details. Press Done to close. The methods: a GitHub fine-grained personal access token (give it these repository permissions, each "Read and write": Contents, Issues and Pull requests), an HTTPS user name + token for other git hosts, an SSH deploy key, or the GitHub App. The token is typed in a password field and is never shown again. Change authentication keeps the stored token if you leave the token empty; a new method needs a new token. After Continue, a last step says what will be replaced or deleted; tick "Replace the current sign-in" and press Replace the sign-in. If a change fails and may still have been saved, the dialog reads the repository again and shows what is stored now. Remove asks first and deletes the stored token or key too.

With GitHub App you need no token. It is offered only for a GitHub repository with an https address, and only when the administrator has set up the app; otherwise the dialog says "GitHub App is not available: the administrator has not set up the app (Settings → GitHub App)". The dialog shows Install the app on GitHub (https://github.com/apps/<name>/installations/new). Install the app on this repository (choose "Only select repositories" and pick it), then save; the connection is tested right after you save. When you save, the server looks up the installation of the app on the repository and keeps its ID with the repository; if the app is not installed there, it says so (409) and nothing is saved. The row keeps the link, to install the app on more repositories or change which ones it may use. If the administrator removes the app, the row says "The administrator removed the GitHub App" under its attention state; choose another authentication. Remove does not uninstall the app on GitHub.

Local (no GitHub). An admin can connect a git repository on the server's machine instead. Choose Local (no GitHub) and type its absolute path (starting with /), for example /Users/me/projects/shop. Only an admin may add it; a user who is not an admin does not see the choice, and the server refuses it with 403. The Foundry checks the folder when you test the connection:

  • the folder exists, and it is the top folder of a git repository (not a folder inside one);
  • the folder and its .scf/stories/ folder can be written;
  • a branch is checked out (HEAD is not detached).

Move to GitHub. On a local project you own, the row has a Move to GitHub button (not shown on a read-only view). The dialog asks where the project goes:

  • Use one of my GitHub repositories: pick one from the list. Only GitHub repositories you connected with a token or the GitHub App are listed.
  • Create a new repository: type a name (name or owner/name). Private is ticked by default.

Tick Also move closed changes to move closed stories too. Press Check first: the dialog shows the dry run, with the repository, the branches and tags that will be pushed, and each story as create or skip. Nothing changes yet. Yes, publish is on only after a check that has no blocked stories; press it to move the project. The server checks that confirmation itself: it is single-use, expires after 10 minutes, and a move is refused with "Nothing was published" (409) before anything is created or pushed when the branches, tags or stories changed since the check. Cancel leaves everything local (see "Move a local project to GitHub" in the Work section). Progress and errors use the server's fixed messages. Cancel is off while the move runs. When it has finished, the list reloads; after a move that worked, the local project is no longer in it.

A watcher on a local repository works the same way without GitHub: it starts the stories set to go and reads the folder itself. Watchers that need GitHub (review comments, CI failures, release files) are refused for it, and the watcher form says why.

It does not call GitHub, and it asks for no token, user name or key. The repository keeps its stories in .scf/stories/ (see "Stories as files") and its story commits on scf/stories. The path must not contain control characters, must not be inside the Foundry's data folder, and cannot be changed later: to use another folder, remove the repository and add it again. With SSH deploy key you type the SSH address of the repository (git@host:path or ssh://…) and no secret. The Foundry makes a key pair, keeps the private key and shows the public key in the Authentication column, with Copy (it needs HTTPS or localhost; otherwise select the key and copy it yourself). Add the public key in the settings of the repository as a deploy key with write access (on GitHub: Settings → Deploy keys → Add deploy key, with "Allow write access"). Generate a new key makes another pair after a confirmation; the old key stops working, so add the new public key and remove the old one. When you change a repository with an https address to this method, the dialog also asks for its SSH address; changing a deploy-key repository to a token method asks for an HTTPS address. Errors from the server show in the dialog in plain words. A failed removal shows above the list, with Try again when the server asks for it (an old key is still in the Keychain). A repository without a method shows "Needs authentication" for a user. An admin can also choose "The server's own access". The page has no per-repository settings. An admin sets them on the Repositories page.

One repository (acme/app) in the Admin view: Overview, Connection with Test connection, and Outcomes

Outcomes on the repository view. The repository view (#/repos/<id>) has an Outcomes section on both displays, for a GitHub repository. It is the same card as on the Dashboard (Administration › Operations › Dashboard; see Outcomes), for that one repository: the repository is fixed, and you choose the Flow and the window (7, 30 or 90 days). The measures and their definitions are the same. You see only what you may see: no Cost per successful run, no Returning users, and for a user no model route or policy version filter. A measure that is read with an admin-only measure says how many are left out ("… for admins only"). A repository on another host shows "Outcomes are measured for GitHub repositories only." If the card cannot load, it says "Could not load the outcomes." with Retry; the rest of the page still works. The card reads GET /api/outcomes?repo=<owner/name>.

The Repositories page (admin). An admin opens Repositories in the sidebar (Admin view). The page has a switch: Mine (#/repos), All (#/all-repos) and Credentials (#/credentials, see below); a user never gets All or Credentials. The same two lists are also under Administration › People and access, as All repositories and Credentials. All lists the repositories of all accounts with the Owner column (name and e-mail, "blocked" for a blocked owner, "Unknown account" when the account is gone), the URL, the authentication method and the connection status ("Not tested yet" until the owner tests it). Rows with a problem come first, then by owner and address. Besides the usual states, a row can say "Not on the app list" or "Watcher problem". The next step offers Test connection, and Open shows the repository. There is no + Add repository on All. Settings, Definition of Ready, Transfer and the watchers are on the repository view (#/repos/<id>): the sections Branches, Run settings and Watchers, and Transfer under Dangerous actions. For a repository of another account you cannot change the authentication, remove it or generate a new key; only the owner can. Three calls, all admin only: GET /api/admin/repos, PUT /api/admin/repos/<id>/settings and POST /api/admin/repos/<id>/transfer {"email": …}.

  • Settings per repository (Edit in the sections Branches and Run settings): the test command (one line, up to 500 characters), the docs to update (up to 50 paths, no leading /, ~ or -, no ..), the protected branches (up to 50 patterns), and the names of the main and the develop branch, and the release-build recipe (Edit in the section Release recipe; the YAML text, up to 16 384 characters, checked on save with the same rules as .factory/release-build.yaml; a wrong recipe is refused with a message that names the key). Input is checked on the server: lengths, no control characters. Branch names follow git's rules, are at most 200 characters, and may not be @. In a pattern * matches any text and ? matches one character; […] is not allowed. {} clears the settings.
  • Decide technical questions itself (a checkbox in the Run settings dialog, field questions.decide_technical): on by default, so a repository that has no such setting, including one registered before this change, counts as on. Off: the Foundry asks you every question on the issue. Runs get it as $FACTORY_DECIDE_TECHNICAL (1 or 0), read when a run starts or resumes. See Questions the Foundry decides itself. If a run's repository is registered under two accounts and one of them is off, the run is treated as off.
  • Also push to the remote (a checkbox in the Run settings dialog, field pushRemote, for a local project with a git remote only): off by default; off removes the field. It can be turned on only through the owner's Yes, publish (POST /api/repos/:id/publish-remote, see the API table); a plain settings save that turns it on is refused (409). When on, the Foundry pushes develop from your folder after each merge (see "Local projects"). Runs get it as $FACTORY_LOCAL_PUSH (yes).
  • The settings are only stored and shown, with three exceptions. Runs do not use the other settings yet: the test command still comes from the flow var test_cmd and the protected branches from protected_branches in config.yaml. The release-build recipe is read by the flow release-build when the commit has no .factory/release-build.yaml (see "Build release files on this machine"). The "decide technical questions" switch is read by the engine when a run starts or resumes (see above). The "also push to the remote" switch is read by the engine for each run of a local project (see "Local projects"). The settings are never in GET /api/repos and never shown on My repositories.
  • Definition of Ready per repository: a short ordered list of checks a story must meet before it may go to the backlog. Each item has an id and a text. With nothing stored, a repository has the default list of seven items: the value is clear (who and why); it stands on its own or its dependencies are named; every acceptance criterion can be checked; it is small enough to build in one go; there are no open questions; it says what is out of scope; it contains no implementation plan. The default items also have a fixed rule key that later parts use to pick the check; an item an admin adds has none.
    • Admin: Edit Definition of Ready in the section Run settings of the repository view opens a dialog: reword, add, remove, move up or down, add a removed default item back, Back to the default, Save. The API is PUT /api/admin/repos/<id>/ready {"items": [{"id"?, "text"}]}; {"items": null} or the unchanged default list stores nothing. Limits: 1 to 20 items, each 1 to 200 characters on one line, no control characters, no two items with the same text, no unknown or repeated id. A refusal is a 400 with one plain sentence.
    • Owner: My repositories shows the list read-only. GET /api/repos/<id>/ready answers { items, isDefault } to the owner and to an admin; anyone else gets 404.
    • A transfer keeps the list; removing the repository removes it. It is only stored and shown for now: no story is checked against it yet.
  • Transfer moves a repository to another account, chosen by e-mail (any case). It is refused, with a plain message, when the e-mail is missing or not valid (400), no account has it (404), the account is blocked (409), or it already has 50 repositories (400). Afterwards the repository is in the new owner's list and no longer in the old one's, and its settings stay.
  • Sign-in on transfer. A personal token (github-token, https-token) is deleted and the method becomes none. For a user that reads "Needs authentication"; for an admin it reads "The server's own access", like every none repository of an admin. The new owner sets the sign-in again. An SSH deploy key belongs to the repository, not to a person: it moves to the new owner with its public key, so the key that was added in the repository's settings keeps working (a missing key refuses the transfer with 409). A GitHub App installation is kept the same way: the method and the installation ID move with the repository (the connection status is cleared). The wipe of a token cannot be undone; transfer back and type the token again.
  • Queued and running runs of the old owner are not stopped.

The Credentials page with the stored credentials of all accounts

The Credentials page (admin). Open Administration in the sidebar, then Credentials under People and access (#/credentials). It is also the third scope of the admin's Repositories page (Credentials, after Mine and All). A user never gets it. It is a table of the stored credentials of all accounts, sorted by owner name and then by name, with Owner, Provider, Identity, Scope, Fingerprint, Created and Last used ("never" when it was not used yet). Provider, Identity and Scope are those of the repository the credential belongs to (a credential named repo:<id> of the same owner); a credential with no repository shows "No repository" and its own type and name as identity. If the repository list cannot be loaded, the row says "Unavailable" and "Details unavailable (…)", and Owner, Fingerprint, Created and Last used are still shown. Long fingerprints wrap. The owner shows "deleted account" when the account is gone. It is for looking only: there is no add, change or remove button, and no secret is ever sent. One call, admin only (a user gets 403): GET /api/admin/credentials. If the store cannot be read, the call answers 500 with the same sentence as GET /api/credentials.

Repositories. Every account has its own list of GitHub repositories, kept in repos.json in the data folder (mode 0600). A repository is a record: id, owner (account id), url, method and added, and it may hold settings, which only an admin can read (GET /api/repos never has them). A deploy-key record also has credentialId and publicKey. It never holds a secret (a public key is not one). These calls manage it:

  • GET /api/repos lists your records, with the publicKey of a deploy key and the installationId of a GitHub App record (a record with the method github-app has no credential). A GitHub record also has github, its owner/name in lower case without .git; so do the answers of adding and changing a record.
  • GET /api/repos/methods answers {methods, githubApp}: the methods you may choose (none only for an admin, github-app only when the app is set up) and githubApp: {available: true, installUrl} or {available: false}. It never shows the app ID or the key path.
  • With "method": "github-app", POST /api/repos and PUT /api/repos/<id>/auth take no token and no user name, and the installation ID is never read from the request. The server checks the request first (a request it refuses itself makes no call to GitHub), then asks GitHub for the installation. Answers: 400 when the app is not set up on this server, 409 when it is not installed on the repository, 500 when the app does not work (ask the administrator), 502 when GitHub cannot be asked.
  • POST /api/repos {"url": …, "method": …, "username": …, "token": …} adds one (201; 409 if you or another account has it; 400 for a bad URL or method; at most 50). {"name": "owner/name"} still works. Optional autonomy (observe, plan-only, guarded-write or delivery-handoff) and autonomyReason set the starting level (see "Starting level" under Autonomy levels); delivery-handoff is for admins only (403 otherwise).
  • PUT /api/repos/<id>/auth changes the method, user name, token or address. What you do not give keeps its value. The old stored token is wiped. 404 for an id that is not yours. {"newKey": true} makes a new deploy key (only for the method ssh-deploy-key; 400 otherwise); the answer holds the new publicKey.
  • DELETE /api/repos/<id> removes the repository and its stored token or key (404 if it is not yours).
  • DELETE /api/repos/<owner>/<name> removes a GitHub repository by name (the old form).

The URL is https://host/path, ssh://[user@]host[:port]/path or git@host:path; owner/name means https://github.com/owner/name. Local paths, file:, ext:: and other transports, a user name or password in the URL, and control characters give 400. The record keeps the address as you wrote it (for example git@host:team/app.git stays that way). The same repository in another case, with or without .git, or in https or ssh form counts as one repository. PUT …/auth may change the address only to another form of the same repository.

Methods: github-token (a GitHub fine-grained token, only for https://github.com/…) and https-token (a user name and a token, any https host). The token is stored in the credential store as repo:<repository id>. none is the default without a method: the server's own access for an admin, "needs authentication" for a user, who cannot choose it. If a repository's token is removed with DELETE /api/credentials/<id>, set it again with PUT …/auth.

ssh-deploy-key works only with an SSH address (400 with "SSH address" in the message for https); it takes no user name and no token. The Foundry makes an ed25519 pair with /usr/bin/ssh-keygen (no passphrase, no comment) in a private temporary folder that is removed again. The private key is stored as the credential repo:<repository id> of type ssh-key and never leaves the server; the record and GET /api/repos show the publicKey. If ssh-keygen fails, the call answers 500 "the SSH key could not be made; see the server log". If the key was removed with DELETE /api/credentials/<id>, generate a new key (PUT …/auth with {"newKey": true}, or the method ssh-deploy-key again, which also repairs a missing or wrong credential).

If repos.json cannot be read, the calls answer "the repository list is not working; see the server log".

Which flows a user may start. A user starts a published flow by name (POST /api/runs {"flow": "<name>", "task": "…", "vars": {…}}), never by yaml (403 "only an admin can run a flow that is not saved") and never in a folder of their choice (403 "only an admin can choose the folder"). A flow is published when its publish: section has enabled: true (see "The editor"). Built-in flows are not published; save a copy and publish it. After an upgrade users see no flows until you publish some. An unpublished flow answers 404.

GET /api/flows shows a user the published, valid flows as {name, title, description, version, usesTask, fields}. usesTask is true when a step reads the task ({{task}}, FACTORY_TASK or SCF_TASK); the + New change page (#/start) shows a Task box only when it is not false. The built-in issue-plan and issue-gitflow read the task in their planning steps: what you type reaches the planner on top of the issue, and it may be left empty. fields lists the variables that are fixed (shown with their value) or user fills in (with label, help text, default and whether it is required); hidden variables are not listed. In vars a user may set only the inputs (403 you cannot set the var "<name>" for any other). A required input that is empty gives 400 fill in "<label>". Hidden and fixed variables keep the value of the flow or of the folder's own settings.

If the flow uses github_repo, it must be one of the user's repositories: when it is an input, give it in vars (403 "<name>" is not one of your repositories). When none is given and the flow or the folder's own settings name a repository that is not the user's, the answer is 403 set the var "github_repo" to one of your repositories (or, when github_repo is not an input, this flow works on a repository that is not one of yours). A flow without github_repo runs in the server's default folder. A user's run keeps the variables it had when it was queued.

Versions. Each save of a published flow sets publish.version: 1 the first time, then one more for each change (compared with every same-named copy, in all places). Saving it unchanged keeps the number; turning the flow off and on again raises it. A run keeps the flow it started with, even if you save a new version while it waits, and the run page shows "Flow version". If you edit a flow file by hand, raise the number yourself.

Trust. Roles limit the API and the pages. They do not fully limit what a run can do. The server's GitHub login is not put into a user's run. On macOS, every step of a user's run, shell and agent, is held by a sandbox profile: it cannot read your Mac account's files, the Keychain or the agent login, and it writes only in its own run folder. Agent steps may not read or delete Keychain items with security (see "What agent steps may run"; Codex without the OS sandbox is a limit there). Agent steps sign in by a token variable you set for the server: CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN for Claude, or a Claude token stored once in the Keychain with scf auth set-token (used only when none of the three variables is set); OPENAI_API_KEY or CODEX_API_KEY for Codex; the provider's api_key_env for a compatible provider. A local model needs none. Without one the step is refused. Each run has its own empty agent folders, so your agent settings, MCP servers and skills do not reach it. The agent's shell tool can see the token. The limits are in docs/THREAT_MODEL.md (SR-O1): macOS only, and with sandbox.user_runs: off nothing is held. To switch user runs off, change the rule POST runs to no in src/server/permissions.ts.

Security rules for published flows. A published flow is code that users steer with text. Keep to these rules:

  • Never paste user text into a shell command: no {{vars.<input>}} and no bare {{vars}}. Read "$FACTORY_VAR_NAME" and "$FACTORY_TASK", always in quotes.
  • Never eval or sh -c a value users fill in. Do not publish test_cmd or agent_env as an input.
  • For users' repositories use workspace: empty and clone in a repo_access step. worktree is a branch of the server's own folder, so it is refused for users, like inplace. Only admins can run those flows.
  • Give agent steps only the tools they need. The task and the issue text are untrusted instructions.
  • Keep secrets out of vars. Hidden variables are not secret from the run itself.

The flow editor refuses {{vars}} in a shell run and agent_env as an input when you save a flow that has a user input. from on resume is for admins only; a user gets 403. A user's run of an inplace or worktree flow fails before any step ("This flow works in a branch of the server's folder, so only an admin can run it." for worktree), the flow is not listed for users, and starting it gives 403. A user also gets 403 for the diff of an inplace run. The server's own git calls for a workspace ignore hooks, fsmonitor and the global git settings. A user's run without github_repo keeps its learnings in a file of its own account. What is protected and what is still open is in docs/THREAT_MODEL.md.

After an upgrade. Existing accounts with the role user keep only the pages of the user display (see above): no Board, Flows or Administration. Change a role with scf user role <e-mail> admin|user, or create an admin with scf user create --admin under another e-mail.

The table. An admin may make every call.

CallAdminUserDataWhat it does
GET /api/infoyesnoadminserver settings and today's cost
GET /api/configyesnosecretread the settings from config.yaml; the X-Config-Version header names this version of the file. The Slack webhook is not returned: notify.slack_webhook_set says whether one is set. plugins and services are not returned
GET /api/pluginsyesnosecretthe plugins loaded at server start, in order (label, module, version and what each registered), and plugin problems; never their options
GET /api/plugins/uiyesyessecretthe pages and menu items that plugins added and your role may see (pages: plugin, id, title, module address, roles; menu: plugin, page, label); never a folder, a file path or a plugin option. With ?as= the role of the viewed user
PUT /api/configyesnosecretchange the settings (not plugins or services: a body with either key is refused with 400, they are set in config.yaml only). With an X-Config-Version header from a read, a stale version is refused with 409 (reload first); the answer carries the new version. Without the header nothing is checked. A notify.slack_webhook left out keeps the stored webhook; null removes it; a string sets it. A broken config.yaml answers 400 with the line number. A refused save answers 400 and lists its problems as issues (path, message; at most 50) next to error
GET /api/settingsyesnosecretthe description of the settings (label, help, kind, range, default, when a change takes effect) and the start-up settings with their values; no secret
POST /api/settings/resetyesnosecretremove one described setting from config.yaml so it takes its default (a parent left empty goes too; comments above it stay). With an X-Config-Version header a stale version is refused with 409; the answer carries the new version and removed
GET /api/restartyesnosecretwhich saved settings need a restart, whether the server can restart itself, and whether a restart waits (why, since when, active runs)
POST /api/restartyesnosecretrestart when no story is running: no new runs start until the active runs are done, and the watchers keep running (only a move of the data folder stops them); only when the server runs under the supervisor; writes an audit line
DELETE /api/restartyesnosecretcancel a restart asked for after a settings change: runs and watchers start again; writes an audit line
GET /api/watchersyesnoadminlist the watchers
POST /api/watchers/:id/tickyesnoadminrun a watcher now
POST /api/watchers/:id/pauseyesnoadminpause a watcher of a repository, as Disable on the Watchers page: it checks nothing and starts no new run; runs that are going on go on; answers its id, repository, enabled and state; a watcher in config.yaml answers 409; writes an audit line
POST /api/watchers/:id/resumeyesnoadminresume a paused watcher of a repository, as Enable; answers as pause; writes an audit line
GET /api/governoryesnoadminthe load governor for the Overview page: the runs at once now and the caps that hold with their reasons, the free cores, the load of other programs with the top 5 programs by name, the Foundry's own load, and the changes of the cap in the last 24 hours; admins only, as it names programs
GET /api/busyyesnoadminbusy mode ("I'm using this machine"): whether it holds, the switch set by hand (since, until) and the program of governor.busy_apps that is running
POST /api/busyyesnoadminswitch busy mode on: at most governor.busy_runs runs at once and new run processes start at background priority; hours (above 0, at most 24) sets an end, without it busy mode stays on until it is switched off
DELETE /api/busyyesnoadminswitch busy mode off; busy mode that comes from a running program of governor.busy_apps stays until the program ends
GET /api/monitoryesnoadminwhether the monitor makes bug stories (on, off, quiet after a restart, or stopped by the circuit breaker), when it last checked, how many stories it made today, its findings with their states, its detectors and its mutes, and the monitor's settings with their ranges, defaults, values and whether config.yaml states them
GET /api/monitor/findings/:idyesnoadminthe evidence, bug stories and runs of one finding of the monitor
POST /api/monitor/storyyesnoadminmake the bug story of one finding of the monitor now (the waiting rules do not apply; the off switch, mutes and the two tries do)
POST /api/monitor/offyesnoadminstop the monitor from making bug stories
POST /api/monitor/onyesnoadminlet the monitor make bug stories again
POST /api/monitor/mutesyesnoadminmute one detector or one finding of the monitor, with a reason, for a time or for good
DELETE /api/monitor/mutes/:idyesnoadminend a mute
POST /api/monitor/retryyesnoadminlet the monitor try again for a finding that waits for a person (two bug stories did not fix it)
POST /api/cleanyesnoadminclean up old runs
GET /api/providersyesnoadminagent providers
GET /api/onboarding/progressyesyesadminwhere this account is in the Get started guide: { step, answers, at }, or { step: null, answers: {} } when nothing is saved; only your own account
PUT /api/onboarding/progressyesyesadminsave where this account is in the Get started guide (step: one of the guide's steps; optional answers: an object of at most 20 keys, each a lowercase name, at most 16384 bytes as JSON and nested at most 8 deep); the guide's own answers are checked too (starter, about with who and what, name, style, where: local or github; length limits, no control characters); a bad body answers 400 without the value, answers that are too large 413; replaces the saved entry, but repoId (the made project) and making (a project being made) are only set by the server and stay as stored; only your own account
DELETE /api/onboarding/progressyesyesadminclear where this account is in the Get started guide; answers 200 also when nothing is saved; only your own account
POST /api/onboarding/sign-inyesnoadminstart the sign-in of Claude Code (claude auth login) or Codex (codex login) on the computer that runs the Foundry (tool: claude or codex); its window opens there; fixed arguments, no shell, closed stdin, a 5-minute limit, one at a time per tool, stopped when the server stops; answers started, done, missing or failed in plain words, never the tool's output; admins only, as it runs on the server machine
GET /api/onboarding/agentsyesnosecretthe answers about Claude Code and Codex (which tools, which plan, how to share, how busy), the settings they give, the current values of those six settings, the ones kept because an admin set them by hand, and a summary in plain words; admins only
PUT /api/onboarding/agentsyesnosecretsave the answers (answers) and write the settings they give to config.yaml (concurrency, governor.usage_percent, governor.priority, default_model, router.fallback, router.rules); a setting an admin set by hand is kept and listed in kept unless replace names it; the same answers again change nothing; bad answers answer 400; with an X-Config-Version header a stale version is refused with 409; admins only
GET /api/startersyesnoadminthe starters you can make a project from (id, title, description, needs, source: built-in or own) and the broken own ones (id, source, problem); never a folder path; admins only; an invited Simple account asks its admin (#823)
POST /api/starters/:id/projectyesnoadminmake a new project from a starter (name, optional parent, an existing absolute folder outside the data folder): a git folder with main and develop, connected as a local repository with the starter's test command and tested; answers 201 with repo and connection; with guide: true one project is made per account and recorded in the guide answers once it is complete: a repeat answers 200 with existing: true and the same id, 409 when the guide was started again meanwhile, a progress file that cannot be used answers a fixed 500; 409 when the folder exists or the starter is broken, 404 for an unknown or hidden starter; any failure removes what it made; writes the audit line repo-add; with guide: true the project gets the Simple daily cap (simple_project_daily_budget_usd, at most 1,000,000) as its own; admins only; an invited Simple account asks its admin (#823)
POST /api/onboarding/test-callyesnoadminone tiny call through Claude Code (haiku) or Codex (its default model, low effort) (tool): no tools, no personal hooks or setup, a fixed prompt; answers ok, missing, signed-out or failed with a plain explanation, never the tool's output; admins only
GET /api/setup-checkyesnoadminthe setup check: whether git, Claude Code, Codex and their sign-ins (and with need=node Node.js) are ready on this computer, in plain words with a command or link to fix each; runs only fixed version, help and sign-in checks; admins only, as it describes the server machine
POST /api/providers/testyesnoadmintest a provider
GET /api/evalsyesnoadmineval reports
GET /api/statsyesnosummarystatistics
GET /api/flowsyesyesadminlist flows (a user sees the published flows only; an admin gets that list with ?published=1)
GET /api/flows/:nameyesnoadminread a flow
PUT /api/flows/:nameyesnoadminsave a flow
DELETE /api/flows/:nameyesnoadmindelete a flow
GET /api/promotionsyesnoadminwhether each component (?kind= and ?id= narrow the list; id needs kind) is promoted, can be promoted or is blocked: its kind, id, version and hash, the promotion record (report ids and hashes) or the blocking suites with what to do; no report content
POST /api/promotionsyesnoadminpromote one component (kind, id, reportId of a passing safety report) and write its record; a component that is blocked answers 409 with the blocking list and writes nothing; writes an audit line
GET /api/blocksyesnoadminlist blocks
PUT /api/blocks/:idyesnoadminsave a block
DELETE /api/blocks/:idyesnoadmindelete a block
POST /api/validateyesnoadmincheck a flow; answers { ok, flow, warnings } (warnings is [{ path, message }]: things that still run but look wrong) or { ok: false, error, issues } (issues is [{ path, message }], empty for a YAML syntax error)
POST /api/generateyesnoadminwrite a flow with AI
GET /api/queueyesyessummarythe queue (a user sees their own queued runs and how many are ahead)
GET /api/runsyesyessummarylist runs that are not archived (a user sees their own); ?archived=1 lists the archived ones; q, repo, flow, status and since narrow the list before the 200-run cap
GET /api/run-ownersyesnosummarythe accounts that have runs, for the owner filter
GET /api/run-filtersyesyessummarythe repositories and flows of the runs you can see, for the filter menus
GET /api/outcomesyesyessummarythe outcome measures of the runs you can see over the last days (1 to 90, default 30), with optional repo and flow, and for an admin model (agent:provider:model) and policy (id@version); a user sees no cost, no returning users and no model or policy values
GET /api/test-timesyesyessummarythe slowest test files of the last 7 days per repository of the runs you can see: the median and latest time of each file from the runs' test-times.json, and whether it got slower (latest more than 2 × the median, from at least 3 runs); the 10 slowest files and every other file that got slower
GET /api/autonomyyesnosecretthe autonomy level of every repository and flow and its promotion gate: whether it has earned the next level, with the checks evidence completeness, eval pass rate, policy conformance, operational SLOs and approval (pending), any waiting promotion request with its token, who asked and who may approve it, the level of the newest run, and the accountable owner; read-only, changes nothing
GET /api/autonomy/historyyesnosecretthe changes of the autonomy levels, newest first: every audit line whose action starts with autonomy- (at most 500, with more when older ones exist); ?target=repos:<id> or ?target=flows:<name> reads one component; read-only
POST /api/autonomy/promoteyesnosecretask for one autonomy level more for a repository or flow (kind repos or flows, id, to, reason of 1 to 200 characters); to must be one level above the current one and the promotion gate must pass (else 409 with gate); the answer carries the request token; writes an audit line
POST /api/autonomy/approveyesnosecretcarry out a waiting promotion request (kind, id, to, token); only the accountable owner may approve, and a move to guarded-write or delivery-handoff needs an approver who did not ask (unless there is one active admin); the level and the gate are checked again, and a request that no longer fits expires (409); writes an audit line
POST /api/autonomy/demoteyesnosecretlower an autonomy level at once (kind, id, to, reason); any admin, no gate; the component can go up again only through promote and approve; writes an audit line
POST /api/runsyesyessummarystart a run (a user: a published flow and own repositories; an admin with likeUser: true follows the same rules; a release-build flow: a user may build only the repository's default branch (its mainBranch setting, else main), also when the published flow fixes the ref)
GET /api/runs/:idyesown runssummaryread a run (a user: without costs and setup)
GET /api/runs/:id/issue-limityesnoadminthe spending limit of the run's issue: what the issue, its split parts and retries cost, the default, the override and the limit in effect
PUT /api/runs/:id/issue-limityesnoadminset (limitUsd above 0) or clear (null) the spending limit of the run's issue and its split parts; writes an audit line
POST /api/runs/:id/cancelyesown runssummarycancel a run that runs, is queued, waits or is stopped
POST /api/runs/:id/not-nowyesown runsinboxput aside a run that failed ("Not now" in the Simple view) until it fails again; 409 when it did not fail; kept in the same store as Your turn dismissals
POST /api/runs/:id/archiveyesown runssummaryarchive a finished run: it leaves the list of runs (GET /api/runs?archived=1 lists the archived ones); nothing is deleted
POST /api/runs/:id/unarchiveyesown runssummarytake a run out of the archive again
POST /api/runs/:id/resumeyesown runssummaryresume a run (an architect run: ask again from its refinement session); 409 when its issue is closed on GitHub (see "A run of a closed issue" in chapter 3)
POST /api/runs/:id/answeryesown runsinboxanswer the questions a run stopped with; the run continues with the answer
POST /api/runs/:id/approveyesown runsinboxapprove a run, with a note; 409 for a closed issue, as for resume
POST /api/runs/:id/rejectyesown runsinboxreject a run, with a note; 409 for a closed issue, as for resume
POST /api/runs/:id/checks/addyesown runsinboxadd a check of your own to a change that waits for your check (try, expect, at most 300 characters each, rev optional); it is kept for the next round; 400 for an empty part, 409 when the run does not wait, is queued or moved on, the checks changed since rev, or it has 4 checks of your own
POST /api/runs/:id/checksyesown runsinboxmark a check of a change that waits for your check (check: the id of a check from the plan, mark: works, not-quite, or null to take the mark back, rev: the checksRev you read, optional); the marks are kept with the run and shown again on its page; 400 for an unknown check or mark, 409 when the run does not wait, is queued or moved on, or the checks changed since rev
GET /api/runs/:id/eventsyesown runslogfollow a run live (a user: without costs and setup)
GET /api/runs/:id/diffyesown runsdiffthe changes of a run
GET /api/runs/:id/evidenceyesown runssummarythe evidence of a run: its manifest, whether it still verifies, and the hashes of the files it names (never their content; a user: without models, policy rules, pack hashes and account ids; policyDecisions holds the grouped policy decisions of the run); state is not_available for a run without a manifest
GET /api/runs/:id/contextyesown runssummarythe context sources of a run and the ones left out, each with a status and a next action (never source text; a user: no address, id or owners for any entry, and only kind, classification, selection and freshness for confidential and restricted sources); state is absent for a run without a bundle
GET /api/runs/:id/test-timesyesown runssummarythe slowest test files (at most 10) of the run's last test step, from test-times.json, with the suite total; badly formed entries are left out and counted in dropped; state is absent for a run without the file
GET /api/runs/:id/transcript/:nyesnologthe transcript of a step
GET /api/nextyesnosummarywhat happens next, for all runs
GET /api/healthyesnoadminserver health, with the package version (package)
GET /api/boardyesnosummarythe board of all work
GET /api/searchyesyessummaryfind runs, repositories, refinement sessions and flows by text or id (a user: their own and the flows they can start; an admin: all accounts and the board's issues)
GET /api/sinceyesnosummarywhat changed since a time
GET /api/feedyesyessummarywhat changed since since (the seq of your last answer): { seq, changes: [{ kind, id, at }] } with the kinds turn (a Your turn item), run, repo and change (a change request), never any detail; wait (0 to 30 seconds) holds the call until a change you may read is recorded; reset: true when since is missing or older than what is kept (changes younger than 24 hours and the newest 10,000 are kept, within a hard cap of 20,000); only what you may read, and a service account only the kinds whose read route is in its scope; read the details through their own routes
GET /api/noticesyesnoinboxthe notices the Mac shows, for programs: { seq, notices: [{ seq, kind, at, title, text, key, runId, link }] } after since (the seq of your last answer); one notice per Your turn item (turn), per run that succeeded (done, when success notices are on) and per daily summary (summary), with the text the Mac shows and a link that uses the public address when it is set; wait (0 to 30 seconds) holds the call until a notice is recorded; reset: true when since is missing or older than what is kept (7 days); known secret values are redacted; admin only, or a service account whose scope has GET notices or class:inbox; refused (403) to a service account while a repository is closed to service accounts
GET /api/your-turnyesnoinboxwhat waits for you
POST /api/your-turn/dismissyesnoinboxdismiss an item
POST /api/your-turn/restoreyesnoinboxrestore dismissed items; with { "key": "…" } only that item
GET /api/your-turn/detailyesyesinboxthe questions, plan or split of an item; a user: only an item of a project they own whose watcher does not use the server's own GitHub login (any other item: 404, as for an unknown one)
POST /api/your-turn/actyesyesinboxanswer, approve, reject or retry an item, as a comment on the issue (on a local project: on the story, with no GitHub call); retry of a closed issue is 409, as for resume; a user: only on an item of a project they own, not with the server's own GitHub login (any other item: 404), and the answer is that of your-turn/mine
GET /api/your-turn/mineyesyesinboxthe items you may answer, approve or retry: { items: [{ key, kind, runId?, acts }] } with opaque keys (a user: only items of projects they own, not with the server's own GitHub login; an admin: all); no repository name and no comment text
GET /api/clarityyesnoinboxhow long items waited for you, and what Your turn missed
POST /api/passwordyesyessecretchange your own password (the other sessions of the account end)
GET /api/me/viewyesyesadminyour view (Simple, Advanced or Admin) and the views your role may choose; without a choice an admin gets Admin and a user Advanced; also the contact text of the Help page (helpContact, empty when not set)
PUT /api/me/viewyesyesadminchoose your view (view: simple, advanced or admin); it is kept for your account and used at the next sign-in on any device; a view your role may not use is refused with 403. The view changes only what the display shows, never what the server allows
GET /api/account/metrics-sharingyesyessecretyour own answer to "may the metrics of your runs be shared?": allowed (whether an admin allows sharing), answer (unasked, yes or no) and changed (when it last changed, or null); only your own account, also for an admin; a call with as= (a preview of another account) is refused with 403
PUT /api/account/metrics-sharingyesyessecretset your own sharing answer (answer: yes or no) and write an audit line; the same answer again changes nothing; refused with 409 while an admin does not allow sharing, and with 403 for a call with as=; there is no way to set the answer of another account
GET /api/account/metrics-sharing/previewyesyessecretwhat the shared metrics would send and what was sent last: next (the day and the report of the next push) and last (time, day and the receiver's answer, or null before any send); a user gets a report of their own runs only and no body of the last report, an admin the install's report and the last report; the install id is always zeros; a call with as= is refused with 403
GET /api/credentialsyesyessecretyour stored credentials
POST /api/credentialsyesyessecretstore a credential
DELETE /api/credentials/:idyesyessecretremove a credential
GET /api/usersyesnosecretlist the accounts
GET /api/users/limitsyesnosecretthe default limits for all accounts and the overrides per account (all three are enforced)
PUT /api/users/limitsyesnosecretset or clear the default limits: runs at the same time, runs per day, daily budget in USD (null clears one)
POST /api/usersyesnosecretadd an account without a password; the answer has its one-time set-password token; optional view (simple, advanced, admin, open to the role): a Simple account opens the Get started guide after its first password
PUT /api/users/:idyesnosecretchange the name, e-mail or role of an account
PUT /api/users/:id/limitsyesnosecretset or clear the limits of one account; a cleared one follows the default again
POST /api/users/:id/blockyesnosecretblock an account, end its sessions and cancel its queued jobs
POST /api/users/:id/unblockyesnosecretunblock an account
POST /api/users/:id/linkyesnosecreta new set-password token for an account without a password
POST /api/users/:id/resetyesnosecrettake the password of an account away, end its sessions and give a one-time set-password token
POST /api/users/:id/unlockyesnosecretremove the lock after too many wrong tries (a short wait for the address can remain)
GET /api/users/:id/app-reposyesnosecretthe repositories an account may connect through the GitHub App
PUT /api/users/:id/app-reposyesnosecretset the repositories an account may connect through the GitHub App (owner/name or owner/*); an empty list allows none
DELETE /api/users/:idyesnosecretdelete an account with its sessions, repositories, refinement sessions, Ask Foundry conversations and stored credentials
GET /api/service-accountsyesnosecretlist the service accounts (accounts for programs) with their scope, token state and last use, the person each acts for (actsFor, actsForName, actsForProblem), the routes a scope may hold (grantable) and the person accounts it may act for (people); never a token
POST /api/service-accountsyesnosecretadd a service account (name, scope: rule keys such as GET runs, actsFor: the id of a person whose work it sees and answers); no password, no browser session; the answer has the token, shown once; a scope with a route that can never be granted (credentials, users, settings, autonomy, self-update, plugins, the audit export) is refused with 400
PUT /api/service-accounts/:idyesnosecretchange the name, scope or actsFor of a service account (same checks as when it is added; actsFor: null clears it)
POST /api/service-accounts/:id/rotateyesnosecretgive a service account a new token; the old one stops at once; the answer has the new token, shown once
POST /api/service-accounts/:id/revokeyesnosecretrevoke the token of a service account; it stops at once; rotate gives a new one
GET /api/skills/lifecycleyesnoadminthe skill versions that are deprecated, quarantined, retired or revoked (a release revocation wins over a local state), and a problem when the lifecycle record cannot be read
POST /api/skills/lifecycleyesnoadminset the lifecycle state of one approved or built-in skill version (key, state, reason, optional replacement); the answer has the transition and the lockedRuns; a revoked version never changes again (409)
POST /api/skills/lifecycle/allow-runyesnoadminlet one run go on with a quarantined skill version (runId, key, reason); the version is checked against the skills folder of the run's own workspace; 409 for a revoked version or a run that does not lock it; resume the run afterwards
GET /api/audityesnologread the audit log, newest first, with filters
GET /api/audit/exportyesnosecretdownload the audit log as CSV, with the same filters
POST /api/audit/service-lineyesnoadminfor a service account only (a person, also an admin, gets 403): write one line of its own into the audit log (event, result ok, refused or failed, optional code and detail of at most 300 characters), with its client label and the person it acts for; the text is the program's claim; at most 120 lines a minute (429 with Retry-After); granted only by its own key
GET /api/reposyesyessummaryyour repositories, each with its autonomy level
GET /api/repos/methodsyesyesadminthe sign-in methods you may choose (none and local only for an admin), and the link to install the GitHub App
POST /api/reposyesyesadminadd a repository (a URL, and a token or a deploy key for it; an admin may also add local: the absolute path of a git repository on this machine, whose stories stay in .scf/stories/)
PUT /api/repos/:id/authyesyesadminchange the method, user name, token or address of your repository, or make a new deploy key
POST /api/repos/:id/move-to-githubyesnoadminmove your local project to GitHub: create a private repository with your GitHub token sign-in (or use one of your GitHub repositories), push all branches and tags (never forced), move the stories, then move the watchers and settings and remove the local record; dryRun changes nothing and answers a single-use confirm token (valid for 10 minutes, none when a story cannot go along); a real move needs that token and stops with 409 ("Nothing was published") when it is missing, used, expired, for another request, or when the branches, tags or stories changed since the check; safe to repeat
POST /api/repos/:id/publish-remoteyesnosecretYes, publish for the plain push to the folder's remote (only the owner of the local project): { dryRun: true, settings? } shows the remote of the develop and of the main branch (addresses without sign-in), the branches and the tags, and answers a single-use confirm token; { confirm, settings? } then saves the settings and turns pushRemote on in one step; 409 when the token does not fit, the remotes or the settings changed since the check, or the folder has no remote; writes an audit line
POST /api/repos/:id/testyesyesadmintest the connection of your repository (an admin: any repository); the result is saved as its connection status
GET /api/repos/:id/readyyesyessummarythe Definition of Ready of your repository (an admin: any repository)
GET /api/repos/:id/epicsyesyessummarythe epics of your repository with counts, growth, the expected finish and what holds each up, from what the watchers saved (no call to GitHub); saves the day's forecast (an admin: any repository)
GET /api/repos/:id/epics/:issueyesyessummaryone epic of your repository: its stories in build order, chains and critical path, the series per day, the pace, the median story time and the forecast per day (an admin: any repository)
POST /api/repos/:id/safe-points/restoreyesyesadminRestore a safe point of your repository (an admin: any repository): { commit, dryRun: true } answers the titles of the changes that would be taken back, what a restore does not undo and a single-use confirmation valid for 10 minutes, and changes nothing; { commit, confirm } opens one normal change (an issue with the build label, made with the owner's own GitHub sign-in) that takes the code back to that commit with new revert commits, with tests and review; nothing is pushed directly; 409 when the confirmation is used up or does not fit, the shown points changed, the commit is not a safe point or the project has no enabled issues watcher; writes one audit line
GET /api/repos/:id/ciyesyessummarythe GitHub CI of your repository as the Foundry last read it: each watched branch with its red workflows, their bug story and when CI was last read; from the stored state, no call to GitHub (an admin: any repository)
GET /api/repos/:id/safe-pointsyesyessummarythe safe points of your repository: the last 10 commits of its develop branch (gitflow) or main branch that a successful run or a release left green, newest first, with the time, the change titles and who started them; read from the run records, no call to GitHub, changes nothing (an admin: any repository)
POST /api/repos/:id/previewyesyesadminstart the develop version, or the version of a run that waits for your check (version, runId), of your repository (an admin: any repository) in a folder of its own; replaces a running one; answers 202
GET /api/repos/:id/previewyesyeslogthe state, URL, reason, version and redacted output of the preview of your repository (an admin: any repository)
DELETE /api/repos/:id/previewyesyesadminstop the preview of your repository and remove its folder
DELETE /api/repos/:idyesyesadminremove your repository and its stored token or key
DELETE /api/repos/:owner/:nameyesyesadminremove a GitHub repository by name (old form)
GET /api/admin/reposyesnoadminthe repositories of all accounts, with their settings and autonomy level
PUT /api/admin/repos/:id/settingsyesnosecretset the test command, docs, protected branches, branch names, release-build recipe (releaseRecipe, YAML text up to 16384 characters, checked like .factory/release-build.yaml), the release tag pattern (release_tag, e.g. release-{date}; {date} and {n}; no v1.2.3-like names) and the decide-technical-questions switch (questions: { decide_technical: boolean }, on unless false) of a repository; writes an audit line. It cannot turn pushRemote on (409): that is the owner's Yes, publish (POST repos/:id/publish-remote); keeping it on and turning it off work
GET /api/admin/repos/:id/budgetyesnoadminthe daily spending cap of a repository, the Simple default, the cap in effect and today's spend
PUT /api/admin/repos/:id/budgetyesnoadminset (a number above 0) or clear (null) the daily spending cap of a repository; writes an audit line
PUT /api/admin/repos/:id/workspaceyesnoadminset the workspace of a repository (workspace: an id from workspaces in config.yaml or from a plugin; null or default puts it back in the default workspace); writes an audit line
PUT /api/admin/repos/:id/readyyesnoadminset the Definition of Ready of a repository, or put the default list back
POST /api/admin/repos/:id/transferyesnoadminmove a repository to another account, by e-mail
GET /api/admin/repos/:id/watchersyesnoadminthe watchers of a repository, with status and holds
POST /api/admin/repos/:id/watchersyesnoadminadd a watcher to a repository (GitHub, with a sign-in that can call the GitHub API)
PUT /api/admin/repos/:id/watchers/:widyesnoadminchange a watcher of a repository, or enable or disable it
DELETE /api/admin/repos/:id/watchers/:widyesnoadmindelete a watcher of a repository
POST /api/admin/view-asyesnosecretstart a read-only view of one user's display for 30 minutes (GET calls with ?as=<id> are then answered as for that user); writes an audit line
DELETE /api/admin/view-asyesnosecretend the view of a user's display
GET /api/admin/credentialsyesnosecretthe stored credentials of all accounts, without any secret
GET /api/admin/componentsyesnoadminthe kind, id, version, owner, risk, lifecycle, approved version, last review, evaluation suite and status of each component, and the read problems as fixed text; no paths
GET /api/admin/data/inventoryyesnoadminevery item of the data folder from the catalogue with its count, size and dates, and the paths the catalogue does not know or could not read, relative to the data folder; never file contents
GET /api/admin/data/selectionyesnoadminthe saved choice of what a move or backup takes along (or the defaults), and the count and size of every option; no paths and no file contents
PUT /api/admin/data/selectionyesnoadminsave the choice of what a move or backup takes along ({ selection }; unknown keys are refused with 400); nothing is exported
GET /api/admin/data/export-holdyesnosecretthe export hold that drains the Foundry for scf data export --out, or null; run ids only
POST /api/admin/data/export-holdyesnosecretstart an export hold ({ waitMinutes }, 0 to 1440) or renew it ({ id }): no new run starts, and runs still active after the wait are stopped and resumed later; ends by itself after 10 minutes without renewal; 409 while a restart or a held start waits or another export holds; audited
POST /api/admin/data/export-releaseyesnosecretend the export hold ({ id }): work starts again; audited
GET /api/changesyesyesinboxyour change requests on one repository (repo is required): each has a plain state (thinking, questions, cards, planned or stuck), no costs, models, run ids or labels; a published card has issue, the number of its GitHub issue (an unpublished card has none); only your own
POST /api/changesyesyesinboxask for a change in plain words, { repo, text, pictures? } (text at most 10,000 characters; pictures is a list of at most 5 base64 strings, each a PNG, JPEG or WebP of at most 5 MB, found by its content, else 400; this route takes a body of up to 36 MiB, every other route 1 MB, else 413; 403 not-yours for a project that is not yours); the architect reads the pictures too; the architect then reads the code, asks its questions and writes the cards by itself (202, thinking)
GET /api/changes/:idyesyesinboxone change request of yours, in its plain state: the open questions with their options, or the cards (title, what was understood, criteria in plain words; a published card also has issue, the number of its GitHub issue); only the owner (an admin who is not the owner: 403)
GET /api/changes/:id/pictures/:nyesyesinboxone picture of a change request of yours (n from 1), as the raw image with its image/* type, no-store and nosniff; 404 for a number with no picture; only the owner (another account: 404, an admin who is not the owner: 403); no other route serves the pictures
POST /api/changes/:id/answersyesyesinboxanswer every open question of a change request at once, { answers: [{ question, option | text | unknown }] }; the cards are then written (202); only the owner
PUT /api/changes/:id/cards/:didyesyesinboxchange the title and/or the criteria of a card of a change request; a card that is published is refused (409); only the owner
POST /api/changes/:id/buildyesyesinbox"Yes, build this": publishes every card and adds the build label (Factory_go on GitHub, state go locally); a repeat or a retry adds it once to each card; only the owner
POST /api/changes/:id/lateryesyesinbox"Not now": publishes every card without the build label; a later build adds it; only the owner
POST /api/changes/:id/retryyesyesinboxstarts the architect's step again after a change request is stuck (409 when it is not); only the owner
GET /api/refinementyesyesinboxyour refinement sessions and the repositories a new one can use: your GitHub names, then your local projects (local:<slug>-<id8>) (an admin: the sessions of all accounts, with the owner)
POST /api/refinementyesyesinboxstart a refinement session on one of your GitHub repositories or local projects, from an idea; from an open issue only on a GitHub repository (read with the repository's sign-in; 409 when the Foundry is building or has built the issue, or you have an open session for it; 400 bad-repo for a local name with an issue; 403 not-yours for a local project that is not yours; 400 bad-repo for a malformed name); with guide: true (and nothing else) the session of the Get started guide on the guide's local project, made once from the saved answers (201, then 200 with the same session; 409 without a project of the guide or outside your workspaces)
GET /api/refinement/backlogyesyesinboxthe open issues of one of your GitHub repositories (?repo=owner/name) that the Foundry is not building and has not built, newest first, each with four checks done by code: acceptance criteria, value sentence, "Depends on" issues exist, no open questions; read with the repository's sign-in; GitHub's newest 100 issues and pull requests are read, and cut says when that page was full so older open issues may be missing; no architect run starts and nothing is written (an admin who is not the owner: 403)
GET /api/refinement/:idyesyesinboxread your refinement session, with the architect's brief and state and the talk (an admin: any session)
PUT /api/refinement/:idyesyesinboxrename your refinement session
POST /api/refinement/:id/dropyesyesinboxdrop your refinement session (an admin: any session); it is removed after 30 days, and its architect run is cancelled
POST /api/refinement/:id/restoreyesyesinboxrestore your dropped refinement session
POST /api/refinement/:id/source/remove-build-labelyesyesinboxremove the build label from the issue your refinement session came from, with the repository's sign-in (an admin who is not the owner: 403)
POST /api/refinement/:id/architectyesyesinboxask the architect to read the repository for your refinement session, or resume a paused read (one read per account at a time)
POST /api/refinement/:id/roundyesyesinboxask the architect for a round of questions in your refinement session, or resume a paused round (one architect run per account at a time); words: "simple" asks for plain words
POST /api/refinement/:id/understandyesyesinboxask the architect to write 1 to 5 story drafts from the idea, the brief and the answered questions of your refinement session, linked by Depends on, or resume a paused run (one architect run per account at a time); words: "simple" asks for plain words; drafts it wrote before that are not on GitHub are replaced
POST /api/refinement/:id/askyesyesinboxask the architect a question of your own in your refinement session, or resume a paused answer (one architect run per account at a time)
POST /api/refinement/:id/questions/:qid/answeryesyesinboxanswer a question of the architect in your refinement session: an option, your own text, or "I don't know yet"
POST /api/refinement/:id/proposals/:pid/acceptyesyesinboxaccept a proposed entry of your refinement session: it goes into its rules, examples or open questions
POST /api/refinement/:id/proposals/:pid/rejectyesyesinboxreject a proposed entry of your refinement session; it is removed
PUT /api/refinement/:id/map/:eidyesyesinboxchange the text of a rule, example or open question of your refinement session
DELETE /api/refinement/:id/map/:eidyesyesinboxremove a rule, example or open question from your refinement session
POST /api/refinement/:id/draftsyesyesinboxadd an empty story draft to your refinement session (at most 20)
PUT /api/refinement/:id/drafts/:didyesyesinboxsave what you typed in a story draft of your refinement session; only the fields in the body change
DELETE /api/refinement/:id/drafts/:didyesyesinboxremove a story draft from your refinement session
POST /api/refinement/:id/drafts/:did/suggestyesyesinboxask the architect for a suggestion for one field of a story draft of your refinement session, or resume a paused one (one architect run per account at a time)
POST /api/refinement/:id/drafts/:did/reviewyesyesinboxask the architect to review a story draft of your refinement session, or resume a paused review (one architect run per account at a time); no field changes
POST /api/refinement/:id/publishyesyesinboxpublish the ready story drafts of your refinement session as GitHub issues, with the repository's sign-in; a draft that has an issue is not created again, a split original is skipped, and leftBehind names split originals that still hold criteria; in a session that came from an issue, the draft that stands for it replaces the title and text of that issue first (one comment holds the old text, labels are added and kept) and is answered as updated, and a closed issue or one the Foundry builds is refused (409) with nothing written; when the issue's title or text changed on GitHub since the session read it, nothing is written and the answer is 409 with changedOnGithub (both versions and seen): send source: { keep: "mine" | "github", seen } to choose; a split source issue is replaced once all its parts are on GitHub (the issues that depend on it get the parts under "Depends on" and a comment with the old and new text, every trigger label of an issues watcher of the repository is taken off it, and it gets a comment naming the parts; it is then closed as not planned; it stays open, to be closed by hand, when more than 1,000 open issues were read, a dependant must be changed or checked by hand, or it is a story of the monitor, and an original closed in another way is left so) and the answer has replaced: { issue, parts, dependants: [{ issue, outcome }], closed: "not_planned" | "other" | "open", closedAt? }; an original that the Foundry builds is refused (409) before the first write, and so is a closed one unless its replacement had started already (it is then left closed), and a failed publish is finished by publishing again (an admin who is not the owner: 403); on a local project the stories are made in .scf/stories/ with no GitHub sign-in, go is the build label, and 403 not-yours when the project is not yours (also if it was moved while the publish waited for the lock)
PUT /api/refinement/:id/drafts/:did/review-labelyesyesinboxchoose whether a story draft of your refinement session gets the review label when it is published; nothing is sent to GitHub
POST /api/refinement/:id/drafts/:did/splityesyesinboxask the architect for ways to split a story draft of your refinement session, with an optional way of your own, or resume a paused one (one architect run per account at a time); nothing is split and no field changes
POST /api/refinement/:id/drafts/:did/split/confirmyesyesinboxconfirm a split of a story draft of your refinement session: each part becomes a new draft and the original is kept as a record; no architect run starts
POST /api/refinement/:id/drafts/:did/criteria/:cid/moveyesyesinboxmove an acceptance criterion between a split story draft of your refinement session and its parts, or between two parts
POST /api/refinement/:id/drafts/:did/mergeyesyesinboxmerge another story draft of your refinement session into this one; the other draft is removed and no architect run starts
POST /api/refinement/:id/drafts/:did/impactyesyesinboxask the architect what a story draft of your refinement session touches, how risky it is and how big it is, or resume a paused one (one architect run per account at a time); no field changes
POST /api/refinement/:id/drafts/:did/move-to-notesyesyesinboxmove a text of a story draft of your refinement session that has a plan or how remark to the notes for the builder, as a wish
POST /api/refinement/:id/drafts/:did/ready-checkyesyesinboxcheck a story draft of your refinement session against the Definition of Ready of its repository: by code, and the architect judges what code cannot decide, or resume a paused check (one architect run per account at a time); no field changes
POST /api/refinement/:id/drafts/:did/ready/:item/acceptyesyesinboxaccept an item of the Definition of Ready anyway for a story draft of your refinement session, with a reason; not for the implementation plan item
DELETE /api/refinement/:id/drafts/:did/ready/:item/acceptyesyesinboxremove the "accepted anyway" mark of an item from a story draft of your refinement session
POST /api/refinement/:id/drafts/:did/suggestions/:sid/acceptyesyesinboxaccept a suggestion of the architect for a story draft of your refinement session, as it is or with your own text; it goes into the draft
POST /api/refinement/:id/drafts/:did/suggestions/:sid/rejectyesyesinboxreject a suggestion for a story draft of your refinement session, with an optional reason; it is removed
PUT /api/refinement/:id/epicyesyesinboxset or clear the Epic of your refinement session
GET /api/refinement/:id/publishyesyesinboxread the publish plan of your refinement session: the issues that would be created, their order, labels and dependencies (a split original is not listed: its parts are, and a draft that depended on the original depends on each part; leftBehind: [{ draft, title, criteria }] names split originals that still hold criteria, and is left out when there are none); an item with updates: N replaces issue #N of the session's source and is in willUpdate, not in willCreate, and notChanged: N says no draft stands for that issue, replaces: { issue, parts, ready, cut?, staysOpen?, dependants } says the issue was split and a publish will replace it by its parts, with the open issues that depend on it (before and after of their Depends on text, or byHand); staysOpen says the issue gets the comment but is not closed, and changedOnGithub is set when the issue it would update changed on GitHub; it reads the labels, the issue and the open issues from GitHub with the repository's sign-in and creates nothing (an admin who is not the owner: 403); on a local project it reads the local stories in .scf/stories/ with no GitHub sign-in, go is the build label, and 403 not-yours when the project is not yours
GET /api/help/conversationsyesyesinboxyour Ask Foundry conversations, last changed first, without their messages (?archived=1: the archived ones), whether Ask Foundry is switched on and whether it is paused (then you can read but not ask), and the limits; only your own, for an admin too, and not in a view of a user's display
GET /api/help/conversations/:idyesyesinboxread one of your Ask Foundry conversations with its messages; a conversation of another account answers 404 like an unknown one, a deleted one 410
POST /api/help/conversations/:id/completeyesyesinboxclose one of your Ask Foundry conversations: it stays readable and takes no new question
POST /api/help/conversations/:id/feedbackyesyesinboxrate an answer in one of your Ask Foundry conversations: helpful or not helpful, with optional reasons from a fixed list and no free text; vote null (or none) takes it back; only counts are kept in the quality numbers; works while Ask Foundry is paused
POST /api/help/conversations/:id/archiveyesyesinboxmove one of your Ask Foundry conversations to the archive
POST /api/help/conversations/:id/restoreyesyesinboxtake one of your Ask Foundry conversations out of the archive; it gets the state it had
DELETE /api/help/conversations/:idyesyesinboxdelete one of your Ask Foundry conversations: its title and messages are removed at once and cannot be brought back
POST /api/help/conversationsyesyesinboxask Ask Foundry a question in a new conversation (question, and optionally context: the page and one selected thing); answers 202 with the conversation, whose reply is pending until the turn ends; one turn per account at a time (409), 429 when the queue is full or your turns of today are used, 503 while Ask Foundry is switched off
POST /api/help/conversations/:id/messagesyesyesinboxask the next question in one of your Ask Foundry conversations; the same answers as for a new one
POST /api/help/conversations/:id/retryyesyesinboxtry the failed or stopped last answer of one of your Ask Foundry conversations again; no message is added, and it counts as a turn of today
POST /api/help/conversations/:id/cancelyesyesinboxstop the answer that is being written in one of your Ask Foundry conversations
POST /api/help/conversations/:id/actionsyesyesinboxfollow an offer of an Ask Foundry reply (message, offer): the server checks again that you may open its page and answers {type, to}, or runs a read-only check (read it again, test the connection) and stores its result as a check message of the conversation, answering {type, outcome, conversation}; 404 when the thing is gone or you can no longer see it, 403 when you may not do it now, 409 when the conversation is not open, is waiting, is full, changed while the check ran, or already runs a check, 410 for a deleted conversation. Or see what an action Ask Foundry proposed in one of your answers would do (message, index): the server describes it in its own words and gives a confirmation token that works once for 5 minutes; nothing changes. 503 while Ask Foundry or its actions are switched off. An action about a story (restart it, give it the go) follows the owner rule of Your turn: 404 for a story you may not act on
POST /api/help/conversations/:id/actions/confirmyesyesinboxcarry out a previewed action with its token (token, message, index): the server checks the token, that the run did not change since the preview, the settings, your account and the rule of the same button on the run's page (your own runs only, an admin too; for a story action the owner rule of Your turn), then reads the result back from the run or the story and answers { outcome, stored }; 409 for a token that is used, expired or does not fit, or a run or story that changed; writes an audit line
POST /api/help/conversations/:id/actions/cancelyesyesinboxdrop the confirmation token of a preview (token); nothing changes
GET /api/help/conversations/:id/handoffsyesyesinboxthe pages you may take one answer of your Ask Foundry conversation to (?message=), with what each would copy; checked again for your account now; nothing is written
POST /api/help/conversations/:id/handoffsyesyesinboxrecord that you took an answer of your Ask Foundry conversation to another page (message, offer, and the page and fill you saw); only the conversation changes, never the target; 409 when the offer, its page or what it copies changed
POST /api/help/contextyesyesinboxwhat Ask Foundry would take from a page context, before you send it with a question: the envelope as it would be kept (the page, the selected things, the filters, the marked text; what is too much is cut and named), its size and the limits, the page it is for your role, and the things on it that the server finds for your account; a thing that does not exist and one you may not see are only counted together; nothing is stored and no model is called; 400 for a context that holds anything else, 503 while Ask Foundry is switched off
GET /api/help/exportyesyesinboxall your Ask Foundry conversations with their messages, as one JSON document to keep (also the archived ones; not the deleted ones); only your own, for an admin too; writes an audit line without any text of a conversation
GET /api/help/usageyesnoadminAsk Foundry for administrators: whether it is on, the provider and model that answer (or why none can), the limits, the rollout stage (off, paused, administrators, pilot, everyone), what runs and waits now, turns, failures, cost and tokens per account and day, and the quality numbers (daily counts of answers, failures, limits, sources, votes and latency buckets, with no account); no question and no answer

Risky paths and chain tests#

A repository can mark its risky areas in .claude-factory/config.yaml. An area names the folders or files it covers and the test files (chain tests) that must really run when a change touches it:

risky_paths:
  - name: queue
    paths: [src/queue/]
    chain_tests: [tests/repo-watchers-run.test.ts]
  • name is lowercase letters, digits and - (40 characters at most), and unique.
  • paths are repository paths (a prefix may end in /). chain_tests are test files. An area has at most 50 paths and 20 chain tests; a file has at most 30 areas.
  • A value that is unsafe (for example .. or an absolute path), a duplicate name and an unknown field are refused. The error names the field, never the value.
  • Without risky_paths, there are no risky areas: the check says RISKY: none and runs no test.

The check is tools/risky-check.mjs. Run it in the top folder of the repository: node tools/risky-check.mjs <run-dir> <slots-dir> <test-cmd>. A flow runs it as a top-level shell step named risky_check (or risky_check_*).

Which areas are required. The areas are the union of the config at the story's base (the merge base with the develop, main or default branch), at HEAD and in the working tree. Removing an area or a chain test, even in an earlier commit of the story branch, does not remove it. An invalid config at the base or at HEAD fails the check; an invalid working-tree config does not pass it.

Which files changed. Every file since the base counts: committed, staged, unstaged and untracked files. Renames are shown as a delete and an add, so moving a file out of a risky path counts.

What counts as proof. A chain test passes only when a report written by this run names it, with at least one passed case and no failed case. An exit code of 0 alone, a file that exists, zero tests, all tests skipped, or a file the runner left out does not count. There is no "covered by the full suite". Vitest, Jest, pytest, Maven, Gradle and Go are handled. Go runs with -count=1, so a cached result cannot count. A runner that cannot give this proof ends with RISKY: cannot-check.

Time. One deadline covers all the test-slot waits and test runs: FACTORY_RISKY_CHECK_SEC (seconds, 1 to 7200, default 3000). When no slot is free or the deadline ends, the check says cannot-check. This is not a failed test, so it does not start a code-fix round.

Report. The check writes risky-check.json in the run folder after each result, so an interrupted run keeps the finished results. A rerun starts clean. If the report cannot be written and read back, the check does not print RISKY: ok.

What the run records. The step's end event in evidence.jsonl (step.completed or step.failed) carries reliability, and so does the step's entry in run.json history:

  • verdict: the last RISKY: word (none, ok, missing, cannot-check), or incomplete when there is none.
  • report: whether a readable report was found.
  • areas: each required area's name and the path prefixes that matched.
  • tests: each chain test with the areas it covers and its result (passed, failed, not-run, no-slot, timeout or no-proof).

Changed-file names, notes and test output are never recorded there. The output of the step itself is still in its log. Partial results are kept when a step fails or is interrupted. A step that prints RISKY: ok or RISKY: missing without a readable report is recorded as failed. The report file is removed once the record is saved, so a rerun or a resumed run cannot pick up an old one. A risky check step cannot run in parallel with another one: the second fails with "another risky check is running". If the process stops during a risky check, the next start records that step as failed, with the partial results, before it runs the step again. Evidence events written by this version are version 13; versions 1 to 12 still read, and newer versions are refused.

The last line of the output is one of these, with the exit code in brackets:

  • RISKY: none (0): no risky area is touched.
  • RISKY: ok (0): every required chain test has proof.
  • RISKY: missing (1): a required chain test has no proof from this run.
  • RISKY: cannot-check (3): the check could not give proof, for example no slot, the deadline ended, or the runner cannot report it.

More in this chapter

Improve this page on GitHub