Repository navigation
Conversation
…roval After the Test stage passes, the control leader POSTs the pair's model approval request (model, prefill schedule, installed app version from Contents/Info.plist) to /v1/cluster/approvals with the account credential, then runs the existing fetch, match and save path unchanged. 200/201, 403/404 and every failure are one "Cluster approval request: ..." line that stops nothing; the setup waits for the parts only when the registration stopped them. Not sent for a local-only cluster or a hand-saved pair approval. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308
left a comment
There was a problem hiding this comment.
Review against darkbloom-platform #642 (the coordinator half, head a8c7f4862d). Checked at 5e739ebb16: as written, the two halves do not connect, so a pair would still get no approval.
- Path.
ClusterApprovalRequestsendsPOST <coordinator>/v1/cluster/approvals. #642 routesPOST /v1/cluster/owner-approvals(withGETandDELETE /v1/cluster/owner-approvals/{id}) and serves onlyGETon/v1/cluster/approvals. Against #642 the request fails and the setup prints only theCluster approval request: …line. - Body. This PR sends 3 fields,
{"model","provider_version","schedule"}. #642'sownerClusterApprovalRequestis strict and requires exactly 4:provider_version,model,artifact_sha256,schedule(400 otherwise). The member already has the digest: the saved setup'scapability.artifactSHA256, which is what #1685's selection compares a model approval'sartifact_sha256with. - Finding the new approval. After the request,
OnboardingLive.localRegisterruns the existing fetch, which reads the publicGET /v1/cluster/approvals. #642 does not list owner approvals there ("GET /v1/cluster/approvalsdoes not list owner approvals"), so the match and save never see the new row. Use theapprovalin the 201/200 reply, orGET /v1/cluster/owner-approvalswith the same credential, and run the same match and save on it. - Tests.
MockCoordinatoraddsrouter.post("/v1/cluster/approvals")and accepts the 3-field body, soClusterApprovalRequestTestspass against a shape the coordinator does not serve. A shared vector (path, exact body bytes, reply) pinned in both repos would catch this. - Draft. The description says "The PR stays a draft until the coordinator's final API shape is confirmed", but it is open as ready for review.
Checked and fine: the installed DevNet app's CFBundleShortVersionString is 0.10.5-dev.branch.16, which passes #642's -dev. check.
Scope note: owner approvals are model approvals, so they are development-only and serve the owner only (no parity qualification may name one). jonathan308 also wants automatic approval on mainnet and public traffic for GLM-5.3-Flash and Qwen3.8-27B; that is being handled separately.
|
Follow-up: the complete list of what jonathan308 decided on 2026-10-31 that #1689 and darkbloom-platform #642 need to cover together, so that no separate PRs are needed. Items 1–3 of my first review (path, body, listing) still apply. 1. Automatic approval on mainnet too, not only DevNet. #642 answers 403 outside a development deployment, and owner approvals are model approvals, which #636 limits to development by design. Production needs its own automatic path that keeps the build pinned. Production deliberately keeps build-pinned approvals, so the coordinator must still know the exact worker and libraries a pair runs. One way is the original #602/#1660 design: the signed release registers its own build-pinned approvals with its release key. 2. Automatic public traffic for exactly GLM-5.3-Flash and Qwen3.8-27B, and no other model. Owner decision: both are publicly qualified ("they are both good to go"), in tensor parallel. Today no parity qualification may name a model approval, so an owner approval can never serve public traffic. Needed:
Every other model's clusters stay owner-only. 3. The public request envelope for those two models:
GLM-5.3-Flash lists 4. No grant that blocks GLM tensor parallel. GLM's bundled cross-cable records hold a single 5. Hands-off over time. #1689 asks only in the guided setup, after the Test stage. Pairs that are already set up, or re-adopted after an update, never ask. Nothing renews before the 90-day 6. Capacity. Owner rows share 7. Proven end to end on the real pair. The DevNet pair
|
|
One more for the list: 8. Qwen3.8-27B is not in DevNet's model catalog. |
|
Thanks, Jonathan. Status of each point, across #1689 and darkbloom-platform #642:
|
…and renewed by the service - POST /v1/cluster/owner-approvals with the four fields of the coordinator's shape (provider_version, model, artifact_sha256, schedule), in the order of the shared vector; the 200/201 answer must be one owner approval whose policy_sha256 this Mac derives. - The fetch also reads GET /v1/cluster/owner-approvals with the account credential and joins its entries to the public list (401/403/404: none; any other failure of either half is the answer). - The cluster service asks at its checks while the setup holds no approval, and renews an owner approval within 7 days of not_after (DELETE, then POST). A refusal waits for the next service run or update; every outcome is one line and stops nothing. - Pin darkbloom-platform's owner_cluster_approval_vector.json byte for byte; MockCoordinator reads the POST body as strictly as the coordinator and serves DELETE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reply to the review, by item. Head First review
Follow-up list
|
…the request ClusterApprovalRequest.exchange repeated the fetch's session setup (ephemeral, no redirect, timeout, no stores) and read the answer with session.data, with no size bound. Both now go through ClusterApprovalFetch.send, which reads at most maximumBytes and only for a status the caller reads. The request's own timeoutSeconds is gone (the fetch's, the same 10 s, applies). MockCoordinator's public approvals route uses the same answer helper as the owner routes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ered A registered answer kept the request open (retries), so a pair whose setup still held no approval after the check asked the coordinator every minute for the rest of the run, with one log line each time: a pair serving locally with an approval set aside for failing parts (that approval is not taken again by the same build), or a setup whose save is refused. When the other Mac refused the save, every minute also stopped and restarted both parts. Any answer but a failure now settles the need it answered (request, or renew that id); a renewal is a new need, an update clears it as before. The settled need is read once per check, so the decision taken again under the command lock still reads the list the first one asked for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit settled a registered need as soon as the coordinator answered. A check that then found the command lock busy saved nothing, and the pair (not offered, so not asked every minute) kept no approval until the next service run. The need is now settled when the check ends, except after a busy lock, so the next check asks and saves again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Goal
On DevNet a cluster pair gets its own cluster approval from the coordinator, so nobody adds approval rows by hand (David, 2026-10-31: "auto approval should be on"). This is the provider half. The coordinator half is darkbloom-platform #642 (final at 1c15a59ab9).
Change
ClusterApprovalRequestsendsPOST <coordinator>/v1/cluster/owner-approvalswith the account credential (Authorization: Bearer, the savedauth_token). The body has feat(monitoring): alert on production backup failure and backup absence #642's four fields in the vector's order:provider_version: from the installed app'sContents/Info.plist;model: the setup'spublicModelID;artifact_sha256: the setup'scapability.artifactSHA256;schedule: 1 or 2.A 200 or 201 must hold one owner approval whose
policy_sha256this Mac derives from the canonical bytes.ClusterApprovalFetch.fetch(providerConfiguration:)also readsGET /v1/cluster/owner-approvalswith the credential, verifies eachpolicy_sha256, and adds those entries to the public list. 401, 403 and 404 mean the account holds none, and the public answer stays as it is (production, staging). Any other failure of either half is the answer, so a partial answer never withdraws a saved approval. The existing match and save on both Macs run unchanged on this list.not_afteris deleted (DELETE …/owner-approvals/{id}) and then requested again.Cluster approval request: …, and none stops serving. After a refusal (403/404, 400, 409) or a request this Mac cannot send, the service waits for its next run or an update. After a failure (no answer, 5xx), it asks again at the next check.Fixtures/coordinator-wire/owner_cluster_approval_vector.jsonis byte for byte feat(monitoring): alert on production backup failure and backup absence #642'scoordinator/tests/api/testdata/owner_cluster_approval_vector.json. The provider must send exactly its request bytes, and its reply must decode to the canonical hex and topolicy_sha2561683c2ac…b148.Before
flowchart LR T[Test stage passed] --> G[GET /v1/cluster/approvals<br/>public list] G --> M{entry for model,<br/>schedule, artifact?} M -- no --> L[serve locally] M -- yes --> S[save on both Macs<br/>start as cluster members] O[operator posts rows by hand] -.-> GAfter
flowchart LR T[Test stage passed<br/>or service check, no approval held<br/>or owner approval within 7 d] --> R{renewal?} R -- yes --> D[DELETE /v1/cluster/owner-approvals/id] R -- no --> P D --> P[POST /v1/cluster/owner-approvals<br/>4 fields, Bearer token] P --> Line[one status line;<br/>never stops serving] P --> G[GET /v1/cluster/approvals<br/>+ GET /v1/cluster/owner-approvals] G --> M{entry for model,<br/>schedule, artifact?} M -- no --> L[serve locally] M -- yes --> S[save on both Macs<br/>start as cluster members]Locks
ClusterService.ownerRequestSettledis one more field under the service's existinglock, besideapprovalChecked, and has the same leaf use.Hooked up
OnboardingLive.localRegister→ClusterApprovalRequest.ensureBlocking, thenClusterApprovalFetch.fetchBlocking, which now includesfetchOwned.ClusterService.checkApproval:decide→answer(saved)→ensureBlocking, thenfetchBlocking.ClusterOnboardingDriver.registerwaits for the parts only when lines other thanapprovalRequestNoticecome back.Validation
PR CI only; nothing runs on the laptop.
ClusterApprovalRequestTestsruns against the real localMockCoordinator. The mock now reads the POST body as strictly as #642 does and servesGETandDELETEon/v1/cluster/owner-approvals. The tests cover:policy_sha256mismatch.OnboardingCheckscovers the request line alone and the request line followed by a registration.Not in this PR
Jonathan's items that are not this PR's provider scope (mainnet build-pinned approvals, public qualification of GLM-5.3-Flash and Qwen3.8-27B, grants, the Qwen3.8-27B DevNet catalog entry, and the end-to-end proof on the real pair) are answered in the review reply.
Refactor pass
The repository's dedicated refactor subagent pass did not run: this worker cannot start subagents. That gate is open for the orchestrator.
🤖 Generated with Claude Code