Skip to content

feat: sensitive-population safeguards (#109)#140

Open
William-Hill wants to merge 2 commits intomainfrom
feat/issue-109-sensitive-population-safeguards
Open

feat: sensitive-population safeguards (#109)#140
William-Hill wants to merge 2 commits intomainfrom
feat/issue-109-sensitive-population-safeguards

Conversation

@William-Hill
Copy link
Copy Markdown
Collaborator

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

  • Migration institution_sensitive_ml_settings (excluded ML keys + threshold) for bscc
  • Admin UI /admin/sensitive-ml — toggles + threshold (PATCH admin only; GET admin + IR)
  • APIs /api/admin/sensitive-ml-settings, /api/sensitive-context (authenticated roles per roles.ts)
  • ML pipeline reads exclusions from Postgres via ai_model/sensitive_feature_loader.py; strips features from retention / gateway / low-GPA models
  • Dashboard KPI payload includes sensitivePopulation.messages; Query page warns and logs sensitiveSqlColumns / sensitiveLowSample; export CSV adds columns
  • AI Transparency page documents the feature

Verify

cd codebenders-dashboard && npm run lint && npm test && npm run build

Apply the Supabase migration before relying on settings in production.

Closes #109

Made with Cursor

William-Hill and others added 2 commits May 3, 2026 15:46
#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>
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.

feat: sensitive-population safeguards — feature exclusion lists and context warnings

1 participant