Skip to content

Contributors

How Gradient is built, for anyone changing the code. Readers can start with the architecture and then read the part matching the change.

flowchart LR
    arch[Architecture] --> sched[Scheduler]
    arch --> proto[Proto]
    arch --> internals[Internals]
    sched --> proto

Start Here

License, setup instructions, contribution workflow and coding standards.

  • Tests

    Test locations, the Nix checks and the test database on a real Postgres.

Core

  • Scheduler

    Build sharing, start counters, upstream substitution, cache closure and scoring.

  • Proto

    The worker protocol under /proto: handshake, assignment, jobs, transfers and federation.

  • Internals

    Git host webhooks, NAR storage, cache serving, graph queries and authentication.

  • Migrations

    How to write, register and retire database migrations.

Evaluation

  • Eval Worker Setup

    Covers the subprocess pool for evaluations, shard discovery across workers and the shared eval cache.

  • Evaluation Metrics

    Explains per-evaluation Nix metrics, their storage format and display on the Job Board.

Debugging and UI

  • Diagnostic Reports

    How to read the report file, its scopes and the gradient-report inspector.

  • Frontend Style Guide

    A reference page covering the form, layout and grid primitives used across the web UI.