Skip to content

chore: merge v5.1-dev (5.1.1) into v5.2-dev - #6445

Merged
shumkov merged 5 commits into
v5.2-devfrom
chore/merge-v5.1-dev-5.1.1-into-v5.2-dev
Dec 2, 2026
Merged

shumkov merged 5 commits into
v5.2-devfrom
chore/merge-v5.1-dev-5.1.1-into-v5.2-dev

Conversation

@shumkov

@shumkov shumkov commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Basic explanation

What this does: Brings everything v5.1-dev gained after the 5.1.0 sync (#6333) into v5.2-dev, up to 956ee2f:

Value: 5.2 gets both dashmate fixes and the released 5.1.1 version, and the next sync starts from the release.

Risks: Low, and limited to dashmate and release bookkeeping. No Rust, consensus, SDK, Swift or Kotlin source changes. Two files conflicted; one of them is dashmate code, where both sides' changes are kept (see below).

Important

Merge this with "Create a merge commit", not "Squash and merge". A squash drops the link to v5.1-dev, and the next sync would bring these commits again as conflicts.

Issue being fixed or feature implemented

v5.2-dev lacks the 5.1.1 release and the three fixes v5.1-dev gained after #6333.

What was done?

origin/v5.1-dev (956ee2f) is merged into v5.2-dev (4ad4914) with merge drivers off (git -c core.attributesFile=/dev/null merge). Two files conflicted.

packages/dashmate/src/templates/renderServiceTemplatesFactory.js

Both sides changed the render loop:

The resolution keeps both: the skipDirectories check stays, and the templates that are rendered get variables. The rest of #6349's changes to the file (the import and the variables setup) merged without a conflict.

CHANGELOG.md

v5.2-dev's [Unreleased] section stays on top, followed by v5.1-dev's 5.1.1 section. Everything below is identical on both sides, because #6348 and #6352 fixed the same links. No line of either side is dropped.

Versions

Every package moves from 5.1.0 to 5.1.1 (the offset packages to 6.1.1, 8.1.1 and 12.1.1), as on v5.1-dev; v5.2-dev had not changed them since the last sync. Cargo.lock changes only the 52 workspace crate versions.

dashmate config migration

5.1.1 is a no-op migration that makes dashmate re-render the Tenderdash seeds on upgrade. It sorts after v5.2-dev's last migration (5.1.0-rc.3), and v5.2-dev's version becomes 5.1.1 with this merge, so it runs for configs stamped by every v5.2-dev build so far.

Files that merged without a conflict

Only five files changed on both sides since the merge base: the two above, Cargo.toml and Cargo.lock (version only on the v5.1-dev side), and scripts/release/generate_changelog.js (the same change on both). Every other file is taken as it is on v5.1-dev.

How Has This Been Tested?

Locally on macOS, on the merged tree:

  • yarn workspace dashmate unit tests (mocha --recursive test/unit): 1871 passing, 0 failing. wasm-dpp was not built in this checkout; its dist was borrowed from another v5.2-dev checkout for the run.
  • ESLint on the 16 dashmate JS files the merge brings in: 0 errors. Its 4 warnings (line length) are in files taken unchanged from v5.1-dev, which has the same warnings.
  • cargo metadata --locked: the lock matches the manifests.
  • git -c core.attributesFile=/dev/null merge-tree --write-tree origin/v5.2-dev HEAD: merges into the current v5.2-dev without a conflict.

Not run locally, left to CI: the Rust suites, the JS suites other than dashmate's, and the Swift and Kotlin builds. The merge changes no Rust, Swift or Kotlin source, only versions.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • My Rust, FFI, WASM, Swift or Kotlin changes follow the coding conventions
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed
  • If I added or changed GroveDB structure, I described it in the area's structure.rs, regenerated grovedb-structure.json, and checked the structure viewer link posted on this pull request
  • If I added or changed a system contract's document schemas, I checked the contract viewer link posted on this pull request

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

🤖 Generated with Claude Code

PR Hygiene · 8e8356e

  • Bots — thepastaclaw requested changes — dismiss the review or push a fix, 1 thread unresolved — resolve it
  • Self-review — post /self-reviewed
  • Build green
  • Approvals — you own every area touched; none needed

When every merge requirement is met, the PR Hygiene check passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.

Summary by CodeRabbit

  • Bug Fixes
    • Dashmate no longer includes a node’s own ID among its Tenderdash bootstrap peers.
    • Existing installations with recognized stock seed lists can refresh to current defaults, while custom seed lists are preserved.
    • Port checks handle local and non-local IP addresses more reliably, including addresses behind NAT.
    • Release changelog links now identify the repository.

shumkov and others added 5 commits November 27, 2026 08:12
Co-authored-by: Codex (gpt-6.2-sol) <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Brings the 5.1.1 release and the fixes merged into v5.1-dev after
the 5.1.0 sync (#6333): #6407, #6349 and #6348.

Two files conflicted:

- packages/dashmate/src/templates/renderServiceTemplatesFactory.js:
  keeps both sides. #6319 (v5.2-dev) skips the template directories a
  caller names; #6349 (v5.1-dev) renders the templates with the
  filtered Tenderdash bootstrap seeds instead of the raw options.
- CHANGELOG.md: v5.2-dev's [Unreleased] section stays on top, followed
  by v5.1-dev's 5.1.1 section. Below it both sides were identical:
  #6348 and #6352 fixed the same links.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added this to the v5.2.0 milestone Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-bots Waiting for the review bots to report on this head label Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Dashmate now filters a node’s own ID from Tenderdash bootstrap peers and refreshes recognized historical stock seed lists. The release also updates port-status request binding, package versions, changelog entries, and testnet checkpoint data.

Changes: Tenderdash seed handling

Layer / File(s) Summary
Filter local peers when rendering
packages/dashmate/src/tenderdash/filterTenderdashSeeds.js, packages/dashmate/src/templates/renderServiceTemplatesFactory.js, packages/dashmate/src/listr/prompts/createPlatformNodeKeyInput.js, packages/dashmate/test/unit/templates/tenderdashTemplate.spec.js, packages/dashmate/test/unit/tenderdash/ensureTenderdashNodeKey.spec.js
Dashmate identifies node IDs from keys and saved IDs, then excludes matching IDs from rendered bootstrap peers. Tests cover case-insensitive matches and malformed seed values.
Recognize and refresh stock seed lists
packages/dashmate/src/tenderdash/seedSetHash.js, packages/dashmate/src/tenderdash/getDefaultSeedUpdates.js, packages/dashmate/configs/defaults/tenderdash-seeds.json, packages/dashmate/test/fixtures/tenderdash/*, packages/dashmate/test/unit/tenderdash/getDefaultSeedUpdates.spec.js, packages/dashmate/test/unit/tenderdash/seedSnapshot.spec.js, packages/dashmate/docs/tenderdash-seeds.md
Seed-set hashes can include an omitted node ID. Dashmate recognizes historical stock lists and replaces recognized lists with current defaults. Tests and documentation cover historical lists, identity matching, and custom lists.
Integrate seed updates with config migration
packages/dashmate/configs/getConfigFileMigrationsFactory.js, packages/dashmate/test/unit/config/configFile/*, packages/dashmate/test/unit/commands/config/set.spec.js
A 5.1.1 migration entry returns the config file unchanged. Tests cover migration defaults, rendering, retries, and refresh behavior for stock and custom seeds.

Port-status request binding

Layer / File(s) Summary
Check local interfaces before binding requests
packages/dashmate/src/status/providers.js, packages/dashmate/test/unit/status/providers.spec.js
Port-status checks bind to the supplied IP only when it matches a non-internal local IPv4 interface. Tests cover local, non-local, loopback, and missing addresses.

5.1.1 release metadata

Layer / File(s) Summary
Record release notes and package versions
CHANGELOG.md, Cargo.toml, package.json, packages/*/package.json
The changelog adds the 5.1.1 entry. Workspace and package versions are updated to their respective 5.1.1 releases.

Testnet checkpoint data

Layer / File(s) Summary
Update testnet checkpoint evidence
packages/rs-sdk-trusted-context-provider/checkpoints/testnet.json, packages/rs-sdk-trusted-context-provider/tests/data/checkpoint-evidence-testnet.json
The checkpoint height, block hash, and quorum root change. The evidence fixture has updated header and coinbase values.

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

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant renderServiceTemplates
  participant filterTenderdashSeeds
  participant TenderdashTemplate
  renderServiceTemplates->>filterTenderdashSeeds: filter seeds by configured node ID
  filterTenderdashSeeds-->>renderServiceTemplates: return filtered bootstrap seeds
  renderServiceTemplates->>TenderdashTemplate: render options with filtered seeds
Loading

Suggested reviewers: pastapastapasta, pshenmic, quantumexplorer

Merge Risk: Minimal · up to 8e835 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

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 "chore: merge v5.1-dev (5.1.1) into v5.2-dev" matches the main change. The PR merges the v5.1-dev branch, which carries the 5.1.1 release, into v5.2-dev. The summary shows the version bumps …
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 "chore: merge v5.1-dev (5.1.1) into v5.2-dev" matches the main change. The PR merges the v5.1-dev branch, which carries the 5.1.1 release, into v5.2-dev. The summary shows the version bumps to 5.1.1 across packages, the changelog 5.1.1 entry, the Tenderdash seed updates, the node-ID seed filtering, and the local-address port check. The title does not name the individual fixes, but it names the merge and the release version, so it is related to the primary change.

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

Commits

Reviewing files that changed from the base of the PR and between 4ad4914 and 8e8356e.

Files ignored due to path filters: 2

  • Cargo.lock is excluded by !**/*.lock
  • packages/dashmate/templates/platform/drive/tenderdash/config.toml.dot is excluded by !**/*.dot
Files selected for processing: 52

  • CHANGELOG.md
  • Cargo.toml
  • package.json
  • packages/app-connect-contract/package.json
  • packages/bench-suite/package.json
  • packages/dapi-grpc/package.json
  • packages/dapi/package.json
  • packages/dash-spv/package.json
  • packages/dashmate/configs/defaults/tenderdash-seeds.json
  • packages/dashmate/configs/getConfigFileMigrationsFactory.js
  • packages/dashmate/docs/tenderdash-seeds.md
  • packages/dashmate/package.json
  • packages/dashmate/src/listr/prompts/createPlatformNodeKeyInput.js
  • packages/dashmate/src/status/providers.js
  • packages/dashmate/src/templates/renderServiceTemplatesFactory.js
  • packages/dashmate/src/tenderdash/filterTenderdashSeeds.js
  • packages/dashmate/src/tenderdash/getDefaultSeedUpdates.js
  • packages/dashmate/src/tenderdash/seedSetHash.js
  • packages/dashmate/src/tenderdash/validateTenderdashNodeKey.js
  • packages/dashmate/test/fixtures/tenderdash/5.1.0-rc.1-seeds.json
  • packages/dashmate/test/fixtures/tenderdash/5.1.0-seeds.json
  • packages/dashmate/test/unit/commands/config/set.spec.js
  • packages/dashmate/test/unit/config/configFile/ConfigFileJsonRepository.spec.js
  • packages/dashmate/test/unit/config/configFile/tenderdashSeedMigration.spec.js
  • packages/dashmate/test/unit/status/providers.spec.js
  • packages/dashmate/test/unit/templates/tenderdashTemplate.spec.js
  • packages/dashmate/test/unit/tenderdash/ensureTenderdashNodeKey.spec.js
  • packages/dashmate/test/unit/tenderdash/getDefaultSeedUpdates.spec.js
  • packages/dashmate/test/unit/tenderdash/seedSnapshot.spec.js
  • packages/dashpay-contract/package.json
  • packages/decision-proposals-contract/package.json
  • packages/document-history-contract/package.json
  • packages/dpns-contract/package.json
  • packages/js-dapi-client/package.json
  • packages/js-dash-sdk/package.json
  • packages/js-evo-sdk/package.json
  • packages/js-grpc-common/package.json
  • packages/keyword-search-contract/package.json
  • packages/masternode-reward-shares-contract/package.json
  • packages/moderation-charters-contract/package.json
  • packages/platform-test-suite/package.json
  • packages/rs-sdk-trusted-context-provider/checkpoints/testnet.json
  • packages/rs-sdk-trusted-context-provider/tests/data/checkpoint-evidence-testnet.json
  • packages/token-history-contract/package.json
  • packages/token-market-contract/package.json
  • packages/wallet-lib/package.json
  • packages/wallet-utils-contract/package.json
  • packages/wasm-dpp/package.json
  • packages/wasm-dpp2/package.json
  • packages/wasm-drive-verify/package.json
  • packages/wasm-sdk/package.json
  • packages/withdrawals-contract/package.json

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

@thepastaclaw

thepastaclaw commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

⛔ Final review complete — 1 blocking finding(s) (commit 8e8356e) · triage: normal

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final validation — Phase 1 + Phase 2

Changes requested: 1 blocker

  • The first Platform-only reset after upgrading can overwrite Core configuration before confirmation — packages/dashmate/configs/getConfigFileMigrationsFactory.js:2027-2028 (new)
    Impact: Operators whose first command after upgrading a 5.1.0-stamped v5.2-dev installation is dashmate reset --platform or dashmate group reset --platform can lose manual edits to core/dash.conf, including for configs outside the reset.

This merge brings the Dashmate port-check and Tenderdash bootstrap-peer fixes, the 5.1.1 package versions, and the refreshed testnet checkpoint into v5.2-dev. GitHub CI passed Dashmate’s package and end-to-end tests, the Rust workspace and Platform suites, the Swift and Kotlin SDK checks, and NPM release validation; PR Hygiene and PastaClaw review were still pending.

🔴 1 blocking | 🟡 2 suggestion(s)

Review provenance

Source: reviewer 1: muse-spark-1.3-contributor (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.2-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.2-sol (agent: phase2-reviewer, role: architecture-layering); reviewer 4: gpt-6.2-sol (agent: phase2-reviewer, role: platform-versioning); reviewer 5: gpt-6.2-sol (agent: phase2-reviewer, role: security-auditor); reviewer 6: gpt-6.2-sol (agent: phase2-reviewer, role: general); reviewer 7: gpt-6.2-sol (agent: phase2-reviewer, role: architecture-layering); reviewer 8: gpt-6.2-sol (agent: phase2-reviewer, role: platform-versioning); reviewer 9: gpt-6.2-sol (agent: phase2-reviewer, role: security-auditor); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)

  • Triage: normal by gpt-6.2-sol (effort low) — The merge changes Dashmate’s port-check binding, seed rendering, and upgrade behavior, but the checkpoint refresh and config re-render migration do not change consensus, cryptographic verification, or persisted protocol state.
  • Phase 1 reviewers: muse-spark-1.3-contributor — general (completed, effort xhigh); agent phase1-reviewer
  • Phase 1 model: muse-spark-1.3-contributor — not quota-gated; passed over gemini-3.8-flash-high (antigravity quota lookup failed), glm-5.3-flash (not used above high effort; tier asks max)
  • Second Phase-2 pass: on this first full review every Phase-2 reviewer also ran a second, independent time, and the verifier weighed both sets
  • Fresh verifier: gpt-6.2-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.2-sol — general (completed, effort high); agent phase2-reviewer, gpt-6.2-sol — architecture-layering (completed, effort high); agent phase2-reviewer, gpt-6.2-sol — platform-versioning (completed, effort high); agent phase2-reviewer, gpt-6.2-sol — security-auditor (completed, effort high); agent phase2-reviewer, gpt-6.2-sol — general (completed, effort high); agent phase2-reviewer, gpt-6.2-sol — architecture-layering (completed, effort high); agent phase2-reviewer, gpt-6.2-sol — platform-versioning (completed, effort high); agent phase2-reviewer, gpt-6.2-sol — security-auditor (completed, effort high); agent phase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review (PastaClaw). How to work through them:
- Verify each finding against the code; fix only what is real, as narrowly as the finding.
- If a finding is wrong, decline it on its thread in one or two sentences; the bot answers once and stops.
- To defer one, link a tracking issue on its thread (or reply asking the bot to file one).
- Suggestions don't block the merge, but most are worth fixing in this PR; judge each on its merits.
- Keep the PR's scope; don't grow it to satisfy hardening suggestions.
- Carried items were raised in an earlier round: read the thread first, and don't re-fix what you already fixed, declined or deferred there. Disputed and deferred items are already handled and are not listed.

In `packages/dashmate/configs/getConfigFileMigrationsFactory.js`:
- [BLOCKING] packages/dashmate/configs/getConfigFileMigrationsFactory.js:2027-2028: The first Platform-only reset after upgrading can overwrite Core configuration before confirmation
  Impact: Operators whose first command after upgrading a 5.1.0-stamped v5.2-dev installation is `dashmate reset --platform` or `dashmate group reset --platform` can lose manual edits to `core/dash.conf`, including for configs outside the reset.
  Dashmate rewrites Core’s service files before the Platform-only reset runs, so declining the reset cannot save those edits. A 5.1.0 config with no pending seed refresh took the clean-read path on the target branch. On this head, the 5.1.1 format bump marks every config changed in `ConfigFileJsonRepository.js:204–207`, and `BaseCommand.init()` renders them all without a scope at `BaseCommand.js:74–80`. The `skipDirectories: ['core']` protection from #6319 exists only on the target branch and is applied at command exit, after the overwrite. Scope the migration render to Tenderdash when the only pending work is the 5.1.1 seed migration and stock seed refresh; retain a full render when an earlier migration needs it.

In `packages/dashmate/src/tenderdash/filterTenderdashSeeds.js`:
- [SUGGESTION] packages/dashmate/src/tenderdash/filterTenderdashSeeds.js:5-10: Seed rendering accepts a stored key that Dashmate’s startup check rejects
  Impact: A masternode operator with an otherwise valid but unpadded key in `config.json` can have Dashmate filter peers using that key’s node ID, then see `dashmate start` reject the same key.
  Dashmate can use a key to choose which bootstrap peer to omit even though its own startup check does not recognize the key as valid. The incoming seed helper calls `validateTenderdashNodeKey`, whose `Buffer.from` decoder accepts missing base64 padding. The target branch’s `assertPlatformCanStartFactory.js:54–59` calls `parseTenderdashNodeKey` on the same stored value, and that parser requires padding. The v5.1-dev parent lacks this Dashmate startup guard, so the two interpretations coexist only after the merge. Share one decoder and ID derivation for stored keys, while keeping prompt and key-file parsing and the seed refresh’s saved-ID fallback separate.

In `CHANGELOG.md`:
- [SUGGESTION] CHANGELOG.md:13: The merged changelog groups the released 5.1.1 fixes under Unreleased
  Impact: Readers using the changelog outline see the published 5.1.1 fixes grouped with unreleased changes rather than under their own release.
  The merge places the level-three `5.1.1` heading and its `Bug Fixes` heading inside the level-two `Unreleased` section. The release parent did not have an `Unreleased` heading above them. Make `5.1.1` a peer of `Unreleased` and `5.1.0` so its fixes sit under the released version.

Comment thread CHANGELOG.md Resolved
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Your move: thepastaclaw requested changes on this head; dismiss the review or push a fix; thepastaclaw left review threads unresolved; resolve them.
Full checklist in the description.

@github-actions github-actions Bot added waiting-self-review Waiting for the author to post /self-reviewed and removed waiting-bots Waiting for the review bots to report on this head labels Dec 2, 2026
@shumkov
shumkov merged commit de5dd1c into v5.2-dev Dec 2, 2026
45 of 47 checks passed
@shumkov
shumkov deleted the chore/merge-v5.1-dev-5.1.1-into-v5.2-dev branch December 2, 2026 12:32
@shumkov shumkov mentioned this pull request Dec 3, 2026
4 of 16 tasks
shumkov added a commit that referenced this pull request Dec 3, 2026
…missions-model

Brings in #6472, which checks a document type's typed definition natively at
registration, and the 5.1.1 merge (#6445).

Conflicts, resolved keeping #6472's design:
- try_from_definition/v0/mod.rs: #6472's size billing kept; our dispatch on
  try_from_schema (4 refuses a definition declaring permissions, 5 builds
  through generation 5) runs inside it, and the refusal at 4 bills the size
  first, as the schema path's depth check does before its schema check
  refuses the keyword.
- try_from_schema/common/mod.rs: require_validation_schema keeps #6472's
  typed branch for check_document_type_schema 1 and 2. The typed definition
  check is selected by the same slot: 0 and 1 run #6472's check, 2 runs a
  second generation admitting permissions.
- try_from_schema/native_schema/mod.rs: both export sets kept.
- try_from_definition/tests.rs: both test sets kept.

Typed check, generation 2 (mock only): permissions rules named by a word, as
native check 2 names them; $actorId admitted wherever $ownerId is, where
apply_property_reference is 2 or later, as the native check reads it.
Generation 1 refuses a definition declaring permissions, as native check 1
refuses the keyword (unreachable at protocol version 16, where the dispatch
refuses it first).

Test would have caught this in CI: with #6472's check on the definition
path, the permission examples and the $actorId reference set fail to build
from their definitions at the mock (red); green after. The billing assertion
fails with the billing removed ([] vs [58]).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-self-review Waiting for the author to post /self-reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants