Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Think about and add tests for discrepancies involving contests not on the CVR #145

Open
vteague opened this issue Jun 30, 2024 · 1 comment
Assignees
Labels

Comments

@vteague
Copy link
Member

vteague commented Jun 30, 2024

Two issues raised by @michelleblom , relating to plurality auditing.

  1. when the system computes potential discrepancies for plurality audits it does not take into account the case where the CVR has a vote for a contest on it that is not on its matching paper ballot (or the CVR does'nt have a vote for a contest that is on the matching paper ballot). This would be the case where the CVRContestInfo for a contest is null in one of the CVR/auditedCVR data structures but not both. I'm thinking of a potential manipulation where contests are added to/removed from the CVR. I'm not sure whether colorado-rla already checks for this somewhere. Each ComparisonAudit has a list of CVR IDs that should contain the contest on it, and I think this is determined based on the ballot manifest. So, it would actually be easy to do a check somewhere that this manipulation hasn't happened. I wrote the discrepancy computation for assertions that checks for this case (to be on the safe side). Although I'm not sure if it's even possible for the system to get into a state where such a CVR/ACVR pair is passed to the discrepancy computation methods. However, if it is possible, then currently for plurality audits no discrepancy would be found in that case.
  2. I'm also not convinced by the isCovering() check that is done in the recordDiscrepancy() method of ComparisonAudit. Which, by the way, is not present in the removeDiscrepancy() method or computeDiscrepancy() method. What it does is if a discrepancy has been computed for a CVR/audited ballot pair, it will not be recorded in a ComparisonAudit's discrepancy counts if the CVR is not meant to have the contest on it. I'm not going to include that check in IRVComparisonAudit unless it's clear there is some reason for it.
@vteague vteague moved this to Todo in CO IRV RLA Jun 30, 2024
@vteague vteague self-assigned this Dec 13, 2024
@vteague vteague added this to the Testing Complete milestone Dec 13, 2024
@vteague vteague moved this from Todo to In Progress in CO IRV RLA Dec 13, 2024
@vteague
Copy link
Member Author

vteague commented Dec 13, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants