Skip to content

docs(remote-agents): presence staleness bound is 180s since #3783 - #4310

Open
webdevtodayjason wants to merge 1 commit into
block:mainfrom
webdevtodayjason:docs/vision-presence-ttl
Open

docs(remote-agents): presence staleness bound is 180s since #3783#4310
webdevtodayjason wants to merge 1 commit into
block:mainfrom
webdevtodayjason:docs/vision-presence-ttl

Conversation

@webdevtodayjason

Copy link
Copy Markdown

Problem

VISION_REMOTE_AGENTS.md and the remote-agents spec both promise a dead remote agent's presence dot can be wrong "by at most about ninety" seconds. That was true against the old presence lease (90s PRESENCE_TTL_SECS renewed on a 30s/60s beat), but #3783 (merged 2026-07-30) raised the lease to 180s with all publishers on a 60s beat. Both documents landed after that change (#3924 on 07-30, #3748 on 08-02), so the stated staleness bound is half the real one.

The margin history is on #3795: the old 90s lease gave the agent harness a 1.5x margin (production capture in #3795 (comment)), #3783 restored 3x by doubling the TTL, and the doubled TTL is what these documents should state.

Fix

Five lines, docs only:

  • VISION_REMOTE_AGENTS.md "Honest Costs": ninety seconds becomes about three minutes.
  • docs/remote-agents.md I3: the 90 seconds bound becomes 180 seconds, the quoted vision phrase follows, and the two downstream restatements ("wrong for <=90s", "the 90s presence bound") match.

The presence.rs:16 line reference in the spec is still accurate; only the constant's value changed. I checked both files for any other statement derived from the old 90/30 pair and found none.

Validation

  • PRESENCE_TTL_SECS = 180 at crates/buzz-pubsub/src/presence.rs:16 on current main.
  • Agent harness heartbeat 60s at crates/buzz-acp/src/lib.rs:1583, desktop 60s at desktop/src/features/presence/lib/presence.ts:42, so 180s = 3x the slowest publisher, and the worst-case wrong-dot window after an unceremonious kill is the full 180s lease.
  • Docs-only change; no code touched.

VISION_REMOTE_AGENTS.md and the remote-agents spec both state the
dead-agent presence window as 90 seconds. PRESENCE_TTL_SECS was raised
90 -> 180 by block#3783 (merged 2026-07-30), shortly before both documents
landed, so the promised bound is half the real one. Update the vision's
prose and the spec's I3 references (206, 216, 928) to the 180-second /
three-minute figure. The presence.rs:16 line reference is still
accurate; only the value changed.

Signed-off-by: webdevtodayjason <jason@webdevtoday.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant