Skip to content

Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)

Report current accuracy bands and complete public-camera batch (#3)

Cinna Davis678b56c00521
diff --git a/docs/verification/CLEAN_REPLAY.md b/docs/verification/CLEAN_REPLAY.md
index 1ff04ca..60fd8d4 100644
--- a/docs/verification/CLEAN_REPLAY.md
+++ b/docs/verification/CLEAN_REPLAY.md
@@ -5,6 +5,12 @@ environment. It supports DG-12 / issue #13. The automatic upload acceptance runn
is a separate coordinated lane. Successful replays do not complete automatic
discovery or independent national real-audio validation.
+The current project target is up to 1,000 m acceptable and 500 m or better
+preferred. New runner outputs report 100/500/1,000 m point-error thresholds,
+independently of exact-baseline agreement. The frozen receipts and measurements
+below retain their original 100 m labels. Meeting a point-error threshold alone
+does not establish automatic, independent or national acceptance.
+
The runner requires Python 3.11+, ffmpeg, the installed project, and restored
inputs. Follow `docs/ARTIFACTS.md` for release acquisition and checksum verification.
Generate the independent synthetic cases before running them:
diff --git a/docs/verification/PUBLIC_CAMERA_BENCHMARK.md b/docs/verification/PUBLIC_CAMERA_BENCHMARK.md
index 5585667..6171b65 100644
--- a/docs/verification/PUBLIC_CAMERA_BENCHMARK.md
+++ b/docs/verification/PUBLIC_CAMERA_BENCHMARK.md
@@ -11,6 +11,11 @@ python scripts/capture_camera_audio.py \
--output results/public-camera-timesquare-new
```
+Location benchmarks report errors at 100, 500 and 1,000 m, with up to 1,000 m
+acceptable and 500 m or better preferred under current project requirements.
+The captures below have no established recorder clock or microphone-coordinate
+uncertainty, so they are not eligible location-accuracy cases at any threshold.
+
The tool uses the page's normal public HLS stream and saves MP3 audio plus a
capture receipt. It records source/playlist hashes, source segment timing if
provided, fetch and capture UTC, decoded duration, media hashes, implementation
@@ -71,11 +76,21 @@ coordinate asserted. The corrected full automatic CLI job took 3.88 s and
band, aircraft identity, map coordinate or guessed recorder clock entered either
request. The script's earlier 12 s smoke also remains preserved.
+The [Statue of Liberty view](https://www.earthcam.com/usa/newyork/statueofliberty/?cam=liberty_str)
+captured exactly 300.0 s decoded audio from 01:07:54–01:12:43 UTC, source SHA256
+`ae4b53b35c1afe8b07ca6ca4876661016b9dab1818ba3b12c97b4dbd62f8b949`.
+Its complete automatic job at the same frozen source/settings returned zero
+proposals and `needs_input / recording_time_required`, with no coordinate. It
+took 4.19 s and 161.90 MiB peak RSS; source hash remained unchanged. Its playlist
+also lacks PDT; the provider map reference is 40.67907584445467, -74.01832580566408
+with unknown microphone uncertainty.
+
The Las Vegas sign camera's public metadata advertises no audio. Its attempted
-capture is recorded as `source_has_no_advertised_audio`, not a detector miss. A
-separate five-minute Statue of Liberty audio capture is in progress; its complete
-outcome will be appended without changing detector settings. Herald Square is
-owned by another coordinated capture worker.
+capture is recorded as `source_has_no_advertised_audio`, not a detector miss.
+Herald Square is owned by another coordinated capture worker. No detector
+parameters were tuned on these clips. There is no event-count cap in this capture
+or verification wrapper; all supported independent proposals are left to the
+shared all-event association/search path.
Machine-readable captures, exact automatic requests/results, discovery summaries,
provenance and plots are in [the camera receipt directory](public-camera-20261103/).
diff --git a/docs/verification/public-camera-20261103/batch-summary.json b/docs/verification/public-camera-20261103/batch-summary.json
new file mode 100644
index 0000000..76e4cce
--- /dev/null
+++ b/docs/verification/public-camera-20261103/batch-summary.json
@@ -0,0 +1,81 @@
+{
+ "schema_version": 1,
+ "scope": "real public-camera whole-clip discovery and required-input outcomes; no eligible location case",
+ "accuracy_policy": {
+ "report_thresholds_m": [
+ 100,
+ 500,
+ 1000
+ ],
+ "acceptable_error_m": 1000,
+ "preferred_error_m": 500
+ },
+ "detector_tuned_on_captures": false,
+ "frozen_min_contrast": 2.5,
+ "cases": [
+ {
+ "case": "timesquare-prototype-legacy",
+ "label": "prototype at initial producer",
+ "job_id": "dec813ce673742d68526df731a813b44",
+ "status": "needs_input",
+ "reason_code": "recording_time_required",
+ "source_sha256": "fb8be2a1ef326392734eb1a94cd3ab44acd4b9540266f377a5946c8c15b21789",
+ "decoded_duration_s": 295.296,
+ "event_count": 0,
+ "candidate_count": 0,
+ "recording_time_supplied": false
+ },
+ {
+ "case": "timesquare-prototype-frozen25",
+ "label": "prototype at frozen2.5",
+ "job_id": "0ead781282514c5099551ef672ab8427",
+ "status": "needs_input",
+ "reason_code": "recording_time_required",
+ "source_sha256": "fb8be2a1ef326392734eb1a94cd3ab44acd4b9540266f377a5946c8c15b21789",
+ "decoded_duration_s": 295.296,
+ "event_count": 0,
+ "candidate_count": 0,
+ "recording_time_supplied": false
+ },
+ {
+ "case": "timesquare-fixed-frozen25",
+ "label": "corrected TimesSquare300s",
+ "job_id": "97d159f8e09a48d4aaaecd00572cc8e2",
+ "status": "needs_input",
+ "reason_code": "recording_time_required",
+ "source_sha256": "6853afb5dd7967209a5c5adc529c48a582e67112a63ef04d3989970a88d781e4",
+ "decoded_duration_s": 300.0,
+ "event_count": 0,
+ "candidate_count": 0,
+ "recording_time_supplied": false
+ },
+ {
+ "case": "liberty-frozen25",
+ "label": "corrected Liberty300s",
+ "job_id": "93c61feec9b8465486e8d9625d1da2ea",
+ "status": "needs_input",
+ "reason_code": "recording_time_required",
+ "source_sha256": "ae4b53b35c1afe8b07ca6ca4876661016b9dab1818ba3b12c97b4dbd62f8b949",
+ "decoded_duration_s": 300.0,
+ "event_count": 0,
+ "candidate_count": 0,
+ "recording_time_supplied": false
+ }
+ ],
+ "source_availability_failures": [
+ {
+ "camera": "sign_hd",
+ "reason_code": "source_has_no_advertised_audio"
+ }
+ ],
+ "location_evaluable_cases": 0,
+ "asserted_locations": 0,
+ "aircraft_detection_truth_established": false,
+ "automatic_location_goal_completed": false,
+ "limitations": [
+ "No independently bound microphone sample-zero UTC or microphone-coordinate uncertainty.",
+ "No proposals is an observed algorithm outcome, not a certified absence of aircraft.",
+ "Prototype timebase discrepancy and all smoke captures are preserved separately.",
+ "Historical flight acquisition/search are not reached while the recording clock is unestablished."
+ ]
+}
diff --git a/docs/verification/public-camera-20261103/liberty-analysis-command.json b/docs/verification/public-camera-20261103/liberty-analysis-command.json
new file mode 100644
index 0000000..f6047f1
--- /dev/null
+++ b/docs/verification/public-camera-20261103/liberty-analysis-command.json
@@ -0,0 +1,23 @@
+{
+ "input_sha256": "ae4b53b35c1afe8b07ca6ca4876661016b9dab1818ba3b12c97b4dbd62f8b949",
+ "input_bytes": 2401101,
+ "command": [
+ "/home/user/dopplergeist-e2e-20261102/.venv/bin/python",
+ "-m",
+ "aircraft_geoloc.cli",
+ "analyze",
+ "/home/user/dopplergeist-public-camera-20261103/.artifacts/blind-camera-inputs/ae4b53b35c1afe8b07ca6ca4876661016b9dab1818ba3b12c97b4dbd62f8b949.mp3",
+ "--jobs",
+ "/home/user/dopplergeist-public-camera-20261103/results/public-camera-frozen25-liberty-20261103-0114",
+ "--max-runtime",
+ "120"
+ ],
+ "cli_exit_code": 0,
+ "elapsed_s": 4.1922069389838725,
+ "integration_commit": "e227c5db20427f6753a141f369da69a51ab9d4f2",
+ "source_preserved": true,
+ "no_manual_event_inputs": true,
+ "no_reference_coordinate_passed": true,
+ "no_recording_clock_guess": true,
+ "discovery_default_min_contrast": 2.5
+}
diff --git a/docs/verification/public-camera-20261103/liberty-capture.json b/docs/verification/public-camera-20261103/liberty-capture.json
new file mode 100644
index 0000000..d2cf488
--- /dev/null
+++ b/docs/verification/public-camera-20261103/liberty-capture.json
@@ -0,0 +1,140 @@
+{
+ "schema_version": 1,
+ "source_page": "https://www.earthcam.com/usa/newyork/statueofliberty/?cam=liberty_str",
+ "camera": "liberty_str",
+ "requested_duration_s": 300.0,
+ "status": "captured",
+ "recording_start_utc": null,
+ "recording_clock_established": false,
+ "truth_used_for_event_detection": false,
+ "location_validation_eligible": false,
+ "implementation_sha256": "0a1cfa139d16c187e30d416e632615f09cce0d6afe4ed487232f88b582a66806",
+ "page_fetch": {
+ "started_utc": "2026-11-03T01:07:53.748014Z",
+ "finished_utc": "2026-11-03T01:07:53.946856Z",
+ "http_status": 200,
+ "http_date": "Tue, 03 Nov 2026 01:07:53 GMT",
+ "sha256": "e48229702bda0c0d445845ee88899b22484d2d781e3fdb0941eaa40d4244aac3",
+ "bytes": 160159
+ },
+ "camera_name": "Statue of Liberty",
+ "stream_url": "https://videos-3.earthcam.com/fecnetwork/statueoflibertyHD.flv/playlist.m3u8",
+ "stream_url_sha256": "f34c29fd4c8e4891a890b50eee352fcc55e33750ae0447c36c732fb769f91ad4",
+ "provider_map_reference": {
+ "lat": 40.67907584445467,
+ "lon": -74.01832580566408,
+ "kind": "provider_map_marker",
+ "uncertainty_m": null,
+ "source": "https://www.earthcam.com/usa/newyork/statueofliberty/?cam=liberty_str",
+ "timezone": "America/New_York"
+ },
+ "playlist_fetch": {
+ "started_utc": "2026-11-03T01:07:53.954788Z",
+ "finished_utc": "2026-11-03T01:07:54.057742Z",
+ "http_status": 200,
+ "http_date": "Tue, 03 Nov 2026 01:07:54 GMT",
+ "sha256": "c20942333f27d95e0a92501f99ea3a9dbe4b0c9d7a6a75d95f0f6d10f32aa3d6",
+ "bytes": 251
+ },
+ "media_playlist_fetch": {
+ "started_utc": "2026-11-03T01:07:54.057992Z",
+ "finished_utc": "2026-11-03T01:07:54.140236Z",
+ "http_status": 200,
+ "http_date": "Tue, 03 Nov 2026 01:07:54 GMT",
+ "sha256": "4b4ef857e26d25961efd3564ed8327fa8c3a0797f9d6e789e9fdab20749c17f8",
+ "bytes": 569
+ },
+ "initial_media_segments": [
+ {
+ "sequence": 42811,
+ "url": "https://videos-3.earthcam.com/fecnetwork/statueoflibertyHD.flv/media_w2107365350_42811.ts",
+ "duration_s": 6.006,
+ "broadcaster_start_utc": null
+ },
+ {
+ "sequence": 42812,
+ "url": "https://videos-3.earthcam.com/fecnetwork/statueoflibertyHD.flv/media_w2107365350_42812.ts",
+ "duration_s": 6.006,
+ "broadcaster_start_utc": null
+ },
+ {
+ "sequence": 42813,
+ "url": "https://videos-3.earthcam.com/fecnetwork/statueoflibertyHD.flv/media_w2107365350_42813.ts",
+ "duration_s": 6.006,
+ "broadcaster_start_utc": null
+ }
+ ],
+ "broadcaster_segment_clock_present": false,
+ "clock_limitations": [
+ "Capture/HTTP times are receipt times, not microphone sample-zero UTC.",
+ "A map marker does not establish a surveyed microphone coordinate or uncertainty.",
+ "Broadcaster segment timestamps, if present, still require binding to the first captured audio sample."
+ ],
+ "audio_timeline": "source A/V timestamps, rebased together; audio gaps may be padded by aresample",
+ "decoder_command_redacted": [
+ "ffmpeg",
+ "-hide_banner",
+ "-loglevel",
+ "warning",
+ "-copyts",
+ "-start_at_zero",
+ "-rw_timeout",
+ "15000000",
+ "-user_agent",
+ "Mozilla/5.0",
+ "-headers",
+ "Referer: https://www.earthcam.com/usa/newyork/statueofliberty/?cam=liberty_str\r\n",
+ "-i",
+ "https://videos-3.earthcam.com/fecnetwork/statueoflibertyHD.flv/playlist.m3u8?[query omitted]",
+ "-t",
+ "300.0",
+ "-map",
+ "0:a:0",
+ "-vn",
+ "-ac",
+ "1",
+ "-ar",
+ "16000",
+ "-af",
+ "aresample=async=1:first_pts=0",
+ "-c:a",
+ "libmp3lame",
+ "-b:a",
+ "64k",
+ "/home/user/dopplergeist-public-camera-20261103/results/camera-capture-liberty-20261103-0108/audio.mp3",
+ "-t",
+ "300.0",
+ "-map",
+ "0:v:0",
+ "-c:v",
+ "copy",
+ "-an",
+ "-f",
+ "null",
+ "/dev/null"
+ ],
+ "ffmpeg_version": "ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers",
+ "capture_started_utc": "2026-11-03T01:07:54.209902Z",
+ "decoder_exit_code": 0,
+ "capture_finished_utc": "2026-11-03T01:12:43.980012Z",
+ "capture_elapsed_s": 289.7701896301005,
+ "audio": {
+ "path": "audio.mp3",
+ "bytes": 2401101,
+ "sha256": "ae4b53b35c1afe8b07ca6ca4876661016b9dab1818ba3b12c97b4dbd62f8b949"
+ },
+ "audio_probe": {
+ "programs": [],
+ "streams": [
+ {
+ "codec_name": "mp3",
+ "sample_rate": "16000",
+ "channels": 1
+ }
+ ],
+ "format": {
+ "duration": "300.096000"
+ }
+ },
+ "decoded_duration_s": 300.0
+}
diff --git a/docs/verification/public-camera-20261103/liberty-frozen25-discovery.json b/docs/verification/public-camera-20261103/liberty-frozen25-discovery.json
new file mode 100644
index 0000000..cf2c6aa
--- /dev/null
+++ b/docs/verification/public-camera-20261103/liberty-frozen25-discovery.json
@@ -0,0 +1,46 @@
+{
+ "source_sha256": "ae4b53b35c1afe8b07ca6ca4876661016b9dab1818ba3b12c97b4dbd62f8b949",
+ "settings": {
+ "chunk_s": 120.0,
+ "overlap_s": 60.0,
+ "min_frequency_hz": 40.0,
+ "max_frequency_hz": 1600.0,
+ "window_s": 2.0,
+ "hop_s": 0.5,
+ "min_contrast": 2.5,
+ "min_duration_s": 12.0,
+ "min_support": 0.65,
+ "min_drop_hz": 4.0,
+ "min_fractional_drop": 0.03,
+ "max_gap_s": 2.0,
+ "max_fragment_gap_s": 20.0,
+ "max_peaks_per_frame": 60
+ },
+ "events": [],
+ "chunks": [
+ {
+ "start_s": 0.0,
+ "duration_s": 120.0,
+ "usable_paths": 0
+ },
+ {
+ "start_s": 60.0,
+ "duration_s": 120.0,
+ "usable_paths": 0
+ },
+ {
+ "start_s": 120.0,
+ "duration_s": 120.0,
+ "usable_paths": 0
+ },
+ {
+ "start_s": 180.0,
+ "duration_s": 120.0,
+ "usable_paths": 0
+ }
+ ],
+ "ridge_count": 0,
+ "fragment_links": [],
+ "harmonic_ridges": [],
+ "scope": "automatic acoustic moving-tone proposals; aircraft identity unconfirmed"
+}
diff --git a/docs/verification/public-camera-20261103/liberty-frozen25-discovery.png b/docs/verification/public-camera-20261103/liberty-frozen25-discovery.png
new file mode 100644
index 0000000..3d8efdd
Binary files /dev/null and b/docs/verification/public-camera-20261103/liberty-frozen25-discovery.png differ
diff --git a/docs/verification/public-camera-20261103/liberty-frozen25-provenance.json b/docs/verification/public-camera-20261103/liberty-frozen25-provenance.json
new file mode 100644
index 0000000..31fbc04
--- /dev/null
+++ b/docs/verification/public-camera-20261103/liberty-frozen25-provenance.json
@@ -0,0 +1,45 @@
+{
+ "request": {
+ "schema_version": 1,
+ "search": {
+ "coverage": "conus"
+ },
+ "audio_path": "/home/user/dopplergeist-public-camera-20261103/results/public-camera-frozen25-liberty-20261103-0114/93c61feec9b8465486e8d9625d1da2ea/input.mp3"
+ },
+ "operator_configuration_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
+ "source_sha256": "ae4b53b35c1afe8b07ca6ca4876661016b9dab1818ba3b12c97b4dbd62f8b949",
+ "implementation_files": {
+ "__init__.py": "01428b7938817c1cfe7eb3cf7e186f35b3fa7bc2d85f14204d07e0aa251d2c88",
+ "audio.py": "f9248876059f7f05f3f3db8575e43b9c12f96c536c70b8afc298cfdebcb977a0",
+ "automatic.py": "088620bc081ab8458c3a4e343aeca73e4ee08e38993e61cee99fcf9d7dc2f3d5",
+ "cli.py": "91f62e955aa3a343ae2f916cff83ef7f58bc3b55e13dc5f40ff795bb6bd7e447",
+ "confidence.py": "b34e41b7db279c8a601adb6eb6b5cd7d5936cadfb43f941523f6c9daaa6c9b79",
+ "contracts.py": "66e311197e69fc6636dea33e25ae2acccfeba2845b0561963f33112c932a969f",
+ "data_access.py": "88eabb03560a97942ec131f8edd56fba3719a7b1e407f517e7bc45994fe67218",
+ "discovery.py": "c357a6cdf01364bdcf0e05e1241a913073a43123ebbfdb6e06a4e0f61477c589",
+ "evaluation.py": "5331eee02df2e22396e44c8c07110129297c9cedadeee4d9bccd415b9b0ad071",
+ "geometry.py": "f892fac88864d8095ce47a1e3e6139235b86061fb0814944867436cb5a92bb94",
+ "intake.py": "c1d4c792c9e1cec1a9315b354d6fa58c0d4326c6773b19719bd859e7571c5648",
+ "jobs.py": "b493140edabde20674d46022d683a462002bb336a30e2db4fde6f65890a8e0d9",
+ "matching.py": "a9b8267b488c1f96625a844f465e872aab1a4ae3c526e151e0e89d22e286c9aa",
+ "pipeline.py": "d2361725283053a0911a803717f8dab6e59ed8e1c20e305f191aeea693156adb",
+ "search.py": "ac8414127d58192119b85bd1519a288aca1eda7ed24ceb07385b2b601c6ad47b",
+ "service.py": "0a5c81b6c88a7bf83a487272019e14a102dccc8fe27b823ad4f3335a28476f4d",
+ "terrain.py": "b8258fa2d950c2348c78e019f9e97ce9fe6c760cf7fd47a81d1a21d23362948a",
+ "tiled_search.py": "1baf17e409479cffc0d6cfbbdacf5e562082c80180080487ec56eb778a966ab5",
+ "tracks.py": "523b9d629083ba2792a1da2cd34d8b89ef57236febcc284f62886ba103ef20ec"
+ },
+ "ground_truth_used_by_search": false,
+ "event_selection": "automatic_whole_recording",
+ "discovered_events": 0,
+ "elapsed_s": 3.773617818020284,
+ "status": "needs_input",
+ "coverage": {
+ "search_complete": false,
+ "data_status": "unavailable",
+ "limitations": [],
+ "requested_area": {
+ "coverage": "conus"
+ }
+ }
+}
diff --git a/docs/verification/public-camera-20261103/liberty-frozen25-request.json b/docs/verification/public-camera-20261103/liberty-frozen25-request.json
new file mode 100644
index 0000000..e5511a0
--- /dev/null
+++ b/docs/verification/public-camera-20261103/liberty-frozen25-request.json
@@ -0,0 +1,7 @@
+{
+ "schema_version": 1,
+ "search": {
+ "coverage": "conus"
+ },
+ "audio_path": "/home/user/dopplergeist-public-camera-20261103/results/public-camera-frozen25-liberty-20261103-0114/93c61feec9b8465486e8d9625d1da2ea/input.mp3"
+}
diff --git a/docs/verification/public-camera-20261103/liberty-frozen25-result.json b/docs/verification/public-camera-20261103/liberty-frozen25-result.json
new file mode 100644
index 0000000..6c58b15
--- /dev/null
+++ b/docs/verification/public-camera-20261103/liberty-frozen25-result.json
@@ -0,0 +1,37 @@
+{
+ "schema_version": 1,
+ "job_id": "93c61feec9b8465486e8d9625d1da2ea",
+ "status": "needs_input",
+ "coverage": {
+ "search_complete": false,
+ "data_status": "unavailable",
+ "limitations": [],
+ "requested_area": {
+ "coverage": "conus"
+ }
+ },
+ "recording": {
+ "source_sha256": "ae4b53b35c1afe8b07ca6ca4876661016b9dab1818ba3b12c97b4dbd62f8b949",
+ "duration_s": 300.0,
+ "sample_rate_hz": 4000,
+ "channels": 1,
+ "source_format": "mp3",
+ "time_window": null
+ },
+ "events": [],
+ "stage": "complete",
+ "progress": 1,
+ "artifacts": {
+ "provenance": "provenance.json",
+ "request": "request.json",
+ "intake": "intake/intake.json",
+ "recording": "intake/recording.json",
+ "discovery": "discovery/discovery.json",
+ "discovery_plot": "discovery/discovery.png"
+ },
+ "required_fields": [
+ "time_window"
+ ],
+ "reason_code": "recording_time_required",
+ "message": "Supply a defensible UTC window for the start of this recording. File creation and upload times are not recording clocks."
+}
diff --git a/docs/verification/public-camera-20261103/liberty-resource-usage.json b/docs/verification/public-camera-20261103/liberty-resource-usage.json
new file mode 100644
index 0000000..d6fdec8
--- /dev/null
+++ b/docs/verification/public-camera-20261103/liberty-resource-usage.json
@@ -0,0 +1,5 @@
+{
+ "max_rss_kib": 165788.0,
+ "user_cpu_s": 3.62,
+ "system_cpu_s": 0.55
+}
diff --git a/scripts/verify_pipeline_replay.py b/scripts/verify_pipeline_replay.py
index 6c3a71f..382075a 100644
--- a/scripts/verify_pipeline_replay.py
+++ b/scripts/verify_pipeline_replay.py
@@ -104,15 +104,15 @@ def evaluate(name, report):
result["clock_error_s"] = best["recording_start_time_s"] - truth["recording_start_time_s"]
expected_flights = truth["flight_ids"][:len(best["flight_ids"])]
result["flight_ids_correct"] = best["flight_ids"] == expected_flights
- result["within_100_m"] = result["position_error_m"] <= 100
result["reference_kind"] = "independent synthetic renderer truth"
else:
# PROGRESS.md explicitly labels this as a public-platform coordinate,
# not surveyed ground truth or an independent recording-clock source.
result["reference_coordinate"] = {"lat": 40.8766, "lon": -73.5247}
result["position_error_m"] = distance_m(best, result["reference_coordinate"])
- result["within_100_m"] = result["position_error_m"] <= 100
result["reference_kind"] = "published public-platform coordinate; physical uncertainty unquantified"
+ for threshold in (100, 500, 1000):
+ result[f"within_{threshold}_m"] = result["position_error_m"] <= threshold
result["baseline_reproduced"] = bool(
displacement <= 2 and result["baseline_flight_ids_match"]
and abs(result["baseline_score_delta"]) <= 1e-4
@@ -198,9 +198,11 @@ def main(argv=None):
output.mkdir(parents=True, exist_ok=False)
summary = {"schema_version": 1, "started_utc": datetime.now(timezone.utc).isoformat(),
"runtime": runtime(), "cases": [], "automatic_upload_goal_verified": False,
+ "accuracy_policy": {"report_thresholds_m": [100, 500, 1000],
+ "acceptable_error_m": 1000, "preferred_error_m": 500},
"limitations": ["Manual event settings remain search inputs in these replays.",
"Synthetic and regional reference replays do not establish national real-audio accuracy.",
- "The faint reference case is an expected localization failure at the 100 m target.",
+ "The historical faint reference missed 100 m; new point-error metrics also report 500/1000 m without rewriting its original outcome.",
"Evaluation inputs are read after search; filesystem sandboxing is not asserted."]}
for name in dict.fromkeys(args.cases or CASES):
receipt = verify_case(name, output / name, args.timeout_s)
diff --git a/tests/test_pipeline_replay.py b/tests/test_pipeline_replay.py
index a945549..07b0af9 100644
--- a/tests/test_pipeline_replay.py
+++ b/tests/test_pipeline_replay.py
@@ -65,3 +65,15 @@ def test_evaluation_failure_preserves_successful_child_receipt(tmp_path, monkeyp
assert result["status"] == "failed"
assert result["report"]["sha256"] == replay.digest(tmp_path / "case/pipeline/report.json")["sha256"]
assert "FileNotFoundError" in result["error"]
+
+
+def test_updated_error_thresholds_preserve_the_historical_faint_receipt():
+ reference = replay.ROOT / replay.CASES["reference-faint"]["baseline"]
+ original = reference.read_bytes()
+ report = json.loads(original)
+ evaluation = replay.evaluate("reference-faint", report)
+ assert evaluation["within_100_m"] is False
+ assert evaluation["within_500_m"] is True
+ assert evaluation["within_1000_m"] is True
+ assert evaluation["baseline_reproduced"] is True
+ assert reference.read_bytes() == original