From 03fec39405163968c98099779ef162da0c1833ba Mon Sep 17 00:00:00 2001 From: damocles Date: Thu, 21 May 2026 22:32:44 +0200 Subject: [PATCH] =?UTF-8?q?forge=5Fnotify:=20flip=20keepSubscriptions=20de?= =?UTF-8?q?fault=20=E2=80=94=20agents=20keep,=20manager=20auto-unsubs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nix/templates/harness-base.nix | 15 ++++++++------- nix/templates/manager.nix | 6 +++--- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/nix/templates/harness-base.nix b/nix/templates/harness-base.nix index 06b2d6a..e1bd287 100644 --- a/nix/templates/harness-base.nix +++ b/nix/templates/harness-base.nix @@ -161,14 +161,15 @@ options.hyperhive.forge.keepSubscriptions = lib.mkOption { type = lib.types.bool; - default = false; + default = true; description = '' - When true, the forge notification poller will NOT auto-unsubscribe - from repo watches after delivering a "subscribed"-reason notification. - Set this for agents (e.g. triage) that intentionally consume the full - repo notification firehose and must retain broad watch subscriptions. - By default agents auto-unsubscribe from repos they no longer actively - work in to avoid accumulating firehose noise. + When true (the default), the forge notification poller will NOT + auto-unsubscribe from repo watches after delivering a + "subscribed"-reason notification. Sub-agents keep their broad + subscriptions so they stay informed about repos they contribute to. + Set to false for agents (e.g. the manager) that use reason-based + filtering and do not need firehose-level repo visibility — they will + auto-unsubscribe after receiving a watched-repo notification. ''; }; diff --git a/nix/templates/manager.nix b/nix/templates/manager.nix index 3cd1827..c040cae 100644 --- a/nix/templates/manager.nix +++ b/nix/templates/manager.nix @@ -2,9 +2,9 @@ { imports = [ ./harness-base.nix ]; - # Manager keeps broad repo watch subscriptions — needs full visibility. - # Sub-agents default to false and auto-unsubscribe from firehose repos. - hyperhive.forge.keepSubscriptions = true; + # Manager auto-unsubscribes from repo watches (uses mention-only filtering + # via HIVE_FORGE_NOTIFY_REASONS). Sub-agents default to keepSubscriptions=true. + hyperhive.forge.keepSubscriptions = false; # HIVE_PORT/HIVE_LABEL/gitconfig are also injected by the generated # `applied/hm1nd/flake.nix` (see `lifecycle::setup_applied`); the values