[codex] Add on-prem graph memory backend#696
Draft
heikog wants to merge 2 commits into
Draft
Conversation
49ce115 to
311b664
Compare
311b664 to
15c955f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
reddit/actions.jsonlso run status, timelines, and graph-memory updates receive real simulation activity.task_id,report_id, orsimulation_id, including GET query parameters.Why
Zep Cloud can be expensive for self-hosted deployments. This keeps existing Zep behavior as the default while adding an on-premise path that can be enabled with
GRAPH_MEMORY_BACKEND=graphiti_bridge.The API fixes are included because the full on-premise end-to-end validation exposed two integration issues outside the adapter itself: Reddit simulation activity was not visible to graph-memory updates before trace mirroring, and completed report/interview endpoints had edge cases that made non-GUI verification unreliable.
Validation
python3 -m compileall -q backend/app graphiti_bridge backend/scripts/run_reddit_simulation.pypython3 -m py_compile backend/app/services/simulation_runner.py backend/app/api/report.pygit diff --checkGraphitiBridgeGraphMemoryAdapteragainst graphiti-bridge/FalkorDB.GRAPH_MEMORY_BACKEND=graphiti_bridge:proj_40134302015f, graphmirofish_11dcdf61aa4c4eb7, simulationsim_d2b03920d048, reportreport_33bf2737c50d2030 Market Debate: How AI Reshapes the Software Developer MarketPOST /api/simulation/interview/historyreturns HTTP 200 with 20 interview records from the AI developer market simulationGET /api/report/generate/status?report_id=report_33bf2737c50dreturns HTTP 200, completed, progress 100POST /api/report/generate/statuswithreport_idreturns HTTP 200, completed, progress 100POST /api/report/generate/statuswithsimulation_idreturns HTTP 200, completed, progress 100