Record agent runtime on bearer requests
Version: 1.9.0 Date: 2026-10-23
Goal: Legacy API clients (Tower, agents) send Bcyip-Agent headers but users.agents was only updated for IP Magic Box token creation; neo already records runtime on each request.
Solution: After successful bearer API token auth, recordUserAgentRuntime updates users.agents.<agent> from Bcyip-Agent, Bcyip-Version, and Bcyip-Platform, skipping Mongo writes when version, platform, and calendar day are unchanged. users.agent / boxVersion remain ipmagicbox-only.
Files Modified:
app/services/agent-runtime.js- runtime persistence and skip logicapp/services/auth.js- call after bearer authtest/agent-runtime.js- unit tests for skip logic
Release fragment: feat-record-agent-runtime