Skip to content

📡 feat: Report BYOM Worker Readiness - #114

Merged
danny-avila merged 1 commit into
mainfrom
danny-avila/byom-worker-status
Sep 4, 2026
Merged

📡 feat: Report BYOM Worker Readiness#114
danny-avila merged 1 commit into
mainfrom
danny-avila/byom-worker-status

Conversation

@danny-avila

Copy link
Copy Markdown
Collaborator

Summary

I added an authenticated, bounded worker-status contract so LibreChat can show whether a paired BYOM worker is offline, starting, or ready without exposing its credentials, identity, principal binding, or host paths.

  • Add a protocol type for worker liveness, readiness, lease freshness, and advertised capabilities.
  • Read registration, readiness, generation, and TTL atomically with one bounded Redis script.
  • Require the existing administrator bearer token and configured-worker admission checks on the status route.
  • Treat expired or malformed registration state as offline and withhold internal identity and binding fields.
  • Cover offline, awaiting-readiness, ready, unauthorized, and sensitive-field cases.

Change Type

  • New feature (non-breaking change which adds functionality)

Testing

  • bun test service/src/bridge/router.test.ts service/src/bridge/store.test.ts (60 passed)
  • bun run build from service (completed; existing Rollup warnings remain)
  • git diff --check

Test Configuration:

  • macOS
  • Bun 1.3.13
  • Redis behavior exercised with ioredis-mock

Checklist

  • My code adheres to this project style guidelines
  • I have performed a self-review of my own code
  • I have commented in complex areas of my code
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-04T21:01:40.805104Z 1542d3a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 1542d3a9c7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danny-avila
danny-avila merged commit 3968527 into main Sep 4, 2026
6 checks passed
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.

2 participants