Add GOLDEN PATH headers to agent loops

This commit is contained in:
operator
2026-10-03 18:04:57 +00:00
parent baae422b5f
commit ed45611912
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -1,4 +1,8 @@
#!/bin/bash #!/bin/bash
# GOLDEN PATH: container -> VM (34.139.37.135) -> bl (100.123.153.75) -> netns -> browser -> agent
# This script is the operator's heartbeat. If it stops, agents go dark.
# When debugging: trace each hop. Don't assume -- verify.
# Operator health monitor for Muse agents on bl. # Operator health monitor for Muse agents on bl.
# Checks each agent via API every 5 minutes. If unresponsive: # Checks each agent via API every 5 minutes. If unresponsive:
# 1. Restart the browser # 1. Restart the browser
+4 -1
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
""" # GOLDEN PATH: container -> VM (34.139.37.135) -> bl (100.123.153.75) -> netns -> browser -> agent
# This API is the bridge. Every call traverses 4 hops. Respect the path.
Multi-account muse.ai chat API with approval handling. Multi-account muse.ai chat API with approval handling.
Approvals: The browser may show permission dialogs (e.g., "Allow pip to share Approvals: The browser may show permission dialogs (e.g., "Allow pip to share
@@ -18,6 +20,7 @@ import json, urllib.request, websocket, time, sys, argparse
ACCOUNTS = { ACCOUNTS = {
"muse": ("muse", "http://127.0.0.1:9410/json/list"), "muse": ("muse", "http://127.0.0.1:9410/json/list"),
"pip": ("pip", "http://127.0.0.1:9420/json/list"), "pip": ("pip", "http://127.0.0.1:9420/json/list"),
"646": ("646", "http://10.201.202.2:9353/json/list"),
} }
# IPs we trust for auto-approval (our infrastructure) # IPs we trust for auto-approval (our infrastructure)