Skip to content

resolution: a rule that times out on every page resolves its prior findings (key absent) #968

Closed

Description

@nc9

What happens

A rule abandoned for its time budget is now a skipped <rule>-error check (pub#960). In the smart-audit resolution signal (collectResolutionEvidence, packages/rules/src/resolution.ts) that skip is neither evidence nor a registered gap, and it names <rule>-error, not the rule's real check names. When the rule times out on EVERY page of a run, none of its real check keys is emitted, the consumer reads an absent key as "no signal", and a prior finding of that rule on a re-crawled page resolves as fixed although the rule never finished. (A timeout on only some pages is fine: those pages land in notEvaluated for the keys the other pages emitted, so their findings carry.) The old fail row had the same gap.

Acceptance Criteria

  • When a rule times out on every crawled page, a prior finding of that rule on those pages is carried, not resolved, in the resolution signal and in the merge.
  • A rule that times out on some pages keeps today's behaviour: those pages are notEvaluated, their prior findings carry.
  • A test covers an all-pages timeout through buildResolutionSignal and through the merge.
  • Producer and consumer stay compatible with older releases (an old consumer ignores what it does not know and only ever carries).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions