Skip to content

Update outdated contributor information for Shadow - #836

Merged
steipete merged 1 commit into
openclaw:mainfrom
robaxelsen:patch-1
Jan 13, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
robaxelsen:patch-1

Conversation

@robaxelsen

Copy link
Copy Markdown
Contributor

No description provided.

@steipete
steipete merged commit e49ccf4 into openclaw:main Jan 13, 2026
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]>
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