electric-fix-classify-admission-control
## Task We've had reports of the sync service having problems throttling under load. The first problem we've seen is whenever a stack is redeployed or restarted, the clients that reconnect to shapes they were already subscribed to start getting `503` "concurrent request limit exceeded" responses in large numbers, but these reconnections are supposed to be cheap. The second problem seems to be with the safeguard that is meant to cap how many new shape subscriptions can be set up at once doesn't always hold. Some requests that really do spin up a new subscription manage to slip past the cap. Can you look into these and implement a fix? ## General instructions - The code repo is at /repo/electric. - You are inside of a Docker container. You may not be able to perform all operations you would normally be able to do on a local machine. Dependencies have not been pre-installed, and you may need to install them yourself. - You are expected to act autonomously as a software engineer to complete tasks you are given. - Do not stop until you feel you have completed the task and your code changes can be merged. - You may need to use software engineering skills like analyzing the codebase, researching technologies, running services, analyzing logs, etc. to complete the task. Not all tasks will be solvable by reading source code alone.
Agent Results
Agent details
Verifier Tests
Claude Fable 55/5
Rubric Criteria
Claude Fable 53/4
Fail → Pass
root_cause_identified
Pass → Pass
no_request_handle_mutation
ets_startup_race_resilience
permit_released_all_paths
Taste Scores
Patch Bloat— 0.3x
82 agent / 264 oracle SLOC, 5 / 1 files(raw: 0.8x)
Practice Alignment — 3.5/5
3.5
style consistency2.5
pattern adherence4
library usage3
abstraction level3.5
documentation fitRelative Taste — 2.5/5
2.5
minimality2.5
approach quality3
hygiene3
fluency2.5
craftsmanship