mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1761] [CLOSED] [Engine] Add opt-in Galahad session storage #3655
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3655
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
d9c9f3aAdd 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.
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 revision7e3494582faecba5934c1d43b692b98ecfe080e1, based on main5bda973a..venv/bin/python serve/server.py --help— Galahad options are present.git diff origin/main --check— no whitespace errors.Failed:
Not run:
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.