﻿# Tracker object IDs after reconnect: preserve session scope before reusing a trajectory

Tracker object IDs after reconnect: preserve session scope before reusing a trajectory. A practical streaming-video guide with failure mechanisms, a controlled scenario, acceptance evidence and primary references.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/sv-tracker-id-session-scope-reset/
Language: en

A tracking pipeline resumes after a camera restart. Reused object numbers are joined to old trajectories, turning an unrelated new detection into a continuation of a previous physical object.

## The media mechanism

Tracker identity is scoped by the selected tracker, stream lifecycle and reset policy. Equal numerical IDs do not independently establish physical continuity across a source generation change or recalibrated camera.

## Establish the pipeline boundary

Scope object identity to the tracker configuration and source lifecycle. A numeric tracker ID can be reused after reset and does not establish a globally unique physical entity.

Preserve source generation and tracker reset context with each trajectory fragment. If the application joins fragments across reconnects, require a separate reassociation rule using appropriate evidence. Equal numbers alone are insufficient, while different numbers do not prove different real objects either.

Use distinct synthetic objects before and after reset, then deliberately permit local IDs to repeat. Inspect downstream duration counters, event deduplication and stored trajectories for accidental continuation. Keep historical fragments immutable when the mapping changes. A later reviewed reassociation can link them explicitly without rewriting the original observation into a continuity claim the tracker never made.

## A constructed failure case

Show different synthetic objects before and after a source restart while allowing local IDs to repeat. The application must avoid automatic trajectory continuity unless its declared reassociation evidence supports the link.

## A practical validation procedure

Pin tracker configuration and documented reset behavior. Restart a marked source and inspect object identities with session and source context. Require an explicit reassociation rule for trajectories spanning the boundary rather than joining on object number alone.

Keep an unchanged control and a deliberate failure case. Change the relevant setting or interruption independently, then compare observed frame identities and state transitions. Measure through recovery as well as the first error; a restarted worker can retain obsolete results or references.

## Evidence for acceptance

Keep tracker configuration, source epoch and accepted cross-boundary association evidence.

## Recovery and limits

A correctly scoped ID is not proof of accurate object association within the session.

Define whether recovery drains, discards or isolates pending frames before resuming ordinary service. Preserve compact diagnostic identities and the fixture configuration. Avoid treating a new connection or a live process as proof that previous in-flight work has finished safely.

## References and interpretation

Primary references: [DeepStream multi-object tracking](https://docs.nvidia.com/deepstream/text/DS_plugin_gst-nvtracker); [DeepStream per-frame metadata](https://docs.nvidia.com/metropolis/deepstream/9.0/python-api/PYTHON_API/NvDsMeta/NvDsFrameMeta.html).

This is a proposed operational validation, not an executed Retrivium benchmark. Documentation defines interfaces and supported behavior; the actual pipeline needs its own evidence. Repeat the check after relevant plugin, decoder, source or preprocessing changes.

## Related reading

Continue with [SAM2 video segmentation: object identity belongs to the inference session](/journal/fg2-sam2-video-session-object-memory/); [RTSP reconnection: start a new frame-identity epoch before accepting detections](/journal/sv-rtsp-reconnect-frame-identity-epoch/). Their adjacent context does not replace the specific frame-flow acceptance check described here.
