Skip to content

fix(node-rewards): correct the second reward reduction cohort - #11112

Merged
pietrodimarco-dfinity merged 4 commits into
masterfrom
claude/incident-response-times-314d9b
Aug 12, 2026
Merged

pietrodimarco-dfinity merged 4 commits into
masterfrom
claude/incident-response-times-314d9b

Conversation

@pietrodimarco-dfinity

@pietrodimarco-dfinity pietrodimarco-dfinity commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

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:

Provider Jun 13 Jul 27 Was Should be Why
MI Servers (37 nodes) ✅ in 24h ❌ no reply in round 2 out Replied in time in June — never missed two in a row
ParaFi Technologies NS LLC (37 nodes) ⚠️ late ⚠️ late absent in Late in both, and a late reply counts as a failure

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 per get_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 end should 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:

  • Round 1 = failed 20 May and 13 Jun → 19 providers ✅ matches
  • Round 2 = failed 13 Jun and 27 Jul → 18 providers ✅ matches

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

Node provider 20 May 13 Jun 27 Jul R1 R2 Nodes
100 Count Holdings, LLC ⚠️ ⚠️ ❌ ● ● 28
43rd Big Idea Films ❌ ❌ ❌ ● ● 14
87m Neuron, LLC ⚠️ ❌ ✅ ● 42
ACCUSET SOLUTIONS ✅ ❌ ❌ ● 10
achermann.swiss ✅ ❌ ✅ 1
Aitubi AG ✅ ✅ ✅ 1
Allusion ✅ ✅ ✅ 37
AlpineDC SA ✅ ⚠️ ✅ 1
Anonstake ✅ ❌ ❌ ● 16
ANTHONY ISAAKIDIS ✅ ✅ ✅ 23
ANYPOINT PTY LTD ✅ ❌ ✅ 10
Arceau NP LLC ❌ ❌ ❌ ● ● 23
Artem Horodyskyi ✅ ✅ ✅ 7
Avalution AG ✅ ❌ ✅ 1
Bianca-Martina Rohner ✅ ✅ ✅ 4
Bigger Capital ✅ ✅ ✅ 28
Bitmoon ❌ ❌ ❌ ● ● 3
Blockchain Development Labs ✅ ✅ ✅ 42
Blockchain Innovation Group ✅ ✅ ✅ 1
BlockFinance ✅ ✅ ✅ 9
BlockTech Ventures, LLC ❌ ❌ ❌ ● ● 28
BLP22, LLC ⚠️ ❌ ❌ ● ● 14
Blue Ant LLC ❌ ✅ ⚠️ 37
Conic Ventures ❌ ❌ ✅ ● 4
CoreLedger ✅ ❌ ✅ 1
Decentralized ✅ ❌ ✅ 1
Decentralized Entities Foundation ❌ ❌ ❌ ● ● 17
Extragone SA ❌ ❌ ❌ ● ● 37
Fractal Labs AG ✅ ✅ ✅ 37
Geeta Kalwani ✅ ✅ ✅ 4
Geodd Pvt Ltd ✅ ✅ ✅ 6
GeoNodes LLC ✅ ✅ ✅ 16
George Bassadone ✅ ✅ ✅ 25
Giant Leaf, LLC ❌ ✅ ✅ 37
Honeycomb Capital (Pty) Ltd ✅ ✅ ✅ 12
Iancu Aurel ❌ ❌ ❌ ● ● 28
Icaria Systems Pty Ltd ✅ ✅ ✅ 18
Illusions In Art (Pty) Ltd ✅ ✅ ✅ 6
InfoObjects ❌ ❌ ❌ ● ● 4
Ivanov Oleksandr ✅ ✅ ✅ 7
Karel Frank ✅ ✅ ✅ 18
Kontrapunt (Pty) Ltd ✅ ✅ ✅ 6
Krishna Enterprises ✅ ⚠️ ✅ 15
LTIN AG ✅ ✅ ✅ 1
Lukas Helebrandt ✅ ✅ ✅ 6
Maksym Ishchenko ✅ ✅ ✅ 7
Mariano Stoll ✅ ✅ ✅ 4
Marvelous Web3 ✅ ❌ ✅ 14
MB Patrankos šūvis ✅ ✅ ✅ 10
MI Servers ← removed ✅ ✅ ❌ 37
Neptune Partners ❌ ❌ ❌ ● ● 25
NODAO ✅ ✅ ✅ 37
NOKU SA ✅ ❌ – 1
NoviSystems, LLC ✅ ✅ ✅ 3
OneSixtyTwo Digital Capital ✅ ✅ ✅ 42
Origin Game ⚠️ ✅ ✅ 7
ParaFi Technologies NS LLC ← added ✅ ⚠️ ⚠️ ● 37
Pindar Technology Limited ❌ ❌ ✅ ● 36
Power Meta Corporation ❌ ❌ ✅ ● 5
Privoxy Solutions, LLC ✅ ✅ ✅ 3
Protocol16 ✅ ✅ ✅ 23
Reist Telecom AG ✅ ❌ ❌ ● 23
Rivram Inc ✅ ⚠️ ✅ 13
senseLAN ✅ ✅ ✅ 1
SolNet ✅ ⚠️ ✅ 1
Starbase ✅ ❌ ❌ ● 38
Swiss Datalink AG ✅ ❌ ✅ 1
Sygnum Bank ✅ ✅ ✅ 37
Tomahawk ✅ ✅ – —
Uvaca Labs LLC ⚠️ ✅ ⚠️ 23
vestra ICT AG ✅ ❌ ✅ 1
Virtual Hive Ltd ✅ ✅ ✅ 23
Vladyslav Popov ✅ ✅ ✅ 14
Wancloud limited ⚠️ ⚠️ ✅ ● 10
Web3game ⚠️ ✅ ✅ 17
Wolkboer (Pty) Ltd ✅ ✅ ✅ 6
Zarety LLC ❌ ❌ ❌ ● ● 37
Zenith Code LLC ❌ ❌ ✅ ● 2
Zondax AG ❌ ❌ ❌ ● ● 2

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 existing reward_reduction_round_membership_is_as_intended only 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 — clean
  • cargo fmt --check — clean
  • clippy --all-targets with the repo's deny-set — clean
  • bazel build //rs/node_rewards/canister:{nrc,nrc-test} — clean
  • bazel test on all 5 affected targets — 5/5 pass, 36/36 tests in nrc_test

🤖 Generated with Claude Code

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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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_rule to 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.

pietrodimarco-dfinity and others added 3 commits August 12, 2026 10:10
"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.
@bjoernek

Copy link
Copy Markdown
Contributor

Suggested addition to the PR description, since voters are likely to ask why the carry-over cohort is
reduced for longer than three months:

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 end should
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.

I also pushed two commits from the same review pass:

  • docs(node-rewards): state the reduction table invariant as the minted-day rule — the design notes
    said entries are "only ever APPENDED, never edited or removed", and this PR edits one while citing
    that note as justification. Restated as the property that actually makes editing unsafe (no entry
    may change once any day in its window has been minted), with append-only as the practical
    consequence and this correction called out as the narrow exception rather than a precedent. Also
    records that a wrongly included provider cannot be made whole once its days are minted, since
    multipliers are constrained to (0, 1), whereas a wrongly omitted one can always be added later.

  • test(node-rewards): pin both reward reduction cohorts by principal — the existing membership test
    is count-based (19 / 18 / 13-in-both), so a one-for-one swap passes it unchanged, which is how these
    two providers were mis-assigned in the first place; and the new test pins only those two principals,
    so the next swap of a different pair would slip through the same way. Both cohorts are now pinned as
    literal arrays compared via BTreeSet, with each entry carrying the two drill outcomes that put the
    provider in that round.

On the cohort itself: I re-derived both rounds from the three drill result posts independently of the
code. Round 1 matches the (May 20, June 13) pair exactly at 19, and round 2 after this fix matches the
(June 13, July 27) pair exactly at 18. Before the fix, round 2 was precisely the July 27 "no reply"
list, so the swap of MI Servers for ParaFi Technologies NS LLC is the whole delta.

@pietrodimarco-dfinity

Copy link
Copy Markdown
Contributor Author

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; cargo fmt --check, clippy --all-targets with the repo's deny-set, and bazel test //rs/node_rewards/canister:{nrc_test,main_test} all pass on the combined state.

Both of your changes are improvements on what I had:

  • The minted-day restatement is the better framing. I had written the invariant as "append-only, and here is why this edit is an exception", which puts the exception in tension with the rule. Stating the property that actually makes editing unsafe, with append-only as its practical consequence, means the exception falls out of the rule instead of arguing against it.
  • The cohort pinning closes a real hole in my test. second_round_follows_the_two_consecutive_misses_rule only pins MI Servers and ParaFi, so it catches a regression on exactly this pair and nothing else — the next mis-assignment of a different pair would pass it, which is the same failure mode as the count-based assertions. Pinning both cohorts as literal arrays is the right level.

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 ONE_YEAR_SECONDS / 12 (30.4375 days) and the last mint was 2026-07-15 02:09 UTC per get_most_recent_monthly_node_provider_rewards. The edit-in-place exception this PR relies on closes at that moment, so the upgrade proposal needs to be executed before it.

🤖 Addressed by Claude Code

@pietrodimarco-dfinity
pietrodimarco-dfinity marked this pull request as ready for review August 12, 2026 11:58
@pietrodimarco-dfinity
pietrodimarco-dfinity requested a review from a team as a code owner August 12, 2026 11:58
@github-actions github-actions Bot added the @dre label Aug 12, 2026
@pietrodimarco-dfinity
pietrodimarco-dfinity added this pull request to the merge queue Aug 12, 2026
Merged via the queue into master with commit 43b7386 Aug 12, 2026
44 checks passed
@pietrodimarco-dfinity
pietrodimarco-dfinity deleted the claude/incident-response-times-314d9b branch August 12, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants