fix(ai): harden public rewrite sanitizer - #491
Merged
JSONbored merged 1 commit intoJun 10, 2026
Merged
Conversation
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 7ba633c | Commit Preview URL Branch Preview URL |
Jun 10 2026, 06:32 AM |
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
This was referenced Jun 10, 2026
JSONbored
force-pushed
the
codex/propose-fix-for-ai-comment-sanitizer-vulnerability
branch
from
June 10, 2026 06:30
92bce9d to
e61f437
Compare
JSONbored
force-pushed
the
codex/propose-fix-for-ai-comment-sanitizer-vulnerability
branch
from
June 10, 2026 06:31
e61f437 to
7ba633c
Compare
This was referenced Jun 10, 2026
JSONbored
deleted the
codex/propose-fix-for-ai-comment-sanitizer-vulnerability
branch
June 10, 2026 06:36
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.
Motivation
Description
src/queue-intelligence.tsto include trust/credential variants, reviewability/scoreability terms, score previews/estimates, and related phrases so the centralized sanitizer covers those additional unsafe terms.src/services/ai-summaries.tsby adding the missing terms toPUBLIC_FORBIDDEN_TEXT_PATTERNandPRIVATE_CONTEXT_PATTERN, and tightened the system/instruction prompts used when calling Workers AI so scoreability/reviewability are explicitly disallowed in public outputs.okAI outcome so public posting always uses the deterministic template when AI is disabled, unavailable, over quota, unsafe, or errors.test/unit/ai-summaries.test.tsto cover scoreability, reviewability, reviewability internals, and the reported rewards/scoreability bypass case.Testing
npm test -- --run test/unit/ai-summaries.test.ts— all tests passed (43 passed).npm run typecheck(tsc --noEmit) completed with no errors.git diff --check(no problems reported).Codex Task