-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Fix replicate to foreign server without PDPA #21978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,7 +69,7 @@ always_block_keywords: | |
| exceptions: | ||
| - "human in the loop" | ||
| - "human review" | ||
| - "human oversight" | ||
| - "with human oversight" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Narrowed exception may miss valid phrasing Changing from Consider additionally listing other common phrasings that convey the same intent, such as:
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||
| - "appeals process" | ||
| - "explainability" | ||
| - "fairness audit" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Broad identifier may cause false positives
Adding bare
"PDPA"as an identifier word means any sentence mentioning "PDPA" alongside anyadditional_block_wordsentry will trigger a block. Since identifier matching uses case-insensitive substring matching (if identifier in sentence_lower), this could block legitimate requests like:"pdpa"+ block word"export")"pdpa"+"copy to")These seem like informational queries that should be allowed. The existing exceptions (
"explain","what is","how to comply") won't cover all such cases.Consider whether a more specific phrase like
"PDPA data"(already present at line 17) or"under PDPA"would be sufficient, or add more exceptions to guard against false positives on informational queries.