refactor: consolidate eval routes into cforch.py #44

Closed
opened 2026-05-01 12:12:01 -07:00 by pyr0ball · 1 comment
Owner

Context

Four separate FastAPI route modules (style.py, plans_bench.py, voice.py, plus classifier routes in api.py) each have their own model-loading and reporting logic. All benchmarks should route through cf-orch so they exercise real end-user paths.

Work

  • Absorb routes from app/style.py, app/plans_bench.py, app/voice.py into app/eval/cforch.py
  • Remove direct model calls; all benchmarks go through cf-orch allocate → run → release
  • Standalone CLI scripts (benchmark_style.py, benchmark_voice.py, etc.) survive as manage.sh commands — only their API routes are absorbed
  • Remove now-empty style.py, plans_bench.py, voice.py app modules

Acceptance

  • ./manage.sh style-bench, voice-bench, plans-bench still work
  • All benchmark results available via /api/eval/* routes
  • No direct model connections from avocet API layer
## Context Four separate FastAPI route modules (`style.py`, `plans_bench.py`, `voice.py`, plus classifier routes in `api.py`) each have their own model-loading and reporting logic. All benchmarks should route through cf-orch so they exercise real end-user paths. ## Work - Absorb routes from `app/style.py`, `app/plans_bench.py`, `app/voice.py` into `app/eval/cforch.py` - Remove direct model calls; all benchmarks go through cf-orch allocate → run → release - Standalone CLI scripts (`benchmark_style.py`, `benchmark_voice.py`, etc.) survive as `manage.sh` commands — only their API routes are absorbed - Remove now-empty `style.py`, `plans_bench.py`, `voice.py` app modules ## Acceptance - `./manage.sh style-bench`, `voice-bench`, `plans-bench` still work - All benchmark results available via `/api/eval/*` routes - No direct model connections from avocet API layer
pyr0ball added this to the v2 — Pipeline Architecture milestone 2026-05-01 12:12:01 -07:00
pyr0ball added the
backend
reorg
labels 2026-05-01 12:12:01 -07:00
Author
Owner

Shipped in the Apr 19–May 4 sprint. Eval benchmark routers consolidated into app/eval/cforch.py.

Shipped in the Apr 19–May 4 sprint. Eval benchmark routers consolidated into app/eval/cforch.py.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Circuit-Forge/avocet#44
No description provided.