Skip to content

feat(web): open Nullius to another machine over an HTTP API with tokens, a client and MCP tools - #428

Merged
aitianshi merged 10 commits into
mainfrom
feat/nullius-sdk
Nov 27, 2026
Merged

aitianshi merged 10 commits into
mainfrom
feat/nullius-sdk

Conversation

@aitianshi

@aitianshi aitianshi commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #426

What

  • /api/v1, bearer token, JSON: read jobs, trials, comparisons, the leaderboard, judgements, recipes and runs; check, start, follow and stop a run; ask a judge.
  • Tokens: Settings or nullius access. Read, or read and run; an expiry; shown once.
  • nullius/client.py, one stdlib file, behind nullius remote and nullius mcp.
  • A start refuses what Review refuses, and a Harbor recipe. Judging a whole job needs confirm.
  • Task sets: listed, run by a recipe's task_sets.
  • ?workspace=NAME: another workspace's jobs, read and judged.
  • /api/v1 answers under any host name: a page cannot send the token.
  • The server logs each run request with its token's name and id.
  • Docs: SSH tunnel or TLS proxy first, --host last.

Before and after

Before After
Settings before Settings with API access

Verified

  • A container holding only client.py, stand-in model and judge: a GSM8K run, a task set run, a judged job, Goose ranked from a Docker run.
  • The wheel, installed over SSH on a container: asked through ssh -L and through nginx over TLS.
  • Refusals 400 to 409.
  • Two reviews, 25 defects fixed. Left: crafted recipe fields, 500 on main's builder.
  • Left out: the leaderboard's steps and calls.
  • Mutations 61 of 61. Routes 840, backend 3298. Chromium, both themes, 390 to 1280 px.
  • Not checked: a real model or judge, a Settings host.

Risk

Agents

  • Claude Code, Fable 5.2
  • Claude Code, Opus 5.5
  • Claude Code subagent, unknown

@aitianshi aitianshi self-assigned this Nov 25, 2026
…ntry's origin

- Judgements are the job's now (#403). The API still read the workspace's
  old store: a judged job read as unjudged, and a judged trial was asked again.
- The batch gives its threads the workspace asked, as the page does (#434).
- /catalogue says a benchmark's and an agent's origin, as the pages and
  cli list do (#437).
- The judge tests keep and read records through the pages' own store.
main's help test (#465) reads every command: `nullius mcp --help` printed the
module's docstring on stderr. It now answers `usage: nullius mcp`, as its siblings do.
@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Nov 27, 2026
@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Nov 27, 2026
@aitianshi
aitianshi marked this pull request as ready for review November 27, 2026 22:16
@github-actions

Copy link
Copy Markdown

🔴 PR judge · 5 of 6 yes · #428 ↔ #426

Merge risk 🟠 SIGNIFICANT the judge's reading of the diff
Depth 🟠 HIGH the deepest path is app/nullius/access.py
Question Verdict
Changes do what the issue asks · 7 of 8 criteria ❌ no
Issue and pull request describe the same change ✅ yes
Description matches the diff ✅ yes
Diff stays in scope ✅ yes
Risk named in the description ✅ yes
Before and after shown · 2 images · the diff touches what is visible ✅ yes
Acceptance criteria, 7 of 8 met
# Criterion Verdict
1 Every /api/v1 route refuses a request without a valid token; a read token starts, stops and judges nothing ✅ met (cut)
2 Jobs, trials, comparisons, judgements, recipes and runs read as JSON ✅ met (cut)
3 A standard recipe is checked, started, followed and stopped; a Harbor one is refused ✅ met (cut)
4 A start is refused on errors, a missing prerequisite or an unanswered question ✅ met (cut)
5 A judge is asked about one trial, or a job only with confirm ✅ met (cut)
6 Tokens are created, listed and revoked in Settings and by nullius access; only a hash is kept ✅ met (cut)
7 The client is one standard library file; nullius remote and nullius mcp use it ✅ met (cut)
8 A trace or record is redacted and never read through a link ❌ no evidence (cut)
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/, .agents/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

some of the diff was cut before the judge read it

@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Nov 27, 2026
@aitianshi
aitianshi merged commit e64e04b into main Nov 27, 2026
3 checks passed
@aitianshi
aitianshi deleted the feat/nullius-sdk branch November 27, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nullius cannot be used from another machine: no API, client or tokens

1 participant