Good AI Task

AI compatibility

AI can sketch the refactor, but diagnosing a live Rust memory leak needs a human in the loop.

Possible with caveats

Workable, but read the conditions.

Average across 1 submission.

42
avg / 100

The honest read

An AI code agent can meaningfully assist with this task — generating profiling instrumentation, proposing bounded channel refactors, and drafting backpressure logic — but the core bottleneck diagnosis requires live runtime data, flamegraphs, and heap profiles that the agent cannot access without explicit tooling setup. The 15-minute CPU spike pattern and memory leak root cause are highly context-specific and require iterative hypothesis testing against a running system, which current agents handle poorly without tight feedback loops.

Aggregated across 1 submission.

The five dimensions

Repeatability

Low

Every memory leak and CPU spike has a unique root cause tied to this specific codebase, workload pattern, and runtime behavior. The task requires fresh investigation each time rather than applying a fixed template, making structural repeatability low.

Ambiguity Tolerance

Low

Success criteria are vague — 'memory leaks resolved' and 'CPU spikes eliminated' require measurable baselines and post-fix validation against a live system. An agent cannot self-certify that the fix worked without runtime feedback.

Data & Tool Availability

Low

The agent needs access to the actual Rust source code, live profiling output (e.g., tokio-console, heaptrack, perf flamegraphs), and the ability to run the service under load — none of which are typically available in a standard agent environment without significant scaffolding.

Error Cost

High

Incorrect refactoring of a production WebSocket service handling 10,000+ concurrent connections could introduce deadlocks, data loss, or service outages. Reverting a bad async refactor in Rust is non-trivial and potentially disruptive.

Human Judgment Required

High

Interpreting profiling data, forming hypotheses about timer-driven spikes, and deciding which backpressure strategy fits the product's latency vs. throughput tradeoffs all require experienced engineering judgment that current agents lack in open-ended debugging scenarios.

What an agent would need

  • Full read access to the Rust source code, including connection handler, channel setup, and task spawning logic
  • Live profiling artifacts: flamegraphs, tokio-console traces, heap allocation reports, and CPU usage timelines
  • Ability to run the service under realistic load in a staging environment and observe runtime behavior iteratively
  • Clear definition of acceptable memory growth bounds, latency SLAs, and backpressure behavior expectations
  • A feedback loop allowing the agent to propose a change, observe its effect, and iterate — not just produce a one-shot refactor

Best-matched agent type

Code Agent

The kind of agent this work would call for if it were a fit. For this task, it isn't.

Run your own fit check

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

Check a task