Operations
On this page
This page covers the tools you'll reach for as the person operating an org day to day: the audit log, retention policy, and connectivity diagnostics.
Audit log#
The Activity tab in the web dashboard is a unified activity feed, open to any org member, covering (among others):
- ACL changes
- History events
- Quarantine incidents - both applied and released
- Branch-protection changes - per-branch flag toggles and glob protection-rule edits
- Org-level audit events (including member role changes and data-plane policy changes)
- Notifications
- Unlock requests
- Changeset commits
- Branch creates, archives, and switches
- Tag creates
- Comments added, resolved, and mentions
- RFI / submittal / approval workflow events (created, assigned, due-soon, overdue, response posted, revisions requested, closed, voided)
- Webhook changes (created, edited, rotated, re-enabled, or removed)
The feed is ACL-filtered server-side: owners see everything, members see events on entries they can read, and quarantine incidents and org-policy events repository to empty for non-owners. Everything lands in one feed instead of being scattered across separate logs. It refreshes automatically (within about a minute while the tab is open, paused in background tabs) so new events show up without reloading the page.
You can export it to CSV, capped at 100k rows per export. The export endpoint is owner-only and gated on the audit_log entitlement (Pro plan and above): a non-owner gets a 403, and an owner on a plan without the entitlement is told to upgrade. The live in-dashboard feed and the underlying event capture stay ungated on every plan - only the bulk CSV export is entitlement-gated.
CSV is the bulk-export path. An outbound webhook also forwards the same underlying events to your own endpoint as they are recorded - typically within seconds, with an hourly sweep as a backstop - which covers some of the same ground for a system willing to receive and store them itself. See Security for the full list of what's still on the roadmap.
What the CSV export contains#
Each export starts with a few # provenance rows (format version, generation time, requested window, row cap) that spreadsheet apps skip, then one row per event with these columns: occurred_at_iso, kind, actor_user_id, actor_display_name, actor_email, repository_id, repository_name, entry_id, entry_name, summary, detail.
The rows are a merged, deliberately un-sorted-across-sources view of every source in the requested window; sort by occurred_at_iso after import if you need a single timeline, and check the X-Activity-Export-Truncated response header in the web export. The CLI prints the CSV without surfacing that header, so a CLI export is silently capped at 100,000 rows - narrow --since/--until if you need a complete window.
Audit-event retention. Activity, ACL, and audit rows are pruned on the org's retention window - the same 1-3650 day setting that governs history and trash, defaulting to 90 days when nothing is set. Per-user retention preferences apply to history and trash only; these activity/ACL/audit rows follow the org window. Plan for exports or webhook ingestion if your compliance position needs records kept longer than the window in force, and confirm the window on Settings → Organization before relying on it.
Ransomware quarantine#
Swarmfile watches for the signature of encryption malware: a large number of distinct entries overwritten in a short window, counted per user and machine, with a per-user total across that user's machines as a backstop. It responds in two tiers. The detection mechanics are covered in Security; this section is about the admin side of an incident.
- Alert bar (a configurable number of distinct entries in the window): crossing it records an alert-only incident and notifies org owners for review. Nothing is blocked.
- Block bar (a higher multiple of the alert bar): crossing it hard-quarantines the user: their writes stop reaching the hub (on Windows the drive stays mounted and ordinary writes are accepted locally and held (a rename is refused, so an app that saves by renaming reports a failed save); on macOS and Linux the write is refused), and lock acquire/renew both refuse, so they can't keep working even mid-lock. A quarantine applies to the user on every machine. A single large operation (one big commit, for example) can reach either bar on its own. If your team routinely rewrites hundreds of files in one operation, raise the thresholds (below) rather than leaving them to be quarantined.
A quarantine is enforced on the writes themselves, not only on locks: a content save, a conflict resolve, a changeset commit or checkout, a git push apply, a branch or merge-request merge, LFS reflect/upload and a web upload are all refused with the quarantined reason while the block is active.
Reads keep working. The computer is paused, not unmounted: swarmfile status prints quarantine: WRITES PAUSED with the start time, the drive's write-refusals panel names the files it refused or held, and queued saves resume on their own when an owner or admin releases the block.
A repository/agent API key and a human-triggered CI job inherit the block; an actorless scheduled job must be stopped or revoked.
Owners and admins can tune either bar per organization under Settings → Quarantine → Detection thresholds; a blank field keeps the default, and the card shows the effective value and where it comes from.
Raising the alert bar moves the inherited block bar with it (an explicit block bar doesn't move). The org's daily container-preview budget - with today's org-wide spend against it - lives on Settings → Usage → Preview generation budgets: previews/day default to 500 per repository and 2,000 per org, a blank field keeps the default, and 0 means no limit.
The source caps are fixed - video proxies accept sources up to 16 MiB (poster extraction reads the first ~16 MiB), and point-cloud (.las/.laz) previews up to 32 MiB; File Previews covers the rest.
Alert-only incidents that no one acts on auto-expire after 7 days, so a legitimate bulk edit doesn't linger as a flag (and doesn't suppress future alerts for that user). Blocks never auto-expire - they require a human to clear.
Manage incidents from the Quarantine view in the web dashboard. It lists active and historical incidents; each row is one click to Release (lift a block) or Dismiss (clear an alert-only flag), and the release records the reviewer's judgment: false positive (legitimate activity) or confirmed incident (contained real attack), or no judgment. Admins can also manually quarantine a user out-of-band - for example, in response to an incident report that didn't trip the detector. Quarantine management is available to admins and owners.
Review requests. A blocked user can send one request-only appeal per 24 hours at /dashboard/quarantine-appeal (2,000 characters, no files). It never lifts the block and never changes access. Owners and admins see the request under Quarantine review requests in the Quarantine view and can Acknowledge or Close request - those are records only; use Release below to lift the block.
Published false-positive rates. The same view shows the org's measured detection quality for incidents detected in the selected window (30, 90 or 365 days; manual quarantines are excluded - there was no detector decision): the block false-positive rate and the alert false-positive rate, each with its sample size.
The definition is deliberately narrow, because a rate without one is marketing: the numerator is incidents released WITH a false_positive judgment, and the denominator is incidents released WITH any judgment - unreviewed incidents are excluded, and an empty sample reads "No data", never 0%. The unit is one detector decision in one repository, so a burst seen by several repositories counts as several decisions.
Only counts are published; no file names or content enter the metric.
Deployment-wide rate. A rate covering every organization is published only as a quarterly report over a rolling 12-month window, and only when each rate has at least 100 judged incidents; otherwise we publish the sample size and say it is insufficient. It is never a live badge. The in-product rate above is your organization's.
Roll back the organization in one click. An incident row offers Roll back all repositories (one action, with a typed confirmation): every repository in the org has its default branch restored to the incident's point - 60 seconds before the recorded burst start when the detector saw one, otherwise the review window (24 hours before detection, or the detector window if longer) - as a new commit.
Nothing is rewritten - the damaged versions stay in history, so the rollback is itself undoable - and each repository is restored independently. The result names every repository it refused (with the reason), with counts for those it restored or started as a background job (very large trees); a repository created after the point is left alone.
A repository relay that fails is retried automatically up to three times; after that, Retry unfinished re-runs only unfinished or relay-failed repositories when a run is partial (restored repositories are never re-run). Recover to branch remains the review-first alternative: it puts the content as it stood at the incident's review point on a recovery branch and leaves every default branch untouched.
The org-wide rollback is owner-only; restoring one repository stays available from that repository's own history. Owners and admins get a bell notice when a rollback finishes or partially fails; the web notice opens that job's result, which lists every repository's outcome (the desktop tray notice opens the Quarantine view). Terminal job and appeal rows are pruned after 90 days; the audit log keeps the outcome, and each restore is a new commit you can undo from that repository's history.
Access revocations#
Removing a member, revoking a guest, deprovisioning a user through SCIM or LDAP, revoking a device key, or invalidating a directory group membership doesn't just delete one row: Swarmfile sweeps every repository in the org so cached peer credentials, wrapped keys, and access grants stop working there too.
That sweep is durable - it runs across repositories in the background, retries failures with backoff, and parks on a repository it can't reach instead of skipping it silently.
Settings → Access revocations (owners and admins) shows where every sweep stands: in progress, parked repositories with the reason, and finished sweeps. A parked repository carries a Retry - fix the cause and re-run the sweep from the same view; each attempt is recorded in the audit log. Revoking a repository API key or a personal access token rides this same sweep to close that credential's live connections.
Because a sweep reaching a client is what makes it delete its cached copy, each engine reports a purge receipt when it has applied a revocation: the view shows how many devices confirmed it, how much cached data they removed, and which device each confirmation came from (attributed to the signed-in identity - a machine label is self-declared). So "dispatched" and "applied everywhere" are separate, visible facts.
GET /orgs/:org/admin/security-fanout returns the sweep view for scripts, and GET /orgs/:org/admin/revocation-receipts the receipts. See Organizations, Repositories & Members for member removal and End-to-End Encryption for device-key revocation.
Retention & garbage collection#
Trash and soft-delete retention is configurable, from 1 to 3650 days - owners set the org-wide window in Settings → Organization, and an individual user can set their own window in account settings, which overrides the org default for them. The end-user side of this - restoring a deleted file, browsing history, rolling back a change - is covered in Trash, History & Rollback; this page is about the org-level policy knob that governs how long deleted data is kept before garbage collection reclaims it.
Set the retention window based on your org's compliance and recovery needs - a longer window costs more storage but gives you (and your users) a longer recovery runway. The default when nothing is set is 90 days.
When file content is reclaimed. Removing the last reference to a file's content frees that content in a background sweep. That happens when you purge it from Trash, when the daily cleanup expires trash and old versions, or when an abandoned upload is cleared. Sweeps run:
- At the next daily pass: after a purge from Trash, or after an abandoned upload is cleared.
- At the next daily pass, for any amount: on a plan with a hard storage cap, or an org close to its spend cap, whatever was released.
- Otherwise: once enough content has accumulated, with large files counting for more, and at least once a week.
Billed storage counts only files you still have, so this timing does not change your bill. On a plan with a hard storage cap, released content counts against the cap until its sweep has run.
New-repository history retention. Independently of the window, every repository carries a history-retention choice: Keep every saved version (the default) or Named commits only. It decides whether individual per-save versions survive the window at all - on a keep-everything repository the window controls when aged history moves to cheaper cold storage, not when it is deleted, so on such a repository a short window does not delete history.
Owners set the default for newly created repositories with New repositories keep every saved version in Settings → Organization; a creator's explicit choice in a creation form still wins, so this is a default, not an enforcement.
An org whose data-minimization policy wants saves to expire should turn it off (or clear the flag on existing repositories with PATCH /orgs/:orgId/repositories/:repositoryId / swarmfile repository set-keep-full-history false).
Repository storage limit#
Separate from your plan's storage allowance (the size of the files themselves - see Billing & Plans), each repository keeps its file information and history - names, folders, versions, locks, comments - in its own store with a fixed limit. It takes a very large repository to approach it: roughly ten million files and versions combined, since a 1 TiB file costs the same here as a 1 KB one. It isn't billed.
- Where to see it. A repository's Storage tab (owners and admins) shows how much of the limit is used, whether new writes are being accepted, what the last daily cleanup removed, and - when any exist - access revocations still waiting to reach a device (the history window in force lives on the repository's Repository settings tab). Settings → Repository storage lists every repository in the org that is nearing or at its limit, worst first.
- Early warning. At the early-warning threshold (5 GiB for a standard repository, 2 GiB when it keeps every version), the org's owners and admins get a "Repository storage" notification (in the inbox, and by email unless muted per kind in Settings). History retention may also start shortening automatically - see Trash, History & Rollback.
- At the limit. Adding files, saving new versions, copying, merging, staging, and git-LFS pushes are paused with an "insufficient storage" (
507,repository_storage_full) error. Nothing is lost: the Desktop App keeps changes on each person's computer and syncs them once space is available. Everything needed to recover keeps working - deleting, purging trash, restoring, renaming, moving, locks and commits. - Freeing space. Purge deleted files from Trash, delete old branches, or shorten the history retention window (Settings → Organization, owner-only). On a keep-every-version repository the window only controls cold archiving; if history genuinely isn't needed, switch the repository to Named commits only as well. Space is reclaimed as soon as rows are removed, so writes resume without waiting for the next daily pass. A repository that keeps growing past this is usually better split into several repositories.
Swarmfile also watches these stores from the platform side and pages its own operators when a repository approaches its ceiling, so growth is caught before it pauses writes - there is nothing for you to configure.
Write pause#
Each repository also has a daily budget for how much it writes to its own file and history records (file content doesn't count). Normal work stays far below it. A repository that goes well past it in one day, usually because a script, agent or integration is stuck repeating the same work, is paused in two steps until midnight UTC:
- Background maintenance pauses first. Cleanup sweeps and background merge planning stop for the rest of the day. Saves, reads, commits, merges, pushes and jobs carry on as normal.
- If writing keeps going, to several times the budget, new work is refused. Starting a background job (a large commit, revert, checkout or restore), starting a merge, or starting a
git pushanswers503with the codedo_write_budget_exceeded, aretryAtMstime in the body and aRetry-Afterheader; retry after that time. Work already in progress keeps going, slowly, so nothing is left half-applied. Deletes and purges keep running at normal speed, so the data causing the problem can still be removed. Saves and reads are not affected. The Desktop App holds a commit refused this way and retries it when the pause lifts, without counting it as a failed commit. A background job waiting out the pause reports when it will resume:GET /jobs/:idincludesparkedUntilMs.
The pause lifts on its own at midnight UTC. An org owner or admin can release it sooner from the repository's Repository settings tab, which shows Writes paused with a Release write pause button while a pause is in force (API: POST /orgs/:orgId/repositories/:repositoryId/write-budget/release).
A release is allowed once per repository per UTC day; a second one is refused with write_budget_release_used. Each release is recorded in the org audit log and the activity feed. After that, only Swarmfile support can release the repository again that day, so contact us if it is still paused and the cause is fixed.
Swarmfile's operators are alerted to every pause and look for the cause from their side as well.
Long-running background jobs#
Large cascades don't run inline. Above the hub's 5,000-entry cap, folder delete, restore, purge, revert and checkout - plus repository delete - run as durable background jobs: the request answers 202 { jobId }, and the engine, web dashboard and tray follow the job and synthesize the original outcome (the root change lands before the 202, so the operation's effect is already visible). Jobs are durable and survive a dropped connection, a closed laptop, or an engine restart.
From the CLI, swarmfile op manages them:
op listshows recent operations.op status <id>reports state and livedone/totalprogress (exit0succeeded,1failed,2canceled,3still running).op wait <id>waits and exits as the original command would.op cancel <id>stops the operations that can safely stop part-way (materialize,hydrate free-space,git backfill-oids,git index, andcheckout/revertwhile still staging) - a cancel that lands after the staged apply has begun is declined (too_late) and the operation ends with the commit's real outcome, while commits, merges, deletes andundo/redocomplete or fail on their own and refuse (not_cancellable).
A command that starts a long operation and doesn't follow it prints the job id and exits 3 (with --no-wait, or when you press Ctrl-C to detach), and the operation carries on in the engine.
Office caches#
A self-hosted seed node runs headless; its operational surface is Settings → Office caches. The page lists the fleet with liveness (a cache reads offline after roughly 2.5 minutes without an announce, or Awaiting approval when your organization approves nodes), the bytes each cache served this week, and the enrollment wizard that mints a cache's credential and generates its seed.env. Owners and admins receive a weekly report email and one alert per day-long outage; each is muteable per-kind under Settings → Notifications. Setup, sizing and hardware guidance: Self-Hosted Seed Nodes.
Connectivity diagnostics#
Swarmfile ships two ways to run the same connectivity probe suite:
swarmfile doctor, proxied through a running engine.swarmfile-doctor, a standalone binary that doesn't need a running engine at all - useful for a machine that isn't mounting anything yet, or for isolating whether a problem is the engine or the network.
Both run the same checks: DNS, hub reachability, cloud storage, the peer-to-peer layer, mDNS discovery, and OIDC/auth. Output is colorized pass/warn/fail for a human to read, or --json for attaching straight to a support ticket.
Diagnostics also run automatically in the background on a periodic basis, not just when you invoke them by hand, and server-side deep-health probes run from the other direction - so a problem can surface from either side. Always-public liveness endpoints exist separately, for basic uptime monitoring.
One probe worth knowing about specifically: the plan probe. If a self-hosted seed or NAS node is running under a plan that doesn't include the seed-node entitlement, this probe fails clearly and explicitly, instead of the node just silently misbehaving or repeating the same log line forever. If you're setting up a seed node, see Self-Hosted Seed Nodes for the plan requirement.
Reach for swarmfile doctor any time something feels wrong and you're not sure whether it's your network, your account, or the service - it's the fastest way to narrow that down, and its output is what support will ask for first. Full flag reference is at swarmfile-doctor.
Something wrong or missing? Report a docs issue.