Repository navigation
fix(node-rewards): correct the second reward reduction cohort - #11112
Conversation
The second reduction round was populated from the July 27 smoke test
alone rather than from the June 13 + July 27 pair, so it did not
implement the "failed two consecutive drills" rule it was meant to.
Two providers were affected:
* MI Servers replied within 24h in June and missed only July, so it
never missed two drills in a row. It was being reduced by 50% on
37 nodes. Removed.
* ParaFi Technologies NS LLC replied late in both June and July, and
a late reply counts as a failure. It was untouched. Added.
Round 2 stays at 18 providers and round 1 is unchanged. Both rounds now
match their stated rule when derived independently from the drill
results: 19 providers failed May 20 + June 13, and 18 failed June 13 +
July 27.
Editing an existing entry rather than appending a new one is admissible
only because no day of this round's window has been minted yet — the
2026-07-15..2026-08-15 reward period is still open — so nothing already
paid out is rewritten. Once a day in the window is minted a wrongly
included provider can no longer be made whole through this table, since
multipliers are constrained to (0, 1).
Adds a regression test pinning both principals. The existing membership
test only asserts round sizes (19/18/13), which a one-for-one swap
passes unchanged — which is how the original error went unnoticed.
Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Corrects the compiled-in “second reward reduction round” cohort for the node-rewards canister so it follows the “two consecutive incident-response drill misses” rule (June 13 + July 27, 2026), and adds a regression test to prevent a one-for-one provider swap from slipping through size-only assertions.
Changes:
- Updates the second-round provider principal set: removes MI Servers and adds ParaFi Technologies NS LLC.
- Expands the second-round documentation comment to explain the cohort rule and the reason this edit is safe pre-mint.
- Adds
second_round_follows_the_two_consecutive_misses_ruleto pin the two affected principals by inclusion/exclusion.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
"the two most recent incident-response smoke tests" describes the drill pair correctly today but silently becomes wrong once a fourth drill happens. The comment already names the dates, so anchor on those. Addresses review feedback on #11112. Co-Authored-By: Claude Opus 5 <[email protected]>
…-day rule The design notes said entries are "only ever APPENDED, never edited or removed — not even once their window has passed", and the previous commit then edited an existing entry and cited that note as its justification. The file stated a rule and broke it in the same breath. Restate the invariant as the property that actually makes editing unsafe: an entry must not change once any day in its window has been minted, because every query recomputes those days from the table in the running Wasm. Append-only follows from that in practice, since a window that has started is normally already partly minted, and the second round's correction is called out as the narrow exception it is rather than as a precedent. Also records the asymmetry that makes the timing matter: a wrongly included provider cannot be made whole once its days are minted, as multipliers are constrained to (0, 1) and no entry can raise rewards, whereas a wrongly omitted one can always be added later. The round 2 note drops the sentences that now duplicate the design notes.
`reward_reduction_round_membership_is_as_intended` only asserts round sizes (19 / 18 / 13-in-both), so a one-for-one swap passes it unchanged. That is exactly how MI Servers and ParaFi Technologies NS LLC were mis-assigned in the first place, and the test added alongside the fix pins only those two principals, so the next swap of any other pair would slip through in the same way. Pin both cohorts as literal arrays and assert set equality, so a cohort change has to appear in the diff. Each entry carries the two drill outcomes that put the provider in the round, which makes the list reviewable against the smoke test results rather than only against itself. The comparison goes through BTreeSet, so it does not depend on the order of either array.
|
Suggested addition to the PR description, since voters are likely to ask why the carry-over cohort is
I also pushed two commits from the same review pass:
On the cohort itself: I re-derived both rounds from the three drill result posts independently of the |
|
Added the "Duration for the 13 providers in both rounds" section to the PR description, verbatim — it sits just before "Verification against the rule". Agreed it's the question voters will ask first. Your two commits are pulled in; Both of your changes are improvements on what I had:
Our derivations also agree independently: round 1 matches the (May 20, June 13) pair at 19, round 2 after the fix matches the (June 13, July 27) pair at 18, and before the fix round 2 was exactly the July 27 "no reply" list. One scheduling note: the next node provider reward minting is due on or just after 2026-08-14 12:39 UTC — governance mints every 🤖 Addressed by Claude Code |
What
The second node provider reward reduction round (added in #10965 / proposal 143260) was populated from the July 27 smoke test alone rather than from the June 13 + July 27 pair, so it did not implement the "failed two consecutive drills" rule established by motion 142724.
Two providers were affected:
Round 2 stays at 18 providers. Round 1 is unchanged.
Why this is safe to edit rather than append
The table is append-only precisely because editing a past entry silently rewrites days that have already been minted. That does not apply here: round 2 starts 2026-08-01 and no day of its window has been minted yet — the 2026-07-15..2026-08-15 reward period is still open. Nothing already paid out is rewritten.
This is also why it is urgent. The next minting is due on or just after 2026-08-14 12:39 UTC (governance mints every
ONE_YEAR_SECONDS / 12= 30.4375 days; last mint was 2026-07-15 02:09 UTC perget_most_recent_monthly_node_provider_rewards). After that, MI Servers will have been paid at 50% for the first half of August and cannot be made whole through this table, because multipliers are constrained to(0, 1).Duration for the 13 providers in both rounds
The 13 providers in both rounds are reduced continuously from 2026-07-15 to 2026-11-01, so 3.5 months rather than three. That is the intended outcome, not an artefact of the overlap: they missed the May 20 + June 13 pair and then missed the June 13 + July 27 pair, and each pair of consecutive misses starts a fresh three-month clock. Round 1's window is therefore deliberately left as it is.
This settles the open question raised in #10965, which asked whether the first round's
endshould instead be shortened so those providers get three months in total. Under a restarting clock it should not, and shortening it would in any case rewrite days that have already been minted.Verification against the rule
Both rounds were re-derived from the drill results below, independently of the code, and now match it exactly:
Before this change, round 2 was instead exactly the 27 Jul "no reply" list.
Full smoke test tracking table
All 79 providers that were in the population for at least one drill. A late (>24h) reply counts as a failure, same as no reply.
✅ replied in 24h ·⚠️ late · ❌ no reply · – not in that drill's population · ● in that reduction round
Drill participation: #1 20 May 55/79 · #2 13 Jun 42/79 · #3 27 Jul 56/77.
Two providers left the population and are out of scope either way: Tomahawk (left the network; replied in time in both drills it was part of) and NOKU SA (no active nodes on 27 Jul).
Testing
Adds
second_round_follows_the_two_consecutive_misses_rule, which pins both principals by name. The existingreward_reduction_round_membership_is_as_intendedonly asserts round sizes (19/18/13) — a one-for-one swap passes it unchanged, which is exactly how the original error went unnoticed.cargo check -p ic-node-rewards-canister --lib— cleancargo fmt --check— clean--all-targetswith the repo's deny-set — cleanbazel build //rs/node_rewards/canister:{nrc,nrc-test}— cleanbazel teston all 5 affected targets — 5/5 pass, 36/36 tests innrc_test🤖 Generated with Claude Code