Repository navigation
fix(audit-engine): a rule that timed out never resolves its prior findings #968 - #997
Conversation
|
Review of #997. The approach is sound and the fix is narrow. The tests cover both the sampled and compact signals. I found one real gap and a few smaller points.
Security: nothing found. The change is a safe-direction one: carry instead of resolve. Compatibility with older consumers looks right. |
|
Review of #997 (rule-wide The approach is sound. The key only goes in
I found nothing blocking. |
…dings #968 Signed-off-by: Nik Cubrilovic <[email protected]>
tests Signed-off-by: Nik Cubrilovic <[email protected]>
5e1f161 to
377c509
Compare
|
Reviewed the diff. I found nothing that should block the merge. I read the code but did not run the tests or check CI. The change adds a rule-wide
|
Fixes #968.
A rule abandoned for its time budget leaves a skipped
<rule>-errorcheck, which names none of the rule's real checks. When it timed out on every page, the resolution signal had no key for the rule, and the merge resolved a prior finding on a crawled page.collectResolutionEvidencerecords the pages each rule timed out on and emits a rule-wide key<rule>|*(resolutionRuleKey, core-contracts) innotEvaluatedonly, never infailing, so no tally counts it as a check. A skip naming no page, or a clipped page list, marks every crawled page.computeMergecarries a prior finding whose page is listed under its rule's<rule>|*key, and every page of the rule when that key is truncated.Tests:
packages/audit-engine/tests/timeout-no-resolve-968.test.tscovers the signal and the publish merge, through both the original and compact signals: all-pages timeout carries, partial timeout carries its page, a page the rule cleared still resolves, no timeout still resolves. 5 of the 15 fail without the fix. Existing resolution, merge and rescore tests pass.Docs: no change needed. Agent skill: no change needed.
Known coarseness: the in-process timeout path (
runner.ts~536-575) emits a count-only row with no page, so one timed-out page marks every crawled page as not run for that rule. That over-carries, never wrongly resolves. The precise per-page path is atrunner.ts~901 (page-time extractors).