# fix\(inference\): claim spool requests by rename before reading · flambo/semantifx

[View on GitCafe](https://git.cafe/flambo/semantifx/commit/832d18f33e80ccf3a636e9c0f4adb2c842517af9)

Repository: [flambo/semantifx](https://git.cafe/flambo/semantifx)

Visibility: public

Requested revision: 832d18f33e80ccf3a636e9c0f4adb2c842517af9

Requested commit: 832d18f33e80ccf3a636e9c0f4adb2c842517af9

Commit: 832d18f33e80ccf3a636e9c0f4adb2c842517af9

Tree: b0ed30c774fd1ed950e3f3239e1a5f7d9e1dad98

Author: flamboh

Committer: flamboh

## Message

```
fix(inference): claim spool requests by rename before reading

Renaming request.json before reading it means a replacement written by
the host between read and delete is no longer lost. Malformed request
files now yield an invalid_request result instead of spinning.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

```

## Parents

- [894797741af33058874c7f7dd13c9cd839a35e6f](https://git.cafe/flambo/semantifx/commit/894797741af33058874c7f7dd13c9cd839a35e6f?format=markdown)

[Source at this commit](https://git.cafe/flambo/semantifx/tree/832d18f33e80ccf3a636e9c0f4adb2c842517af9?format=markdown)
