Skip to content

feat(runs): give every job an identity that follows it across copies and moves - #402

Merged
harenome merged 6 commits into
ThinkFlowLab:mainfrom
harenome:feat/job-identity
Nov 25, 2026
Merged

harenome merged 6 commits into
ThinkFlowLab:mainfrom
harenome:feat/job-identity

Conversation

@harenome

@harenome harenome commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #399

What

  • A job's only name was its folder's: not unique, and lost or shared on a copy.
  • Each job now has Job.uid (declared, derived or pending); each try has Trial.key.
  • A new standard job declares standard.uuid in a config.json written whole. A resume of the same job keeps it; another job under that name, or a merge, gets a new one.
  • Other jobs derive it: a uuid5 of the format, folder name, what ran and the result.json start. No path, so a copy or move keeps it. An older standard job without result.json stays pending.
  • The cache key carries the Job and Trial field names. parse.SCHEMA is 20.
  • Judgements belong to a workspace, not to the job: deleting the workspace deletes them, and two workspaces keep two copies #362 reads it. Old files are never rewritten.

Verified

  • test_job_uid: a resume keeps its uuid; another model, dataset or agent gets a new one. Copy and move keep a derived uid. A job with only its feed is pending.
  • test_standard_shard: a merge declares its own uid.
  • test_workspace: a cache of another field set is parsed again.
  • Backend 3071, routes 578, in a clean container.

Risk

  • A renamed folder without standard.uuid gets a new uid. Today everything keys on the folder name.
  • Two startless Harbor jobs of one name, agents and datasets share a uid.
  • Not checked: whether Harbor writes started_at before its first trial. If not, its uid changes once.
  • A killed older standard job stays pending: it cannot be judged.
  • Every cached job is parsed again once.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5: code, tests
  • Claude Code, Fable 5.2: review
  • Codex, GPT-6.2-Astra: review

…and moves

A new Nullius standard job declares a UUID, standard.uuid in its
config.json: a run resumed into the same folder keeps it, a merge makes a
new one. The reader exposes Job.uid and Job.uid_source: the declared id,
else a uuid5 derived from fixed facts of the files (format, folder name,
what ran, the start), else pending for a job with no trial and no start.
No path is a fact, so a copy or a move keeps the identity; old files are
never rewritten to gain one. Trial.key names a trial within it, a try by
its attempt.
…it move with the feed

A run resumed under the same name keeps the folder's uuid only when the earlier config names the same benchmark, plugged agent or capability, model and dataset; a job from before standard.uuid is given the uid it was read under. A Harbor job's start is read from result.json only, never from Nullius's feed, which may appear later; a feed that is not UTF-8 is read with replacement. A merge writes its config.json first and whole, so its result is never read without the merge's uuid. Imports' identity by folder name is marked as a known limit.
…t is not one and a late feed

write_config writes config.json whole. A resumed job keeps the uid it is read under, so a standard.uuid that is not a UUID gets the derived one. An older standard job's start is result.json started_at, its feed only without one.
Two changes that bump parse.SCHEMA to one value no longer read each other's caches as current.
…ver derived from its feed

A standard job from before standard.uuid read with only its feed took the
feed's start for its uid, and took another uid when result.json arrived
with the runner's own start. Such a job is now pending until result.json
arrives, and a killed one stays pending; the feed is no longer read for
the uid, so the cache, which already tracks result.json, never serves the
earlier one.
@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit and removed merge conflict Conflicts with its base: merge or rebase it labels Nov 25, 2026
@harenome
harenome merged commit 83070b1 into ThinkFlowLab:main Nov 25, 2026
3 of 4 checks passed
@harenome
harenome deleted the feat/job-identity branch November 25, 2026 14:22
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.

Give every job an identity that survives a copy or a move, apart from its folder name

1 participant