mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 08:47:02 +01:00
feat/parallel-implement
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
caa0e41c3b |
chore: add a formatter (#449)
* chore: add a formatter, matching the style this repo already writes singleQuote=false was chosen by counting this repo's own imports, not by fleet decree. The fleet is genuinely split and the two repos that already had a .prettierrc disagreed with each other, so there was no standard to restore. Quote style does not cross repo boundaries; having a gate does. Markdown is ignored for now — prettier rewraps prose, which would bury the real diff. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * style: format with prettier (1062 files) Mechanical. No behaviour change. This SHA is listed in .git-blame-ignore-revs so `git blame` skips it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: teach git blame to skip the reformat Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(lint): reattach two guards the reformat detached Both effects were one-liners, so a trailing eslint-disable-line covered the setState call: useEffect(() => { setSelected(new Set()); }, [q.length]); // eslint-disable-line ... prettier expanded the block. The comment stayed on the closing line while the call moved above it, so the guard protected nothing and the rule its author had deliberately silenced failed the build. This is the second shape of the same defect — hirnli had the eslint-disable-NEXT-line variant. Both come from the same fact: an eslint directive binds to a line number, so reformatting can silently unbind it, which makes 'mechanical, no behaviour change' false for any bulk reformat. * chore(desktop): bump the runner version the reformat requires desktop-release-drift enforces that anything built into Fleet Runner which differs from the last released tag must carry a version ahead of that tag — main read 0.8.15 and fleet-runner-v0.8.15 already shipped. A whole-repo reformat changes bytes under desktop/, so the gate fires. The alternative was adding desktop/ to .prettierignore, which would buy a quiet PR by carving a permanent hole in the formatter's coverage — the precise shape of silent drift this test was written to catch. Bumping is what the rule asks for and costs one patch release whose only content is whitespace. * chore: merge main and re-format A whole-repo reformat conflicts with any concurrent commit, and a conflicting PR runs no checks at all while reporting nothing. Conflicts resolved to main, which is correct because this branch changes formatting and nothing else. * chore: leave desktop/ out of this reformat desktop-release-drift is right to refuse this. Everything under desktop/ is built into Fleet Runner, so changing it means shipping: bump the version AND add a FLEET_RUNNER_RELEASES entry, whose stated audience is 'person who installed Fleet Runner and wants to know what changed'. For a whitespace-only build the honest answer is 'nothing', so that release should not exist — and I should not write release notes claiming otherwise. I had bumped to 0.8.16 to get the gate green. That was the wrong direction: publishing a build to three OS runners to keep a formatting PR quiet. Reverted. desktop/ is excluded in .prettierignore with the reasoning recorded there, to be formatted alongside the next real runner change, where the bump and the notes are true anyway. --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
3e094dffeb |
fix(models): a judge that exists, is listed, and 400s on every call (#408)
Firing the frontier loop after #406 produced the first proposals since 2026-06-24 — and the run's own report named a second fault: judgeFailures: qwen3.6-27b -> groq 400: `reasoning_effort` must be one of `none` or `default` Groq narrowed the values that model accepts. This app sends "low", so every call to it has been failing. qwen is the frontier judge panel's SECOND lineage, and a judge that cannot be called abstains — which left proposals scored only by gpt-oss-120b while the GENERATOR is gpt-oss-20b. Same lineage marking its own homework. The veto floor ("one lineage can veto what another loves") had silently stopped existing, and `verifierScores` still reported a panel. Verified against the live API: with the parameter omitted the model answers normally and emits its <think> preamble, which stripReasoning already handles and the judge's 3500-token budget already accommodates. So the allow-list was simply wrong, and qwen/ is removed from it. The part that matters more: `check-model-ids` reported `rotted: 0` for the whole outage. It asks "does this id still EXIST at the provider", and qwen3.6-27b existed the entire time it was unusable. Existence is not callability — the same "it is there, therefore it works" mistake that this week has now produced in an alert surface, a cron journal, a lint hook and an env checker. So the check now also asks whether the provider accepts the request THIS APP BUILDS: a one-token completion whose parameters come from `supportsReasoningEffort`, the same predicate the real call path uses. That sharing is deliberate. A probe with its own opinion about which models get the parameter would be a second source of truth and would pass while production 400s — precisely the checker/consumer split fixed in #402. Three states, as everywhere else in this module: 400 is a refusal (the provider understood us and said no), 429/5xx/401 is "could not look", and only a removal is rot. A rate limit must never be reported as a dead model. Refusals are counted WITH removals because the consequence is identical — the feature is dark — and only the remedy differs, so the alert now carries the provider's own message, which names the parameter and is the fix. Cost stays small: a refusal is rejected before inference and an acceptance is capped at one token, so the daily probe does not meaningfully compete with the product for the 100k/day org-wide free tier. The probe is OFF by default and the cron opts in, so the unit tests never call a paid API. Six mutations, each red then green: qwen back in the allow-list, refusals dropped from the report, a 429 counted as rot, transcription ids probed as chat, and the provider's message dropped from the alert text. Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P Co-authored-by: t <t@t.t> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
92a0c2787c |
fix(models): put the rot check on a timer, and prove every cron has one (#359)
Groq removed `llama-3.3-70b-versatile` on 2026-08-18 and FleetCrown asked for it for eight days. `npm run check:models` answers exactly that question — but it was a command a human had to remember to type, which is the same shape as the thing that failed. Now the clock types it, daily at 06:30 UTC, ahead of the 08:00 frontier digest. Zero tokens by design: one GET /models per provider, no inference. The Groq free tier is 100k tokens/day org-wide across every feature, so a synthetic canary would spend ~25% of the product's daily budget competing with it for the resource it exists to protect. Three states stay distinct — ROT (absent from a catalogue we read) alerts; UNCHECKED (catalogue unreadable, incl. a 200 with an empty list) logs a warning and is never a pass; OK logs, so the checker's silence differs from "never ran". Treating a failed fetch as an empty catalogue would report every pin as dead and manufacture an outage out of our own network blip. Alerts land via refreshOrInsertActiveAlert on /system, deduped until dismissed, with Telegram as a once-per-episode bonus — so this works without TELEGRAM_CHAT_ID being set. Detection moved to src/lib/model-check.ts, imported by both the CLI and the cron, so the scheduled and manual checks cannot drift about what rot means. Closes the sibling class too: a cron route can ship and deploy while nothing ever calls it, and no gate can see that absence. cron-schedule-coverage asserts every requireCronAuth route has a timer and every timer has a route, keyed off the code rather than a hand-maintained list. Proven by mutation in both directions. Co-authored-by: t <t@t.t> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |