Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
import re
import sys
from collections import Counter
from pathlib import Path

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), *[".."] * 4, "app")))
sys.path.insert(0, str(Path(__file__).resolve().parents[5] / "app"))

KINDS = ("flawed", "ambiguous")
VERDICTS = KINDS + ("fair", "cannot_tell")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@
import http.client
import json
import os
from pathlib import Path
import re
import sys
import time
import urllib.error
import urllib.request

HERE = os.path.dirname(os.path.abspath(__file__))
REPO = Path(__file__).resolve().parents[5]
# Fixed: no option, argument or variable changes them. TypeSafe's models, and the others SYSTEMONE names, are asked
# on `systemone`; another maker's on `decisions`. Both take the same request and give the same reply.
URLS = {"systemone": "https://openrouter.ai/api/v1/systemone", "decisions": "https://openrouter.ai/api/alpha/decisions"}
Expand Down Expand Up @@ -96,7 +97,7 @@ def redirect_request(self, *args, **kwargs): # a redirect would carry t


def definitions():
with open(os.path.join(HERE, "..", "..", "..", "..", "app", "nullius", "leaderboard", "definitions.json"), encoding="utf-8") as fh:
with open(REPO / "app" / "nullius" / "leaderboard" / "definitions.json", encoding="utf-8") as fh:
return json.load(fh)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ description: >-
benchmark meant for any agent or any Module - even if they never say
"standard" or "port". An agent goes to import-agent, a Module to
import-module (this skill still works for them). Not for Harbor benchmarks
run by Harbor agents (import-benchmark), nor for converting existing run
output (nullius.importers).
run by Harbor agents (import-benchmark).
---

# Import into the Nullius standard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ runs them:
- repository paths named in backticks in a tracked `.md`, and files under
`app/` or `docs/` named in a fenced command;
- the `docs/` folder map in `docs/README.md`;
- AGENTS.md "Where code lives" against the packages of `app/nullius`, both ways;
- the importer registry against the README table.
- AGENTS.md "Where code lives" against the packages of `app/nullius`, both ways.

A path is only checked when its first segment is a top-level entry of the
repository, so a path under a wrong top-level directory passes silently.
Expand Down Expand Up @@ -49,7 +48,6 @@ or name the merge commit and diff its first parent.
| `app/nullius/catalogue/storage.py`, `app/nullius/standard/contract/definitions.py`, `app/nullius/standard/runner/payload.py` | `docs/standard.md`, `docs/builder.md`, `docs/how-it-works.md`; all import skills and manual-add guides: user overlays versus bundled contributions, whole-folder selection, and runtime snapshots sent to hosts; generated Supported pages use explicit bundled roots |
| `app/nullius/runs/` | README "Reading a result"; `.claude/rules/running.md` "Reading a result"; `docs/field-guide.md`, what each field it names means; `docs/how-it-works.md` "Page by page"; `docs/cli/` when a CLI changed |
| `app/nullius/traces/` | `.claude/rules/traces.md`; README "Reading a result" |
| `app/nullius/importers/` | README "Ways to run" and "Local by design"; `.claude/rules/running.md` "Running the app"; `docs/cli/import.md` |
| `app/nullius/compare/` | `docs/cli/read-jobs.md`; `docs/field-guide.md`; `docs/how-it-works.md`, the `/compare` row |
| `app/nullius/catalogue/`, `app/nullius/recipes/`, `app/nullius/harbor/` | README "What it does" and "Ways to run"; `docs/builder.md` "Stages"; `.claude/rules/running.md` "What this repository runs"; for `harbor/`, the `source.py` docstring and `docs/builder.md` "Which Harbor"; for `catalogue/`, `.agents/skills/import-benchmark/SKILL.md` (a Harbor entry, the listing rule) too; for `providers.py`, the provider rows of `docs/builder.md` "Which providers" |
| `app/nullius/execution.py`, `app/nullius/hosts.py`, `app/nullius/settings.py` | `.claude/rules/running.md` "What this repository runs"; README "What it does"; `docs/builder.md` "Run"; `docs/settings/README.md`; `docs/how-it-works.md`, Paths 2 and 3 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import sys
from pathlib import Path

REPO = Path(__file__).resolve().parents[4]
REPO = Path(__file__).resolve().parents[5]

# Paths intentionally absent from a checkout, with the reason for each.
KNOWN_ABSENT = {
Expand Down Expand Up @@ -150,29 +150,6 @@ def check_map() -> list[str]:
for name in sorted(named - folders - entries) if not (REPO / name).is_dir()])


def check_importers() -> list[str]:
"""The README's ways-in table names every importer of the registry."""
# The registry is read in a subprocess so this process's import path stays
# what it was: the test suite runs these checks over copies of the tree.
proc = subprocess.run([sys.executable, "-c", "import json, sys; from nullius import importers as r; "
"print(json.dumps(sorted(m.LABEL for m in r.available().values())))"],
cwd=REPO, capture_output=True, text=True, env={**os.environ, "PYTHONPATH": str(REPO / "app")})
if proc.returncode != 0:
return [f"app/nullius/importers: the registry could not be read: {proc.stderr.strip()[-200:]}"]
labels = set(json.loads(proc.stdout))
bad = []
readme = (REPO / "README.md").read_text(encoding="utf-8") if (REPO / "README.md").exists() else ""
table = re.search(r"^\| Way in \| Runs \| Reads \|.*?(?=\n\n)", readme, re.M | re.S)
if not table:
bad.append("README.md: no ways-in table (`| Way in | Runs | Reads |`)")
else:
rows = table.group(0)
for label in sorted(labels):
if label not in rows:
bad.append(f"README.md: the ways-in table does not name the {label} importer")
return bad


def check_folders() -> list[str]:
"""docs/README.md names the folders that are actually under docs/."""
readme = REPO / "docs/README.md"
Expand All @@ -189,7 +166,7 @@ def check_folders() -> list[str]:
def checks() -> list[str]:
"""Every finding, in one list."""
return (check_hrefs() + check_md_links() + check_md_paths() + check_fenced_paths()
+ check_folders() + check_map() + check_importers())
+ check_folders() + check_map())


def main() -> int:
Expand Down
1 change: 1 addition & 0 deletions .agents/skills/docs-drift
1 change: 1 addition & 0 deletions .agents/skills/file-issue
1 change: 1 addition & 0 deletions .agents/skills/find-flawed-tasks
1 change: 1 addition & 0 deletions .agents/skills/fix-flawed-tasks
1 change: 1 addition & 0 deletions .agents/skills/import-agent
1 change: 1 addition & 0 deletions .agents/skills/import-benchmark
6 changes: 0 additions & 6 deletions .agents/skills/import-capability/SKILL.md

This file was deleted.

6 changes: 0 additions & 6 deletions .agents/skills/import-feature/SKILL.md

This file was deleted.

1 change: 1 addition & 0 deletions .agents/skills/import-module
1 change: 1 addition & 0 deletions .agents/skills/import-standard
1 change: 1 addition & 0 deletions .agents/skills/label-benchmark
1 change: 1 addition & 0 deletions .agents/skills/remove-integration
1 change: 1 addition & 0 deletions .agents/skills/run-analysis
1 change: 1 addition & 0 deletions .agents/skills/ui-sweep
3 changes: 1 addition & 2 deletions .claude/rules/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ Conflicts stop migration before copying.
Links within the copied contents are refused.

Result roots open as a workspace under the user data directory's `workspaces/`
(`WORKSPACES_DIR` overrides it); ATIF and OpenTelemetry roots are converted into
its `imported/`. Review runs go under the user data directory's `runs/`
(`WORKSPACES_DIR` overrides it). Review runs go under the user data directory's `runs/`
(`RUNS_DIR`). Direct standard CLI jobs default to `jobs_standard/` in the
invoking directory. User catalogue entries overlay bundled entries by whole
folder; editing a bundled definition first copies it into user storage.
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ workspaces/
/harbor-pins/
# This repository's app/ at a commit, unpacked to be sent to a host for a standard run.
/standard-app/

# Application workspace UI is source, not a local run profile.
!app/templates/workspaces/
!app/static/workspaces/
7 changes: 4 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Nullius runs AI evaluations and opens every score into its evidence, to tell an
agent's failure from a benchmark's.

- Runs through the Nullius standard (`docs/standard.md`) or Harbor, only when
asked. Reads Harbor, ATIF and OpenTelemetry results.
asked. Reads Nullius and Harbor results.
- `app/nullius/` is the backend: standard library only, except code that runs in
an upstream's own environment. `app/web/` is Flask, the web framework and the
only runtime dependency.
Expand Down Expand Up @@ -62,13 +62,14 @@ is: `grep -m1 '"""' app/nullius/*.py app/nullius/runs/*.py`.
| `app/nullius/leaderboard/` | Reading `labels.json`, scoring each axis over its labelled tasks, the board's selection |
| `app/nullius/catalogue/` | A folder per entry under `benchmarks/`, `agents/`, `modules/`: its definition and code |
| `app/nullius/recipes/`, `harbor/` | What the builder offers and saves; the Harbor a recipe pins |
| `app/nullius/importers/`, `judge/` | Foreign results in; questions to a judge model |
| `app/nullius/judge/` | Questions to a judge model |
| `app/nullius/standard/` | The standard: `contract/`, `requirements/`, `protocols/`, `calls/`, `backends/`, `runner/`, `proofs/`, `pages/`, whose imports never loop, and the conformance `kits/` |
| `app/web/` | One module per area; `core` is the application, `shared` what pages share. Write `shared.STATE`, so one patch reaches all |
| `app/templates/`, `app/static/` | The interface, under the same names |
| `app/tests/`, `app/ui_tests/` | Backend and route suites; fixtures are small and hand-made |
| `app/site/`, `docs/` | The website; the documentation it publishes |
| `.agents/skills/` | Skills, `/name` here; `.claude/skills` links to it |
| `.agents/skill-library/` | Skill sources grouped into integrations, evaluation and maintenance |
| `.agents/skills/` | Flat skill symlinks for `/name` discovery; `.claude/skills` links to it |

## Commands

Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ The same benchmark before and after a change: the tasks both runs share, the one
|---|---|---|
| **Nullius standard** | Any agent (over ACP) or Module that proved the ports a benchmark needs; or the benchmark's own scripts as published, its *Original* setup. | Harbor-shaped job directories. |
| **[Harbor](https://github.com/harbor-framework/harbor)** | Harbor's task folders in containers, with Harbor's agents. | Job directories from any Harbor agent. |
| **ATIF** trajectories | — | ATIF documents, converted into one job. |
| **OpenTelemetry** spans | — | OTLP/JSON span exports, converted into one job. |

## Reading a result

Expand Down
2 changes: 0 additions & 2 deletions app/nullius/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
- `recipes/` — `launch`, the vocabulary the run builder composes.
- `providers` — where a run's model calls go, and the builder's steps.
- `harbor/` — `source`: the Harbor a recipe pins, built here, kept, scanned.
- `importers/` — run trees other harnesses write: `atif`, `otel`, and the
`cli`.
- `judge/` — judgement: `questions`, `state`, `client`, `store`, `batch`,
`reconcile`, `lanes`.
- `execution`, `hosts`, `gitrefs` — running a recipe here or on a host, the
Expand Down
2 changes: 1 addition & 1 deletion app/nullius/catalogue/agents/pi/agent.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schema": "nullius.agent/v1",
"key": "pi",
"label": "pi",
"label": "Pi",
"company": "Earendil",
"summary": "An extensible terminal coding agent; its ACP adapter does not forward session MCP servers.",
"upstream": {
Expand Down
18 changes: 0 additions & 18 deletions app/nullius/catalogue/modules/keyword-memory/capability.json

This file was deleted.

55 changes: 0 additions & 55 deletions app/nullius/catalogue/modules/keyword-memory/capability.py

This file was deleted.

22 changes: 0 additions & 22 deletions app/nullius/catalogue/modules/keyword-memory/proofs.json

This file was deleted.

2 changes: 0 additions & 2 deletions app/nullius/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"compare": "compare runs",
"leaderboard": "workspace agent scores over labelled tasks",
"flags": "write a run's task flags",
"import": "import ATIF or OpenTelemetry output",
"standard": "inspect and run standard definitions",
"workspace": "manage workspaces",
"paths": "show persistent storage locations",
Expand All @@ -32,7 +31,6 @@
"compare": "nullius.compare.cli",
"leaderboard": "nullius.leaderboard.cli",
"flags": "nullius.runs.flags_cli",
"import": "nullius.importers.cli",
"standard": "nullius.standard.cli",
"workspace": "nullius.workspace_cli",
"paths": "nullius.paths",
Expand Down
Loading