Skip to content

Use ephemeral worker credentials - #109

Open
ariobarin wants to merge 1 commit into
perf/command-progressfrom
perf/worker-session-auth
Open

Use ephemeral worker credentials#109
ariobarin wants to merge 1 commit into
perf/command-progressfrom
perf/worker-session-auth

Conversation

@ariobarin

Copy link
Copy Markdown
Owner

Summary

  • authenticate the durable device credential only during worker registration
  • issue an opaque per-generation worker credential for poll, result, heartbeat, and unregister
  • keep old CLI/new relay and new CLI/old relay compatibility through durable-device fallback
  • coalesce persisted device presence updates to once per minute while keeping in-memory liveness current
  • throttle stale-worker pruning and maintain O(1) active-worker counts per enrolled device
  • bound presence refreshes by the relay request deadline and keep shutdown to one timeout on network failure

Stack

Verification

  • git diff --check
  • npm run check
  • review loop pass 1: fixed reconnect/unregister race
  • review loop pass 2: fixed stale persisted presence and per-request O(N) pruning
  • review loop pass 3: fixed presence deadline and double unregister timeout
  • review loop pass 4: clean ? no material correctness, security, or compatibility issues

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
glossa Ready Ready Preview, Comment Jul 27, 2026 9:20pm

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