Skip to content

Home / TangoPosture Community Edition / Technical Docs / Data Contracts & Configuration Reference

Data Contracts & Configuration Reference

Provenance Value
Source repository TangoMovementLabs/TangoPostureOpenCommunity
Application version 0.5.3
Source commit SHA 09038960daee
Generated / updated (UTC) 2026-11-27T19:38:11Z

Data Contracts

Contract Format / Type Description
Calibration Profile (.tpc) ZIP / JSON archive Stores user-approved posture baselines, metric tolerances, and camera evidence.
Reference Recording (.tpr) ZIP / JSON & media archive Stores reference movement sequences for repeatable comparison.
Portable Practice Archive (.tp) ZIP archive + SQLite export Bundles practice videos, pose overlays, reports, and indexed analytics.
PreparePractice Python data model Contract PreparePractice defined in src/tango_posture/contracts/commands.py.
StartPreview Python data model Contract StartPreview defined in src/tango_posture/contracts/commands.py.
SetRecording Python data model Contract SetRecording defined in src/tango_posture/contracts/commands.py.
SetScoring Python data model Contract SetScoring defined in src/tango_posture/contracts/commands.py.
PauseScoring Python data model Contract PauseScoring defined in src/tango_posture/contracts/commands.py.
StopAndSave Python data model Contract StopAndSave defined in src/tango_posture/contracts/commands.py.
DomainEvent Python data model Contract DomainEvent defined in src/tango_posture/contracts/events.py.
SessionStateChanged Python data model Contract SessionStateChanged defined in src/tango_posture/contracts/events.py.
MetricSnapshotEmitted Python data model Contract MetricSnapshotEmitted defined in src/tango_posture/contracts/events.py.
BeatTracked Python data model Contract BeatTracked defined in src/tango_posture/contracts/events.py.
SegmentSaved Python data model Contract SegmentSaved defined in src/tango_posture/contracts/events.py.
PracticeCompleted Python data model Contract PracticeCompleted defined in src/tango_posture/contracts/events.py.
PracticeFilterQuery Python data model Contract PracticeFilterQuery defined in src/tango_posture/contracts/models.py.
PracticeItemSummary Python data model Contract PracticeItemSummary defined in src/tango_posture/contracts/models.py.
LibraryPage Python data model Contract LibraryPage defined in src/tango_posture/contracts/models.py.
ReadinessCheck Python data model Contract ReadinessCheck defined in src/tango_posture/contracts/models.py.
ReadinessReport Python data model Contract ReadinessReport defined in src/tango_posture/contracts/models.py.

Configuration Reference

Option Type Default Source
Passage.start float Field(ge=0) src/tango_posture/calibration/models.py#L48
Passage.end float Field(gt=0) src/tango_posture/calibration/models.py#L48
ApprovedRange.lower float None src/tango_posture/calibration/models.py#L60
ApprovedRange.upper float None src/tango_posture/calibration/models.py#L60
ApprovedRange.unit str None src/tango_posture/calibration/models.py#L60
ApprovedRange.view Literal['side', 'front', 'all'] None src/tango_posture/calibration/models.py#L60
ApprovedRange.passages list[Passage] Field(min_length=1) src/tango_posture/calibration/models.py#L60
ApprovedRange.median float None src/tango_posture/calibration/models.py#L60
ApprovedRange.p10 float None src/tango_posture/calibration/models.py#L60
ApprovedRange.p90 float None src/tango_posture/calibration/models.py#L60
ApprovedRange.valid_duration float Field(ge=0) src/tango_posture/calibration/models.py#L60
ApprovedRange.selected_duration float Field(gt=0) src/tango_posture/calibration/models.py#L60
ApprovedRange.samples int Field(ge=2) src/tango_posture/calibration/models.py#L60
ApprovedRange.inside_fraction float Field(ge=0, le=1) src/tango_posture/calibration/models.py#L60
ApprovedRange.approved Literal[True] True src/tango_posture/calibration/models.py#L60
ApprovedRange.camera_check_passed bool False src/tango_posture/calibration/models.py#L60
RangeProfile.schema_version Literal[2] 2 src/tango_posture/calibration/models.py#L86
RangeProfile.measurement_version Literal['range-measurements/1.0'] RANGE_VERSION src/tango_posture/calibration/models.py#L86
RangeProfile.id str Field(default_factory=lambda: str(uuid4())) src/tango_posture/calibration/models.py#L86
RangeProfile.name str Field(min_length=1) src/tango_posture/calibration/models.py#L86
RangeProfile.created_at_utc str Field(default_factory=utc_now) src/tango_posture/calibration/models.py#L86
RangeProfile.context str Field(min_length=1) src/tango_posture/calibration/models.py#L86
RangeProfile.model_hash str Field(pattern='^[a-f0-9]{64}$') src/tango_posture/calibration/models.py#L86
RangeProfile.capture_profile dict[str, Any] None src/tango_posture/calibration/models.py#L86
RangeProfile.source dict[str, Any] None src/tango_posture/calibration/models.py#L86
RangeProfile.metrics dict[str, ApprovedRange] Field(min_length=1) src/tango_posture/calibration/models.py#L86
RangeProfile.camera_checks dict[str, Any] Field(default_factory=dict) src/tango_posture/calibration/models.py#L86
Threshold.entry float Field(gt=0) src/tango_posture/config.py#L12
Threshold.clear float Field(ge=0) src/tango_posture/config.py#L12
RangeDefault.lower float None src/tango_posture/config.py#L24
RangeDefault.upper float None src/tango_posture/config.py#L24
RangeDefault.unit str None src/tango_posture/config.py#L24
RangeDefault.view Literal['side', 'front', 'all'] None src/tango_posture/config.py#L24
AnalysisRegion.x_min float Field(default=0.0, ge=0.0, le=1.0) src/tango_posture/config.py#L38
AnalysisRegion.y_min float Field(default=0.0, ge=0.0, le=1.0) src/tango_posture/config.py#L38
AnalysisRegion.x_max float Field(default=1.0, ge=0.0, le=1.0) src/tango_posture/config.py#L38
AnalysisRegion.y_max float Field(default=1.0, ge=0.0, le=1.0) src/tango_posture/config.py#L38
DancerAnalysisConfig.default_dancer_mode Literal['auto', 'single', 'couple'] 'auto' src/tango_posture/config.py#L56
DancerAnalysisConfig.auto_detection_window_s float Field(default=10.0, gt=0.0) src/tango_posture/config.py#L56
DancerAnalysisConfig.primary_coverage_min float Field(default=0.6, gt=0.0, le=1.0) src/tango_posture/config.py#L56

Source References


← Previous: Metrics Technical Specification · Next: Testing, Packaging, CI/CD & Dependencies →