magus v0.4.3 is out. See what's new
¶ View markdown source · ✎ Suggest an edit
1 min read

MGS3046: a workspace load file held in a shared checkout

magus job fork, magus job apply and magus\job.put refused a job because its write paths cover a file the workspace loads, and another live job is working in this checkout:

[MGS3046] job: wave/slots declares "magusfile.buzz", which covers magusfile.buzz,
  and wave/docs is live in this checkout: give wave/slots its own worktree and
  fork it there, or leave magusfile.buzz out of its write paths

Nothing was written to the job store.

Why

A magusfile, magus.yaml or spell source that is half-saved stops the whole workspace loading. Every job in the checkout loses magus run, including the checks it is graded on, until the edit lands. The file has one owner, so the only way both jobs can be right is for one of them to work somewhere else.

What is not refused

  • Write paths that cover no load file.
  • A checkout no other live job is working in.

What to do

Fork the job into its own worktree by naming a checkout, an absolute directory outside the workspace, or drop the load file from its write paths. magus describe file <path> names what else a write path covers.

See also

MGS3046jobsleaseswrite pathscheckoutworktreeforkagentsmagusfilemagus.yaml
Last updated (29d8b3de)
Glossary

Workspace

The magus root directory that owns a set of projects and shared config; the unit magus operates over. Workspace in full.

Project

A directory magus recognizes as a unit of work (it has a magusfile); the unit of caching, scheduling, and dependency tracking. Project in full.

Magusfile

The magusfile.buzz that declares a project's targets (as export funs) and binds its spells. Magusfile in full.

Op

A single tool-native command a target composes (long form: operation); the middle of the work hierarchy (Spell to Op to Target). Op in full.

Spell

A language/runtime adapter (e.g. go, md) that maps generic targets onto a toolchain's real commands. Spell in full.

Buzz

The language magusfiles are written in (the .buzz engine). Buzz in full.

Slot

One unit of the pool's capacity. A target acquires the slots it needs to run (most take one) and releases them when it finishes; the pool tracks capacity (total slots), running (acquired), and queued (blocked). Slot in full.

Agent

A model working through an agent host such as Claude Code, Codex, Cursor or OpenCode. magus treats an agent as one more caller of its CLI, MCP tools and console, held to the same checks as a person. Agent in full.

Job

The unit of delegated work, and one row of the job store: what an orchestrating agent handed out, with its goal, the checkpoint it was cut against, the paths it may write or must not touch, and the one check it runs. A job's holder is either a session, for work an orchestrator handed out, or the daemon, for its own maintenance. The store records; the agent guard is what reads those facts back when grading a write. Job in full.

Run

One target executing under one magus invocation, such as magus run test web or magus affected ci. A run keeps its captured output behind an output reference. Every magus run is a run whether or not any job asked for it; see Job for how the two relate. Run in full.

Lease

The grant a holder takes on a job: the write and read paths that job declared, enforced in the checkout that took it with magus job exec. A job is the piece of work; a lease is permission over it. Lease in full.

Conventions

Placeholders

Angle brackets mark a value you replace with your own; never type the brackets:

magus run <target>
magus completion <shell>    # e.g. bash, zsh, fish

<target>, <path>, <shell>, <name> and the like are stand-ins, not literal text.