Repository navigation
feat(provider): darkbloom waitlist clusters and sandbox; sandbox setup waits for approval - #1682
Closed
jonathan308 wants to merge 2 commits into
Closed
jonathan308 wants to merge 2 commits into
jonathan308 wants to merge 2 commits into
Conversation
…waits for approval `darkbloom cluster waitlist [join --macs N]` and `darkbloom sandbox waitlist [join]` join the waitlist Darkbloom approves accounts from and show the account's status and place, with the `darkbloom login` token, against the coordinator of provider.toml (HTTPS or loopback only, no redirects). A first `darkbloom sandbox setup` now requires an approved sandbox entry before it checks or installs anything; it offers to join (`--yes` joins) and stops while the account waits. A coordinator without waitlists (404) lets setup go on. The cluster commands are unchanged apart from the new `waitlist` subcommand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ch call - The commands are `darkbloom waitlist clusters [join --macs N | status]` and `darkbloom waitlist sandbox [join | status]` under one top-level `waitlist` group. `ClusterCommand.swift` is back to its parent's bytes and the sandbox group lists no waitlist; `sandbox setup` points at `darkbloom waitlist sandbox join`. - A waitlist call ends after 10 seconds in all, not only after 10 idle seconds, and says "no answer within 10 seconds". - The IPv6 loopback `http://[::1]` is accepted: URLComponents keeps the brackets, so the old `::1` entry could never match. - Refactor pass: the view owns the join line the setup gate prints, the decoder is private, comments say what a 401 means, and the docs describe the options, the setup step and the timeout as the code does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
9 of 17 tasks
Collaborator
Author
This branch had an error being deployed
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.
Summary
Adds
darkbloom waitlist clustersanddarkbloom waitlist sandbox. Each joins the waitlist that Darkbloom approves accounts from and shows where the account stands. A firstdarkbloom sandbox setupnow waits for that approval before it checks or installs anything, so only accounts Darkbloom approves can use Darkbloom Sandbox.darkbloom clusteris unchanged.The coordinator side is Layr-Labs/darkbloom-platform#627: the routes, the store,
scripts/admin.sh waitlist approve|revokeand the admin dashboard page.The console UI is Layr-Labs/darkbloom-platform#634: joining from the fleet dashboard, and approving accounts on the console's admin page.
Stacked on #1677 (
fix/cluster-replan-after-stop), so it sits on the latest clustering work. Retarget todevonce #1677 merges.Linked issue
None.
Test plan
Sources/darkbloom/Waitlist/*.swift,Sandbox/*.swift,Darkbloom.swift) and both touched test files (FeatureWaitlistTests.swift,SandboxSetupTests.swift).ProviderCore, the rest of thedarkbloomtarget and the test helpers, with their real signatures.FeatureWaitlist.swiftandFeatureWaitlistView.swiftchecks:127.0.0.1,localhostor[::1];scripts/admin.sh, and a driver compiled fromFeatureWaitlist.swiftandFeatureWaitlistView.swift:admin.sh waitlist list clusterlisted both in join order;admin.sh waitlist approve cluster, the other account moved up to DGInf: Decentralized private AI inference platform #1 and the approved one read "approved … Start: darkbloom cluster";approve sandboxand went on after it;make changelog-checkandpython3 scripts/docs-impact-check.py --base d36eec662pass../scripts/docs-check.shpasses, except for three existing links into thelibs/mlx-swift-lmsubmodule, which is not checked out locally.swift buildand theDarkbloomCLITestssuite. CI on this PR is their first full compile and run.Components touched
Protocol / interface changes
darkbloom waitlist clusters [join --macs 2-4 | status]anddarkbloom waitlist sandbox [join | status].status --jsonprints the coordinator's answer.GETandPOST /v1/waitlists/{feature}, with thedarkbloom logintoken. The matching side is Layr-Labs/darkbloom-platform#627.sandbox setupthen goes on. This can ship before the coordinator deploy.ProviderCore.version. No version bump or migration note is needed.Documentation impact
docs/provider/cli-reference.md: thedarkbloom waitlistsection, its subcommand row, and sandbox Setup step 1.docs/provider/sandboxes.md: the waitlist as step 1, and troubleshooting.docs/provider/two-mac-cluster.md: the cluster waitlist.Changelog
changelog.d/feature-waitlists.mdfragment and ranmake changelog-check.Notes for reviewers
d36eec662, ondev3ded722ed. Both were checked again just before this PR opened.dev. A merge intodevrunsrelease-dev-branch.yml.darkbloom clusterdoes not check the cluster waitlist. Neither this PR nor the platform PR enforces approval in the coordinator (cluster pair formation, sandbox host binding).SandboxSetupTestsconstructions passwaitlist: .approvedexplicitly, so they stay hermetic.FeatureWaitlistAccess.ClusterCommand.swiftis byte-identical to Cluster: plan a serving cluster's model change again once its memory is free (local mode fell back to a pipeline) #1677's.Before And After
Before
flowchart LR subgraph Behavior S1[darkbloom sandbox setup] --> C1[Check this Mac] --> I1[Install add-on] --> E1[Browser approval on the sandbox service] K1[darkbloom cluster] --> G1[Guided setup] end subgraph Code F1["SandboxSetupFlow.run: .fresh"] --> Q1[checkAndConfirm] --> N1[install] endAfter
flowchart LR subgraph Behavior W2["darkbloom waitlist clusters / sandbox (join, status)"] -->|login token| R2["GET or POST /v1/waitlists/{feature}"] --> P2[status and place in line] S2[darkbloom sandbox setup] --> A2{approved?} A2 -->|yes, or coordinator 404| C2[Check this Mac] --> I2[Install add-on] A2 -->|not joined| J2["offer to join (--yes joins)"] --> X2[stop, exit 1] A2 -->|waitlisted, revoked or no login| X2 K2[darkbloom cluster] --> G2[Guided setup, unchanged] end subgraph Code F2["SandboxSetupFlow.run: .fresh"] --> Q2[requireApproval] --> Q3[checkAndConfirm] --> N2[install] Q2 --> FA[FeatureWaitlistAccess.live] --> FC[FeatureWaitlistClient] --> R2 WC["Waitlist.Clusters, Waitlist.Sandboxes"] --> FW[FeatureWaitlistCommand] --> FA FW --> FV[FeatureWaitlistView] endRefactor Pass
http://[::1]was never accepted, becauseURLComponentskeeps the brackets. It is accepted now.🤖 Generated with Claude Code