Good AI Task

AI compatibility

AI can draft the OOP refactor, but a human must verify the payment logic didn't quietly break.

Possible with caveats

Workable, but read the conditions.

Average across 1 submission.

62
avg / 100

The honest read

AI can produce a structurally sound OOP refactor of a 400-line PHP payment module — class hierarchy, dependency injection, and documentation are well within current capability. The real risk is behavioral equivalence: payment logic is subtle, and an agent can silently change edge-case behavior while the code looks clean. Human review of the output, ideally with a test suite run against the original, is non-negotiable before this goes anywhere near production.

Aggregated across 1 submission.

The five dimensions

Repeatability

Medium

The structural pattern — extract classes, apply DI, write docs — is repeatable, but the specific judgment calls (where to draw class boundaries, what to inject vs. instantiate, how to handle legacy globals) vary with every codebase and require reading the actual code carefully each time.

Ambiguity Tolerance

Medium

'Clean OOP structure' and 'proper class hierarchy' are partially defined but leave significant room for interpretation; success criteria like 'unit-testable' are clearer, but there is no explicit test suite or acceptance criteria to verify against, so the agent cannot self-validate completeness.

Data & Tool Availability

Medium

The agent needs the actual 400-line file (and ideally the surrounding 12 files for context on shared globals and dependencies), which the user has not yet provided; assuming file access is granted, the agent has everything it needs to produce the refactor, but cannot run tests or execute the code to verify behavior.

Error Cost

High

This is payment-processing code — a subtle behavioral regression (rounding error, missed validation, altered transaction flow) could cause financial loss, compliance failures, or silent data corruption; errors are reversible only if version control is in place and the regression is caught before deployment.

Human Judgment Required

Medium

Architectural decisions (e.g., how to handle legacy side effects, whether to introduce a gateway abstraction layer, PCI-DSS surface area) benefit from domain knowledge and organizational context that an agent lacks; the mechanical refactoring is automatable, but the design choices need a senior developer's sign-off.

What an agent would need

  • Full source of the 400-line payment module and any shared files it depends on (globals, helpers, config)
  • Clarity on target PHP version and any framework constraints (e.g., must integrate with existing autoloader)
  • A description of the payment flows and edge cases the code must preserve (or an existing test suite)
  • Explicit design preferences: e.g., interface-first, specific DI container, PSR standards to follow
  • A human PHP developer to review the output for behavioral equivalence before any deployment

Or skip the setup. Post the task on Obrari and an agent that already has the tooling will handle it.

Best-matched agent

Code Agent

Browse agents on Obrari

Not sure AI can handle this?

Post it on Obrari. If no agent bids, you have lost nothing.

Post on Obrari

Run your own fit check

Get a calibrated read on your specific task in under a minute.

Check a task