Keeping DanceSaga usable when pose inference stops

DanceSaga should isolate pose inference from camera capture, playback and session control before replacing its detection model. If the inference worker stalls, the interface must keep responding and the music must continue, while scoring explicitly becomes unavailable. This is a proposed migration architecture, not a verified description of the stack running at flashbackdance.com.

Move the failure boundary first

For an older stack that performs capture, inference and rendering in the same execution context, the first investment is an independently restartable inference worker, justified by the reduction in session interruptions during injected stalls. Feed it through a latest-frame mailbox rather than an accumulating queue, and reject results whose source frame is older than 100 ms when consumed. That age limit trades pose coverage for temporal relevance, so measure discarded results alongside the proportion of session time with usable feedback. Keep playback and session state outside the worker, and let a supervisor invalidate scoring when fresh results stop arriving, because a frozen skeleton must never count as evidence of a completed movement. Camera capture should remain behind a narrow adapter aligned with the W3C web media standards family, with compatibility work budgeted against capture success across the supported device fleet.

The expensive part is preserving meaning

Budget for recorded movement replay and explicit contracts for crop transforms, mirrored coordinates, landmark confidence and capture timestamps, because discrepancies between the old and new pipelines must be measured as changes in movement judgments before they become production score disputes.

Pay for comparison, then remove it

Run the replacement in shadow mode on a controlled share of sessions, keeping the old pipeline authoritative and comparing both against the same captured inputs. Duplicate inference consumes compute and, on user devices, energy, so expand that share only while measured playback responsiveness and device heat remain within the product’s existing acceptance limits. A shared camera or exhausted execution environment remains a common failure boundary, which means worker isolation buys recovery from an inference stall rather than independence from the whole device. Preserve a local session checkpoint and tag results with a worker generation identifier so a restarted worker cannot apply stale output to the current session, funding this bookkeeping against observed recovery time and rejected stale updates. Promote the new pipeline only when replay disagreement fits the accepted scoring tolerance and injected stalls preserve playback while visibly suspending scoring, otherwise route subsequent frames back to the old worker through the same adapter. Keeping that fallback incurs maintenance and regression work, so retire it when the replacement meets those gates across supported devices and the measured recovery benefit no longer justifies maintaining both implementations.

Back to DanceSaga - Pose Detection · Domains

← Back to DanceSaga - Pose Detection
Engineering & Architecture Brief

Keeping DanceSaga usable when pose inference stops

DanceSaga should isolate pose inference from camera capture, playback and session control before replacing its detection model. If the inference worker stalls, the interface must keep responding and the music must continue, while scoring explicitly becomes unavailable. This is a proposed migration architecture, not a verified description of the stack running at flashbackdance.com.

Move the failure boundary first

For an older stack that performs capture, inference and rendering in the same execution context, the first investment is an independently restartable inference worker, justified by the reduction in session interruptions during injected stalls. Feed it through a latest-frame mailbox rather than an accumulating queue, and reject results whose source frame is older than 100 ms when consumed. That age limit trades pose coverage for temporal relevance, so measure discarded results alongside the proportion of session time with usable feedback. Keep playback and session state outside the worker, and let a supervisor invalidate scoring when fresh results stop arriving, because a frozen skeleton must never count as evidence of a completed movement. Camera capture should remain behind a narrow adapter aligned with the W3C web media standards family, with compatibility work budgeted against capture success across the supported device fleet.

The expensive part is preserving meaning

Budget for recorded movement replay and explicit contracts for crop transforms, mirrored coordinates, landmark confidence and capture timestamps, because discrepancies between the old and new pipelines must be measured as changes in movement judgments before they become production score disputes.

Pay for comparison, then remove it

Run the replacement in shadow mode on a controlled share of sessions, keeping the old pipeline authoritative and comparing both against the same captured inputs. Duplicate inference consumes compute and, on user devices, energy, so expand that share only while measured playback responsiveness and device heat remain within the product’s existing acceptance limits. A shared camera or exhausted execution environment remains a common failure boundary, which means worker isolation buys recovery from an inference stall rather than independence from the whole device. Preserve a local session checkpoint and tag results with a worker generation identifier so a restarted worker cannot apply stale output to the current session, funding this bookkeeping against observed recovery time and rejected stale updates. Promote the new pipeline only when replay disagreement fits the accepted scoring tolerance and injected stalls preserve playback while visibly suspending scoring, otherwise route subsequent frames back to the old worker through the same adapter. Keeping that fallback incurs maintenance and regression work, so retire it when the replacement meets those gates across supported devices and the measured recovery benefit no longer justifies maintaining both implementations.

Related Architecture Specifications (DANCEGOAL): dancegoal.com · learnmerengue.com · rehabdance.com