D47n — A claim on a channel is local until there is a server to hold it¶
- Status: Accepted — implements D47 (part 4); leases across people are held by the hosted peer (D51c)
- Date: 2026-09-24
- Origin: slice 24 build
- Area: surfaces
Decision¶
kg sweep claim <scope> <channel>takes a lease on a channel for--hours(default 4).- It is held by the researcher the channel's brief names (the channel's name,
or
--researcher). That is the name the sweep is recorded under, so recording the sweep gives the lease back. - A live lease refuses every other claim, the same person's included. Two sessions run by one person are both that person. The refusal names the holder, until when, and the lease id. Renewing takes that id.
- A lease runs out on its own;
kg sweep releasegives one back early. Someone else's lease is released only by its id. kg sweep brief --claimclaims and returns the brief in one step: the fan-out path, one brief per subagent.--dueleaves out channels someone holds, andkg sweep planshows who holds each one and until when.- A sweep recorded over a channel someone else holds is recorded all the same, with a warning that two sweeps may now overlap. The work is not thrown away.
- Leases never leave the graph. They are not in bundles, and a rebuilt graph has none.
Why¶
The collision that happens today is one person fanning out several agents from one graph, and nothing stopped two of them from being handed the same channel. A lease in that graph stops it.
Across people, a lease has to be seen before the other person starts. In a git dataset, that means a pull request merged within minutes for every claim, which is too much ceremony for a hint. A server that authenticates people (slice 28) can hand out a lease properly.
Alternatives¶
- Lease files in the dataset, where the path is the lock and verify fails a second claim. This works, but it adds a pull request per claim, and the lock only takes effect once it has merged.
- Advisory "last checked" only. That is what D45c already gives, after the fact. It does not stop two sweeps starting at once.
Consequences¶
- BACKLOG: shared leases (slice 28); lease ownership when one person runs two agents under one name.