Skip to content

Let the privacy profiles set the project donation route #3707

Open

Description

@pithead-developer

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 as xvb.tor. An explicit donation.tor in config.json overrides 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.tor as 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.tor is governed by the profile; donation.enabled and donation.percent are 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) asserts DONATION_TOR_ENABLED for each of the three positions (false, true, true) and that an explicit donation.tor wins.
  • The profile preview rows in the host describe_change text name the donation route under Performance, and make lint-operator-strings passes (no issue number or bare docs/ 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.tor as profile-governed and donation.enabled and donation.percent as Advanced; the Essentials count is unchanged.
  • docs/privacy.md and docs/donation.md ({{A5}}) state the donation follows the profile.
  • make test, make test-patch-coverage (90 % of changed lines) and make lint-file-budget pass 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.tor independent 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

  1. added this to the v2.1.0 milestone on Oct 27, 2026
  2. added
    enhancement
    setup
    on Oct 27, 2026
  3. added
    blocked
    on Oct 27, 2026
  4. removed
    blocked
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsetup

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions