Skip to main content

Module work_store

Module work_store 

Source
Expand description

Whether a build keeps its own work store: the Kanban queue and what hangs off it (cards, events, Presence claims, coordination posts, the Jobs run ledger, scheduled jobs).

Those tables live in files every build on the host opens: the identity store and the shared store. They are shared on purpose, so the agents of every build the operator runs, stable or a task package one, work from one queue. A task dev build is the exception: it is for testing, and reading the operator’s real queue meant a task it created, claimed or completed was the operator’s own. So a source-tree build gets a work-store.db of its own by default.

Enums§

IsolatedWorkReason
Why the build does or doesn’t have a work store of its own.

Constants§

ISOLATED_WORK_ENV
1 gives the build its own work store, any other value shares the host’s.

Functions§

isolated_work_enabled
Whether this build keeps its own work store.
isolated_work_reason
Reads the env, and asks the binary’s own path whether it is a dev build (agentmux_common::runtime_mode::is_dev_self), not AGENTMUX_RUNTIME_MODE: a packaged build started from a pane inside a dev instance inherits that.
isolated_work_reason_for
The rule, with its inputs passed in: opt is AGENTMUX_ISOLATED_WORK (if set) and dev_build whether this binary is a source-tree build.