forge_notify: flip keepSubscriptions default — agents keep, manager auto-unsubs

This commit is contained in:
damocles 2026-05-21 22:32:44 +02:00 committed by Mara
parent d58a3a3303
commit 03fec39405
2 changed files with 11 additions and 10 deletions

View file

@ -161,14 +161,15 @@
options.hyperhive.forge.keepSubscriptions = lib.mkOption { options.hyperhive.forge.keepSubscriptions = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = true;
description = '' description = ''
When true, the forge notification poller will NOT auto-unsubscribe When true (the default), the forge notification poller will NOT
from repo watches after delivering a "subscribed"-reason notification. auto-unsubscribe from repo watches after delivering a
Set this for agents (e.g. triage) that intentionally consume the full "subscribed"-reason notification. Sub-agents keep their broad
repo notification firehose and must retain broad watch subscriptions. subscriptions so they stay informed about repos they contribute to.
By default agents auto-unsubscribe from repos they no longer actively Set to false for agents (e.g. the manager) that use reason-based
work in to avoid accumulating firehose noise. filtering and do not need firehose-level repo visibility they will
auto-unsubscribe after receiving a watched-repo notification.
''; '';
}; };

View file

@ -2,9 +2,9 @@
{ {
imports = [ ./harness-base.nix ]; imports = [ ./harness-base.nix ];
# Manager keeps broad repo watch subscriptions — needs full visibility. # Manager auto-unsubscribes from repo watches (uses mention-only filtering
# Sub-agents default to false and auto-unsubscribe from firehose repos. # via HIVE_FORGE_NOTIFY_REASONS). Sub-agents default to keepSubscriptions=true.
hyperhive.forge.keepSubscriptions = true; hyperhive.forge.keepSubscriptions = false;
# HIVE_PORT/HIVE_LABEL/gitconfig are also injected by the generated # HIVE_PORT/HIVE_LABEL/gitconfig are also injected by the generated
# `applied/hm1nd/flake.nix` (see `lifecycle::setup_applied`); the values # `applied/hm1nd/flake.nix` (see `lifecycle::setup_applied`); the values