suggestion_stale
You accepted a suggestion, but the policy it was written for is no longer the one enforced: someone activated another version since.
HTTP 409 · invalid_request_error · not retryable
What happened
Section titled “What happened”You accepted a suggestion, but the policy it was written for is no longer the one enforced: someone activated another version since. Deedglass marks the suggestion superseded (stale_reason: base_changed) and changes nothing, because its diff and replay describe a policy that is no longer live.
What to do
Section titled “What to do”Generate suggestions again (POST /v1/suggestions/generate, or deedglass insights suggestions generate). If the evidence still holds, a new suggestion is written against the version enforced now.
Example
Section titled “Example”{ "error": { "type": "invalid_request_error", "code": "suggestion_stale", "message": "acme-sim v2 has been enforced since this suggestion was written for v1. Generate suggestions again: POST /v1/suggestions/generate.", "param": null, "request_id": "req_01j9zr3m5k8q2w7x4t6v0b1c9d", "doc_url": "https://docs.deedglass.com/errors/suggestion_stale" }}The message is for a person and can get more exact over time: branch on type and code, never on the message.
In the SDKs
Section titled “In the SDKs”| SDK | Raised as |
|---|---|
TypeScript (@deedglass/sdk) |
InvalidRequestError with code === "suggestion_stale" |
Python (deedglass) |
deedglass.InvalidRequestError with .code == "suggestion_stale" |