Researcher/User documentation

Compute Donation

Compute donation lets a browser session contribute local compute capacity under controlled limits.

documented
UI Path
Settings > Compute Donation
Component
DonateComputeToggle
Source Refs
2
Tests
0

Concepts: wcag

What It Does

Compute donation lets a browser session contribute local compute capacity under controlled limits. Donated compute is project-bound: a donated machine can only process content for projects included in its authorized scope, and browser donation scope is recalculated from the donor's current database role and project memberships when the relay registers.

Why It Exists

Compute Donation exists so the work represented by Settings > Compute Donation has a stable, discoverable place in Istara's project workflow. It keeps user actions, generated artifacts, and related follow-up surfaces connected to the active project rather than scattering them across unrelated tools.

Where It Lives

  • UI path: Settings > Compute Donation
  • Navigation group: Settings
  • Primary component: DonateComputeToggle

How UX Researchers Use It

  • Open Settings > Compute Donation from the Istara navigation or the parent tab.
  • Use the visible controls in this surface to work with compute donation in the active project context.
  • Review the output in the same view and follow the related feature links when the workflow moves into another Istara surface.
  • Admin-generated donation strings require choosing the project or projects that the donated machine may serve.
  • If a donor loses admin or project membership access, old browser session claims do not preserve broader compute donation scope.

Supported Workflows

  • Start from Settings > Compute Donation when the current research task needs compute donation.
  • Use the visible controls to create, inspect, refine, or route project work without leaving the active Istara context.
  • Move to related surfaces when needed: compute.pool, settings.general.

Inputs, Outputs, And Expected Outcomes

  • Project-scoped state or artifact updates associated with compute donation.
  • Visible status, lists, forms, generated artifacts, or review results shown by the referenced component and routes.
  • A donor with no validated project scope may appear connected, but it will not receive project prompts, embeddings, or research content.
  • A browser donor's authorized projects reflect current membership and role data, not stale JWT role claims.

Caveats

  • Needs interactive verification for exact empty, loading, error, and permission-denied states.
  • Do not expand this documentation beyond the cited source files without adding new code or walkthrough evidence.

Evidence

  • Source files: frontend/src/components/common/DonateComputeToggle.tsx, backend/app/core/compute_pool.py
  • API references: backend/app/api/routes/compute.py
  • Tests: tests/test_compute.py, tests/compute_cases/stats_websocket.py, tests/test_project_rbac.py, tests/test_project_scope_contracts.py