Repository navigation
kit-46-standalone-hub: A hub that runs on its own (devteam.mjs hub), and dashboards that leave the hub to the image when its ENV says so - #238
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(task reviews 1 and 4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chine's other commands are Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hhff
marked this pull request as ready for review
November 14, 2026 23:50
…ect's own (final-1b F1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A hub that runs on its own, and dashboards that leave the hub to the image when its ENV says so (feature box-latest-hub, BOXHUB-S1/S2; design: home's project/designs/the-cloud-box-always-runs-the-latest-hub.md).
Summary
devteam.mjs hub [--release vX.Y.Z]: a machine-wide command that runsstartHub's server alone (the same request handler, every press check unchanged). It stays up and retries everyDEVTEAM_HUB_RETRY_MSwhatever holds the port (a non-hub holder or another listen error logged once), logs to stderr and~/.devteam/hub-<port>.log(never past 1 MB, the full one moved to.1), installs the dashboard's crash and signal logging (now one helper,processLog), and runs owner actions from its own cwd./instances.jsongains a top-levelkit, fixed at start:hub --release's release withimage: true; else the running kit's version (kitVersion()), ornullfor a kit with no project. No hub readsDEVTEAM_KIT_RELEASE. The comment abovestartHubstates the list's rule: additive changes keephub: 1.startHubwhenDEVTEAM_IMAGE_HUBis a plain port equal to its hub port, and writeshub: left to the image (DEVTEAM_IMAGE_HUB=<port>)once torun/dashboard.log.machine status:machine: hub <port> up, kit <release> (image)/up, kit <release>/up, kit ?/up, not a hub/DOWN, the alert suffix unchanged; akitfrom the network is printed only in a release's own characters.DEVTEAM_RUNcheck exemptshub, as it does the machine's other commands.How to verify
node --test test/hub-overview.test.mjs test/operator-threads.test.mjs test/machine.test.mjs test/dashboard.test.mjs(CI: test.yml, every job).kit/imagevariants; a bad--release; retry and takeover; the 1 MB log; SIGTERM; theDEVTEAM_IMAGE_HUBskip), operator-threads (unsigned, replayed, foreign Origin/Host, missing or same-site Sec-Fetch-Site, non-JSON and cross-site reads refused against a box-mode standalone hub; a signed press reaches the operator's pane), machine (the five hub lines, a holder that drips, the alert suffix), and the hub with another home'sDEVTEAM_RUN.docs/devteam-dev/tickets/kit-46-standalone-hub/(spec, plan, reviews, verification, the box baseline).One-way doors
None.
🤖 Generated with Claude Code