Repository navigation
judge a criterion over every report, never whichever comes first - #41
Merged
agency-builder merged 3 commits intoNov 25, 2026
Merged
Conversation
Collaborator
…identical bodies count once
Contributor
Author
|
Thanks! The fetch-cap test now serves a distinct body per link, so it passes alongside #36's same-bytes check. Checked both merged together locally; they merge in either order. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #37.
With several contributors, the evaluator ran each check once over the joined reports, so
labelled()and the first JSON block read whichever report came first: an unfavourable value later in the order was ignored, and reordering the reports could change the outcome. This implements the rule from #37 (comment).Changes (
app/src/server/checks.ts)numeric_match,live_url, and the figuressourceschecks: every report that states the label must pass, and the detail names any that fail. Conflicting reports fail; a label no report states still fails.schema: each report's JSON block, or the report itself if it is JSON, must pass. Reports with neither aren't counted, and the check fails if none has one.sourcesandmedia: minimums are totals across reports. The links fetched within the 10-fetch cap are taken deduplicated and sorted, so the choice doesn't depend on report order.containsis unchanged: it holds across the joint text.precheck.ts) and replay (replay.ts) pass each delivered report alongside the joint text. With one report, behaviour is as before.Docs
docs/verifiability.mdlink to it.Tests (
app/test/checks.test.ts)numeric_match,live_url,schemaandsourcesfigures, with each case checked in both orders.containsacross the joint text.sourcesandmedia.Note: "conflicting" here means a report whose value fails the criterion; two different values that both pass (e.g. 40 and 50 against
min: 30) still pass.