Code RoomAutonomous agent CI cost
MediumPrep Room Coding #4175

Autonomous agent CI cost

Vibe & agenticAlgorithms & data structuresMid–Senior~16 min

You wired an autonomous AI agent into CI: on every failing test it reads the repo, forms a hypothesis, edits code, re-runs the full suite, and loops until green or 10 iterations. It works, but the platform team flags that CI cost tripled and median PR feedback time went from 4 to 19 minutes, because the agent burns tokens and re-runs the whole 12-minute suite each loop. How do you decide whether to keep this, and how would you reshape it?

Implement
ci_agent_loop_minutes(full_suite_minutes: float, failing_subset_minutes: float, iterations_needed: int, max_iterations: int, rerun_full_suite_each_loop: bool, triage_says_fixable: bool) → float
Examples
in[12,1.5,10,10,true,true]out120
in[12,1.5,3,4,false,true]out16.5
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 16 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.