Skip to main content

Lightweight grading toolkit for environment-based tasks.

Project description

Harbor Rewardkit

Docs

The Harbor Rewardkit is a lightweight package to define and run verifiers. Rewardkit is designed to be used with the Harbor task format but you can use it on its own.

Installation

uv tool install harbor-rewardkit

Example: Programmatic criteria

# tests/check.py
from rewardkit import criteria

criteria.file_exists("output.txt")
criteria.file_contains("output.txt", "hello")

Example: LLM judge

# tests/quality.toml
[judge]
judge = "anthropic/claude-sonnet-4-6"
files = ["/app/main.py"]

[[criterion]]
description = "Is the code correct?"
type = "binary"

Usage

Add rewardkit to your test.sh file:

# tests/test.sh
uvx harbor-rewardkit@0.1 /tests

See the documentation and a full working example.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

harbor_rewardkit-0.1.dev1.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

harbor_rewardkit-0.1.dev1-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file harbor_rewardkit-0.1.dev1.tar.gz.

File metadata

  • Download URL: harbor_rewardkit-0.1.dev1.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for harbor_rewardkit-0.1.dev1.tar.gz
Algorithm Hash digest
SHA256 d319772c74045a896c1a12c47949e122311449b190c4af781a7aff28d6f0119e
MD5 cb2e20375a0aebd59af335a8fce9ef0e
BLAKE2b-256 d2b9287c0e90ae577710f8b7244861debff8aa50e8063318449ba964bfc8c77f

See more details on using hashes here.

File details

Details for the file harbor_rewardkit-0.1.dev1-py3-none-any.whl.

File metadata

  • Download URL: harbor_rewardkit-0.1.dev1-py3-none-any.whl
  • Upload date:
  • Size: 37.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for harbor_rewardkit-0.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0dd8454319879753a8f32b614dccd4c1ef0b12d8ccb9308115e982e416a33af
MD5 5b4ac04f50b14f8b7baba3f313d8795d
BLAKE2b-256 453d45cfe788aa4ff3ee86a3c0c70a7b4c046b41f752826e35a4a36c7e7f12e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page