mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4161] [TUI] readiness: probe /v1/telemetry with the telemetry key when there is no API key #4930
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4930
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4161
Author: @JbareenM
Created: 10/25/2026
Status: 🔄 Open
Base:
main← Head:fix/readiness-telemetry-key📝 Commits (1)
bd7c68d[TUI] readiness: probe /v1/telemetry with the telemetry key when there is no API key📊 Changes
2 files changed (+28 additions, -4 deletions)
View changed files
📝
strata_control/readiness.py(+14 -1)📝
tests/terminal/test_runtime.py(+14 -3)📄 Description
Problem and result
With
STRATA_TELEMETRY_KEYset in the environment (the read-only monitor key, set once forstrata monitor), alaunch of a profile that has no API key never becomes ready:
The server takes
STRATA_TELEMETRY_KEY(or the config'stelemetry_read_key) and then wants a key on/v1/telemetry.strata_control/readiness.pyreads that endpoint first, but sends only the inference API key, anda profile without one sends none. Reproduced with a
strata launch ... --access local --no-tui(no key) and in thenew test below; the same launch with
--new-keystarts.Approach
verify()reads/v1/telemetrywith the API key when there is one (the server accepts it there too), else withthe telemetry key taken from the same places the server takes it (
STRATA_TELEMETRY_KEY, thentelemetry_read_key). The chat-completion probe still uses the API key only. A server without either key isunchanged (no Authorization header).
tests/terminal/test_runtime.py:setUpclearsSTRATA_TELEMETRY_KEYas it already clearsSTRATA_API_KEY, so adeveloper's own key does not change the other tests (with it set,
test_managed_benchmark_binds_to_owned_launchfailed with 401 here). A new test sets the key and checks that
runtime.startandruntime.verifypass.Validation
probe_http_401and passes with the change.tests/terminal/test_runtime.pyandtests/terminal/test_launch_identity.py: 48 passed, 2 failed. Both failuresalso happen on main on this PC and are unrelated:
test_local_management_bridge_and_cli_share_owner_and_journal(
PermissionError: [WinError 32], a file still open on Windows) andtest_liveness_check_does_not_end_the_process_it_asks_about(fails only inside the full file; passed 3 of 3 runsalone, with and without the change).
Environment: Windows 11 Pro, RTX 5070 Ti 16 GB, Ryzen 9 9950X3D, 64 GB RAM, NVIDIA driver 621.01; Strata app 0.2.6,
control 0.1.51, engine 0.1.48; branch based on
4b9e05a2.AI assistance: prepared with Claude Code.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.