From 0480034707b16a3b849099d51620a7ff370de158 Mon Sep 17 00:00:00 2001 From: Karibhou <157208370+Karibhou@users.noreply.github.com> Date: Sat, 31 Oct 2026 14:04:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20docs(hub):=20reframe=20activityF?= =?UTF-8?q?orgetAfter=20as=20a=20backstop=20for=20silent=20hives?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since #16007, removing a hive from the registry purges its activity block immediately via activityStore.forget (removeRegistryEntry and the admin registry DELETE handler). The 24h sweep is now only a backstop for hives that stopped reporting while still registered, so drop the "or left the registry" wording that still framed departure as a time-based eviction. Comment-only change; no behavior change. Closes #16009 Hive-Run: hivecommons/hive#16009 Hive-Plan: reviewer backlog docs-currency (from review of #16007) Hive-Spec: hub-activity#activityForgetAfter Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01HRH6kif1Xa5LCs6yXPcSgw Signed-off-by: Karibhou <157208370+Karibhou@users.noreply.github.com> --- src/pkg/hub/activity.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pkg/hub/activity.go b/src/pkg/hub/activity.go index abe58319e5..101c21c25a 100644 --- a/src/pkg/hub/activity.go +++ b/src/pkg/hub/activity.go @@ -33,8 +33,9 @@ const ( activityStaleAfter = 2 * activityHeartbeatInterval // activityForgetAfter drops a hive's block from memory once it has not - // been refreshed for this long, so hives that stopped reporting (or left - // the registry) cannot pin memory forever. + // been refreshed for this long. It is a backstop for hives that stopped + // reporting while still registered: a hive removed from the registry has + // its block purged immediately via activityStore.forget. activityForgetAfter = 24 * time.Hour // maxActivityResponseItems bounds the merged response no matter how many