[PR #1761] [CLOSED] [Engine] Add opt-in Galahad session storage #3655

Closed
opened 2026-11-07 15:29:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1761
Author: @j-luwierski
Created: 10/9/2026
Status: ❌ Closed

Base: main ← Head: codex/galahad-session-storage


📝 Commits (1)

  • d9c9f3a Add opt-in Galahad session storage backend

📊 Changes

5 files changed (+528 additions, -5 deletions)

View changed files

📝 docs/DETAILS.md (+7 -1)
➕ docs/GALAHAD.md (+95 -0)
➕ serve/galahad.py (+129 -0)
📝 serve/server.py (+57 -4)
➕ serve/test_galahad.py (+240 -0)

📄 Description

Problem and result

Strata's existing slot API can persist its current conversation to a local file. Users who need encrypted, durable named sessions on supported NVIDIA systems have no integrated storage backend. With this opt-in change, the same API saves and restores complete Strata session images through Galahad; the existing file backend and default inference path stay unchanged.

Previous submission and maintainer instructions: https://github.com/Niko1221/Strata/pull/1761. The maintainer asked that this PR be rebased on current main, use the required title and template, and then receive /reopen.

Approach

Add a separate Galahad adapter for full session images, configuration and CLI options, size/error handling, and user documentation. Galahad remains an optional import and requires a separately installed licensed package. Session operations remain explicit, limited to slot 0, and unavailable with parallel requests or the ordinary file backend. Rebased on main while preserving the current session-save retry behavior. Galahad shutdown is guarded against duplicate close calls from normal shutdown and atexit.

Validation

Passed:

  • .venv/bin/python -m unittest serve.test_galahad serve.test_slots serve.test_security — 67 tests passed on Linux x86-64, Python 3.13, at revision 7e3494582faecba5934c1d43b692b98ecfe080e1, based on main 5bda973a.
  • .venv/bin/python serve/server.py --help — Galahad options are present.
  • git diff origin/main --check — no whitespace errors.

Failed:

  • None observed.

Not run:

  • Licensed native Galahad save/restart/restore, GPU output parity, and performance checks: this environment has no licensed NVIDIA setup.
  • CUDA, HIP, and SYCL builds: no engine or backend kernel files changed.

Limits

Requires Linux x86-64, a licensed NVIDIA GPU, and galahad-kv==1.31.5. Names are immutable, only slot 0 is supported, and the feature does not add automatic prefix caching. Mock tests establish the adapter and HTTP contract, not native persistence, encryption, GPU correctness, or performance.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1761 **Author:** [@j-luwierski](https://github.com/j-luwierski) **Created:** 10/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/galahad-session-storage` --- ### 📝 Commits (1) - [`d9c9f3a`](https://github.com/Niko1221/Strata/commit/d9c9f3a8ee0770abd2cb99ee47df6f8f0cdb9ab3) Add opt-in Galahad session storage backend ### 📊 Changes **5 files changed** (+528 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/DETAILS.md` (+7 -1) ➕ `docs/GALAHAD.md` (+95 -0) ➕ `serve/galahad.py` (+129 -0) 📝 `serve/server.py` (+57 -4) ➕ `serve/test_galahad.py` (+240 -0) </details> ### 📄 Description ## Problem and result Strata's existing slot API can persist its current conversation to a local file. Users who need encrypted, durable named sessions on supported NVIDIA systems have no integrated storage backend. With this opt-in change, the same API saves and restores complete Strata session images through Galahad; the existing file backend and default inference path stay unchanged. ## Related discussion Previous submission and maintainer instructions: https://github.com/Niko1221/Strata/pull/1761. The maintainer asked that this PR be rebased on current main, use the required title and template, and then receive `/reopen`. ## Approach Add a separate Galahad adapter for full session images, configuration and CLI options, size/error handling, and user documentation. Galahad remains an optional import and requires a separately installed licensed package. Session operations remain explicit, limited to slot 0, and unavailable with parallel requests or the ordinary file backend. Rebased on main while preserving the current session-save retry behavior. Galahad shutdown is guarded against duplicate close calls from normal shutdown and `atexit`. ## Validation **Passed:** - `.venv/bin/python -m unittest serve.test_galahad serve.test_slots serve.test_security` — 67 tests passed on Linux x86-64, Python 3.13, at revision `7e3494582faecba5934c1d43b692b98ecfe080e1`, based on main `5bda973a`. - `.venv/bin/python serve/server.py --help` — Galahad options are present. - `git diff origin/main --check` — no whitespace errors. **Failed:** - None observed. **Not run:** - Licensed native Galahad save/restart/restore, GPU output parity, and performance checks: this environment has no licensed NVIDIA setup. - CUDA, HIP, and SYCL builds: no engine or backend kernel files changed. ## Limits Requires Linux x86-64, a licensed NVIDIA GPU, and `galahad-kv==1.31.5`. Names are immutable, only slot 0 is supported, and the feature does not add automatic prefix caching. Mock tests establish the adapter and HTTP contract, not native persistence, encryption, GPU correctness, or performance. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:29:51 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3655
No description provided.