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

Spec: Move k-anon updates to async finish reporting step. #1036

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

MattMenke2
Copy link
Contributor

@MattMenke2 MattMenke2 commented Feb 14, 2024

Browsers should only update k-anonymity when an ad is actually used, as a mitigation against running bogus auctions to game k-anon logic.

Note that this is also where bid counts are updated (when there's a winner) and when prevWins are updated. I'll update those after this lands.


Preview | Diff

Browsers should only update k-anonymity when an ad is actually used, as a mitigation against running bogus auctions to game k-anon logic.

Note that this is also where bid counts are updated (when there's a winner) and when prevWins are updated.  I'll update those after this lands.
@JensenPaul JensenPaul added the spec Relates to the spec label Feb 16, 2024
Copy link
Collaborator

@qingxinwu qingxinwu left a comment

Choose a reason for hiding this comment

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

Yes, we do k-anon update after navigating to winning ad!
We also update k-anon when auction failed in implementation. Need to do that in spec as well. It's up to you to fix it in this PR, or in a separate one.

@MattMenke2
Copy link
Contributor Author

Yes, we do k-anon update after navigating to winning ad! We also update k-anon when auction failed in implementation. Need to do that in spec as well. It's up to you to fix it in this PR, or in a separate one.

This CL only moves the code about updating the k-anon status of the actual winning IG and the winning ad. I'm not seeing any discussion (winner or not) of updating the k-anon status of a non-k-anon IG that would have won the auction if it were k-anonymous. I'm not really an expert in that space, and don't plan to add that for either the success or failure case, I'm solely working on moving things that happen on ad load start so they're correctly described as happening after ad load start.

@MattMenke2
Copy link
Contributor Author

Yes, we do k-anon update after navigating to winning ad! We also update k-anon when auction failed in implementation. Need to do that in spec as well. It's up to you to fix it in this PR, or in a separate one.

This CL only moves the code about updating the k-anon status of the actual winning IG and the winning ad. I'm not seeing any discussion (winner or not) of updating the k-anon status of a non-k-anon IG that would have won the auction if it were k-anonymous. I'm not really an expert in that space, and don't plan to add that for either the success or failure case, I'm solely working on moving things that happen on ad load start so they're correctly described as happening after ad load start.

Actually, looks like there's a TODO about this?

TODO: Run score and rank a bid on generatedBid to find the highest scoring bid that isn’t k-anonymous. After the auction, if the highest scoring bid that isn’t k-anonymous has a higher score than the highest scoring k-anonymous bid, then call increment ad k-anonymity count on it.

That actually has to be done whether there's a winner or not. So definitely more work to be done there.

@qingxinwu
Copy link
Collaborator

Yes, we do k-anon update after navigating to winning ad! We also update k-anon when auction failed in implementation. Need to do that in spec as well. It's up to you to fix it in this PR, or in a separate one.

This CL only moves the code about updating the k-anon status of the actual winning IG and the winning ad. I'm not seeing any discussion (winner or not) of updating the k-anon status of a non-k-anon IG that would have won the auction if it were k-anonymous. I'm not really an expert in that space, and don't plan to add that for either the success or failure case, I'm solely working on moving things that happen on ad load start so they're correctly described as happening after ad load start.

Actually, looks like there's a TODO about this?

TODO: Run score and rank a bid on generatedBid to find the highest scoring bid that isn’t k-anonymous. After the auction, if the highest scoring bid that isn’t k-anonymous has a higher score than the highest scoring k-anonymous bid, then call increment ad k-anonymity count on it.

That actually has to be done whether there's a winner or not. So definitely more work to be done there.

Yes, more work around that. This PR LGTM!

@domfarolino domfarolino merged commit 0c616e4 into WICG:main Mar 5, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Mar 5, 2024
SHA: 0c616e4
Reason: push, by domfarolino

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to qingxinwu/turtledove that referenced this pull request Mar 6, 2024
SHA: 0c616e4
Reason: push, by qingxinwu

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Relates to the spec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants