Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs([issue-1563]): changelog for CoS task claim/lease federation

[._.]/ Adam Eivyf909b4d7d68f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 39e98e0e36..d60fb1bb74 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -12,6 +12,8 @@
- **[issue-1563] Every Chief-of-Staff agent now records which machine produced it.** As a first step toward federating CoS agent history across peers, each spawned agent stamps the producing instance's federation identity (`instanceId`) into its metadata at registration. The stamp flows through to the agent's archived `metadata.json` automatically, so once agent history syncs between a node pair, each agent — and the worktree branch it created — can be attributed to the instance that ran it. This is the provenance prerequisite for the claim/lease ownership work that lets two federated peers share a backlog without ever duplicating each other's agent runs. (`server/services/agentLifecycle.js`)
+- **[issue-1563] Two federated machines can now share a Chief-of-Staff backlog without ever running the same task twice.** Each task a CoS agent starts is now stamped with a time-bounded ownership *claim* — which machine took it, when, and a lease that stays alive while the agent works. Before starting any task, a machine checks the claim: if its peer holds a live lease, it backs off instead of spawning a second agent (which previously would have created conflicting worktrees and branches on the same repo and raced the recovery sweep). The lease auto-renews while the work runs and is released the moment the task finishes or fails back to the queue, and orphan recovery leaves a peer's in-flight task alone rather than resetting it. If a machine crashes mid-task its lease simply expires and the peer is free to pick the task up. The worktree each agent creates is also tagged with its origin machine. This is the safety groundwork that lets CoS be included in full peer mirroring (#1561). (`server/services/cosTaskClaim.js`, `server/services/agentLifecycle.js`, `server/services/cos.js`, `server/services/cosTaskStore.js`, `server/services/worktreeManager.js`)
+
## Local LLMs
- **The Hugging Face model search now lets you pick a quantization, and defaults to the highest-fidelity build that fits your machine's memory.** Previously every GGUF repo installed a single auto-chosen Q4-ish quant, hiding larger variants (like a `…-BF16.gguf`) that a big-memory box can comfortably run. Each Hugging Face result now carries a **Quant** menu listing every GGUF variant in the repo (multi-part shards summed into one entry), with a per-quant fit hint — *fits comfortably* / *tight fit* / *exceeds RAM* — measured against your usable memory. The default selection is RAM-aware: PortOS reserves headroom for the OS and KV cache, then picks the largest variant that still fits (so a 128 GB unified-memory Mac defaults to BF16/Q8 where a 16 GB laptop stays on Q4), and you can override it per model. This is purely a file-picker improvement — these are all still GGUF files the existing Ollama/LM Studio runtimes already support; nothing about the GGUF-only requirement changed (raw safetensors/full-precision HF models need a different runtime and remain out of scope). Ollama installs via `hf.co/<repo>:<quant>`; LM Studio via `<repo>@<quant>`.