Skip to content

fix(dashmate): keep a node's own ID out of its Tenderdash seeds - #6349

Merged
shumkov merged 8 commits into
v5.1-devfrom
fix/dashmate-tenderdash-own-seed
Nov 27, 2026
Merged

shumkov merged 8 commits into
v5.1-devfrom
fix/dashmate-tenderdash-own-seed

Conversation

@lklimek

@lklimek lklimek commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR Dashmate keeps a node's own ID out of its default peer list so an upgrade can start the node normally.

User story

As a node operator, I want Dashmate to refresh the default peers safely so my node can start after an upgrade.

Scenario

Base flow

An operator upgrades a node that uses the default peer list and is itself listed as a default peer.

Actual behavior

The refreshed list can include the node itself. The service rejects the list at startup and repeatedly restarts.

Expected behavior

Dashmate excludes the node itself and keeps the other default peers available for discovery.

Detailed discussion

The Tenderdash side of the same failure is handled in dashpay/tenderdash#1660; this PR keeps dashmate from producing such a configuration.

Out of scope

Explicit persistent-peers settings and changes to the published peer selection.

Known limitations

A stock list saved with an entry removed is recognised only when that entry matches the saved node ID or the ID derived from the node key; otherwise it is kept as a custom list. Lists from the 5.1.0 prereleases (dev, rc.1, rc.2) with the own entry removed are kept as custom lists.

Issue being fixed or feature implemented

Fixes #6307

What was done?

  • Store the complete default peer list in the configuration, so a later node ID or key change (for example via dashmate config set) cannot make a stock list look custom and stop its refresh.
  • Omit the local node from bootstrap-peers when rendering the Tenderdash configuration, for default and custom lists alike. The local ID is derived from the configured node key, falling back to the saved ID, and compared case-insensitively, as Tenderdash does.
  • Recognise the 5.1.0 release list saved with the node's own entry removed (by the bug or by the hand workaround), through node-bound fingerprints of that list, and refresh it to the full current defaults, also after later snapshot rotations. The 5.1.0 prereleases are deliberately not covered. The full-set history is unchanged and snapshot generation adds no new node-bound fingerprints. Other partial and custom lists stay unchanged.
  • Render a missing, null or malformed peer list as an empty bootstrap-peers, and skip entries that are not objects, instead of failing, so a forced hard reset of an older configuration can proceed.
  • Add a 5.1.1 configuration migration so existing installations re-render bootstrap-peers once.
  • Move the node-key validator from the prompt layer to src/tenderdash, since seed filtering uses it.

How Has This Been Tested?

  • yarn mocha on the changed dashmate specs (seed refresh, snapshot, template, migrations, config repository, node key): all pass. They cover both networks, the 5.1.0 list with the own entry removed (also after a snapshot rotation), an rc.1 list or an older list with one entry removed staying custom, an identity change followed by a stock rotation, unrelated partial lists, case and stale-ID mismatches, and missing, null and malformed seed lists or entries.
  • node scripts/generate-tenderdash-seeds.js --check passes (snapshot validity). The 20 node-bound fingerprints added per network were checked to equal seedSetHash(list minus id, id) for each entry of the published 5.1.0 snapshot, and the full-set history to match v5.1-dev.
  • test/unit/commands/config/set.spec.js needs the WASM DPP build output and runs in CI.
  • yarn workspace dashmate lint: zero errors.

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

🤖 Co-authored by Claudius the Magnificent AI Agent

🤖 Generated with Claude Code

PR Hygiene · bcc05ad

  • Bots — thepastaclaw ✓
  • Self-review — posted; again after any push
  • Build green
  • Approvals
    • dashmate (packages/dashmate/configs/defaults/tenderdash-seeds.json, packages/dashmate/configs/getConfigFileMigrationsFactory.js, packages/dashmate/docs/tenderdash-seeds.md and 17 more) — ktechmidas or shumkov

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.

The default seed list is generated from live evonodes, so an evonode in
that list received its own entry when dashmate refreshed a stock seed
list, and Tenderdash 2.0 refuses to start with itself as a peer. The seed
refresh and the migrations that write default seeds now drop the node's
own ID, a stock list minus that ID is still recognised as stock on later
refreshes, and the rendered bootstrap-peers skip it as well.

Fixes #6307

Co-Authored-By: Codex (gpt-6.2-sol) <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@github-actions github-actions Bot added this to the v5.1.0 milestone Nov 26, 2026
@lklimek

lklimek commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@thepastaclaw priority review

@thepastaclaw

Copy link
Copy Markdown
Collaborator

@lklimek on it — I've queued this as job cj-20261126-220605-31e1 and will reply here or link a PR when there's something to look at.

@thepastaclaw

Copy link
Copy Markdown
Collaborator

@lklimek reviewsys handles code review on this PR. It answers findings on their threads and re-reviews on push; since this PR is currently a draft, mark it ready for review to have it reviewed.

@thepastaclaw

thepastaclaw commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Final review complete — no blockers (commit bcc05ad)

@lklimek
lklimek marked this pull request as ready for review November 26, 2026 22:15
@github-actions

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.

@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

  • Stock seeds can still crash-loop an evonode whose saved ID differs from its running ID — packages/dashmate/src/tenderdash/getDefaultSeedUpdates.js:20-24 (new)
    Impact: An evonode operator whose valid key is represented in the stock list can still be left offline after an upgrade if the saved ID is uppercase or belongs to a previous key.

This PR filters a node’s own Tenderdash ID from refreshed defaults, legacy migrations, and rendered bootstrap peers, and records fingerprints for filtered stock lists. The JavaScript build passed in CI; Dashmate tests and JavaScript lint were pending at review time.

🔴 1 blocking | 🟡 3 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: general); reviewer 5: gpt-6.2-sol (agent: phase2-reviewer, role: architecture-layering); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)

  • Triage: normal by gpt-6.2-sol (effort low) — The fix spans Dashmate configuration migrations, historical seed fingerprint matching, and template rendering, making it more than a straightforward filter without changing consensus, peer-message parsing, or platform state storage.
  • 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 — general (completed, effort high); agent phase2-reviewer, gpt-6.2-sol — architecture-layering (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/src/tenderdash/getDefaultSeedUpdates.js`:
- [BLOCKING] packages/dashmate/src/tenderdash/getDefaultSeedUpdates.js:20-24: Stock seeds can still crash-loop an evonode whose saved ID differs from its running ID
  Impact: An evonode operator whose valid key is represented in the stock list can still be left offline after an upgrade if the saved ID is uppercase or belongs to a previous key.
  The upgrade can still write a bootstrap peer that Tenderdash refuses to start with. Dashmate allows operators to set the ID and key separately, and `ensureTenderdashNodeKey` leaves both untouched when present. Refresh, migration, and rendering compare the saved ID verbatim; if the full current list is already installed and that comparison misses self, the refresh also sees no reason to rewrite it. Tenderdash v2.0.0 derives its local ID from the key and lowercases IDs when parsing network peer addresses before rejecting self. The same mismatch lets an uppercase spelling in a custom seed entry survive a fresh render. Share one filter across refresh, migrations, and render preparation: derive the local ID from the configured key when available, normalize both sides for self comparison, and use that canonical ID for the filtered-history lookup without changing full-set fingerprints.
- [SUGGESTION] packages/dashmate/src/tenderdash/getDefaultSeedUpdates.js:27-30: Changing a node’s identity can stop its default seeds from refreshing
  Impact: An operator who replaces a Tenderdash key and ID after Dashmate has saved a stock list without the old ID can miss later seed updates without ever customizing the list.
  An identity change can leave a Dashmate-managed list stuck on old peers. `config set` can update the identity without touching seeds, so a list saved as stock minus A survives the switch to B. Once the stock list rotates, that stored list matches neither a full-set fingerprint nor the filtered fingerprint the refresh computes for B, even if the history has the correct fingerprint for A. Preserve stock-list provenance across identity changes, or keep complete stock lists on disk and filter only the effective configuration, with an explicit rerender for installations that need repair.

In `packages/dashmate/src/tenderdash/seedSnapshot.js`:
- [SUGGESTION] packages/dashmate/src/tenderdash/seedSnapshot.js:115-121: Nodes repaired with the 5.1.0-rc.1 workaround keep the old default peers
  Impact: Testnet operators who followed #6307 and removed only their own entry from the rc.1 stock list miss the 5.1.0 bootstrap defaults even if their node ID has not changed.
  The documented workaround leaves these nodes on the rc.1 peers. The checked-in 5.1.0 snapshot recognizes the full rc.1 testnet list from `fd256502065`, but none of its 20 one-peer omissions matches either a stored fingerprint or the current defaults minus that node. The next snapshot generation adds filtered fingerprints for its immediate input, 5.1.0, not for rc.1, so waiting for the next rotation does not repair these installations. Backfill the node-bound fingerprints from the affected published snapshots and add a direct-upgrade test that also checks that unrelated partial lists stay untouched.

In `packages/dashmate/templates/platform/drive/tenderdash/config.toml.dot`:
- [SUGGESTION] packages/dashmate/templates/platform/drive/tenderdash/config.toml.dot:272: A forced hard reset can abort if a config being migrated has no seed list
  Impact: An operator running `dashmate reset --hard --force` on an otherwise usable older config with missing or null `p2p.seeds` gets a template error before the reset task runs.
  The forced reset cannot reach the task that replaces the invalid config. `ResetCommand` bypasses per-config validation for the selected node, but `BaseCommand.init` renders configs marked changed by migration before running the command. The recent 5.1 migrations leave `p2p.seeds` alone. The old doT loop skipped a missing or null list; the new expression calls `.filter()` before doT can apply that guard. Treat a missing or null list as empty during service rendering and cover the validation-bypassed migration path, without relaxing the stored-config schema.

PastaPastaPasta added a commit to thepastaclaw/review-system that referenced this pull request Nov 26, 2026
…ould skip it (#97)

* fix(queue): a manual box tick always starts a review, whatever gate would skip it

Pasta, 2026-11-26: "The manual tick on a PR always overrides". A tick on a
draft already started a review; two paths still dropped one silently:

- a tick on a commit whose head a force-push back to it left superseded was
  a no-op (the box stayed ticked, or the skip-label note replaced it);
- on a skip-labelled draft whose ticked review failed, the deferred body's
  boxes came back but neither the deferred pass (labelled PRs excluded) nor
  the skip-label pass (failed heads excluded) read them.

Pins the dashpay/platform#6349 sequence (priority tick on a draft) too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(queue): keep a labelled draft's failed-review body; scope README claim

A labelled draft whose requested review failed now only has its draft body
(the boxes) replaced by the skip-label note, never the failure itself. The
README's superseded-head sentence covers drafts and labelled PRs, the only
ones whose boxes reach that head.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* style(queue): wrap the _note_skip_labels docstring

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@github-actions

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 Nov 26, 2026
lklimek and others added 3 commits November 27, 2026 07:25
…en rendering

- Keep the complete default seed list in the stored config, so a later node
  ID or key change cannot make a stock list look custom.
- Omit the local node from bootstrap-peers at render time, using the ID
  derived from the configured key (falling back to the saved ID) and a
  case-insensitive comparison, for stock and custom lists alike.
- Recognise stock lists saved with the node's own entry removed, including
  lists repaired by hand on 5.1.0-rc.1, through node-bound fingerprints of
  every historical snapshot, and refresh them to the full current defaults.
- Render a missing or null seed list as empty instead of failing.
- Add a 5.1.1 migration so existing installations re-render bootstrap-peers.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>

Co-Authored-By: Codex (gpt-6.2-sol) <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 27, 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 waiting-bots Waiting for the review bots to report on this head and removed waiting-self-review Waiting for the author to post /self-reviewed labels Nov 27, 2026

@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.

Re-review — Final validation — Phase 1 + Phase 2

New on this head: Dashmate now keeps the full stock seed list on disk, restores historical lists that omitted only the local node, and excludes the key-derived local ID when rendering Tenderdash bootstrap peers. The 5.1.1 config migration also re-renders existing configs whose stock seeds are already current. CI passed the JS build and lint, Dashmate tests and all three Dashmate E2E jobs, package functional tests, the main Platform suite, and one browser shard; the other browser shard was still running.

🟡 1 suggestion(s)

Approved: nothing here blocks the merge. The non-blocking findings are optional: fix them forward, in this PR or a follow-up, without waiting for another review round.

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); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)

  • Triage: normal by gpt-6.2-sol (effort low) — The change spans seed refresh, legacy fingerprint matching, and template rendering, but its migration updates local operator configuration rather than chain storage, and it reuses existing node-key validation without changing cryptography or key management.
  • 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)
  • 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
🤖 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/src/tenderdash/filterTenderdashSeeds.js`:
- [SUGGESTION] packages/dashmate/src/tenderdash/filterTenderdashSeeds.js:16-19: A forced hard reset aborts after upgrade if a Tenderdash seed entry is null
  Impact: An operator running `dashmate reset --hard --force` on an otherwise usable 5.1.0 config with `p2p.seeds` set to `[null]` gets a render error before Dashmate can replace the config.
  The reset stops during command initialization, before it can replace the invalid config. `ResetCommand` skips schema validation for the selected config, and stock refresh leaves `[null]` untouched. Previously, neither the 5.1.0 format stamp nor that seed list triggered an initialization render. The new 5.1.1 migration marks every config changed, so `BaseCommand.init` now renders the selected config before running the reset task. `[null]` passes `Array.isArray`, then the filter callback throws when it destructures the entry. Guard malformed entries before destructuring and add a 5.1.0 `[null]` case to the validation-bypassed migration-and-render test without relaxing the stored-config schema.

@github-actions

Copy link
Copy Markdown
Contributor

Bots are done — your move: post /self-reviewed.
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 Nov 27, 2026
lklimek and others added 3 commits November 27, 2026 09:02
Only the seed lists shipped in 5.1.0-rc.1, 5.1.0-rc.2 and 5.1.0 can have
lost the node's own entry, so the snapshot keeps the full-set history as
before plus node-bound fingerprints for those lists alone, and generation
no longer derives them for every previous snapshot.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>

Co-Authored-By: Codex (gpt-6.2-sol) <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A seed list entry that is not an object (e.g. `[null]`) is left out of the
rendered bootstrap-peers instead of failing the render that the 5.1.1
migration triggers before a forced hard reset.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cover

The node-bound fingerprints cover the 5.1.0-rc.1, 5.1.0-rc.2 and 5.1.0
lists only. The 5.1.0-dev prereleases also shipped the seed refresh bug but
are deliberately left out as development builds; this corrects the earlier
commit's claim that only the 5.1.0 lists could lose the node's own entry.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lease list

Narrow the node-bound "stock minus own entry" fingerprints to the list
shipped in the 5.1.0 release. This supersedes the wording of the two
previous commits: the 5.1.0 prereleases (dev, rc.1, rc.2) are deliberately
not covered, and a list from them with only the node's own entry removed is
kept as a custom list. The full-set history stays as on v5.1-dev.

<sub>🤖 Co-authored by [Claudius the Magnificent](https://github.com/lklimek/claudius) AI Agent</sub>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 27, 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 waiting-bots Waiting for the review bots to report on this head and removed waiting-self-review Waiting for the author to post /self-reviewed labels Nov 27, 2026
@lklimek lklimek added the priority: critical Critical priority — address immediately label Nov 27, 2026

@lklimek lklimek left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

/self-reviewed

@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.

Re-review — Final validation — Phase 1 + Phase 2

Updated after discussion: 1 finding(s) of this review were settled in the inline threads.

  • ✅ Withdrawn: 🟡 Nodes repaired with the 5.1.0-rc.1 workaround keep the old default peers

New on this head: This revision makes Dashmate skip null and other non-object seed entries when rendering Tenderdash configuration, and limits the stored fingerprints for lists missing the local node to the published 5.1.0 release. Dashmate tests, all three Dashmate E2E jobs, JS lint, the Platform suite, and both browser shards passed; PastaClaw review and PR Hygiene are pending.

🟡 1 0 suggestion(s)

Approved: nothing here blocks the merge. The non-blocking findings are optional: fix them forward, in this PR or a follow-up, without waiting for another review round.

Still open from earlier rounds (1)

  • 🟡 Suggestion: Nodes repaired with the 5.1.0-rc.1 workaround keep the old default peers — packages/dashmate/src/tenderdash/seedSnapshot.js:115-118 (thread) — settled: ✅ Withdrawn
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); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)

  • Triage: normal by gpt-6.2-sol (effort low) — The seed refresh logic, historical fingerprint matching, and startup rendering warrant ordinary review, but the migration only refreshes Dashmate configuration and the diff reuses existing node-key validation without changing cryptography, consensus, or protocol storage.
  • 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)
  • 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
🤖 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/src/tenderdash/seedSnapshot.js`:
- [SUGGESTION → WITHDRAWN in discussion; do not fix] packages/dashmate/src/tenderdash/seedSnapshot.js:115-118: Nodes repaired with the 5.1.0-rc.1 workaround keep the old default peers
  (carried; thread: https://github.com/dashpay/platform/pull/6349#discussion_r4713893260)

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Ready for review — dashmate: ktechmidas or shumkov.
Full checklist in the description.

@github-actions github-actions Bot added ready-for-human Bots have reported, the author has self-reviewed, and the build is green: this needs a human. and removed waiting-bots Waiting for the review bots to report on this head labels Nov 27, 2026
@shumkov
shumkov merged commit 4ff3d66 into v5.1-dev Nov 27, 2026
38 of 39 checks passed
@shumkov
shumkov deleted the fix/dashmate-tenderdash-own-seed branch November 27, 2026 13:04
@shumkov shumkov mentioned this pull request Dec 2, 2026
3 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: critical Critical priority — address immediately ready-for-human Bots have reported, the author has self-reviewed, and the build is green: this needs a human.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants