Canonicalize manual credit GitHub worker aliases#215
Conversation
|
Maintenance note: I checked the failing Backend build and test job on this PR. The failure is the shared base/toolchain govulncheck issue from backend/go.mod using Go 1.25.10, not this PR's local test suite. govulncheck reports standard-library issues GO-2026-5039 and GO-2026-5037 fixed in Go 1.25.11 before project tests run. I opened #218 to bump backend/go.mod to Go 1.25.11. #218 is now green across Backend build and test, Secret scan, frontend/admin/scan web checks, and MergeIDE. After that toolchain patch lands and this PR is updated against it, the backend check should no longer fail on the Go 1.25.10 standard-library findings. |
|
Findings Bounty Readiness MergeOS automated readiness signals:
|
Verification Report — PR #215Verifier: friendlygeorge PR Details
What the PR DoesAdds alias canonicalization for
Code Review
Test ResultsFull backend test suite: GitHub Actions StatusNot checked (same pre-existing toolchain issue as other PRs). Local tests pass cleanly. Evidence Status
Recommendation✅ Approve — Clean alias canonicalization fix. Prevents double-prefixed accounts. Well-tested. No risks. |
Claim
Description
Manual credit and payout-account resolution could treat
worker:github:<name>as a distinct account instead of the canonicalgithub:<name>payout alias.This PR canonicalizes the worker GitHub alias before manual-credit storage and lower-level payout account resolution, preventing double-prefixed account identities.
Evidence
Before:
worker:github:<name>could create or reference a separate/double-prefixed account path instead of the canonicalgithub:<name>alias.After:
worker:github:<name>resolves togithub:<name>for manual credit input and payout account resolution without changing reward amounts or crediting any wallet.Additional logs or test output:
go test ./internal/core -run 'TestManualCreditWorkerGitHubAliasUsesCanonicalPayoutAccount|TestAdminCanCreateManualLedgerCredit'->ok mergeos/backend/internal/core 0.448sgovulncheckbaseline; Bump backend Go patch version #218 updates the backend Go patch version and is green. Secret scan, web checks, and MergeIDE are passing on this PR.Safety
Tests
Bounty Checklist