Skip to content

Enable reputation accounting for workers by job type#3888

Open
portuu3 wants to merge 2 commits intodevelopfrom
workers-reputation
Open

Enable reputation accounting for workers by job type#3888
portuu3 wants to merge 2 commits intodevelopfrom
workers-reputation

Conversation

@portuu3
Copy link
Copy Markdown
Collaborator

@portuu3 portuu3 commented May 5, 2026

Issue tracking

Closes #3887

Context behind the change

This pull request introduces support for tracking and querying reputation by job request type in the reputation-oracle service. The changes update the reputation schema, API, and service logic to include a new jobRequestType field, allowing more granular reputation management based on the type of job completed. The migration, entity, repository, DTOs, and related service logic and tests have all been updated accordingly.

Database and Entity Changes:

  • Added a new job_request_type column to the reputation table, updated the unique index to include this column, and provided a migration for these changes.
  • Updated ReputationEntity to include the new jobRequestType field, set its default, and modified the unique index to include it.

API and DTO Changes:

  • Extended the reputation API to support filtering by jobRequestTypes and included this field in both request and response DTOs.

Repository and Query Logic:

  • Fixed the ReputationRepository to support case-insensitive address matching and filtering by jobRequestTypes in queries.

Service and Business Logic Updates:

  • Modified EscrowCompletionService to determine and pass the correct jobRequestType when assessing and increasing reputation for payout recipients, including new helper methods for extracting this information from escrow/manifests.

Test and Fixture Updates:

  • Updated tests and fixtures to account for the new jobRequestType field, ensuring all reputation-related logic and assertions include this parameter.

How has this been tested?

Staging

Release plan

Automatic migration run

Potential risks; What to monitor; Rollback plan

Since most of the jobs in production so far have been "image_skeletons_from_boxes" jobs, the current score of oracles will be assigned to it

@portuu3 portuu3 self-assigned this May 5, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

5 Skipped Deployments
Project Deployment Actions Updated (UTC)
faucet-frontend Ignored Ignored May 5, 2026 2:15pm
faucet-server Ignored Ignored May 5, 2026 2:15pm
human-app Skipped Skipped May 5, 2026 2:15pm
human-dashboard-frontend Skipped Skipped May 5, 2026 2:15pm
staking-dashboard Skipped Skipped May 5, 2026 2:15pm

Request Review

@portuu3 portuu3 requested a review from flopez7 May 5, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Reputation Oracle] Reputation tracking for workers

1 participant