2 Commits
Author SHA1 Message Date
Hermes 83a56eb11d tests: wait for a port instead of sleeping before it
Run 13 failed the whole cache section with six checks and no listener: the
router was started with "sleep 0.8" and curl asked too early. The same fixed
sleep sat in front of a dozen other routers and stubs. Every one now waits for
its port (wait_port), and the two checks that need a listener to be *absent*
(mesh without a secret, roll3 without SO_REUSEPORT) wait for their log line
(wait_log) instead of hoping the message is there after 0.6 s.

Same checks, no fixed windows left before a listener; the suite is also faster
because it no longer sleeps through them. Full run: 537 OK, 0 FAIL, PASS.
2026-11-19 06:59:55 +00:00
Hermes 0503540760 Cache nur für vorhersagbare Antworten
Der Cache war seit dem ersten Tag da, aber standardmäßig aus — und das aus einem Grund,
der sich mit einem Schalter allein nicht beheben ließ: er hat jedes identische Paar aus
Pfad und Rumpf gleich behandelt. Zwei Anfragen mit Temperatur 0.7 sind aber nicht
identisch, sie sind nur gleich formuliert. Der zweite Fragesteller hätte die Antwort des
ersten bekommen.

Neu:

  cache_deterministic_only on     (Standard)

Damit landet nur im Cache, was reproduzierbar ist — Temperatur genau 0, oder ein Aufruf
an /v1/embeddings, wo derselbe Text immer denselben Vektor ergibt. Alles andere trägt
X-Junction-Cache: off und geht durch.

Gemessen: temp 0 → miss, hit, hit, hit; temp 0.7 → off, off; ohne Angabe → off.
Einbetter → beim zweiten Aufruf hit.

100 Prüfungen, keine Fehler. Der alte Cache-Test fragte ohne Temperatur und musste
mitziehen; die Einbetter-Prüfung fragte nur einmal und prüfte damit den leeren Cache.
2026-11-05 09:29:53 +00:00