Skip to content

feat(runtime): add AAC telemetry calibration#253

Merged
rylinjames merged 1 commit into
mainfrom
feat/aac-telemetry-calibration
Jun 12, 2026
Merged

feat(runtime): add AAC telemetry calibration#253
rylinjames merged 1 commit into
mainfrom
feat/aac-telemetry-calibration

Conversation

@rylinjames

Copy link
Copy Markdown
Collaborator

Summary

  • records adaptive RTC chunking decisions/signals into JSONL request records and OTel span attributes
  • adds bounded Prometheus metrics for AAC horizon, risk, guard margin, correction magnitude, uncertainty, and action delta
  • adds an offline JSONL/JSONL.gz calibration utility plus script for recommending AAC thresholds from pilot traces

Validation

  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTHONPATH=src python -m pytest tests/test_adaptive_calibration.py tests/test_observability_prometheus.py tests/test_record.py tests/test_rtc_adapter_day4.py
  • PYTHONPATH=src python -m ruff check src/tether/observability/prometheus.py src/tether/observability/init.py src/tether/runtime/server.py src/tether/runtime/adaptive_calibration.py scripts/calibrate_adaptive_chunking.py tests/test_adaptive_calibration.py tests/test_observability_prometheus.py tests/test_record.py tests/test_rtc_adapter_day4.py
  • PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTHONPATH=src python -m pytest -p pytest_asyncio.plugin
  • PYTHONPATH=src python scripts/calibrate_adaptive_chunking.py --help

@rylinjames rylinjames merged commit 6dddd89 into main Jun 12, 2026
6 checks passed
@rylinjames rylinjames deleted the feat/aac-telemetry-calibration branch June 12, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant