llama-stack-mirror/src/llama_stack/distributions
Ashwin Bharambe 492f79ca9b
fix: harden storage semantics (#4118)
Fixes issues in the storage system by guaranteeing immediate durability
for responses and ensuring background writers stay alive. Three related
fixes:

* Responses to the OpenAI-compatible API now write directly to
Postgres/SQLite inside the request instead of detouring through an async
queue that might never drain; this restores the expected
read-after-write behavior and removes the "response not found" races
reported by users.

* The access-control shim was stamping owner_principal/access_attributes
as SQL NULL, which Postgres interprets as non-public rows; fixing it to
use the empty-string/JSON-null pattern means conversations and responses
stored without an authenticated user stay queryable (matching SQLite).

* The inference-store queue remains for batching, but its worker tasks
now start lazily on the live event loop so server startup doesn't cancel
them—writes keep flowing even when the stack is launched via llama stack
run.

Closes #4115 

### Test Plan

Added a matrix entry to test our "base" suite against Postgres as the
store.
2025-11-12 10:35:39 -08:00
..
ci-tests fix: harden storage semantics (#4118) 2025-11-12 10:35:39 -08:00
dell docs: add documentation on how to use custom run yaml in docker (#3949) 2025-10-28 16:05:44 -07:00
meta-reference-gpu docs: add documentation on how to use custom run yaml in docker (#3949) 2025-10-28 16:05:44 -07:00
nvidia docs: add documentation on how to use custom run yaml in docker (#3949) 2025-10-28 16:05:44 -07:00
oci feat: add oci genai service as chat inference provider (#3876) 2025-11-10 16:16:24 -05:00
open-benchmark chore(package): migrate to src/ layout (#3920) 2025-10-27 12:02:21 -07:00
postgres-demo feat: ability to use postgres as store for starter distro (#4076) 2025-11-05 15:37:06 -08:00
starter fix: harden storage semantics (#4118) 2025-11-12 10:35:39 -08:00
starter-gpu fix: harden storage semantics (#4118) 2025-11-12 10:35:39 -08:00
watsonx chore(package): migrate to src/ layout (#3920) 2025-10-27 12:02:21 -07:00
__init__.py chore(package): migrate to src/ layout (#3920) 2025-10-27 12:02:21 -07:00
template.py docs: add documentation on how to use custom run yaml in docker (#3949) 2025-10-28 16:05:44 -07:00