fix(MEMMY-411, MEMMY-413): unify Codex L1 capture across hooks and scans - #391
Merged
syzsunshine219 merged 4 commits intoSep 10, 2026
Merged
Conversation
Deduplicate native turns through a shared ingestion path and preserve Session, Episode and RawTurn associations for scanned memories. Capture custom tool calls and outputs, and pair results by call ID.
origami-chen
requested review from
ZongYue99,
hijzy and
wustzdy
as code owners
September 10, 2026 08:17
…mory # Conflicts: # App/backend/src/services/agent-source-service.ts # Memory/src/agent-source/runtime.ts # scripts/internal/mac/build-dmg.sh
Align the packaged runtime regression with the workspace-based AgentSourceCore staging flow and verify the parser package and Hook bridge are included in the macOS runtime.
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.
Description
Summary
This PR fixes three problems in Codex L1 memory capture:
reflection and reward processing and limiting subsequent L2 generation.
tool information incomplete.
Root cause: hooks and offline scans used separate parsing and ingestion paths,
with inconsistent identity handling, deduplication and lifecycle associations.
Fix:
writes to prevent duplicate L1 creation across channels and retries.
preserving the existing Hook session and its user/project scope.
instead of array position.
Hooks remain the primary capture path; offline scans fill missing turns through
the same L1 lifecycle.
This rollout targets Codex. Other agents retain their existing ingestion paths.
Related CodeUp Issue: MEMMY-411, MEMMY-413
Type of change
How Has This Been Tested?
HTTP submission, deduplication, lifecycle associations and tool pairing.
App 1.1.3 / Memory 2.1.2-identity.20260909.
Full-suite results:
Memory runs twice in the default npm test command; both runs passed.
Skipped tests are reported separately and are not counted as passing.
Manual verification confirmed that:
Checklist
Reviewer Checklist