You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a82a23a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(gateway): a ledger that closes while failed tries once more to record the gap
Seen when the reviewer's probe was run against the branch: the gateway
stopped inside the one-second retry interval, so the ledger held no
`ledger_gap` entry for the append that had failed. `close` now calls
`gateway_ledger_health.settle`, which resumes once if the disk allows it and
logs what stays unrecorded if it does not.
The ledger tests are two files now, each under 300 lines:
tests/test_gateway_ledger_write_failure.py (D2) and
tests/test_gateway_ledger_live_verify.py (A1, N2, and the cut-line count).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,7 +231,7 @@ Fixes
231
231
- Changed: a model moves from native function calling to the text protocol only when its host's error says tools or function calling are unsupported. Any 400 that mentioned "tool" or "function" used to do it, a context-length error included, and a quoted TOOL line in the next reply then ran. The session prints one notice and records a `native_tools_fallback` entry when a model moves. No provider documents the exact sentence, so the accepted wording is a stated heuristic; `docs/KNOWN-LIMITS-2.0.0.md` has the row.
232
232
- New: the request line and headers of a gateway request must arrive within one read timeout, and the body of a call to a model interface within four, with or without a credential. A client that dripped header lines used to hold a thread for as long as it liked. There is still no cap on open connections.
233
233
- Changed: `flywheel gateway-ledger show` cuts a field longer than 80 characters and says how much it left out; `--full` prints it whole. The static check of the Lean modules resolves import aliases and also reports `asyncio.create_subprocess_*`, `os.posix_spawn*`, `os.startfile`, `os.fork`, `pty`, `multiprocessing`, `getattr` on those modules and an `env=` that is not exactly `lean_env(...)`; `tests/lean_spawn_scan.py` lists what it cannot see. `docs/KNOWN-LIMITS-2.0.0.md` names `/v1/embeddings` among the routes outside the ledger.
234
-
- Tested over real loopback sockets with a stub upstream, and with recorded provider replies: `tests/test_gateway_ledger_write_failure.py`, `tests/test_gateway_round3_small_fixes.py`, `tests/test_code_session_native_fallback_trigger.py`, which run against the built wheel before a release with `tests/test_lean_child_env.py`. The reviewer's probe scripts were run again against the fixed code. These last fixes have had no further independent review. Not run: any hosted provider, a real full disk (the failure is simulated at the segment's file), macOS.
234
+
- Tested over real loopback sockets with a stub upstream, and with recorded provider replies: `tests/test_gateway_ledger_write_failure.py`, `tests/test_gateway_ledger_live_verify.py`, `tests/test_gateway_round3_small_fixes.py`, `tests/test_code_session_native_fallback_trigger.py`, which run against the built wheel before a release with `tests/test_lean_child_env.py`. The reviewer's probe scripts were run again against the fixed code. These last fixes have had no further independent review. Not run: any hosted provider, a real full disk (the failure is simulated at the segment's file), macOS.
0 commit comments