Skip to content

Enforce SQL-backed count responses in the agent and allow NCID voter lookups#16

Merged
copelco merged 3 commits into
mainfrom
accurate-counts
Apr 16, 2026
Merged

Enforce SQL-backed count responses in the agent and allow NCID voter lookups#16
copelco merged 3 commits into
mainfrom
accurate-counts

Conversation

@copelco
Copy link
Copy Markdown
Member

@copelco copelco commented Apr 16, 2026

Updates the agent prompt rules to improve response accuracy and safety behavior for voter-data questions. The main changes:

  1. Clarify that NCID is a public identifier (not PII), allow NCID-filtered queries, and explicitly allow voter event history lookups by NCID.
  2. Require fresh run_sql_query calls for every reported count/total, preventing reuse of numbers from prior conversation context.
  3. Keep active-voter filtering as default, but exempt NCID-specific voter event history queries from that default filter.

@copelco copelco changed the title Accurate counts Enforce SQL-backed count responses in the agent and allow NCID voter lookups Apr 16, 2026
@copelco copelco marked this pull request as ready for review April 16, 2026 20:54
@copelco copelco merged commit 281856c into main Apr 16, 2026
2 checks passed
@copelco copelco deleted the accurate-counts branch April 16, 2026 20:55
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.

1 participant