Cascade an operator snooze from a governor to its governed tasks - #431
Merged
Merged
Conversation
Snoozing a task muted that one row only, so a snoozed governor's ensemble kept demanding attention — bright rows, still counted in `active agents N/M` — even though the operator had said "not today" to the work they belong to. `TaskService.set_snooze` now writes the same `snoozed_until` onto every non-terminal task governed (transitively) by the snoozed one, mirroring the existing cascade-drop. Terminal descendants are skipped (nothing to mute) but the walk descends through them, so a finished child doesn't shield a live grandchild; an unchanged value is skipped so a repeated snooze causes no `updated_at` churn; and a `seen` set keeps a governance cycle from looping. Clearing cascades the same way. Nothing cascades upward — a governed task's own snooze is its own — and the service still never reads a clock. The dashboard needs no change: each child now carries the fact itself, so the existing label/dimming/counter paths mute it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
tildesrc
marked this pull request as ready for review
September 23, 2026 23:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snoozing a task muted that one row only, so a snoozed governor's ensemble kept demanding attention — bright rows, still counted in
active agents N/M— even though the operator had said "not today" to the work they belong to.TaskService.set_snoozenow writes the samesnoozed_untilonto every non-terminal task governed (transitively) by the snoozed one, mirroring the existing cascade-drop:eon a governed task mutes that task alone (this fork has no attention/piercing field).updated_at/change-feed churn, and aseenset keeps a governance cycle (set_governordoesn't reject one) from looping.The dashboard needs no change: each child now carries the fact on its own record, so the existing
_snooze_label/ dimming / counter / refresh-timer paths mute it.Plan: the task's
plan.mdartifact.