feat/masking - use normal middleware state - #136
Merged
Merged
Conversation
SummaryThe following content is AI-generated and provides a summary of the pull request: Title: Persist pseudonymization with middleware state CategoryRefactor SummaryThis PR simplifies pseudonymization state handling by using LangChain middleware state directly instead of manually integrating pseudonym data into graph checkpoint channels. Changes
ImpactPseudonym data is now persisted through the standard LangChain middleware state mechanism, reducing custom checkpointing logic and keeping masking behavior aligned with the framework’s intended state handling. Related: #71 Have you...
PR Bot InformationVersion:
|
schiwekM
added a commit
that referenced
this pull request
Sep 23, 2026
* Adding DPP masking * Fix tool tracing masking * Prettier * fix * Switch to standard annotation * Update CHANGELOG.md * fix * Fixes * Adjust hash to match DPI * Fixes * Update schema.cds * Fix * Fix * Use graph state for mappings * Fix * Update pseudonymization.test.js * Better span masking * Update agent-card.json * Update agent-card.json * Fix * Fix for path expressions * Adjust masking tag * Correctly handle masking * Test & fix * fix * Cleanup * Better structure * More fixes * Handles types * Fix for remote mcp * use normal middleware state (#136) * Cleanup * Update CHANGELOG.md * Default false for the time being * Review * Update bookshop.eval.test.js * Fixes * Lint --------- Co-authored-by: Johannes Vogt <j.vogt@sap.com>
schiwekM
added a commit
that referenced
this pull request
Sep 23, 2026
* Adding DPP masking * Fix tool tracing masking * Prettier * fix * Switch to standard annotation * Update CHANGELOG.md * fix * Pseudonymization via DPI * Fixes * Add HANA level pseudonymization * Update unstructuredText-hana.js * Update data-privacy.md * Fix * Fixes * Adjust hash to match DPI * Fixes * Update schema.cds * Fix * Fix * Use graph state for mappings * Fix * Update pseudonymization.test.js * Better span masking * Update agent-card.json * Update agent-card.json * Fix * Update graph-executor.js * Fix * Fix for path expressions * Adjust structure * Adjust masking tag * Correctly handle masking * Test & fix * fix * Cleanup * Better structure * More fixes * Handles types * Fix for remote mcp * Cleanup * Update entities.cds * Update package.json * use normal middleware state (#136) * Cleanup * Update CHANGELOG.md * Default false for the time being * Review * Cleanup * Update bookshop.eval.test.js * fixes * Update dpi.js * Fixes * Lint * Lint * Fix * Fixes * Update hana.js * Update hana.js * Restructure to ensure resolving tags * Fixes * Fix * Fixes * Fixes * Small cleanup * Cleanup * Cleanup state * Update prompt-injection-shield.test.js --------- Co-authored-by: Johannes Vogt <j.vogt@sap.com>
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.
Small update to #71 ...
Instead of manually integrating into langchains graph state, we can simply use the middleware state to persist our pseudonym data.