Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-review-classifier/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 2c5eef73cd review classifier: model, effort and review concurrency as swarm-wide settings
The classifier ran every classification on a hard-coded `haiku` with no
`--effort`, and the controller ran at most two requested reviews at once,
also hard-coded, so changing any of them took a code change and a
redeploy.

swarm-controller now keeps one settings document,
`{model, effort, max_concurrent_reviews}`, in its own
`review-classifier-settings` KV bucket under `all`, the way it keeps the
schedule definitions. No document means today's values: haiku, no
`--effort`, two reviews. `GET /api/review-classifier/settings` reads it;
`PUT` replaces it whole, needs the gateway's `Remote-User` like the
try-out POST, and refuses a bad model (the inference route's check), an
effort outside the five levels or a limit outside 1..=8 with
problem+json 400.

Every run request (try-out and requested review) now carries the model
and effort, and the classifier passes them to claude instead of its
constant, which is gone. A try-out reads the settings when it is posted;
a review reads them for the limit before it waits for a place and again
for the model and effort once it has one. The review semaphore is
replaced by a running count under a resizable limit, so a PUT, or the
next review's read, changes how many run without a restart, and a lower
limit lets the runs already going finish. MAX_WAITING_REVIEWS is
unchanged.

Closes #5151, part of #5096.
2026-10-13 01:45:19 +02:00
..
aggregate.rs swarm-review-classifier: answer a try-out with one claude run per classification 2026-10-12 13:11:21 +02:00
answer.rs swarm-review-classifier: answer a try-out with one claude run per classification 2026-10-12 13:11:21 +02:00
child_env.rs swarm-review-classifier: claude's environment is an allowlist, not the daemon's 2026-10-12 13:11:21 +02:00
main.rs swarm-review-classifier: claude's environment is an allowlist, not the daemon's 2026-10-12 13:11:21 +02:00
prompt.rs review classifier: model, effort and review concurrency as swarm-wide settings 2026-10-13 01:45:19 +02:00
run.rs review classifier: model, effort and review concurrency as swarm-wide settings 2026-10-13 01:45:19 +02:00