Skip to content

feat(memory): add optional OpenViking agent middleware - #284

Merged
veithly merged 5 commits into
XSpoonAi:mainfrom
NikkorW:agent/openviking-memory-middleware
Aug 7, 2026
Merged

feat(memory): add optional OpenViking agent middleware#284
veithly merged 5 commits into
XSpoonAi:mainfrom
NikkorW:agent/openviking-memory-middleware

Conversation

@NikkorW

@NikkorW NikkorW commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an optional OpenViking middleware that recalls bounded long-term context before agent execution
  • capture user/assistant messages and bounded, redacted tool activity, then commit the session after the run
  • keep the integration fail-open and separate from Mem0 and SpoonOS checkpoint/runtime state
  • add the optional SDK dependency, mocked tests, and local/remote setup documentation

Testing

  • uvx ruff check spoon_ai/middleware/openviking_memory.py tests/test_openviking_memory_middleware.py examples/openviking_memory_middleware_demo.py
  • uv run --with pytest --with pytest-asyncio pytest -q tests/test_openviking_memory_middleware.py tests/test_prompt_caching.py (15 passed)
  • uv run --python 3.13 --with build python -m build
  • uv run --with twine twine check dist/*
  • git diff --check
  • verified OpenVikingMemoryMiddleware constructs with openviking-sdk==0.1.6 through the optional dependency
  • OpenViking embedded integration at upstream commit eda69f9: a payload generated by this middleware successfully completed session creation, batch ingestion, context readback with ToolPart validation, session commit/archive, and search using OpenViking's real Session/storage implementation with fake model providers

Addresses #283

@NikkorW
NikkorW marked this pull request as ready for review August 7, 2026 07:16
@veithly
veithly merged commit e6e3f16 into XSpoonAi:main Aug 7, 2026
1 check passed
@NikkorW
NikkorW deleted the agent/openviking-memory-middleware branch August 7, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants