Skip to content

feat(provider): darkbloom waitlist clusters and sandbox; sandbox setup waits for approval - #1682

Closed
jonathan308 wants to merge 2 commits into
fix/cluster-replan-after-stopfrom
feat/cluster-waitlist
Closed

jonathan308 wants to merge 2 commits into
fix/cluster-replan-after-stopfrom
feat/cluster-waitlist

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds darkbloom waitlist clusters and darkbloom waitlist sandbox. Each joins the waitlist that Darkbloom approves accounts from and shows where the account stands. A first darkbloom sandbox setup now waits for that approval before it checks or installs anything, so only accounts Darkbloom approves can use Darkbloom Sandbox. darkbloom cluster is unchanged.

The coordinator side is Layr-Labs/darkbloom-platform#627: the routes, the store, scripts/admin.sh waitlist approve|revoke and 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 to dev once #1677 merges.

$ darkbloom waitlist clusters join --macs 2
You're on the cluster waitlist: #1 in line (joined Oct 29, 2026).
  Darkbloom reviews accounts in the order they joined and approves them by hand.
  Check again: darkbloom waitlist clusters

$ darkbloom sandbox setup            # an account that never joined
Darkbloom Sandbox is open to the accounts Darkbloom approves from its waitlist.
Join the Darkbloom Sandbox waitlist now? [y/N]: y
You're on the Darkbloom Sandbox waitlist: #1 in line (joined Oct 29, 2026).
  Darkbloom reviews accounts in the order they joined and approves them by hand.
  Check again: darkbloom waitlist sandbox
  Nothing was installed. Run `darkbloom sandbox setup` again once Darkbloom approves your account.

$ darkbloom waitlist clusters        # once Darkbloom approves the account
Your account is approved for clusters since Oct 29, 2026.
  Start: darkbloom cluster

Linked issue

None.

Test plan

  • Type-check: passes, exit 0.
    • What: every changed source (Sources/darkbloom/Waitlist/*.swift, Sandbox/*.swift, Darkbloom.swift) and both touched test files (FeatureWaitlistTests.swift, SandboxSetupTests.swift).
    • How: Swift 6 with warnings as errors, against the real swift-argument-parser and swift-testing modules.
    • Stand-ins: ProviderCore, the rest of the darkbloom target and the test helpers, with their real signatures.
  • Harness: all checks pass. A standalone harness compiled from FeatureWaitlist.swift and FeatureWaitlistView.swift checks:
    • the answer mapping: 200 is a place, 404 not offered, 401 needs login, anything else unavailable;
    • the URL rules: https, or http only to 127.0.0.1, localhost or [::1];
    • the join body and every printed line.
  • Timeout: against a local server that sends one byte at a time, a call ends after 10.25 s with "no answer within 10 seconds".
  • End to end: a live coordinator built from the platform PR on PostgreSQL, its scripts/admin.sh, and a driver compiled from FeatureWaitlist.swift and FeatureWaitlistView.swift:
  • Docs and changelog: make changelog-check and python3 scripts/docs-impact-check.py --base d36eec662 pass. ./scripts/docs-check.sh passes, except for three existing links into the libs/mlx-swift-lm submodule, which is not checked out locally.
  • Not run locally: swift build and the DarkbloomCLITests suite. CI on this PR is their first full compile and run.

Components touched

  • provider-swift (Swift CLI)
  • native runtime / MLX
  • landing (Next.js)
  • enclave (Swift)
  • CI / provider release
  • docs

Protocol / interface changes

  • No protocol/interface changes
  • Yes — described above and matching side updated
    • CLI: new subcommands darkbloom waitlist clusters [join --macs 2-4 | status] and darkbloom waitlist sandbox [join | status]. status --json prints the coordinator's answer.
    • HTTP: new calls to the coordinator, GET and POST /v1/waitlists/{feature}, with the darkbloom login token. The matching side is Layr-Labs/darkbloom-platform#627.
    • Limits: calls go only to an https coordinator or to this Mac's loopback. They follow no redirects, end after 10 s in all, and refuse answers over 64 KiB.
    • Deploy order: a coordinator without the routes answers 404, and sandbox setup then goes on. This can ship before the coordinator deploy.
    • Not changed: WebSocket messages, config keys, release artifacts and ProviderCore.version. No version bump or migration note is needed.

Documentation impact

  • Canonical documentation updated:
    • docs/provider/cli-reference.md: the darkbloom waitlist section, 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.
  • No documentation needed — reason:

Changelog

  • Added this PR's unique changelog.d/feature-waitlists.md fragment and ran make changelog-check.
  • No user-visible change, or an explicitly authorized release/history change.

Notes for reviewers

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]
  end
Loading

After

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]
  end
Loading

Refactor Pass

  • Review findings, fixed:
    • The IPv6 loopback http://[::1] was never accepted, because URLComponents keeps the brackets. It is accepted now.
    • The 10 s limit applied only while a call sat idle. A call now ends after 10 s in all.
  • Cleanup:
    • The view owns the join line that the setup gate prints.
    • The date decoder is private.
    • Comments say what a 401 means.
    • The docs describe the options, the setup step and the timeout as the code does.
  • Final focused validation after the pass: the type-check, the harness, the timeout check, the live end-to-end run, and the docs and changelog checks, as listed under Test plan.

🤖 Generated with Claude Code

jonathan308 and others added 2 commits October 29, 2026 21:14
…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>
@jonathan308 jonathan308 added area:provider Provider (Rust, runs on Apple Silicon) area:docs Documentation work specific to a component or feature labels Oct 30, 2026
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
d-inference Error Error Oct 30, 2026 3:40pm UTC
d-inference-console-ui-dev Error Error Oct 30, 2026 3:40pm UTC
d-inference-landing Ready Ready Preview Oct 30, 2026 3:40pm UTC
darkbloom-status Ready Ready Preview Oct 30, 2026 3:40pm UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 30, 2026 3:40pm UTC

Request Review

@jonathan308

Copy link
Copy Markdown
Collaborator Author

Continued in #1742: GitHub closed this PR when #1677 merged and its base branch was deleted. Same branch, now targeting dev.

This branch had an error being deployed

2 failed and 3 active deployments
Preview – d-inference-landing — 2833bd3d Deployed Oct 30, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 2833bd3d Deployed Oct 30, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 2833bd3d Deployed Oct 30, 2026 by vercel[bot]
Preview – darkbloom-status — 2833bd3d Deployed Oct 30, 2026 by vercel[bot]
Preview – d-inference — 2833bd3d Deployed Oct 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Documentation work specific to a component or feature area:provider Provider (Rust, runs on Apple Silicon)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants