Skip to main content
Version: 1.9.0

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 logic
  • app/services/auth.js - call after bearer auth
  • test/agent-runtime.js - unit tests for skip logic

Release fragment: feat-record-agent-runtime