Add local logging, proximity capture, and run downloads #4

Merged
adam merged 8 commits from codex/local-logger into main 2026-11-29 00:00:43 -05:00
Owner

Crewbot can send diagnostics and normalized telemetry to http://localhost:8765 without authentication. Its Local logger (no authentication) setting persists across restarts, restricts uploads to loopback HTTP origins, bypasses proxies, omits authentication headers, and keeps a separate durable queue. Authenticated HTTPS logging remains the default.

The standalone WSL launcher starts the loopback gateway and VictoriaLogs without Keycloak, TLS setup, root privileges, or the desktop app. Local search, archives, and replay exports share one workspace. The gateway enforces loopback peers/hosts and browser-origin restrictions and disables account/token routes. The NixOS module supports the same local-only mode.

The logger main page shows the 20 most recent run IDs, refreshes them automatically, and links each run to its filtered event view. Each row has a Download log button scoped to that run, application, and device; it downloads the full archived run independently of the search query or time filters. The longer session list and Crewbot replay controls remain under Archives.

The 0.3.0b3 app also captures iRacing CarLeftRight from the frozen telemetry frame as snapshot.car_left_right. Values 0–6 are preserved exactly; missing or invalid values become null. Inactive 0 stays distinct from clear 1. Telemetry uploads, local JSONL recordings, and typed replay exports preserve the field. Older recordings still load with proximity unavailable. This supplies data for spotter development; spoken proximity warnings remain separate work.

The release request pins v0.3.0b3 to 10bfae2b9ef93e84733b33bda5c72177578f6b9e. Merging the request into main starts the existing protected-main release workflow. Installation and capture instructions use the versioned source archive and work before registry publication, including systems without Git. The existing local logger can accept and export the new field without an upgrade.

The local logger guide pins the logger to e9603e73a5b4040ad309c3c4256f3e119360eac4 for the Recent runs page, and the Windows app to the immutable v0.3.0b3 beta.

Validation:

  • The updated logger passed Go tests/vet, a Nix package build, packaged local-logger checks, and Chromium tests in both local-only and authenticated modes. Browser checks cover run links, safe text rendering, scoped full-run downloads with older events, existing replay/session controls, and a 390-pixel mobile layout.

  • 102 Python tests passed, including all proximity enum values, frozen SDK reads, invalid/missing inputs, local recording/replay, and uploader preservation.

  • The beta wheel passed metadata/entrypoint validation and the installed desktop/settings smoke test, including local mode with an unavailable credential store.

  • The real local gateway and VictoriaLogs passed upload, search, typed replay export/playback, and restart persistence for all proximity states and null. Legacy replay still loads. Request restrictions, occupied ports, and shutdown checks also passed.

  • The exact public v0.3.0b3.tar.gz URL built and installed as 0.3.0b3; installed capture/uploader modules matched the tag, and the installed app passed the desktop smoke test.

  • The standalone logger previously passed Go tests/vet, local/authenticated NixOS configuration evaluation, and both architecture evaluations.

Live Windows/iRacing proximity behavior, physical audio/input devices, and audible spotter timing remain manual acceptance work. Local checks do not replace PR CI or the protected-main release workflow.

Crewbot can send diagnostics and normalized telemetry to `http://localhost:8765` without authentication. Its **Local logger (no authentication)** setting persists across restarts, restricts uploads to loopback HTTP origins, bypasses proxies, omits authentication headers, and keeps a separate durable queue. Authenticated HTTPS logging remains the default. The standalone WSL launcher starts the loopback gateway and VictoriaLogs without Keycloak, TLS setup, root privileges, or the desktop app. Local search, archives, and replay exports share one workspace. The gateway enforces loopback peers/hosts and browser-origin restrictions and disables account/token routes. The NixOS module supports the same local-only mode. The logger main page shows the 20 most recent run IDs, refreshes them automatically, and links each run to its filtered event view. Each row has a **Download log** button scoped to that run, application, and device; it downloads the full archived run independently of the search query or time filters. The longer session list and Crewbot replay controls remain under Archives. The **0.3.0b3** app also captures iRacing `CarLeftRight` from the frozen telemetry frame as `snapshot.car_left_right`. Values 0–6 are preserved exactly; missing or invalid values become null. Inactive 0 stays distinct from clear 1. Telemetry uploads, local JSONL recordings, and typed replay exports preserve the field. Older recordings still load with proximity unavailable. This supplies data for spotter development; spoken proximity warnings remain separate work. The release request pins `v0.3.0b3` to `10bfae2b9ef93e84733b33bda5c72177578f6b9e`. Merging the request into main starts the existing protected-main release workflow. [Installation and capture instructions](https://git.pseudo.design/adam/crewbot/src/branch/codex/local-logger/docs/logger-local.md) use the versioned source archive and work before registry publication, including systems without Git. The existing local logger can accept and export the new field without an upgrade. The local logger guide pins the logger to `e9603e73a5b4040ad309c3c4256f3e119360eac4` for the Recent runs page, and the Windows app to the immutable `v0.3.0b3` beta. Validation: - The updated logger passed Go tests/vet, a Nix package build, packaged local-logger checks, and Chromium tests in both local-only and authenticated modes. Browser checks cover run links, safe text rendering, scoped full-run downloads with older events, existing replay/session controls, and a 390-pixel mobile layout. - 102 Python tests passed, including all proximity enum values, frozen SDK reads, invalid/missing inputs, local recording/replay, and uploader preservation. - The beta wheel passed metadata/entrypoint validation and the installed desktop/settings smoke test, including local mode with an unavailable credential store. - The real local gateway and VictoriaLogs passed upload, search, typed replay export/playback, and restart persistence for all proximity states and null. Legacy replay still loads. Request restrictions, occupied ports, and shutdown checks also passed. - The exact public `v0.3.0b3.tar.gz` URL built and installed as 0.3.0b3; installed capture/uploader modules matched the tag, and the installed app passed the desktop smoke test. - The standalone logger previously passed Go tests/vet, local/authenticated NixOS configuration evaluation, and both architecture evaluations. Live Windows/iRacing proximity behavior, physical audio/input devices, and audible spotter timing remain manual acceptance work. Local checks do not replace PR CI or the protected-main release workflow.
Add standalone local-only logger mode
Some checks failed
Test and build / build (push) Has been cancelled
Logging service / logging (push) Has been cancelled
ef38ed434a
Document logger startup without a Git prerequisite
Some checks failed
Logging service / logging (push) Successful in 6m17s
Test and build / build (push) Has been cancelled
e6e8cc1cc3
Add unauthenticated local logging to the 0.3.0b2 desktop beta
Some checks failed
Test and build / build (push) Has been cancelled
Logging service / logging (push) Has been cancelled
Test and build / build (pull_request) Has been cancelled
Logging service / logging (pull_request) Has been cancelled
a11e14cee3
Prepare the immutable 0.3.0b2 beta release request
Some checks failed
Test and build / build (push) Successful in 3m0s
Test and build / build (pull_request) Successful in 3m8s
Logging service / logging (pull_request) Failing after 14m16s
Logging service / logging (push) Failing after 15m10s
02fee7dddf
Prepare the immutable 0.3.0b3 beta release request
All checks were successful
Test and build / build (push) Successful in 3m14s
Test and build / build (pull_request) Successful in 3m4s
Logging service / logging (push) Successful in 6m41s
Logging service / logging (pull_request) Successful in 6m21s
71de43fcb0
adam changed title from Add local-only app and WSL logging for the 0.3.0b2 beta to Add local logging and proximity capture for the 0.3.0b3 beta 2026-11-28 23:05:26 -05:00
Pin WSL logger startup to the recent-run page update
All checks were successful
Test and build / build (push) Successful in 3m10s
Test and build / build (pull_request) Successful in 3m2s
Logging service / logging (push) Successful in 6m11s
Logging service / logging (pull_request) Successful in 6m22s
e1eb19c104
adam changed title from Add local logging and proximity capture for the 0.3.0b3 beta to Add local logging, proximity capture, and run downloads 2026-11-28 23:28:13 -05:00
adam merged commit 1d98908e52 into main 2026-11-29 00:00:43 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
adam/crewbot!4
No description provided.