feat(fleet): expand VALID_AGENTS to include dev and def

This commit is contained in:
operator
2026-10-05 01:38:26 +00:00
parent 61cf9d027b
commit aba4bce682
2 changed files with 183 additions and 5 deletions
+8 -3
View File
@@ -53,9 +53,9 @@ except ImportError:
API = "/home/super/Projects/NetVM/bin/muse-chat-api.py"
NETVM_EXEC = "/home/super/Projects/NetVM/bin/netvm-exec.sh"
VALID_AGENTS = ["muse", "pip", "646", "opm"]
VALID_SENDERS = ["muse", "pip", "646", "opm", "super"]
VALID_RECIPIENTS = ["muse", "pip", "646", "opm"]
VALID_AGENTS = ["muse", "pip", "646", "opm", "dev", "def"]
VALID_SENDERS = ["muse", "pip", "646", "opm", "dev", "def", "super"]
VALID_RECIPIENTS = ["muse", "pip", "646", "opm", "dev", "def"]
# ---- Canonical follow-up tags (2026-10-04, DEPLOY-DECISIONS.md) ----
# Tags declare follow-up policy at send time. They are metadata only:
@@ -589,6 +589,11 @@ def dm_send(agent, target, message, verify=True, raw=False,
log_event({"type": "sent", "id": msg_id, "agent": agent, "to": recipient, "target": target,
"verified": True, "transport": "gateway", "tags": tags})
print(f"DM {msg_id} from {agent} to {recipient}/{target}: SENT and VERIFIED thread={thread_uuid} (gateway)")
# Follow-up record creation (same as the CDP path below): the
# gateway fast-path must not skip followup registration, or
# --expect-reply sends silently lose tracking.
if tags.get("reply:expected"):
_register_followup(msg_id, agent, recipient, target, tags)
return msg_id
except Exception as _e:
log_event({"type": "gateway_fallback", "id": msg_id, "error": str(_e)[:100]})