Skip to content

Add AWS Comprehend PII redaction - #639

Open
Luvi-1 wants to merge 1 commit into
arakoodev:tsfrom
Luvi-1:agent/aws-comprehend-290
Open

Add AWS Comprehend PII redaction#639
Luvi-1 wants to merge 1 commit into
arakoodev:tsfrom
Luvi-1:agent/aws-comprehend-290

Conversation

@Luvi-1

@Luvi-1 Luvi-1 commented Aug 3, 2026

Copy link
Copy Markdown

/claim #290

Summary

  • add an Amazon Comprehend PII redactor for the JavaScript AI package
  • support Unicode-safe direct redaction, immutable prompt/message redaction, and RxJS endpoint chaining
  • preserve source ordering and abort in-flight Comprehend requests when subscriptions are cancelled
  • add mocked Vitest coverage and a credential-free runnable example with an optional real-AWS mode

Validation

  • npx tsc -p tsconfig.json --noEmit --incremental false
  • npx vitest run src/ai/src/tests/comprehend/comprehendPiiRedactor.test.ts (4 passed)
  • example TypeScript check passed
  • offline demo output redacted jane@example.com before the endpoint received the prompt
  • repository Prettier settings passed for every touched file

Loom

Closes #290

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@Luvi-1
Luvi-1 force-pushed the agent/aws-comprehend-290 branch from b87f883 to cc68dc8 Compare August 3, 2026 06:33
@Luvi-1

Luvi-1 commented Aug 3, 2026

Copy link
Copy Markdown
Author

recheck

@Luvi-1
Luvi-1 marked this pull request as ready for review August 3, 2026 07:35
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.

BOUNTY: integrate AWS Comprehend as a utility to redact data

1 participant