# What HiveBoard may change on a cluster

> The complete list of what HiveBoard can change on a cluster — cancel, continue, delete files, install a key — and the rules each follows before it runs.

Source: https://hiveboard.dev/docs/safety/what-hiveboard-may-change · Section: Safety and privacy · HiveBoard 0.1.7 · Updated 2026-10-19

## In short

- HiveBoard can change four things on a cluster: cancel a job, continue a VASP run, delete files in a job's folder, and add your public key to `~/.ssh/authorized_keys`.
- The first three need job control switched on for that server, act only on jobs the server says are yours, and each asks you first.
- Anything that would overwrite a file is backed up first, under a plain name such as `POSCAR.bak.<time>`.

HiveBoard reads unless you let it do more. This is the complete list of what it can change
on a cluster: four actions, each run only when you ask for it in the app. Guardian, if you
allow it, can run one of them — Continue — by itself; nothing else ever acts on its own.

## The complete list

| Action | What runs on the cluster | Needs |
|---|---|---|
| Cancel a job | `scancel <id>` | job control; your own job |
| Continue a run | back up `POSCAR`, copy `CONTCAR` to `POSCAR`, `sbatch` the job's own script | job control; your own VASP job |
| Delete files | `rm -rf` on the paths you selected in the job's folder | job control; your own job |
| Install a key | append one public key to your `~/.ssh/authorized_keys`, after a backup | you press **Install key** |

There is nothing else. Removing a server from HiveBoard touches nothing on it, downloads
write nothing there, and the assistant never runs or submits anything.

## The rules every job action follows

1. **Job control must be on for that server.** It is off for every server until you turn it
   on: the **Job control** switch on the server's **General** tab in Connections, which asks
   before it turns on, or `allow_job_control: true` in the settings file. Importing servers
   never turns it on, and it is only ever turned on one server at a time. See
   [turning on job control](/docs/job-control/turn-on-job-control).
2. **Your own jobs only.** Before running anything, the server compares the job's owner, as
   `squeue` or `sacct` gives it, with the account you signed in as, as `whoami` gives it,
   and refuses anyone else's. **Highlight users** is a display setting and never widens
   this. If the login user cannot be verified, every action is refused.
3. **Each one confirmed.** Every action asks you first, in a confirmation that names what
   will happen. When you cancel several jobs at once, the confirmation lists exactly which,
   and the server checks each id again against the live queue, skipping — with the reason —
   any job that has finished or is not yours. See [cancelling jobs](/docs/job-control/cancel-jobs).

## Continue, in detail

Continue is for a VASP relaxation, MD or NEB run that stopped before converging. HiveBoard
does not restart runs of the other codes.

1. The old `POSCAR` is copied to `POSCAR.bak.<time>`.
2. `CONTCAR` is copied to `POSCAR`.
3. The job's own script is submitted again with `sbatch`, from the same folder.

It fails closed: if `CONTCAR` is empty, or the backup or the copy fails, it stops and
nothing is submitted. It is refused while any queued or running job still uses that folder,
so two jobs never share one — except **Continue from latest** on a running job, after a
confirmation that says two runs would then share the folder. If HiveBoard cannot tell which
script submitted the job, it lists the scripts in the folder and asks; it never submits a
guess. A relaxation that has already converged is not offered for continuing. See
[Continuing a VASP run](/docs/job-control/continue-a-run).

## Delete, in detail

**Delete**, in the Files tab, is offered only on your own jobs and only with job control on.
Every path must lie inside the job's work directory, the job's root folder itself is refused
outright, and each deletion is confirmed. See [Deleting files from a job's folder](/docs/job-control/delete-files).

## Installing a key

This one is separate from job control. When you press **Install key**, HiveBoard signs in
once with your password (and code, if the server asks), then:

- creates `~/.ssh` on the server if it is not there;
- copies `~/.ssh/authorized_keys`, if it has anything in it, to
  `authorized_keys.bak.<time>`;
- appends the key's public half — only if it is not there already.

It then signs in with the key to prove it works. See [Installing a key on a server](/docs/keys/install-a-key).

## Plain backup names

Backups get neutral names — `POSCAR.bak.<time>`, `authorized_keys.bak.<time>` — with no
tool's or AI's name written on the cluster.

## Guardian

Guardian's one automatic action is Continue, so it follows every rule above: job control on,
your own jobs, the backup first. It adds its own limits — at most 3 continuations per job by
default, a cooldown, and at most 8 automatic actions an hour across all servers — and it
logs every decision. It starts in a mode that only watches, and **it never cancels a job**.
See [Guardian's safety rails](/docs/guardian/safety-rails).

## On your own computer

HiveBoard's own files — settings, keys, trusted host keys, the connection log — live in its
data folder. Your `~/.ssh/known_hosts` is read but never written. See
[the data folder](/docs/settings/data-folder).

## Check yourself

1. You list a colleague under Highlight users, and job control is on. Can HiveBoard cancel their jobs?
   - No — only jobs owned by the account you signed in as, checked with whoami on the server ← the answer
   - Yes — highlighted users count as yours
   - Yes, after a second confirmation
   Why: Highlight users is a display setting only; ownership is checked against the remote whoami before anything runs.

2. What does Continue do with the old POSCAR?
   - Copies it to POSCAR.bak.<time> before CONTCAR is copied over it ← the answer
   - Deletes it
   - Leaves it, and writes the new geometry to another file
   Why: Continue backs POSCAR up first, and submits nothing if the backup or the copy fails or CONTCAR is empty.

## Try it in the app

- Open a server's **General** tab in Connections and read what the **Job control** switch says, without changing it.

## Related

- [Turning on job control](https://hiveboard.dev/docs/job-control/turn-on-job-control.md)
- [Cancelling jobs](https://hiveboard.dev/docs/job-control/cancel-jobs.md)
- [Continuing a VASP run](https://hiveboard.dev/docs/job-control/continue-a-run.md)
- [Deleting files from a job's folder](https://hiveboard.dev/docs/job-control/delete-files.md)
- [Installing a key on a server](https://hiveboard.dev/docs/keys/install-a-key.md)
