Skip to content

chore: pre-ship housekeeping sweep#114

Open
samcm wants to merge 1 commit into
masterfrom
preship-housekeeping
Open

chore: pre-ship housekeeping sweep#114
samcm wants to merge 1 commit into
masterfrom
preship-housekeeping

Conversation

@samcm
Copy link
Copy Markdown
Member

@samcm samcm commented Jun 3, 2026

Applies low-risk housekeeping fixes from a whole-stack review: a token-store data race fix with serialized refresh, gVisor startup orphan-cleanup parity with the Docker backend, JSON /api/v1 operation errors, Python signatures aligned to the real functions, and removal of the dead module-config surface. Also corrects the metrics_port value docker-compose forwards, de-duplicates the X-Datasource constant, and clears assorted dead code, stale comments, and config drift.

Low-risk fixes from a multi-agent review of the whole stack: correctness,
consistency, dead-code removal, comment hygiene, and config drift.

- auth: fix data race in token-store refresh; serialize concurrent refreshes
  with a stdlib mutex (no double provider call); emit RFC 8628 slow_down on
  fast device polling; stop logging raw GitHub response bodies
- sandbox: gVisor backend shares Docker's Start so it also reaps orphaned
  containers at startup; force-remove leaked session containers on first-exec
  failure; check the script-stage exec exit code; share env-var name constants
  across the execsvc/sandbox boundary
- server: route /api/v1 operation errors through the JSON error helper
- modules: align published Python signatures with the real functions; delete
  the dead module-config surface (Init rawConfig is always nil)
- config: fix metrics_port to match docker-compose; strict-decode client config
- de-duplicate the X-Datasource header constant; document proxy config keys;
  assorted dead-code, comment, and consistency cleanups; refresh stale docs

Larger structural refactors and the datasource-selector unification are left
to a follow-up PR that builds on this one.
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