Skip to content

Judgements belong to a workspace, not to the job: deleting the workspace deletes them, and two workspaces keep two copies #362

In progress

Description

@harenome

Priority

high by depth: the judgement store (app/nullius/judge/store.py) and the workspace that holds it. P2 is set: deleting a workspace deletes the judgements made in it, a user's own work, with no way to get them back.

Components

  • app/nullius (backend)
  • app/web (routes)
  • templates and static files
  • docs and the site
  • catalogue (benchmarks, agents, capabilities)
  • the standard (ports, kits, relay, runs)
  • CI, workflows and skills

Today

A judgement lives inside the workspace's own folder: <workspace>/judgements/<job_id>/<trial>.json, and judgements-llm/ for the LLM judge (app/nullius/judge/store.py, lines 1-12 and 38, on main 3347bf3). So:

  • Deleting a workspace deletes its judgements: workspace.delete removes the whole folder (app/nullius/workspace.py, lines 218-225). The job roots stay; what was judged about them does not.
  • One job held by two workspaces has two stores: a judgement made in one does not show in the other.
  • A judgement is found through the workspace, not the job: the route uses ?workspace=, else whichever workspace is open (app/web/shared.py, lines 411-421; app/web/judge.py, lines 60-65).
  • The store is keyed by the bare job id, and job ids are not unique: two roots can hold a job of one id, which is how Deleting a launch keeps its judgements when a deleted job of the same id is still in the workspace's job index #358 arises.
  • Task-instruction judgements are stored as a fake job named task:<dataset> (app/web/judge.py, line 576).
  • Saves take turns under an in-process thread lock only (_lock, store.py, lines 29-35).
  • store.pair_key (store.py, lines 223-224) maps "a b" and "a_b" to one key (pair:a_b__vs__c both). Nothing writes under it any more; it is read only by pair_records (app/web/judge.py, line 413) for pairs judged under the first questions.

Wanted

  • A judgement belongs to the job it judges, whichever workspace opens that job: the same judgement shows in every workspace that holds the job, and deleting a workspace leaves it.
  • Judgements are Nullius's own record, kept in the user data directory, never in a job folder: job folders come from many producers (Harbor, the standard runner, imports, host mirrors) and can be rewritten, pruned or read-only.
  • The job is keyed by its identity (Job.uid, Give every job an identity that survives a copy or a move, apart from its folder name #399): declared by the job, else derived from fixed facts of its files, so a copy or a move keeps it and two jobs of one id keep apart. Not the real path, which a copy or a move changes.
  • Task-instruction judgements keyed by dataset in a place of their own, not as a fake job.
  • Saves locked across processes.
  • Judgements stored in workspaces before this change keep being shown, read in memory: a page load never writes. Of several records of one trial from several workspaces, every record is kept, the newest shown and the others kept as history. A record of a bare job id that a workspace holds twice goes to every job of that id in it, as each showed it; a retried trial's earlier tries go under their trial. A save or a delete copies in the records of what it touches first.
  • An explicit move copies every workspace's old records into the user data directory at once and records that it is done; safe to run twice. Offered by a dialog at a first page load (temporary, removed after a few versions) and a row in Settings › Judges. Nothing a user judged is lost; old files are never deleted or rewritten.
  • A workspace whose old records are not moved yet is not deleted while one of its roots cannot be read.
  • Deleting a launch removes its jobs' judgements, never on identity alone while another folder of the same identity exists; when ownership is unresolved or a root cannot be read, they are kept.

Acceptance

  • A judgement saved with a job opened in one workspace shows when the same job is opened in another (test).
  • Deleting a workspace does not delete the judgements of its jobs (test).
  • Two jobs of one id in two roots keep separate judgements (test).
  • Task-instruction judgements no longer use a task: job slot.
  • A save holds a file lock (ondisk.locked), not only a thread lock.
  • Judgements under <workspace>/judgements{,-llm}/ keep being read, and a page that reads them writes nothing (test with a fixture store).
  • Move copies every workspace's old records once and leaves the old files as they were (test).
  • A workspace with old records is not deleted while one of its roots cannot be read (test).
  • Of two records of one trial from two workspaces, the newer is shown and both are kept (test).
  • Deleting a launch removes exactly its jobs' judgements, and keeps them when a copy of a job exists or a root cannot be read (test).

Dependencies and related

After #399 (job identity) and #400 (an import's identity per source: until then two imports of sources with one base name share their judgements). #358 (two jobs of one id), #268 to #273 (judgement fixes), #156 (deleting a launch).

Activity

  1. added
    enhancement
    P2
    on Nov 23, 2026
  2. added theissue type on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions