Eval farm has no HTTP surface: add register_eval_routes #39
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Outcome
The eval-farm product is reachable over the network. ARCHITECTURE.md describes
it as one of the two front-ends the billing core exists to serve, but
intake_eval.pyexposes zero routes -- verified onmain, whileintake_factory.pyhas five. Right now one of the two products cannot be usedby anything except a Python caller inside the process.
Scope
register_eval_routes(app, ...)mirroring the factory's shape, so the twofront-ends are symmetrical and a client integrates with one mental model:
POST /api/eval/batches-- submit a batch, returns batch id. Funding-gatedexactly like factory intake: unfunded work never becomes a Gitea issue, it
queues locally.
GET /api/eval/batches/<id>-- status + per-task state.GET /api/eval/batches/<id>/results-- the results table.POST /api/eval/batches/<id>/cancel-- stop draining; release held funds.GET /api/eval/health.Auth via
auth.pyonly -- theX-API-Keyconsolidation from #24 is done, sothere is exactly one implementation. Do not add a sixth.
Files this issue owns
gitea_saas/intake_eval.py,tests/test_intake_eval.py.Do not edit
app.py-- registration is wired there by the assembly issue. Exportregister_eval_routesand it will be picked up.Acceptance
unconfigured key (503).
row; funding then flushes it. Assert on both halves.