Skip to content

Compare opt-in filtered aggregate cohorts in MCP (#220) - #331

Merged
jmmana merged 2 commits into
mainfrom
feat/220-cohort-id-filters
Dec 4, 2026
Merged

jmmana merged 2 commits into
mainfrom
feat/220-cohort-id-filters

Conversation

@jmmana

@jmmana jmmana commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Refs #220. Adds the optional cohort_id_filter_sources setting for SQLite and PostgreSQL MCP servers. Filtered reads require aggregate_only and support one direct comparison of the configured integer identifier and an integer literal. The checked membership predicate and aggregate use the same database snapshot, and a single history covers filtered and unfiltered cohorts.

Local validation: Ruff, mypy and 138 focused tests, including SQLite aggregation, an overlapping cohort refusal and a sufficiently different allowed cohort. The Engines workflow exercises the same behavior on PostgreSQL. Proxy enforcement remains open.

Copilot AI balanced review requested due to automatic review settings December 4, 2026 01:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@jmmana
jmmana merged commit 1f1bc0b into main Dec 4, 2026
31 checks passed
@jmmana
jmmana deleted the feat/220-cohort-id-filters branch December 4, 2026 02:01
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.

2 participants