Skip to content

Devnet upgrades start at four nodes at once; adopt a dashnet that accepts the devnet's recipes - #70

Open
ktechmidas wants to merge 2 commits into
masterfrom
feat/devnet-concurrency-compatible-adoption
Open

ktechmidas wants to merge 2 commits into
masterfrom
feat/devnet-concurrency-compatible-adoption

Conversation

@ktechmidas

@ktechmidas ktechmidas commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Prepared by Claude (infraclaw role) at latte's request. Companion to dashpay/dash-network-go#36.

What changes

Devnet upgrades start at four nodes at once. Both upgrade forms defaulted to one node at a time, so every rollout was serial unless the operator changed it, and none has yet run with more. On a devnet the forms now start at four; the engine trims a batch to what the observed quorum can spare. Testnet and every other network keep the serial default. An API request that omits the policy is unchanged.

A devnet adopts a newer dashnet that accepts its recipes. Adoption required the new build to report exactly the node recipe the devnet's plans bind. The engine also operates the immediately preceding node and upgrade recipes, but the console could not know that, so a devnet created before the last recipe change never adopted a newer build and had to have its binary copied by hand. With dashpay/dash-network-go#36, dashnet recipes lists the earlier recipes a build accepts (nodeAccepts, upgradeAccepts), and adoption and resume-on-a-newer-build honour them. Still required: the same bootstrap and mining recipes, and a strictly newer build.

Notes for review

  • Order. Deploy this with, or after, an engine that includes Rollouts: first node alone, batch gates without a block wait, fewer false stops dash-network-go#36. That engine replaces the first node of a rollout alone before using the batch size; without it, a devnet's first batch is the full default. The adoption change is inert on an engine that lacks the new fields: it lists nothing, so the exact-match rule applies as before.
  • The rule itself stays in the engine. The console only reads what a build says it accepts; nothing is hard-coded here.
  • Adoption also records the adopted version in the registry, which fixes a devnet whose listed engine went stale after a hand copy.

Verification

Run locally (Node 22, Windows): npm run lint, npm run build, and the new unit tests for the default and for recipeAccepted, all passing.

Not verified locally: the two adoption tests in agent/agent.test.js that I extended. They execute shell-script stand-ins for dashnet, which this machine cannot run; the same 11 tests fail there before and after this change. CI runs them here. Nothing in this PR has been deployed.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Deploy and upgrade plans now default to four concurrent nodes on devnet and one on other networks. You can change concurrency before preparing a plan; API requests that omit it continue to run serially.
    • Newer binaries can be adopted when their node or upgrade recipes explicitly accept the planned recipe. Bootstrap recipes must still match exactly.
  • Bug Fixes
    • Resumed upgrades can use a newer binary when it accepts the reviewed plan’s upgrade recipe.

ktechmidas and others added 2 commits November 19, 2026 00:50
Both upgrade forms defaulted to one node at a time, so every rollout was
serial unless the operator changed it; no operation has yet run with more.
A devnet is owned outright and disposable: its forms now start at four. The
engine still trims a batch to what the observed quorum can spare. Testnet
and every other network keep the serial default, and an API request that
omits the policy is unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A devnet moves to a newer dashnet only when the build reports the same node
and bootstrap recipes as the devnet's plans. The engine also operates the
immediately preceding node and upgrade recipes, but the console could not
know that, so a devnet created before the last recipe change never adopted a
newer build and its binary had to be copied by hand.

`dashnet recipes` now lists the earlier recipes a build accepts (nodeAccepts,
upgradeAccepts; dashpay/dash-network-go#36). Adoption, and the move to a
newer build on resume, honour those lists. A build that predates the fields
lists none, so the exact-match rule is unchanged for it. The bootstrap and
mining recipes must still be the same, and a build is still adopted only
when strictly newer.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change updates binary adoption checks to accept listed recipe digests in specified cases. It also sets default rollout concurrency to four for devnet and one for other networks.

Changes: Binary Recipe Compatibility

Layer / File(s) Summary
Recipe acceptance and binary adoption
agent/devnets.js, agent/agent.test.js
recipeAccepted accepts an exact recipe match or a digest listed in the corresponding accepted-recipe field. Snapshot refresh applies the rule to upgrade and node recipes, while an optional mining recipe must still match exactly. Compatible adoption applies it to node recipes and still requires an exact bootstrap-recipe match. Tests cover these checks and resumed upgrades.

Rollout Concurrency Defaults

Layer / File(s) Summary
Network-based concurrency defaults
src/releases.js, src/pages/Deploy.jsx, src/pages/Network.jsx, src/releases.test.js, docs/rollout-options.md
defaultConcurrency returns four for devnet and one for other or absent networks. Deploy and Updates use this selector. Tests cover the selector, and documentation describes the form defaults and serial behavior when API requests omit concurrency.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Merge Risk: Minimal · up to 52086

Devnet upgrades now default to a batch size of four and testnet stays serial. Devnets can also adopt a newer dashnet build that lists the devnet's earlier recipes as accepted. No concrete merge-blocking defect was found. Deploy this with or after the engine change in dashpay/dash-network-go#36, as the PR notes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names two changes in the PR: devnet upgrades start at four concurrent nodes (src/releases.js defaultConcurrency, Deploy.jsx, Network.jsx, rollout docs), and a dashnet build that accepts the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names two changes in the PR: devnet upgrades start at four concurrent nodes (src/releases.js defaultConcurrency, Deploy.jsx, Network.jsx, rollout docs), and a dashnet build that accepts the devnet's recipes is adopted (agent/devnets.js recipeAccepted, plus tests). Both match the changeset and the stated objectives, so the title reflects the main change. It is long, but it is specific and not vague.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4904dfbb-2302-4a9c-b638-827f17d673b7
Commits

Reviewing files that changed from the base of the PR and between e8c463c and 5208652.

Files selected for processing: 7

  • agent/agent.test.js
  • agent/devnets.js
  • docs/rollout-options.md
  • src/pages/Deploy.jsx
  • src/pages/Network.jsx
  • src/releases.js
  • src/releases.test.js

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant