Coach: ein API-Key gilt fuer die ganze Instanz, Warm-ups zaehlen nicht, Retries bei 429/5xx, sichtbare Admin-Felder
- Instanz-Modus: nur eine persoenliche Anmeldung (Setup-Token/OAuth) bindet sich an das erste Profil, ein API-Key ist gemessen und wird von allen Profilen unter den Tageslimits geteilt. Die Bindung passiert jetzt wirklich beim Einreihen eines Jobs (jobs.enqueue), vorher gab es sie nur in den Tests. - HTTP-Adapter: 429/500/502/503/504/529 werden zweimal mit kurzer Pause wiederholt, ein 4xx nie. retryDelayMs fuer Tests. - Payload: Warm-up-Saetze wie in progression.js aus readSession/stalls, done/planned, Top-Satz, setsByBodyPart und workingWeights herausgefiltert; in vollen Sessions als warmup:true markiert, common.md sagt dem Modell, was das ist. - Admin-Karte: .field im Card hat jetzt eine sichtbare Flaeche, die Limit-Zahlenfelder sind echte Felder statt weisser Browser-Boxen; Text zu 'Whose account pays' unterscheidet API-Key und persoenliche Anmeldung. - Neuer Test e2e-apikey: Key ueber die Admin-Routen einlegen, Modelle listen, Review durch die echte Queue gegen einen lokalen Anthropic/OpenAI/Gemini-Stand-in, inkl. Header, Cache-Block, Schema, Retry und Auth-Fehler. api 150, frontend 1029, mcp 45 gruen.
This commit is contained in:
1 parent
63cf1deaed
commit
02c75b320d
14 files changed
+311
-35
No files matched your search
@@ -4,6 +4,26 @@
|
||||
|
||||
### AI Coach
|
||||
|
||||
- 🔑 **One API key serves the whole instance.** A pasted Anthropic, OpenAI, Gemini or
|
||||
OpenAI-compatible key is shared by every profile, bounded by the daily limits in the admin
|
||||
card — it is metered and issued for exactly this use. Only a *personal* credential (a Claude
|
||||
Code setup token) still binds to the first profile that spends it, and that binding now
|
||||
actually happens when a job runs rather than only existing in the tests.
|
||||
- 🔁 **A rate limit or an overloaded provider is not a failed job.** 429, 529 and 5xx get two
|
||||
more tries a few seconds apart before the status becomes the job's failure; a 4xx that means
|
||||
the request is wrong is never retried.
|
||||
- 🔥 **Warm-up sets no longer read as work.** They were counted into stalls (a light ramp set
|
||||
below the rep target looked like a miss), into done/planned sets and into the top set of a
|
||||
session. They are now filtered the way the app's own progression engine filters them, and
|
||||
the few that still travel in full sessions are flagged `warmup: true` so the model reads
|
||||
them as prep.
|
||||
- ✍️ **Admin card fields are visible again.** The base-URL and model fields shared the card's
|
||||
background and the two daily-limit numbers were the browser's white default box; both are
|
||||
real fields now, sized so a phone does not zoom into them.
|
||||
- 🧪 **An API key is proven end to end in CI**: a local stand-in for each provider's API
|
||||
receives the pasted key on the right header, the cached rules block, the schema, and answers
|
||||
a review that lands as a proposal — the test that says "paste a key and it works".
|
||||
|
||||
- ⚡ **A local model answers in a fraction of the time.** The prompt is split so the rules —
|
||||
identical for every job of a task — ride as the system message and only the payload changes:
|
||||
a llama.cpp/Ollama endpoint reuses its KV prefix cache instead of re-reading ~2.7k tokens of
|
||||
|
||||
Reference in new issue
Block a user