Repository navigation
feat(bin): make the Jev request timeout configurable, default 5 seconds - #44
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
alandomio
pushed a commit
that referenced
this pull request
Sep 26, 2026
Guards the rebase onto #44's configurable timeout: both backends now share one JEV_TIMEOUT read once per drain, so the override must apply identically whichever backend is selected.
alandomio
added a commit
that referenced
this pull request
Sep 26, 2026
…sifier (#45) * feat(bin): add a local Rizzo Flow backend to fm-jev.sh's shadow classifier config/jev-endpoint selects a loopback Jev-compatible server (e.g. Rizzo Flow's `rizzo serve`) over the existing OpenRouter path: no API key, no spend cap, a 1-minute load-average ceiling pause instead (config/jev-max-load), and non-loopback URLs refused outright. The OpenRouter path stays byte-identical when config/jev-endpoint is absent. * no-mistakes(review): Harden Jev local backend endpoint, proxy, and blank-file handling * no-mistakes(review): Read Jev local load ceiling from the home config * no-mistakes(document): Align fm-jev.sh header with local Jev backend * test(bin): prove config/jev-timeout also governs the local Rizzo backend Guards the rebase onto #44's configurable timeout: both backends now share one JEV_TIMEOUT read once per drain, so the override must apply identically whichever backend is selected. * no-mistakes(review): Skip rows on Jev load spikes; cheap backend gate --------- Co-authored-by: Alan Domio <a.domio@peter-park.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Make the Jev shadow classifier's request timeout configurable. Captain 26/09/2026: 'riattiva jev con limite di 5 secondi'. bin/fm-jev.sh hard-coded JEV_TIMEOUT=2; read an optional config/jev-timeout (seconds, positive number, like config/jev-daily-cap), default 5; an invalid value keeps the default and is reported via status output. Update the fm-jev.sh header, docs/configuration.md Jev section, AGENTS.md layout list, and tests. Keep everything else identical (spend cap, pause-on-error semantics).
What Changed
bin/fm-jev.shno longer hard-codes a 2-second request timeout. It reads an optionalconfig/jev-timeout(a positive number of seconds) and uses 5 seconds when that file is missing. An invalid value also falls back to 5 seconds. The spend cap and the pause-on-error behavior are unchanged.fm-jev.sh statusnow prints the request timeout in effect. Whenconfig/jev-timeoutholds an invalid value, it also shows that value and says the default was kept.fm-jev.shheader comment, the Jev section ofdocs/configuration.mdand the layout list inAGENTS.md. Added coverage for the new timeout handling totests/fm-jev.test.sh.🤖 Generated with Claude Code
Risk Assessment
✅ Low: The change is small and self-contained: it reads an optional timeout with a validated default of 5, reports invalid values in status, and leaves the spend cap and pause semantics untouched, with docs and tests updated as the intent requires.
Testing
I ran the Jev test script (tests/fm-jev.test.sh) and all 14 cases passed. They cover the new configurable timeout: the 5-second default, a configured value reaching curl, and rejection of invalid or zero values. The existing pause and spend-cap behaviour is unchanged. I also ran
fm-jev.sh statusby hand for each config case and saved the output as evidence.Evidence: fm-jev.sh status timeout reporting
Source: fm-jev.sh status timeout reporting
missing -> request timeout: 5s 3 -> request timeout: 3s abc -> request timeout: 5s (config/jev-timeout value "abc" is not a positive number, default kept) 0 -> request timeout: 5s (config/jev-timeout value "0" is not a positive number, default kept)Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-jev.test.sh: all 14 cases pass, including the new test_timeout_is_configurable. It checks that 7.5 reaches curl as --max-time and that the updated default-timeout assertion now expects 5Manual: ranbin/fm-jev.sh statusin a temporary home with config/jev-timeout missing, set to 3, set to abc and set to 0✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.