Repository navigation
fix(rules): a rule that threw never resolves its prior findings #999 #1000 - #1007
Conversation
|
Reviewed the diff. I found no blocking issues, and I haven't run the tests.
The logic looks correct. The cap reservation counts thrown rules, so the rule-wide key can't be dropped. Check names can't collide with |
…1000 Signed-off-by: Nik Cubrilovic <[email protected]>
03e35b2 to
cb59c69
Compare
|
Review of #1007. I read the diff and the surrounding code in The fix looks correct and fits the #968 design. A thrown
No blocking issues found. |
Same class as #968/#997, using its rule-wide
<rule>|*key.#999. A rule that throws is recorded as a failed
<rule>-error, which names none of the rule's real checks. When it threw on every page, no key of the rule existed in the resolution signal and the absent key resolved a prior finding on a crawled page.collectResolutionEvidence(packages/rules/src/resolution.ts) now treats that row like a timeout skip: the page it names (or every crawled page when the row names none or its list is clipped) goes under<rule>|*innotEvaluated, neverfailing. The row still takes its ordinary per-check path too, so nothing else changes. The merge needs no change: it already carries on that key. Old consumers ignore the key (only ever carry); old producers send none (behaviour as before). No wire-shape change.#1000. I could not reproduce the premise. The runner's timeout row is stamped with its page by the engine (streaming.ts, adapter.ts), and the publish fold keeps the page list (
pages,pagesTruncatedpast the cap), so the signal already lists only the timed-out pages. No code change;timeout-pages-listed-1000.test.tspins it end to end through the real v1 and streaming engines (the rule times out on some pages, the signal lists exactly those, before and after the publish fold) and a clipped list marking every page. If the lead or reviewer knows a path where the row reaches the signal count-only, tell me where and I will cover it.Files:
packages/rules/src/resolution.ts(+17 -3)packages/audit-engine/tests/rule-error-no-resolve-999.test.ts(new): signal and merge, sampled and compact, all/some/elsewhere/no error, folded and clipped rowspackages/audit-engine/tests/timeout-pages-listed-1000.test.ts(new)Tests: both new files plus timeout-no-resolve-968, compact-resolution-merge, rules resolution and resolution-compact pass (999 file: 6 of 17 failed before the fix); tsgo clean in rules and audit-engine.
Docs: no change needed. Agent skill: no change needed.
Closes #999
Closes #1000