Skip to content

feat(engine): score a capped report from its check tallies (repo#2657) - #642

Merged
nc9 merged 8 commits into
mainfrom
feat/score-from-tallies-2657
Oct 11, 2026
Merged

nc9 merged 8 commits into
mainfrom
feat/score-from-tallies-2657

Conversation

@nc9

@nc9 nc9 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #640 (feat/report-capper-2656). Review that first; this PR's base is its branch, so the diff here is only the rescore. Part of squirrelscan/repo#2655, closes the engine half of squirrelscan/repo#2657. The private half (API wiring + the real-shape fixture parity test) is a separate draft PR in squirrelscan/repo, stacked on squirrelscan/repo#2662.

Why

A capped report lists 10 pages per issue class and drops every per-page pass row. The server's sampled-path rescore (every CLI publish, SMART_AUDITS_CLOUD_ENABLED) counts rows, so on a capped body it would score 10 pages of each class and no passes at all. The capper already ships checkTallies (this run's counts per rule and check name, counted before sampling); this PR makes the rescore read them.

What changes

  • runCloudSmartAudits takes checkTallies. With them and the resolution signal, on the sampled path:
    • fresh side: the tallies;
    • carried side: the findings the merge leaves open, kept in the union only when this run did not evaluate that check on that page. One on a page the tallies already count (failing or passing) stays open in the store but is neither scored, shown nor tagged as carried (carriedLastSeen), and coverage.carriedFindings counts what is shown: the merge carries those when the sample clipped the page or the signal key was truncated;
    • clean-carried synthetic passes: only for carried pages this run did not crawl (a crawled page is in the tallies for every check that evaluated it, and earns nothing for the rest).
    • Returned as scoringTallies (scored with calculateHealthScoreFromTallies, as the complete-store path already is) plus reportTotals, which keeps carried-clean passes out of report.passed like the sampled path does today.
    • The union body keeps the capper's classes (with their true counts) instead of unfolding them to their 10 sampled pages.
    • The merge itself (persist / resolve / carry) is unchanged: it already reads the unsampled signal for clipped pages (docs(rules): fix rule option tables #1185).
  • The capper leaves out what the rescore leaves out: page replays in buildCheckTallies (the merge's isReplayedCheck, moved to published-checks.ts so both read one definition), and checks on pages that returned 404/410, dropped up front (withoutRemovedPages) so the tallies and the classes agree and a capped report shows what the server scores. An aggregate from an earlier fold is reopened only when its pages name a removed page (its total drops by those and stays a floor for any it had clipped); a class whose every page is gone leaves the report. Agreed with the feat(engine): one report capper and a 1 MiB published-report constant (repo#2656) #640 lane, which handed this change over; three of feat(engine): one report capper and a 1 MiB published-report constant (repo#2656) #640's test expectations change accordingly (60→58 pages, 120→116 occurrences, the pre-folded case now on an all-200 input plus a new pre-folded-with-404 test).
  • ruleMixedProvenanceNote / groupIssuesByCategory take the report's tallies: on a capped report (no pass rows) the "Fixed on all N pages checked this run" note now fires as "Fixed on all pages checked this run; M pages pending re-check." instead of silently disappearing. A per-check-name tally cannot give the clean-page count, so it is left out rather than guessed.

Codex reviewed the diff twice; its findings on synthetic passes for crawled pages, the query-blind hash and carried tagging are fixed with tests, the rest are listed below.

Proof

packages/audit-engine/tests/capped-rescore.test.ts publishes the same audit uncapped (today's body) and capped against identically seeded stores and asserts identical health score, category and group scores, passed/warnings/failed and coverage:

  • first audit (60 pages, fails, warns with items and details.additional, skipped, info, an advisory rule, a missing robots.txt penalty);
  • no page findings at all;
  • partial re-audit with open findings (fixed, newly failing, not crawled, a 404, skipped checks): same score, crawled-clean findings resolve, uncrawled ones carry, clipped still-failing ones carry, the 404's stale;
  • a check skipped on pages keeps those pages' findings open;
  • a crawled page whose checks all skipped (dropped from the sample) earns no synthetic pass from its carried finding;
  • a carry the merge keeps on /p?id=1 because /p was not evaluated adds nothing to the score.

A missing (rule, check name) in checkTallies reads as 0 scored (the capper leaves out info-only classes), documented where the rescore reads it.

Mutations checked: scoring every carried finding, the old synthetic-pass rule, the query-blind read, and tallies that count 404 pages each fail the suite. The real-shape fixture parity (first audit, merge off, zero findings, partial re-audit) and the 10,000-page tally size pin are in the private PR, squirrelscan/repo#2663.

Known deviations from the uncapped rescore (documented in code)

  • A prior item finding on a page that still fails the check with an incomplete item list (e.g. the rule lists 3 items + additional: 40): the uncapped union scores each such carried item as one more failed check on top of the fresh one; the tallies count the page once. Capped can read higher by those items.
  • A truncated signal key gives no per-page "not evaluated" list, so a carry on a crawled page under it is treated as counted by the tallies. Matches the uncapped rescore for per-page input (it resolves those); differs when the producer's input was already a sampled aggregate (uncapped carries and scores it).
  • A crawled page no check evaluated (non-HTML, every check skipped) never earns synthetic passes here; the uncapped path credits one with a carried finding when it had no rows at all. Safe direction.
  • A prior finding whose check evaluated no page this run (key absent) on a crawled page: the uncapped merge resolves it, the capped merge carries it (as the sampled path does for clipped pages) and scores it. Safe direction.
  • Category order among exact ties (same failed, warnings and score, e.g. two perfect categories) follows rule order, which the capper canonicalizes.

Docs / skills

No user-facing behaviour or docs change: scores and counts are unchanged by design; the note wording change only applies to capped reports, which no producer publishes until the wiring lands. No skill change needed.

@nc9
nc9 marked this pull request as ready for review October 11, 2026 02:11
@claude

claude Bot commented Oct 11, 2026

Copy link
Copy Markdown

Review of #642 (read from the diff only; I didn't run the tests).

Summary: this moves the sampled-path score for capped reports onto checkTallies instead of the sampled rows. It also extracts isReplayedCheck and REMOVED_STATUSES into a shared published-checks.ts, so the capper and the merge agree on which checks count. The design is coherent. The shared module is the right fix for the two sides drifting apart.

  • (medium) merge-promise.ts scoreFromCheckTallies / notEvaluatedThisRun: the score is exact only if the capper's tallies and the merge's carried-side exclusion cover precisely complementary (check, page) sets. The correctness argument rests on a long chain of invariants: signal key truncation, the query-blind hash fallback, and notEvaluatedByCheck. A mismatch would double-count or drop a finding and silently skew the score. I'd like a property-style test that scores the same input uncapped and capped and asserts equal scores. This should include truncated-key and ?query URL cases. If capped-rescore.test.ts already does this, ignore this.
  • (low) freshTally sanitizes counts with Math.floor, and nothing caps them. A malicious or buggy publisher could send huge counts and swing the score. The server presumably authenticates the publisher, but consider bounding the counts by total pages or by the report size.
  • (low) publish-cap.ts removedPageUrls reads both report.pages and report.pageStatuses. If the two disagree on a URL's status, the URL is treated as removed when either says so. Please confirm that matches the server merge's rule.
  • (nit) if (checkTallies) talliedResults = ... and the talliedResults ?? freshResults fallback add another implicit mode to an already long function. Consider extracting the mode handling.
  • (nit) The carriedLastSeen.delete loop mutates shared state inside the result-building path. A short comment on why callers expect that would help.

No critical or high issues found.

@claude

claude Bot commented Oct 11, 2026

Copy link
Copy Markdown

Reviewed the diff for merge-promise.ts, publish-cap.ts and published-checks.ts. I skimmed the report output changes and the tests, and I did not run the test suite.

  • (medium) merge-promise.ts scoreFromCheckTallies: the result is built by looping over carriedSide, which is keyed on freshForUnion plus the carried rules. A rule that appears in checkTallies but not in freshForUnion would be silently left out of scoringTallies, reportTotals and the score. That can happen if the capper drops a rule that has only pass rows, or if isReplayedCheck filtering empties it. Please confirm that case cannot happen, or iterate over the union of the checkTallies keys and carriedSide. A test where a rule has passes only would cover it.
  • (low) freshTally sanitises the tallies defensively (finite, non-negative, floored). The values come from the client-published body, so a hostile or buggy publisher can still inflate passed to a large finite number and skew the score. If the server treats published tallies as untrusted, consider capping them against crawledUrls.size per check. If it already trusts the publisher, a comment saying so would help.
  • (low) notEvaluatedThisRun has several early returns that depend on both crawledUrls and resolution.crawledUrls, plus a bare-URL fallback for query strings. The logic looks right but it is subtle. Please make sure the tests cover the truncated-signal-key case and the ?query fallback explicitly.
  • (nit) REMOVED_STATUSES and isReplayedCheck moved into published-checks.ts. That is a good dedupe. The long doc comment on isReplayedCheck was moved along with it, which is fine.
  • (nit) withoutRemovedPages uses member.pageUrl!. A short comment on why it is safe (members come from unfoldAggregateCheck) would help.

I found nothing that should block the merge. The stacked-PR design is clear, and the new tests cover the main scenarios (capped against uncapped parity, carried passes, skipped checks).

@nc9

nc9 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Triage of both claude-review rounds on a1af809. Fixes are committed locally (ba9e8d7). They ride the rebase onto main after #640 lands, in a single push.

Second round (02:15)

  • (medium) Rule in checkTallies but missing from freshForUnion. This can't happen for a rule the report carries, and a regression test now pins it. freshForUnion is keyed on every rule in the published ruleResults. The sampled branch sets talliedResults for every rule, including one whose checks isReplayedCheck emptied. The capper publishes every rule id whether or not it kept a class: assemble and admitByBudget both write ruleResults[rule.id] for every rule. So a rule with passes only arrives as { meta, checks: [] } and keeps its key. A tally for a rule the report doesn't carry has no meta and can't be scored, just as none of its rows could be today. New assertion in "no page findings at all": the passes-only rules publish checks: [], and every rule in checkTallies has a scored scoringTallies entry with its passes. A comment at the loop now says this.
  • (low) freshTally counts are unbounded. Rebuttal, now in a comment on freshTally. The tallies are trusted as far as the rows they replace were. Both are the publisher's own account of its own audit, sent under its key for its own site, and a publisher could always send arbitrarily many pass rows. Capping by crawled pages would also be wrong: a rule may emit several checks of one name on a page, and on the real fixture the largest (rule, check name) count already equals the page count. Values that are not finite and non-negative are still read as 0.
  • (low) Explicit tests for the truncated key and the ?query fallback. Added for the truncated key. In "a truncated signal key: a clipped page still failing is counted once, by the tallies", the failing set is clipped to 3 hashes and marked truncated. Five still-failing pages are clipped from the sample and carried by the merge. The capped body matches the uncapped one on score, totals and coverage, and nothing is tagged carried. A mutation that scores carries under truncated keys fails it. The ?query case was already covered by "a carry the merge keeps on a page the tallies count adds nothing to the score" (/p skipped, /p?id=1 failing), and that test also fails under a mutation.
  • (nit) member.pageUrl!. Comment added: every member of an unfolded aggregate carries the pageUrl it unfolded to.

First round (02:11)

  • (medium) Property-style uncapped vs capped parity, with truncated-key and ?query cases. Covered. capped-rescore.test.ts publishes the same audit both ways against cloned stores and asserts equal score, category and group scores, totals and coverage across seven cases, including the two above. The real-shape fixture version is in squirrelscan/repo#2663.
  • (low) removedPageUrls reads both pages and pageStatuses. Fixed. It now uses the same precedence the published statuses are built with: the producer's pageStatuses when it sent them, else its pages. The server's removed set comes from those statuses, so the two can't disagree on a page. Test: "removed pages are read from the producer's pageStatuses when it sent them, as the server reads them".
  • (nit) Extract the mode handling. Left as is. talliedResults mirrors the complete-store shellResults a few lines above (the published checks with replays removed, not unfolded). Splitting runCloudSmartAudits is a bigger refactor than this PR.
  • (nit) The carriedLastSeen.delete loop. Comment added: the map is this call's own, returned only for the API's carried-tagging pass, which must tag just what the union shows.

Base automatically changed from feat/report-capper-2656 to main October 11, 2026 06:21
nc9 added 6 commits October 11, 2026 17:22
The capped report (repo#2656) lists 10 pages per issue class and no pass
rows, so the server's sampled-path rescore can no longer count rows: it
would score 10 pages of every class and no passes.

runCloudSmartAudits takes the report's checkTallies. With them and the
resolution signal, the score comes from this run's tallies plus the carried
side the merge leaves open: carried findings on pages this run did not
evaluate for that check, and clean-carried synthetic passes for pages the
tallies do not already count. Returned as scoringTallies, with reportTotals
for the report's passed/warnings/failed (carried-clean passes stay out of
report.passed, as on the sampled path today). The union body keeps the
capper's classes instead of unfolding them. The merge itself is unchanged.

buildCheckTallies leaves out what the rescore leaves out: page replays (the
merge's isReplayedCheck, now shared in published-checks.ts) and checks on
pages that returned 404/410.

The "fixed on all pages checked this run" note reads a capped report's
tallies when its rows hold no passes, and drops the clean-page count it
cannot get from them.

Signed-off-by: Nik Cubrilovic <[email protected]>
… not count (repo#2657)

A finding the merge carries on a page this run evaluated for its check (the sample clipped the page, or the signal key was truncated) is already in the tallies and in its class's true count. It stays open in the store, but the union no longer shows it as carried or counts it in coverage.carriedFindings, so the coverage line matches the uncapped report's.

Signed-off-by: Nik Cubrilovic <[email protected]>
…; read the query-blind hash as the union does (repo#2657)

A page this run crawled is in the tallies for every check that evaluated it and earns nothing for the others, so a capped report's union never credits it a clean-carried pass, even when it carries a finding (the sample can drop a page whose checks all skipped, which the uncapped path still counted as crawled). And a page's query-blind hash only marks it not evaluated when no crawled page owns that spelling, so /p skipped no longer re-scores a carry on /p?id=1 that the tallies already count.

Signed-off-by: Nik Cubrilovic <[email protected]>
…shows (repo#2657)

carriedLastSeen kept entries for carries the union leaves out (pages the tallies count), and the API's tagging pass then labelled the fresh check on that page carried.

Signed-off-by: Nik Cubrilovic <[email protected]>
…h its tallies (repo#2657)

The capper removes checks on pages that returned 404/410 this run before it counts the tallies and folds the classes, so the two agree and a capped report shows what the server's rescore scores. An aggregate from an earlier fold is reopened only when its pages name a removed page; its total drops by the removed pages its sample named and stays a floor for any it had clipped. A class whose every page is gone leaves the report. buildCheckTallies goes back to one argument; a missing tally entry is documented as 0 scored where the rescore reads it.

Signed-off-by: Nik Cubrilovic <[email protected]>
…s statuses first, truncated-key and passes-only tests (repo#2657)

removedPageUrls reads the producer's pageStatuses when it sent them, else its pages, the same precedence the published statuses are built with, so the capper and the server cannot disagree on a page. New tests: a truncated signal key (a clipped page still failing is counted once, by the tallies), rules of passes only (no rows published, still scored), and the pageStatuses precedence. Comments on why freshTally is not bounded by pages, why every tallied rule has a union key, and on carriedLastSeen and unfolded members' pageUrl.

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the feat/score-from-tallies-2657 branch from a1af809 to df2caa7 Compare October 11, 2026 06:23
@claude

claude Bot commented Oct 11, 2026

Copy link
Copy Markdown

Review of #642 (read the diff and PR description; I did not run the tests, and I read the merge-promise.ts and publish-cap.ts changes more closely than the report output files).

The approach holds up. isReplayedCheck and REMOVED_STATUSES now live in one module that the capper and the merge both import. The deviations from the uncapped rescore are documented, and each one errs toward the safe side. The parity test that publishes the same audit uncapped and capped and compares scores is the right proof.

  • (medium) merge-promise.ts freshTally: the tallies come from the publish body, and the only validation is that each count is finite and non-negative. A client can send very large passed counts and inflate its own health score, because the rows that used to bound this are gone. The doc comment says the trust matches the old rows, which is mostly true. Rows were still bounded by body size, though, and the tallies aren't bounded at all. Consider capping each count at something tied to crawled pages times checks per page, or at least a sanity ceiling. If scores are shown publicly, this matters more.
  • (low) notEvaluatedThisRun falls back to the query-blind hash (url.slice(0, q)). It is only correct while withoutUnscorablePages keeps the same logic. The two copies can drift apart, so a shared helper or a test that exercises both would be safer.
  • (low) scoreFromCheckTallies returns tallies only for rules in carriedSide, which is built from freshForUnion plus carried rules. A rule that appears only in checkTallies is silently dropped. The comment says this is intended, but a test pinning it would help.
  • (nit) carriedLastSeen is mutated in place inside runCloudSmartAudits. The comment explains why, but a returned filtered map would be clearer.

Nothing here should block the merge.

…repo#2657)

site-pages-contract-coverage.test.ts requires every upsertSitePages implementation in the repo to run describeSitePagesContract; the test double added for repo#2657 did not.

Signed-off-by: Nik Cubrilovic <[email protected]>
@claude

claude Bot commented Oct 11, 2026

Copy link
Copy Markdown

Review of the engine half of the capped-report rescore. I read the merge-promise.ts, publish-cap.ts and published-checks.ts changes. I skimmed the report-package and test changes and did not run the suite or check CI.

(medium) merge-promise.ts notEvaluatedThisRun: its correctness depends on the signal's failingByCheck and notEvaluatedByCheck agreeing with the capper's tallies. When a class is clipped, a carried finding on a clipped page is dropped from the union as "evaluated", and the tallies must count that page. That holds only if checkTallies and the signal were built from the same report. If a publisher sends tallies from one build and a signal from another (older CLI, partial body), a finding can be dropped and also not counted. Consider a cheap sanity check, for example falling back to the row-based path when checkTallies lacks a rule that the signal's failingByCheck lists.

(medium) freshTally: the tallies come in a publish body and are only clamped to non-negative integers. There is no upper bound, so an inflated passed or failed count lifts or sinks the score. The comment says this is trusted like the rows. That is fair for the owner's own site, but the score is now one number away from arbitrary. If scores are ever shown outside the owner's account, such as public share links or badges, consider bounding counts by pages crawled times a per-page factor.

(low) buildCheckTallies behaviour change: isReplayedCheck is gated on isPageAttributed. A site-scope check with a stray carried or unrendered tag used to be skipped and is now counted. This matches the merge, and the shared definition is the right fix. A one-line test for the site-scope case in publish-cap.test.ts would pin it, if one does not exist.

(low) withoutRemovedPages: the count Math.max(total - gone, kept.length) is a floor, and the doc says so. A class whose sampled pages are all removed but whose true count is larger is rebuilt from kept only. The remaining pages are then lost, because the sample can't name them. Please confirm this is acceptable for the score. The tallies are built from live, which has the same gap.

(low) scoreFromCheckTallies: reportTotals.passed += tally.passed - synthetic relies on addChecksToTally adding synthetic to passed. A small unit test that fails if that coupling changes would help. capped-rescore.test.ts covers it only indirectly.

(nit) In runCloudSmartAudits, carriedLastSeen is mutated in place to drop keys. That works, but building the filtered map once would be clearer than deleting during iteration over keys(). Deleting during iteration is legal for Map.

(nit) freshTally re-implements non-negative-integer coercion inline. If a shared helper exists in utils, use it.

No critical issues found. The merge itself is unchanged, and the parity test (capped vs uncapped body giving the same score) is a good proof of intent. Nothing blocks merging.

…e shown carries as a new map (repo#2657)

notEvaluatedThisRun and withoutUnscorablePages now share signalHashes (own hash plus the #2063 query-blind spelling when no crawled page owns it), so the two cannot drift. The capped path returns its filtered carriedLastSeen as a new map instead of deleting from the one it built. freshTally's comment says why the tallies are not bounded: a publisher could always reach any score by leaving its fail rows out. New test: a tally for a rule the report does not carry is not scored.

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9

nc9 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

Triage of the 06:24 review (on df2caa7). The fixes are in 03b4888, which also carries the site-pages contract fix (134dae6).

  • (medium) freshTally counts are unbounded. Rebutted. A bound on the counts would not protect anything in this rescore. The publisher controls the whole body, and the rescore has no evidence of its own to check it against. Even with rows, a publisher could always reach any score, 100 included, by leaving out its fail and warn rows on the pages it claims to have crawled. The merge would then resolve its prior findings on those pages, because the signal says they were crawled clean, and that signal is the publisher's too. The robots and sitemap penalty checks are publisher rows as well. Huge pass counts reach nothing that omitting fails does not already reach, and the score is the publisher's own site's score under its own key. A per-page cap also isn't safe: a rule can emit several checks of one name on a page. The reason is now in freshTally's comment.
  • (low) The query-blind hash fallback was duplicated in notEvaluatedThisRun and withoutUnscorablePages. Fixed. Both now call one signalHashes(url, crawled) helper: the page's own hash, plus the docs: Article JSON-LD on docs pages fails our own json-ld-valid (missing author.name, publisher.logo) #2063 query-blind spelling when no crawled page owns it. Each caller passes its own crawled predicate, so both behave as before. The /p and /p?id=1 test covers the capped path, and the existing sampled-path suites pass unchanged.
  • (low) A tallies-only rule is dropped. Pinned. New test "a tally for a rule the report does not carry is not scored": a ghost rule in checkTallies with 99 failures gets no scoringTallies entry, and the score and totals are identical to the same body without it.
  • (nit) carriedLastSeen mutated in place. Changed. The capped path now returns the filtered map as a new Map.

Local: tsgo clean. capped-rescore, site-pages-contract-coverage, cloud-merge, sampled-audited-pages, publish-cap, carried-provenance-merge, item-locator-resolve, complete-store-parity, scan-truncated-carry and bounded-carried-merge pass, 214/214.

@claude

claude Bot commented Oct 11, 2026

Copy link
Copy Markdown

Review of the rescore from checkTallies (diff read; I did not run the tests or the stacked #640 base).

The change hangs together. The carried and fresh sides are kept disjoint by notEvaluatedThisRun and notCrawledThisRun. isReplayedCheck now has a single definition in published-checks.ts. freshTally sanitizes non-numeric counts. capped-rescore.test.ts is thorough. I found nothing that should block the merge.

  • (low) merge-promise.ts notEvaluatedThisRun: it treats a check with no failingByCheck key as "evaluated nothing, so keep the carry". A truncated signal key is the case where that could go wrong. The doc comment says the merge carries those findings when the key was truncated. Please add a test with a truncated key plus a crawled page, to pin that nothing is scored or shown twice.
  • (low) publish-cap.ts withoutRemovedPages: pagesTruncated is recomputed as Math.max(total - gone, kept.length). A removed page that an earlier fold had already clipped is invisible, so the count stays a floor, as the comment admits. The published tallies and the server's scoring can then differ slightly on that path. That is acceptable, but a one-line note in the PR description would help.
  • (low) withoutRemovedPages uses member.pageUrl!, which relies on unfoldAggregateCheck always setting pageUrl. A defensive member.pageUrl && removed(...) would avoid a crash on a malformed published body, since this code runs server-side on untrusted input.
  • (nit) scoreFromCheckTallies iterates only the rules in carriedSide, which come from freshForUnion plus the carried-only rules. A tallies entry for an unknown rule is silently dropped. The comment says so, but a debug counter would make it easier to spot publisher drift.
  • (nit) talliedResults filters replays on r.checks. freshResults goes through an additional loop that is not mirrored here (for example the checksTruncated bookkeeping). A short comment on why the two paths intentionally differ would help future readers.

Security: I saw no new concerns. The tallies are untrusted input and are clamped by freshTally, and the comment about not bounding them is reasonable.

@nc9

nc9 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

Review triage (integrator, head 03b4888):

  • (low) truncated key plus a crawled page: already pinned. capped-rescore.test.ts "a truncated signal key: a clipped page still failing is counted once, by the tallies" clips the failing set and marks it truncated, carries the clipped still-failing pages through the merge, and asserts the capped body matches the uncapped one on score, totals and coverage with nothing tagged carried.
  • (low) pagesTruncated floor in withoutRemovedPages: deliberate. A page an earlier fold already clipped is not visible to subtract, the code comment states the count is a floor, and the score reads checkTallies, not pagesTruncated.
  • (low) member.pageUrl!: deliberate. Members come from unfoldAggregateCheck, which always sets pageUrl (comment at the call), and the capper has no server-side call site on untrusted bodies yet; the change that wires it into the API inherits that requirement.
  • (nit) debug counter for dropped tallies, and the talliedResults vs freshResults comment: left as is.

@nc9
nc9 merged commit ab4ab28 into main Oct 11, 2026
15 checks passed
@nc9
nc9 deleted the feat/score-from-tallies-2657 branch October 11, 2026 06:49
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