Repository navigation
chore: merge v5.1-dev (5.1.1) into v5.2-dev - #6445
Conversation
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Codex (gpt-6.2-sol) <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: hobby-eng <[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]>
|
Waiting for bot review — thepastaclaw not yet. Wait for the missing reviews, or a writer can post |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
⛔ Final review complete — 1 blocking finding(s) (commit 8e8356e) · triage: normal |
thepastaclaw
left a comment
There was a problem hiding this comment.
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 isdashmate reset --platformordashmate group reset --platformcan lose manual edits tocore/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:
normalbygpt-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); agentphase1-reviewer - Phase 1 model:
muse-spark-1.3-contributor— not quota-gated; passed overgemini-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; agentsol-verifier - Phase 2 reviewers:
gpt-6.2-sol— general (completed, effort high); agentphase2-reviewer,gpt-6.2-sol— architecture-layering (completed, effort high); agentphase2-reviewer,gpt-6.2-sol— platform-versioning (completed, effort high); agentphase2-reviewer,gpt-6.2-sol— security-auditor (completed, effort high); agentphase2-reviewer,gpt-6.2-sol— general (completed, effort high); agentphase2-reviewer,gpt-6.2-sol— architecture-layering (completed, effort high); agentphase2-reviewer,gpt-6.2-sol— platform-versioning (completed, effort high); agentphase2-reviewer,gpt-6.2-sol— security-auditor (completed, effort high); agentphase2-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.
|
Your move: thepastaclaw requested changes on this head; dismiss the review or push a fix; thepastaclaw left review threads unresolved; resolve them. |
…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]>
Basic explanation
What this does: Brings everything
v5.1-devgained after the 5.1.0 sync (#6333) intov5.2-dev, up to 956ee2f:INVALID_IP5.1.1config migration that re-renders themv5.2-devalready has the same change as fix(release): name the repository for changelog links #6352)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-devlacks the 5.1.1 release and the three fixesv5.1-devgained after #6333.What was done?
origin/v5.1-dev(956ee2f) is merged intov5.2-dev(4ad4914) with merge drivers off (git -c core.attributesFile=/dev/null merge). Two files conflicted.packages/dashmate/src/templates/renderServiceTemplatesFactory.jsBoth sides changed the render loop:
v5.2-dev) skips the template directories a caller names (skipDirectories), for Platform-only resets.v5.1-dev) renders every template withvariables(the config options plus the filteredtenderdashBootstrapSeeds) instead ofconfig.options.The resolution keeps both: the
skipDirectoriescheck stays, and the templates that are rendered getvariables. The rest of #6349's changes to the file (the import and thevariablessetup) merged without a conflict.CHANGELOG.mdv5.2-dev's[Unreleased]section stays on top, followed byv5.1-dev's5.1.1section. 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.0to5.1.1(the offset packages to6.1.1,8.1.1and12.1.1), as onv5.1-dev;v5.2-devhad not changed them since the last sync.Cargo.lockchanges only the 52 workspace crate versions.dashmate config migration
5.1.1is a no-op migration that makes dashmate re-render the Tenderdash seeds on upgrade. It sorts afterv5.2-dev's last migration (5.1.0-rc.3), andv5.2-dev's version becomes5.1.1with this merge, so it runs for configs stamped by everyv5.2-devbuild so far.Files that merged without a conflict
Only five files changed on both sides since the merge base: the two above,
Cargo.tomlandCargo.lock(version only on thev5.1-devside), andscripts/release/generate_changelog.js(the same change on both). Every other file is taken as it is onv5.1-dev.How Has This Been Tested?
Locally on macOS, on the merged tree:
yarn workspace dashmateunit tests (mocha --recursive test/unit): 1871 passing, 0 failing.wasm-dppwas not built in this checkout; itsdistwas borrowed from anotherv5.2-devcheckout for the run.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 currentv5.2-devwithout 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:
structure.rs, regeneratedgrovedb-structure.json, and checked the structure viewer link posted on this pull requestFor repository code-owners and collaborators only
🤖 Generated with Claude Code
PR Hygiene ·
8e8356e/self-reviewedWhen every merge requirement is met, the
PR Hygienecheck passes. Reviewer limits do not block merging; other required GitHub checks and protections still apply.Summary by CodeRabbit