feat: sensitive-population safeguards (#109)#140
Open
William-Hill wants to merge 2 commits intomainfrom
Open
Conversation
#109) - Add institution_sensitive_ml_settings migration and admin ML privacy UI - GET/PATCH /api/admin/sensitive-ml-settings (IR read, admin write); GET /api/sensitive-context - Strip excluded features in complete_ml_pipeline (Postgres-backed loader) - Dashboard KPI + NLQ warnings; extend query audit CSV for sensitive columns / low-sample - Document on AI Transparency page Co-authored-by: Cursor <cursoragent@cursor.com>
…sv_only Fixes Python syntax error that failed ruff/CI on PR #140. Co-authored-by: Cursor <cursoragent@cursor.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.
Summary
Implements #109: per-institution ML feature exclusions, automatic low-sample and sensitive-SQL context warnings, and audit log extensions for natural-language queries.
Changes
institution_sensitive_ml_settings(excluded ML keys + threshold) forbscc/admin/sensitive-ml— toggles + threshold (PATCH admin only; GET admin + IR)/api/admin/sensitive-ml-settings,/api/sensitive-context(authenticated roles perroles.ts)ai_model/sensitive_feature_loader.py; strips features from retention / gateway / low-GPA modelssensitivePopulation.messages; Query page warns and logssensitiveSqlColumns/sensitiveLowSample; export CSV adds columnsVerify
Apply the Supabase migration before relying on settings in production.
Closes #109
Made with Cursor