Enums§
- Auto
Sync Outcome - Outcome of one background Personal-Cloud auto-push (GL #384).
Constants§
- EXIT_
TELEMETRY_ TIMEOUT - Network budget for the send that runs as the MCP server exits.
Functions§
- build_
sync_ entries - classify_
outcomes - Classify per-surface push results into one
AutoSyncOutcome. A 401 anywhere wins — a revoked credential makes every other signal moot and is the only failure the user must act on. Then a 402 (the account is gated); otherwise total failure means the network is down; anything else counts as synced. - cloud_
background_ tasks - collect_
cep_ entries - collect_
command_ entries - collect_
contribute_ entries - collect_
feedback_ entries - collect_
gotcha_ entries - collect_
knowledge_ entries - consumes_
daily_ slot - Whether an outcome should consume today’s auto-sync slot. Only a network failure leaves it open — a Pro gate or a dead credential will not resolve by retrying in ten minutes, and each is announced once per process.
- send_
telemetry - Send the cumulative telemetry totals if the aggregate admits a send now. Returns the acknowledged bucket. Admission (daily cap, spacing, “nothing new”) is decided under the aggregate lock, so callers may call freely.
- should_
auto_ push_ index - Whether the background index push should run for this project (GL #392): separate opt-in, logged in, a local index actually exists, and this project hasn’t pushed today. Pure for unit testing.
- should_
auto_ sync - Whether the auto-sync should run now: opt-in flag, logged in, and not already synced today (the debounce). Pure for unit testing.