Skip to content

refactor(identity): use the shared session-key helpers everywhere - #153

Merged
supmo668 merged 4 commits into
mainfrom
mangyinm/dedupe-session-key-helpers
Nov 18, 2026
Merged

supmo668 merged 4 commits into
mainfrom
mangyinm/dedupe-session-key-helpers

Conversation

@supmo668

Copy link
Copy Markdown

Session-key parsing now goes through the shared helpers everywhere: the identity, memory and syntropy paths, and the identity e2e test. This replaces local copies of the same logic.

  • Removes the duplicated parsers (net −79 lines) in favour of the shared helpers already used by auth-memory-gate.
  • No behaviour change intended; the existing suites cover each caller.
  • Updates docs/concepts/identity-scoped-memory.md to match.

🤖 Generated with Claude Code

supmo668 and others added 3 commits November 8, 2026 01:06
memory-graphiti re-implemented deriveChannel/derivePeerId (byte-identical
to extensions/shared/session-key.ts); syntropy kept a one-line forwarding
module; auth-memory-gate re-exported the session-key helpers and the HTTP
gate channel set. All importers now use the shared modules directly.
No behaviour change: the removed bodies were identical, and the existing
session-key tests now run against the shared functions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 8a2807b1-ba88-483f-ae1e-5a05f397fa5b
Commits

Reviewing files that changed from the base of the PR and between 93a611c and dc4e9f7.

Files selected for processing: 11

  • docs/concepts/identity-scoped-memory.md
  • extensions/auth-memory-gate/src/index.ts
  • extensions/auth-memory-gate/src/scope.test.ts
  • extensions/auth-memory-gate/src/scope.ts
  • extensions/memory-graphiti/identity.test.ts
  • extensions/memory-graphiti/identity.ts
  • extensions/syntropy/src/index-injection.test.ts
  • extensions/syntropy/src/index.ts
  • extensions/syntropy/src/session-key.test.ts
  • extensions/syntropy/src/session-key.ts
  • test/e2e/identity-memory-e2e.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown

⚠️ Formal models conformance drift detected

The formal models extracted constants (generated/*) do not match this openclaw PR.

This check is informational (not blocking merges yet).
See the formal-models-conformance-drift artifact for the diff.

If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there.

@github-actions

Copy link
Copy Markdown

⚠️ Formal models conformance drift detected

The formal models extracted constants (generated/*) do not match this openclaw PR.

This check is informational (not blocking merges yet).
See the formal-models-conformance-drift artifact for the diff.

If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there.

@supmo668
supmo668 merged commit 61d5467 into main Nov 18, 2026
27 checks passed
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.

1 participant