Metadata-Version: 2.5
Name: cosmosforge
Version: 0.4.2
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
# set up SSH key authentication first for password-free commands
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          # -> default/<task-name>
cf submit-folder path/to/tasks --name batch1

# run oracle/nop validation; oracle must score 1.0, nop must score 0.0
cf eval default/<task-name>     # default: oracle-nop -> RUN_ID + report
cf eval batch1 --check "format,ngrams" --detach

# list tasks / runs / fetch a past report
cf tasks
cf folders
cf folder batch1
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
```
