Repository navigation
feat(provider): darkbloom waitlist cluster / sandbox, per account; sandbox setup waits for approval - #1742
Closed
jonathan308 wants to merge 7 commits into
Closed
feat(provider): darkbloom waitlist cluster / sandbox, per account; sandbox setup waits for approval#1742jonathan308 wants to merge 7 commits into
jonathan308 wants to merge 7 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>
Dev reworked darkbloom sandbox setup into check, download, plan, confirm, install and summarize; a fresh setup still asks the waitlist first.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Closed
10 of 18 tasks
…ator offers The coordinator's catalog is now the only list of waitlists, so the CLI discovers them instead of knowing clusters and Darkbloom Sandbox by name: - `darkbloom waitlist` lists every waitlist (GET /v1/waitlists) with the account's status, and `darkbloom waitlist <name> [status|join]` works for any of them. A name matches a catalog id ignoring case, or the id plus "s" or "es" (`clusters`, `sandbox` and `sandboxes` keep working); a plural two ids share matches neither. An unknown name lists the waitlists and exits 1. - Sentences take the coordinator's title and start command. A join sends this Mac's chip and memory only to a waitlist with a Mac-count range, and `--macs` defaults to its minimum and must lie inside it (exit 64 otherwise). - The coordinator's text is made safe for the terminal: control, format and line-separator characters print as U+FFFD, and `--json` escapes them. - `darkbloom sandbox setup` still gates a first setup on the `sandbox` waitlist exactly as before, using the coordinator's title when it has one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uster` joins it
The waitlist is for the user account, not for a Mac:
- `darkbloom waitlist <name>` (such as `cluster` or `sandbox`) puts the
account on that waitlist and prints where it stands, with the start command
once approved. Running it again keeps the place; an approved or revoked
entry stays as it is. `darkbloom waitlist` still lists every waitlist.
- The `join`/`status` actions and `--macs` are gone; nothing reads or sends
this Mac's chip, memory or Mac count, and a join posts `{}`.
- `darkbloom sandbox setup` keeps its gate on the `sandbox` waitlist and its
offer to join, now with `{}`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 6, 2026
…approved account The sandbox setup tests that master added after #1742's base built SandboxSetupFlow without a waitlist, so the gate asked the stub coordinator (404) and printed its line. They now pass `waitlist: .approved`, as #1742's own tests do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
added a commit
that referenced
this pull request
Nov 6, 2026
…up need an approval (#1850) * feat(provider): waitlists for 0.10.10; a new cluster pair and a new sandbox setup need an approval Ports d-inference#1742 (feat/cluster-waitlist d7f420e, its net diff over dev c41b40b) onto master 0.10.9, and adds the cluster gate: - `darkbloom waitlist [cluster|sandbox]`: list the coordinator's waitlists, or join one; the account joins, nothing about the Mac is sent. - `FeatureWaitlistGate`: one failure policy for both gates. Approved: go on. 404 (a coordinator without the routes): go on after one line. Not joined: offer to join. Waitlisted, revoked, 401, 403 (new `refused` problem) or no usable answer: say why (and to retry when unreachable), change nothing, exit 1. - A first `darkbloom sandbox setup` uses the gate (feature `sandbox`). - `darkbloom cluster` and `cluster local` on a Mac that holds no pairing use the gate (feature `cluster`); a Mac that holds a pairing, or one it can't read, is never asked and makes no waitlist call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(provider): master's work-disk and rerun sandbox tests run as an approved account The sandbox setup tests that master added after #1742's base built SandboxSetupFlow without a waitlist, so the gate asked the stub coordinator (404) and printed its line. They now pass `waitlist: .approved`, as #1742's own tests do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(provider): `darkbloom cluster local` is never gated by the cluster waitlist The cluster waitlist gates clustering through Darkbloom. `cluster local` serves on the owner's own Macs and, as its help says, never contacts the coordinator, so it makes no waitlist call and works offline and for any account. Every stop of the `darkbloom cluster` gate now ends with "Serving on your own Macs only needs no approval: darkbloom cluster local". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: jonathan308 <5055076+jonathan308@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
15 of 16 tasks
Collaborator
Author
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. A waitlist is for the user account, not for a Mac:darkbloom waitlist clusterordarkbloom waitlist sandboxputs the account on that waitlist and shows where it stands, anddarkbloom waitlistlists every waitlist. The waitlists are universal: the coordinator's catalog is the only list, so this CLI discovers them and a new waitlist needs no CLI release. A firstdarkbloom sandbox setupwaits for an approved account on thesandboxwaitlist before it checks or installs anything.darkbloom clusteris unchanged.The coordinator side is Layr-Labs/darkbloom-platform#627: the catalog, the routes, the store,
scripts/admin.sh waitlistand the admin dashboard. The console UI is Layr-Labs/darkbloom-platform#634: joining from the fleet dashboard, and the approver-only approval page.Replaces #1682. GitHub closed #1682 when #1677 merged and its base branch,
fix/cluster-replan-after-stop, was deleted. Same branch, now targetingdev.Linked issue
None.
Test plan
xcrun swiftc -parsepasses on every changed Swift file.Waitlist/*.swiftsources and the realSandboxSetupCommand.swiftgate compile against stand-ins for the ProviderCore anddarkbloomsymbols they use.CoordinatorStub. The harness has no stand-in for the hardware detector, so its build also shows nothing reads this Mac's chip or memory.requireApproval: 404, 401, unreachable, waitlisted, revoked, approved, and a join that posts{}with the login token.FeatureWaitlistTests.swiftruns in the harness: 23/23, including a refused join after the list answered and a revoked account with--json.devc41b40b76: clean.make changelog-check(29 fragments) andpython3 scripts/docs-impact-check.py --base upstream/devpass../scripts/docs-check.shpasses except for three existing links into thelibs/mlx-swift-lmsubmodule, which is not checked out locally.swift buildand theDarkbloomCLITestssuite (they compile MLX). CI on this PR is their full compile and run, includingSandboxSetupTests, which passeswaitlist: .approved.Components touched
Protocol / interface changes
darkbloom waitlist [<name>] [--json] [--config <path>]. Without a name it lists every waitlist; with one it puts the account on that waitlist (POSTwith{}; running it again keeps the place) and shows where it stands. A revoked account exits 1. A name matches a catalog id ignoring case, or the id plussores; an exact id wins, and a plural two ids share matches neither.status --jsonprints the coordinator's answer.GET /v1/waitlists(every waitlist with the account's place),GETandPOST /v1/waitlists/{feature}, with thedarkbloom logintoken. The matching side is Layr-Labs/darkbloom-platform#627.--jsonescapes them.sandbox setupgoes on as before. 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 (list, joining per account, name matching, terminal safety), 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
devc41b40b76, checked again just before this push. 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).darkbloom waitlistreadsGET /v1/waitlists;darkbloom waitlist <name>reads the list to resolve the name, then posts{}. Nothing about the Mac is read or sent. The setup gate still makes onlyGET /v1/waitlists/sandbox, so a coordinator without the routes lets it continue.darkbloombecomes the installed CLI's name, so DevNet builds showdarkbloom-dev cluster.Before And After
Before
flowchart LR subgraph Behavior S1[darkbloom sandbox setup] --> C1[Check this Mac and plan] --> I1[Install add-on] K1[darkbloom cluster] --> G1[Guided setup] endAfter
flowchart LR subgraph Behavior L2["darkbloom waitlist"] -->|login token| R1["GET /v1/waitlists"] --> P1[every waitlist and its status] W2["darkbloom waitlist cluster / sandbox"] --> R1 W2 -->|"{}"| R2["POST /v1/waitlists/{feature}"] S2[darkbloom sandbox setup] --> A2{sandbox approved?} A2 -->|yes, or coordinator 404| C2[Check this Mac and plan] --> 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 WC["Waitlist (name, action)"] --> FA["FeatureWaitlistAccess.live()"] --> FC[FeatureWaitlistClient] --> R1 WC --> FV["FeatureWaitlistView (printable)"] F2["SandboxSetupFlow.run: .fresh"] --> Q2["requireApproval (sandbox)"] --> FA endRefactor Pass
Account-only pass: no bugs found; a stale comment fixed, tests added for a refused join after the list answered and for a revoked account with
--json.Review findings, fixed:
JSONEncoderleaves in--json. It is now sanitized for the terminal and escaped in JSON.boxesforboxandboxe) silently picked the first; it now matches neither.<name>help did not say it takes the id;waitlist join --macs 3gave a misleading message.Earlier pass (kept): the IPv6 loopback
http://[::1]is accepted, and every call ends after 10 s in all.Final focused validation after the pass: the parse check, the harness (72 + 11 checks and 23 tests), and the docs and changelog checks, as listed under Test plan.
🤖 Generated with Claude Code