Repository navigation
fix(ai-gateway): pii service docs - #8286
tomek-labuk wants to merge 3 commits into
Conversation
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
✅ KSAI Review: Finished Run report (federated) · 1 paid run · $0.0974 total
Reviewing cost $0.0974 |
There was a problem hiding this comment.
| Check | Result |
|---|---|
| Scope | Frozen scope: the two changed files, app/_includes/md/ai-gateway/v2/policies/pii-service.md and app/_kong_plugins/ai-sanitizer/index.md, between base 570dd4c and head 8e7d480. 86 added lines, no deletions, no other path in the diff. |
| Mandate | Ran default-code-review (adversarial) on the added score section and its example table: attacked every claim against the plugin and policy schemas, the example files, the sibling policy page and the shared includes. No source comments, callers or code paths exist in this diff. |
| Findings | 1 Medium |
| Findings audit | Independent audit completed: 1 kept, 1 removed, 0 with insufficient evidence, 0 added. |
Docs-only change: one 43-line section is added to the plugin page and to the shared AI Gateway include, and the diff touches nothing else in the frozen scope.
One factual defect survives: the added sentences about score bounds and a missing score contradict both repository schemas, and the same wrong sentence is now published twice.
The precedence rules, the nrp examples and the service's rejection message describe AI PII service behaviour that no repository file records, so this pass can neither confirm nor refute them.
Structure, table syntax, headings, links and output-block markers in the added lines match repository conventions; no further defect was found in the frozen scope.
juliamrch
left a comment
There was a problem hiding this comment.
Added a suggestion to simplify the text, apply it as you see fit
| The `score` is the confidence value that a custom pattern assigns to its matches. | ||
| The score only matters when a custom pattern and a built-in entity type, such as `email` or `nrp`, match the same text. | ||
| In that case, the higher score is used, and the custom pattern takes precedence when scores are equal. | ||
| Without an overlapping match, a custom pattern is redacted at any score above `0`. |
There was a problem hiding this comment.
| The `score` is the confidence value that a custom pattern assigns to its matches. | |
| The score only matters when a custom pattern and a built-in entity type, such as `email` or `nrp`, match the same text. | |
| In that case, the higher score is used, and the custom pattern takes precedence when scores are equal. | |
| Without an overlapping match, a custom pattern is redacted at any score above `0`. | |
| The `score` is the confidence value that a custom pattern assigns to its matches. | |
| The score matters when a custom pattern and a built-in entity type (like `email` or `nrp`), match the same text. In that case: | |
| * The plugin uses the higher score. | |
| * If scores are equal, the custom pattern takes precedence over the built-in entity. | |
| If no built-in entity matches the same text, the plugin redacts a custom pattern's matches at any score above `0`. |
Description
Context: https://kongstrong.slack.com/archives/CDSTDSG9J/p1795473046060069
Testing
Preview Links
Checklist