Metadata-Version: 2.5
Name: cosmosforge
Version: 0.3.0
Summary: CLI and evaluation service for Harbor-format terminal tasks.
Requires-Python: >=3.10
Requires-Dist: fastapi>=0.110
Requires-Dist: httpx>=0.27
Requires-Dist: python-multipart>=0.0.9
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=13.0
Requires-Dist: typer>=0.12
Requires-Dist: uvicorn>=0.29
Description-Content-Type: text/markdown

# CosmosForge

Evaluation and rollout service for Harbor-format terminal tasks.

A resident service runs on the eval server (FastAPI + harbor); the `cf` CLI
submits tasks and fetches results over HTTP with token auth. All traffic is
tunneled through SSH, so only port 22 needs to be reachable — the HTTP port
never has to be exposed to the internet. `cf init` also uses SSH once, to
provision your token.

## Install

```bash
pip install cosmosforge
```

## Quick start

```bash
# one-time: asks your SSH password once, then everything is password-free
cf init --host <server-host> --user <your-ssh-user>

# upload a harbor task directory (must contain task.toml, instruction.md,
# environment/Dockerfile, solution/solve.sh, tests/test.sh)
cf submit path/to/task          # -> TASK_ID

# run oracle/nop validation; oracle must score 1.0, nop must score 0.0
cf eval <TASK_ID>               # -> RUN_ID + report

# list tasks / runs / fetch a past report
cf tasks
cf runs
cf results <RUN_ID>
```

## Architecture

See `docs/design/architecture.md` for the full design: storage layout
(`users/<user>/tasks/`, `runs/<run_id>/`), the harbor job structure, and the
deployment notes.

## Development

```bash
conda activate harbor
pip install -e .
pytest
```
