Skip to content

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

Draft
aitianshi wants to merge 1 commit into
mainfrom
feat/nullius-sdk
Draft

aitianshi wants to merge 1 commit into
mainfrom
feat/nullius-sdk

Conversation

@aitianshi

@aitianshi aitianshi commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #426

What

  • /api/v1: read jobs, trials, comparisons, judgements, recipes and runs; check, start, follow and stop a run; ask a judge. Bearer token only, JSON only.
  • Tokens: Settings, API access, or nullius access. Read, or read and run; an expiry; shown once; a hash kept.
  • nullius/client.py: one standard library file, behind nullius remote and nullius mcp.
  • A start refuses what Review refuses. A judge asked about a whole job needs confirm.
  • Harbor recipes are refused: their compiler is the builder's JavaScript.
  • /api/v1 answers under any host name: a page cannot send the token.

Before and after

Before After
Settings before Settings with API access

Verified

  • From a container holding only client.py: check, start, follow, read back a GSM8K run (stand-in model); refusals 400, 401, 403, 404, 405; a page under a foreign name 421.
  • Review found 16 defects, among them a trace read through a link and a token sent along a redirect. Fixed, but for crafted recipe fields that also return 500 on main's builder.
  • Mutations: 10 of 10 caught.
  • Routes 746. Backend 3088, one failure: test_osworld2_proxy, passes alone.
  • Chromium, light and dark, 390, 820, 1280 px.
  • Not checked: a real model or judge, a Settings host, the wheel.

Risk

  • Pages still have no login: --host shows them to the network.
  • No TLS: a token travels in clear over http.
  • Undo: revert. Deleting api-tokens.json closes the API.

Agents

  • Claude Code, Fable 5.2: code, tests, docs
  • Claude Code, Opus 5.5: port to main, fixes, tests
  • Claude Code subagent, unknown model: review

@aitianshi aitianshi self-assigned this Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

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