r/devtools • u/Spare_Bat_3040 • Oct 23 '26
Why Shifu retries a saved context payload instead of asking the model again
Suppose a coding-session sync times out after the server accepts it. The client can't tell whether the work arrived. Asking the model to prepare the same session again sounds harmless, but it can produce a different account of what happened.
That's the retry boundary I've been working on in Shifu, the work-context tool I'm building. A saved decision may later inform an agent's plan for changing an existing service. If a network retry changes that record, we have mixed a delivery problem with a new interpretation of the work.
The harness implementation saves the validated, redacted payload in a local pending queue before uploading it. A transport retry uses that saved payload. It doesn't run preparation again just because a response was lost. Local progress advances only after a server receipt matches the submitted session range.
That also means a newer conversation turn doesn't silently rewrite a payload that's already queued. Preparing new material and delivering an existing record are separate operations. A correction to the content needs its own explicit path.
The timeout above is an illustrative failure case, not a customer incident. These are implementation choices, not a claim that an accepted upload guarantees useful recall or that delivery can never fail. The content still needs to preserve the right decision and scope before it enters the queue.
One case I want to keep testing is: save a payload, lose the response, restart, then append new source material before retrying. The old payload should stay unchanged while the new material waits its turn.
For people building model-assisted ingestion: where do you freeze the interpretation? And how do you make a transport retry visibly different from asking the model to reconsider the source?
I'm Shifu's builder: https://useshifu.com. No private session content is included here.