Skip to content

fix(agent): drop out-of-scope services immediately — retention is for in-scope churn only - #168

Merged
bpalermo merged 1 commit into
mainfrom
fix/drop-out-of-scope-immediately
Jun 13, 2026
Merged

bpalermo merged 1 commit into
mainfrom
fix/drop-out-of-scope-immediately

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Follow-up to #167: the 2.5-minute worst-case stale window (grace 90s + tick 60s) is unacceptable for the departure case — and unnecessary.

  • In scope + endpoints transiently empty (rev-66 case): grace unchanged — retained fast-503s beat ODCDS stalls mid-churn.
  • Left the dependency set: dropped in the same reload. FQDN authorities can't 404 (catch-all backstop), so the retained vhost only shadowed ODCDS. Recovery = first-request observed warm (~600ms), zero stale window.
  • fix(agent): time-driven retention expiry — stale empty vhost shadowed ODCDS #167's tick stays as backstop for declared-but-extinct services.

🤖 Generated with Claude Code

… in-scope churn only

The 90s retention grace + 60s prune tick left a worst-case 2.5-minute
window where a service that left the node's dependency set kept a
stale empty vhost shadowing the on-demand catch-all (fast 503s, #167).

Retention conflated two cases. In-scope transient emptiness (a
destination mid-churn) keeps the grace: fast retriable 503s beat ODCDS
stalls until the endpoints return. A service that LEFT the dependency
set is now dropped in the same reload that processes the departure:
post-FQDN its authority cannot 404 — the *.<mesh-domain> catch-all is
the structural backstop — so the vhost's only effect was suppressing
the designed recovery path. Next request re-warms it as an observed
dependency (~600ms once), which is the truthful state for traffic
nobody on the node declares.

Convergence for the departure case: zero stale window (was up to
2.5min). The #167 tick remains as backstop for in-scope-but-extinct
services.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@bpalermo
bpalermo merged commit a52205e into main Jun 13, 2026
9 checks passed
@bpalermo
bpalermo deleted the fix/drop-out-of-scope-immediately branch June 13, 2026 01:19
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