Expand description
Push a knowledge write to Cloud from the process that made it (#270).
ctx_knowledge runs in the MCP server of the agent, the background
sync (super::auto) in the daemon: the daemon only saw a remembered
fact on its next poll, after its debounce and spacing. Here the writing
process syncs the vault of the checkout itself, about COALESCE after
the write and off the tool call, on its own thread — the cloud-calls
thread of task claims never waits behind it.
Bounded: requests of one checkout coalesce (a burst of writes is one
push), one push per SPACING per checkout in this process, and every
push takes its turn from the vault’s budget that all processes of the
machine share (super::budget: a burst of BURST_MAX attempts, then
one per BURST_EVERY, none while a failure or Cloud’s Retry-After holds the
vault back). A vault another sync holds is tried again at most
LOCK_RETRIES times. Whatever does not go out here, the daemon’s sync
takes along.
Functions§
- push_
soon - Push the vault of the checkout
project_rootto Cloud soon: call after a knowledge write. Returns at once without touching the disk; whether this machine is connected is looked at on thecloud-pushthread.