Aria Solutions engineering journal

Engineering notes: Fix --rig daemons binding 8080: the bridge got the raw page_port arg (None), not the rig default

Controller daemons for all three souls gained legs parity, including port routing fixes, systemd units, and connections page tracking.

Controller daemons for all three souls gained legs parity, including port routing fixes, systemd units, and connections page tracking.

Daemons and Port Routing

Aria crash-looped fighting Claude for the fallback port while the error named 8785. The bridge received the raw page port argument (None) rather than the rig default, which caused it to fall back to 8080. The fix updated sovereign-agent/src/sovereign_agent/muse_controller/__init__.py so that self._bridge = WebGameBridgeServer(host=host, port=self._page_port). A construct-only regression test was added in sovereign-agent/tests/test_muse_controller.py covering all three rigs without binding real doors in a test. The test asserts that ctrl._page_port == ws_port and ctrl._bridge._port == ws_port, and that ctrl._agent_port == agent_port and ctrl.agent_url.endswith(f":{agent_port}") across muse, aria, and claude.

Systemd service units were added for Aria and Claude in sovereign-agent/muse-controller/aria-controller.service and sovereign-agent/muse-controller/claude-controller.service. Both units run ExecStartPre=/usr/bin/pkill followed by a sleep and the controller start command with the respective rig flag. The pkill commands for Aria and Claude units were updated to ignore pkill's nothing-matched exit status by adding the hyphen prefix. The Muse unit was scoped so its pkill can no longer kill the other souls' daemons.

Connections Tracking and Tools

The Connections page gained unit state tracking for all three controller daemons in sovereign-agent/src/sovereign_agent/dash_inventory/connections.py. It tracks both doors, page-connected status, uptime, and inbox depth from daemon heartbeats, with start, stop, and restart via the controls table using systemd only. The legs group owns these units, and _unit_files skips them so they are not listed twice under Background workers. Port mappings are defined with Muse on 8784 and 8783, Aria on 8785 and 8786, and Claude on 8787 and 8788. Heartbeats are read from /tmp/{soul}-heartbeat.json.

Court summoning tools were shipped in sovereign-agent/src/sovereign_agent/tools/web_game_bridge_tools.py, adding WebGameListNpcsTool, WebGameSummonNpcTool, and WebGameCallCourtTool. WebGameListNpcsTool is a tier 1 tool that lists every placed NPC with live x/z coordinates, whether each is walking to a summons, and whether each is a live rig. It checks for a live connection, sends a list command, and handles failures for disconnected states or unsupported pages.

What this rests on


The store · The course