Repository navigation
Open
Labels
P2Planned: limited in scope, has a way around it, or a missing featureenhancementNew feature or request
Description
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.deleteremoves 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__cboth). Nothing writes under it any more; it is read only bypair_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.
- The job is keyed by its identity, for example the digest of its real folder path as the parse cache uses, not its bare folder name, so two jobs of one id keep apart.
- 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 read.
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 (test with a fixture store). - Deleting a launch removes exactly its jobs' judgements.
Dependencies and related
After #358 (deleting a launch reads the job index to spare judgements of another job with the same id). #361 (the job index). #268 to #273 (judgement fixes), #156 (deleting a launch).
Metadata
Metadata
Assignees
Labels
P2Planned: limited in scope, has a way around it, or a missing featureenhancementNew feature or request
Activity