From 9ecd2b4fb489fe09c4e9683d814010feefc18578 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 25 Mar 2025 23:55:00 +0000 Subject: [PATCH] think --- THOUGHTS.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/THOUGHTS.txt b/THOUGHTS.txt index 900e213..9502992 100644 --- a/THOUGHTS.txt +++ b/THOUGHTS.txt @@ -7357,3 +7357,24 @@ almost worse firewall module gonna be option 1 isn't it? + +Tue Mar 25 00:13:31 GMT 2025 + +the logic for watch-outputs is not correct + +(1) when we first read outputs, how do we know if the controlled +service is up to date wrt those outputs? we should perform the action +for the first time after reading initial state and before waiting + +(2) it isn't writing the new outputs back into trees, so will refresh +continually after the fisrt change + +set tree to empty for each service +loop: +for each service + read new tree + if different + do action + set tree = new tree +wait for changes +next iteration