fix(agent): purge state when offer resolved elsewhere
fix(agent): clear empty entries when dropping peers
test(functional): long-running fixtures
fix(agent): agent initialization

Wait for the agent to successfully push its
state to the Registry before resuming normal
operation. This prevents the watchers from
losing events during startup.
refactor(agent): remove duplicated code