Align OpenAI telemetry with the configured Codex worker session (#171) #172
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
P1
P2
P3
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Creatidy/scarcity-router!172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/171-openai-status-worker-session"
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?
Summary
Closes #171.
make codex-loginauthenticated the worker's isolated source home while plainscarcity-router statusinherited an unrelated ambientCODEX_HOME, producingunknown/telemetry_unknown. The shared CLI/MCP/REST collector now discovers the same installed-service source as login.SCARCITY_ROUTER_CODEX_SOURCE=@local; fail safely on ambiguity, invalid configuration and unsafe/missing homes.SCARCITY_ROUTER_CODEX_BINprecedence; share worker/login discovery and validate service-derived binary pins consistently.CI Fixture Follow-Up
Commit
59ec469changes onlytests/test_worker_local_store.py. The existing foreign-owner test displayed UID 0 and assumed it was foreign; on the CI runner (effective UID 0), that is the current user's own directory, correctly accepted by production code. Reproduced the exact failure under UID 0 in a read-only, networkless container before editing.The fixture now chooses an owner distinct from the effective user: UID 1 under root, UID 0 otherwise. It still requires ownership rejection and an empty directory afterward; its exact diagnostic assertion accepts the existing general-component or final-owner refusal. No production/security checks changed, no new skips or permissive mode were added.
Validation
uv sync --only-devumask 0022 && make check: 2674 tests run, OK, 15 skipped; basedpyright zero errors/warnings.uv run basedpyrightandgit diff --check: pass.make install; no worker-service restart or credential copying.df6f758,59ec469), no merge commits; clean local worktree. New remote CI outcome is not yet asserted.Local validation uses umask 0022 because this host's ambient 0002 makes existing fixture homes group-writable, correctly rejected by unchanged security checks. Earlier full runs emitted an intermittent fixture-thread teardown
ConnectionError: peer read failedattests/worker_fixtures.py:226while still passing; the latest full run completed without that traceback. Transport/fixture code for that separate diagnostic is unchanged.UX / Compatibility
One successful
make codex-loginnow serves normal status collection with no recurring home override. Existing local usage can opt out explicitly; ambiguous configuration gets an actionable error instead of another account's quota. CLI takes the installed fix immediately; already-running MCP/REST processes need their normal restart to load updated code. Independent UX verification found no material regression. CI fixture follow-up: UX impact none.Human merge gate: leave this PR open for Adrian's review and merge into
develop; no automatic merge or main promotion.Evidence: implementation/review checkpoint, narrow review PASS, local installation/final validation.