chore(fleet): sync operator memory, hatch menu dialogs, and watchdog alerts
This commit is contained in:
+12
-2
@@ -23,7 +23,7 @@ import time
|
||||
# Add bin dir to path for siphon imports
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
from monitor import monitor_once
|
||||
from monitor import monitor_once, flush_digest
|
||||
from siphon import RateLimiter
|
||||
|
||||
NETVM_BIN = "/home/super/Projects/NetVM/bin"
|
||||
@@ -135,7 +135,8 @@ def get_messages(thread_id, since_msg_id):
|
||||
messages.append({
|
||||
"id": mid,
|
||||
"text": chunk[:2000], # truncate long messages
|
||||
"author": agent,
|
||||
"author": "", # INTEGRATOR 2026-10-06: was `agent`
|
||||
# (thread owner) -- fabricated authorship; empty = unverified
|
||||
"ts": str(time.time()),
|
||||
})
|
||||
|
||||
@@ -249,6 +250,15 @@ def main():
|
||||
)
|
||||
|
||||
save_watermarks(new_marks)
|
||||
|
||||
# INTEGRATOR 2026-10-06: emit batched COMPLETED digest (one message
|
||||
# instead of N per-message relays). Urgency categories already relayed
|
||||
# individually inside monitor_once.
|
||||
digest_text = flush_digest()
|
||||
if digest_text:
|
||||
post_fn(digest_text)
|
||||
log(f"Digest posted ({len(digest_text)} chars).")
|
||||
|
||||
log(f"Cycle complete. Watermarks: {len(new_marks)} threads tracked.")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user