Repository navigation
Description
What's the problem
Part of #2476. Owner priority (2026-10-27): build the opt-in donation feature now, shipping dark. The Performance / Balance / Privacy profile (#3574) sets the privacy keys together, and its contract table already governs xvb.tor: Performance false, Balance true, Privacy true. Ruling 2 defines Performance as "no Tor on anything". A donation route that ignores the profile would be the one route that stays on Tor under Performance (or off Tor under Privacy, if the key were left at an independent default), which contradicts the spec the profile preview sentences are written from (#3566 section F: Performance "No Tor on anything", Balance "Everything leaves through Tor").
When the profile work lands, add the donation route to it:
- A row
donation.tor: Performance false, Balance true, Privacy true, in the same table, resolver and effective-config path asxvb.tor. An explicitdonation.torinconfig.jsonoverrides the profile, as for every governed key. - The Performance preview sentence names the optional project donation if it is on ("the project donation connects directly"); the Privacy and Balance sentences stay true without change.
- The migration (Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576 step 1) treats an explicit
donation.toras one of the governed values when it infers the profile, and pins a differing effective value. - Classification (Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576):
donation.toris governed by the profile;donation.enabledanddonation.percentare Advanced. None is one of the Essentials, so the visible-key count does not change.
What it impacts
Every profile change and every 2.0.0 migration that carries a donation block (none exists before this feature). With the feature unavailable nothing is visible. With Performance and the firewall off the direct route needs no firewall exception; the combination "Performance profile, explicit firewall on, donation direct" needs the firewall choice ({{A9b}}).
How I found it
Read-only scan of origin/develop-v2.1.0 at 02852bd on 2026-10-27 from #3574 (table and acceptance), #3576 (classification and migration step 1) and #3566 section F, and of the draft PR #3632, which carries the profile code and is not yet mergeable. Nothing was executed. Unknown: the file and function names the profile resolver ends up with (#3632 is unmerged and conflicting), so the change points are named by role here and by path in the PR.
How important is it
Medium. Without it Performance and Privacy do not mean what the UI says for the one route that moves hashpower. It cannot start before the profile merges.
Acceptance criteria
- The profile test fragment added by Add a Performance / Balance / Privacy profile that sets the privacy keys together #3574 (
tests/stack/config/profile.sh) assertsDONATION_TOR_ENABLEDfor each of the three positions (false, true, true) and that an explicitdonation.torwins. - The profile preview rows in the host
describe_changetext name the donation route under Performance, andmake lint-operator-stringspasses (no issue number or baredocs/path in the sentence). - The Cut the visible config keys to the Essentials and migrate 2.0.0 configs safely #3576 migration test set has a 2.0.0 config with an explicit
donation.tor: the inferred profile counts it and the effective value is pinned when it differs. - The defaults-table key classification test lists
donation.toras profile-governed anddonation.enabledanddonation.percentas Advanced; the Essentials count is unchanged. docs/privacy.mdanddocs/donation.md({{A5}}) state the donation follows the profile.make test,make test-patch-coverage(90 % of changed lines) andmake lint-file-budgetpass with no ceiling raised. No new explanatory code comments.
Possible solutions
- Add the row to the profile table and let the resolver do the rest (recommended: same mechanism as
xvb.tor). - Leave
donation.torindependent of the profile: simpler, and the one route that ignores the headline control. - Make the donation always Tor and drop the key: removes the firewall child and this one; needs the owner's routing ruling.
Part of #2476. Depends on {{A1}} and on #3574 closing; soft dependency on {{A9b}}.
Activity