[Visual] Budget stress glow — agent visual health reflects wallet balance #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
INTEGRATION.md Phase 4 mentions: "budget stress glow — glow intensity = wallet health". This would make the world’s visual state a real-time readout of the economic health of the agent swarm.
Currently
glow_intensityis set byagent_stateevents (0.0–1.0). The vision is to use the agent’s wallet balance as a second dimension of glow.Design
New field on
agent_statewallet_health=current_balance_sats / target_reserve_sats, clamped 0.0–1.0.Visual mapping
Warning label
When
wallet_health < 0.1, show a pulsing red⚡ LOW FUNDSlabel above the agent in the 3D world. Tap to open the agent panel → Status tab shows balance and a top-up button.Acceptance Criteria
⚡ LOW FUNDSlabel visible in 3D worldwallet_healthfieldFiles
js/agents.js(consume wallet_health, drive glow color)js/websocket.js(MockWebSocket: simulate wallet_health)PROTOCOL.md(document wallet_health field)Resolved in PR #62. Merged to main — 82/82 smoke test pass.