Skip to content

MRWK bounty: code health and app.main expansion readiness #320

@ramimbo

Description

@ramimbo

MRWK Bounty

Reward: 200 MRWK per accepted award
Max awards: 4

Work Needed

Keep MergeWork small, secure, testable, and easy to expand while many agents are contributing. The priority target is app/main.py, which currently carries route wiring, template rendering, MCP dispatch, OAuth/session handling, admin flows, and public helper logic.

Useful accepted work can include:

  • Extract a coherent subsystem from app/main.py into focused modules without changing public behavior. Good targets include MCP dispatch, admin routes, OAuth/session routes, or activity/bounty view helpers.
  • Consolidate duplicated validation, parsing, response-shaping, or link-building logic behind a clear helper with focused tests.
  • Improve module boundaries so ledger, wallet, webhook, admin, public API, and MCP behavior are easier to review independently.
  • Add regression tests that lock down behavior before and after the refactor.
  • Remove genuinely dead or redundant code only with evidence that it is unused.

Acceptance Criteria

  • Open a focused PR that links this issue with Bounty #<issue number> or Refs #<issue number>.
  • Explain the concrete complexity reduced and why the new boundary is easier to maintain.
  • Preserve public API, MCP, ledger, wallet, webhook, admin, and page behavior unless the PR fixes a documented bug.
  • Include targeted tests for the moved or consolidated behavior.
  • Avoid broad rewrites, formatting-only changes, line-ending churn, import-only churn, or unrelated style edits.
  • Keep the PR small enough to review. A coherent extraction is preferred over a large architecture rewrite.
  • Existing checks pass.
  • One award per distinct useful accepted code-health improvement. Tiny helper moves, cosmetic renames, duplicate extractions, or unrelated cleanup do not qualify.
  • Do not post private keys, seed material, secrets, private vulnerability details, deployment credentials, or price claims.

How To Submit

Open a focused PR with the required evidence. A maintainer must apply mrwk:accepted or record an admin payout before payment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededmrwk:bountyMRWK bounty is postedmrwk:paidLedger payment recordedtestsTest coverage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions