Files
leleka/docs/experiments/2026-10-04-response-resources.md
T
Pavlo Ratushnyi 4013e0c9bd
Desktop foundation / core (ubuntu-latest) (push) Failing after 28s
Desktop foundation / core (macos-latest) (push) Canceled after 0s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
Linux / verify (push) Canceled after 0s
Linux / keyless-cuda (push) Canceled after 0s
Linux / static-cuda-package (push) Canceled after 0s
Linux / hosted-cuda-package (push) Canceled after 0s
Linux / linux-static-cli (push) Canceled after 0s
Linux / linux-cli-container (push) Canceled after 0s
Linux / release-cli (push) Canceled after 0s
Import tracked Strata Next source snapshot
2026-10-05 18:15:08 +02:00

2.5 KiB

Stored Responses retrieval and deletion — STRA-27

Date: 2026-10-04. The new preview provides authenticated GET and DELETE on /v1/responses/{response_id} for its existing process-local history. Retrieval returns the exact saved terminal response. Deletion removes that response and its replay transcript atomically. The shared 64-entry/128 MiB serialized-data budget now counts both the complete response and transcript. Full API scope and official reference links are in the contract.

Evidence

  • Rust 1.99.0: 135 library tests passed, including combined byte accounting, FIFO eviction, rejection without evicting valid data, identity checks and deletion reclaiming queue/data bytes. Existing failed-generation and replay tests passed. Clippy all-targets with warnings denied, fmt and diff checks passed.
  • python3 scripts/smoke-response-history.py <binary> passed on macOS debug and Linux x86_64 musl release. Its 28 combinations cover plain text, reasoning, structured JSON, function calls, custom tools, reasoning with custom tools and incomplete length stops, each with streaming/non-streaming and store true/false.
  • Every retained object matched its original terminal JSON exactly, including IDs, tool arguments, reasoning, metadata, usage and status (zero tolerance). Authentication rejection, unknown/query/repeated-delete errors, successful continuation, deleted-parent rejection and descendant preservation passed.
  • Retrieval/deletion remained available while the isolated fixture runtime was drained and its synthetic worker was killed. This was a CPU fixture, not the active GPU service. The hosted Linux workflow includes this smoke; GitHub Actions execution remains pending.

Private preview on the laptop: ~/.local/share/strata-next/bin/strata-next-linux-x86_64-musl-history-preview, 17,363,752 bytes, SHA-256 4e575a73f8763cd949cf273d374107ce537245cbef36f68dc71a7d03c62aa1c3. Source revision is recorded in adjacent private JSON. This control-plane-only binary was not installed over the user trial. The active endpoint and tunnel remained ready. The isolated remote smoke directory and release intermediates were removed; the final private preview remains.

No real-model parity, speedup or long-term stability is claimed. History is not durable; it is shared under the optional single operator key. Deletion cannot erase copies already in descendant histories or in-flight continuations and is not cancellation. Retrieval query options/stream resumption are unsupported.