Skip to content

Review fixes: a link-safe atomic write, one job per key, a client that pickles, a pause that holds a go - #94

Merged
krokicki merged 9 commits into
mainfrom
review-fixes
Nov 23, 2026
Merged

krokicki merged 9 commits into
mainfrom
review-fixes

Conversation

@krokicki

@krokicki krokicki commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Fixes for what was still open from two earlier reviews of the repository (an external review of 2026-10-29 and the clean-up list of 2026-11-14). No new feature, no stage or action change, no wire-format change, no workflow code touched.

What changes

Jobs and files

  • write_atomic creates its temp file exclusively under a name nobody can predict. It used .<name>.tmp and followed links, so a link a sandboxed job left in a workspace was written through with the worker's permissions.
  • Overlapping submits of one job key start one job. The look for the key's job, the submit, the id file and the job's record are one step under a per-key lock, run in a thread to its end: an activity attempt cancelled while csub answered still records the job it started, and the attempt after it waits and finds the id.

Consumers

  • BufferClient opens its connections on first use, per process. A BufferDataset can be pickled, so a DataLoader with the spawn start method can send it to its workers, and a forked worker no longer shares its parent's sockets.

autodev

  • The poller starts nothing while the operator has paused. A go added during a pause keeps its label and starts with the first poll after mia resume; it used to prepare a workspace, fail at the submit and leave the issue at needs-human.

Buffer definitions

  • A definition that changes sampling.output_axes, missing_axes, resample, emit or dtype, or sets cache, gets one line in the plan's warnings: the grammar accepts them and nothing reads them. A definition made from the example spec shows it, since that sets emit and cache.

Page

  • A search typed into a table on the Overview no longer brings up "This changed while you were typing" and no longer holds the Overview's redraw; a half-written note still does.
  • The Preparation view counts the shelved datasets.

Docs

  • AGENTS.md states the page's import rule as docs/development.md does: a module imports only modules above it in the table.

Checks

  • pixi run lint and pixi run typecheck are clean.
  • pixi run test: 1939 passed. The run was before the last commit, which only restructures three lines of autodev/jobs.py for mypy; that file's tests were run again after it.
  • The first five changes have a new or extended test. The two page changes have none and were not tried in a browser.

Rollout

Worker code (jobs, the poller) and the page, so a merge needs mia restart. Nothing to migrate.

Left out on purpose

  • Config keys nothing reads (crops.size, per_plane, per_file): the config ignores unknown keys and the example no longer documents them.
  • BindingInfo.errors in the buffer's "not prepared" reason: it would lengthen the common message for the sake of a rare mismatch between disk and registry.
  • Dead code that needs tests ported (nudge_dataset, the adopt route, the per-app config files), refactors and renames.

@StephanPreibisch @jakobtroidl

krokicki and others added 9 commits November 23, 2026 09:01
The temp file gets an unpredictable name and is created exclusively.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The look for the key's job, the submit, the id file and the record are one
step under a per-key lock, run in a thread to its end, so an attempt that
was cancelled while csub answered still records the job it started.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A DataLoader worker that was forked no longer shares its parent's sockets,
and one that is spawned can be sent the dataset.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The poller starts nothing while the operator has paused, so the label
stays and the first poll after `mia resume` starts the run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
sampling.output_axes, missing_axes, resample, emit and dtype, and cache,
are accepted by the grammar and have no effect; a spec that changes one
now says so.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@krokicki
krokicki merged commit b2a88d5 into main Nov 23, 2026
1 check passed
@krokicki
krokicki deleted the review-fixes branch November 23, 2026 15:39
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.

1 participant