Repository navigation
Update outdated contributor information for Shadow - #836
Merged
Merged
Conversation
supmo668
added a commit
to Syntropy-Health/openclaw
that referenced
this pull request
Jun 26, 2026
…ternalId (Clerk sub) into agent ctx so HTTP callers share the user graph Closes the HTTP-memory-scope gap from P1.B: a Clerk/mobile chat turn now keys its graph group_id on the verified user identity, unifying it with the SAME person's other-channel graph (openclaw#834/openclaw#836) instead of forking. Mirrors the P3 senderE164 thread: new PluginHookAgentContext.externalId (string|null); threaded from RunEmbeddedPiAgentParams.externalId through the 3 hook-ctx sites (run.ts before_agent_start, attempt.ts before_agent_start + agent_end) and through AgentCommandOpts → agentCommand → runEmbeddedPiAgent; the two HTTP handlers pass externalId: handled.externalId (the verified sub, never client-set) ?? null. memory-graphiti: a new exported externalIdScopeKey(ctx) helper (identity.ts, reuses deriveScopeKey) is preferred at BOTH recall (before_agent_start) and capture (agent_end) group_id derivation when ctx.externalId is present — BEFORE the identity-DB query — so an HTTP Clerk user sub=X and WhatsApp lp_users.external_id=X resolve the SAME group_id=X. Behavior-preserving: channel callers carry no externalId → existing DB/derive path byte-identical (characterization 14 + index 55 unchanged). PHI tripwire untouched (still gates on senderE164; HTTP has none → fail-closed to Zep). 703 affected tests pass +6 (identity 5, openresponses e2e 1), tsgo 0, oxlint 0/0, sealed 60/60. Generated-With: Claude Code Co-Authored-By: cto <[email protected]> Co-Authored-By: Claude <[email protected]>
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.
No description provided.