Skip to content

Pause in a release layout, the ledger backup off the service lock, a stale worker row - #122

Merged
krokicki merged 6 commits into
mainfrom
pause-keeps-the-file
Nov 29, 2026
Merged

krokicki merged 6 commits into
mainfrom
pause-keeps-the-file

Conversation

@krokicki

@krokicki krokicki commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Three fixes found while running an installation in the release layout, and three corrections to docs/deployment.md.

Fixes

mia pause / mia resume change nothing that runs (1c3a765)

  • A release's mia.yaml is a link to the installation's one copy. The pause was written by rename, which replaced the link with a file of the release's own and left the shared copy as it was.
  • A worker's sandbox binds the shared mia.yaml as a single file. A file renamed over it never reaches a running worker.
  • set_pause now writes the file the manifest path leads to, in place: a link stays a link and the inode stays the inode. A # ponytail: comment names the ceiling (a reader in the instant of the write can see a torn file, which paused reads as not paused) and the upgrade (a flag file of its own in a directory the sandbox mounts).

Every request waits for the timed ledger backup (6d779f7)

  • The backup runs every keeper.minutes, copies the whole ledger to the shared disk, and held the service's lock while it did.
  • It now copies from a read-only connection of its own, as the draw archive already does.

A service that left mia.yaml owes a restart forever (c554b53)

  • The ledger keeps a service's last heartbeat. Once the checkout's code moved on, every sweep of the repair agent reported that worker as running old code.
  • A worker row with no queue in the health answer is of a service that is not part of the installation, and is ignored.

Docs (docs/deployment.md)

  • 828c6df: csub refuses a mount that goes through a link, so a round that stopped before a move of the roots is restarted, not resumed.
  • 403ee9e: only the operator's account writes what an installation runs or trusts, parent directories included.
  • fe0bd38: a move rewrites draws.descriptor too, and the draw archives of retired buffers keep the old paths, so the links stay while an archived run may be replayed.

Checks

  • New tests: test_set_pause_edits_the_file_a_release_links_to_and_keeps_its_inode, test_backup_does_not_take_the_service_lock, test_incident_2026_11_26_a_worker_row_of_a_service_that_left_the_installation_owes_no_restart.
  • Run locally: the tests covering each change (config and pause, ledger and buffer-api, repair agent and sweep), lint and typecheck. The full suite was not run locally.
  • Checked by hand that a bwrap sandbox binding one file sees an in-place write and does not see a rename.

@StephanPreibisch @jakobtroidl

krokicki and others added 6 commits November 26, 2026 15:24
A release's mia.yaml is a link to the installation's one copy, and a worker's
sandbox binds that copy as a single file. Written by rename, a pause replaced
the link with a file of the release's own and reached no running worker.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The copy goes to the shared disk every keeper.minutes and was made under the
service's lock, so every request waited for it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… old paths

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…es no restart

The ledger keeps a service's last heartbeat after mia.yaml stops naming it, and
every sweep then said its worker ran old code.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@krokicki krokicki changed the title mia pause/resume: edit the linked mia.yaml in place Pause in a release layout, the ledger backup off the service lock, a stale worker row Nov 26, 2026
@krokicki
krokicki added this pull request to stack #125 November 28, 2026 03:18
@krokicki
krokicki merged commit d8e6dcd into main Nov 29, 2026
1 check passed
@krokicki
krokicki deleted the pause-keeps-the-file branch November 29, 2026 23:31
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