# kosa8 job

Run hosted RL jobs on kosa8 Cloud: tasks, a solver and a sealed grader

A job runs every task of a JSONL file on kosa8 Cloud, server-side: each task gets a
sandbox, the solver command runs there with the task's input, and a sealed copy
(no network, hidden grader files) scores it. Every rollout is recorded on the
job's RL run (kosa8 cloud rl runs get RUN); infra failures are retried, then
masked rather than scored 0. Nothing runs on this machine: close it and the job
goes on.

  kosa8 job submit tasks.jsonl --template python --solver "python solve.py" \
      --grader "pytest -q /hidden/test.py" --grader-file tests/test.py:/hidden/test.py --concurrency 64
  kosa8 job submit tasks.jsonl … --estimate   # sandbox-hours and cost, nothing run
  kosa8 job watch job_…
  kosa8 job ls
  kosa8 job cancel job_…

Signs in as `kosa8 cloud` does (kosa8 login, or KOSA8_API_KEY).
Guide: https://docs.kosa8.com/guides/cloud-jobs/

Also known as: `jobs`

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--api` | string | kosa8 Cloud API address (default: as kosa8 cloud) |  |

## Example

```
  kosa8 job submit tasks.jsonl --template python --solver ./solve.sh --grader ./grade.sh
  kosa8 job ls
  kosa8 job watch job_…
```

## Subcommands

- [`kosa8 job cancel`](https://docs.kosa8.com/reference/job-cancel.md): Cancel a job: no new tasks start, and its sandboxes are drained
- [`kosa8 job get`](https://docs.kosa8.com/reference/job-get.md): Show a job: its status, progress, failure classes, reward and cost
- [`kosa8 job ls`](https://docs.kosa8.com/reference/job-ls.md): List jobs, newest first
- [`kosa8 job submit`](https://docs.kosa8.com/reference/job-submit.md): Submit a job: run every task's solver and grade it sealed, server-side
- [`kosa8 job watch`](https://docs.kosa8.com/reference/job-watch.md): Follow a job's progress on one live line until it ends

---
Source: https://docs.kosa8.com/reference/job/
