Skip to content

[[ignore]]: a cut rules phase loses the 'ignore entry timed out' notice #1419

Closed

Description

@nc9

What

Found in the review of #1333 ([[ignore]]). ignoreTimedOut (the [[ignore]] entries that ran over their regex work budget and stopped waiving) is read from the rules runner after the rules phase. When that phase is cut (--max-duration, a failed audit), the controller returns ignoreTimedOut: [], so a run that was cut loses the "ignore entry timed out" notice even when an entry did time out before the cut. The findings it should have waived then show as ordinary findings with no explanation.

Acceptance Criteria

  • When the rules phase is cut after an [[ignore]] entry timed out, the report's meta.ignored.timedOutEntries still lists that entry's index.
  • The notice reaches every format that shows it today (console, text, markdown, llm, xml, html, json).
  • A run that was not cut, and a cut run where no entry timed out, report exactly what they report now.
  • A test cuts the rules phase after a timed-out entry and asserts the notice.

nik

Activity

  1. added
    bug
    size: S
    on Oct 31, 2026
  2. added theissue type on Oct 31, 2026
  3. WilliamK112 commented on Oct 31, 2026

    @WilliamK112
    Contributor

    I can take this. I’ll trace the cut rules-phase return path, preserve the runner’s timed-out ignore indexes in the partial result, and add a focused regression test that distinguishes timed-out and non-timed-out cut runs. I’ll keep the change scoped to the existing report metadata path and validate the affected CLI/audit suites before opening a PR.

  4. nc9 commented on Oct 31, 2026

    @nc9
    ContributorAuthor

    The "failed audit" sentence has no effect to fix: when the rules phase throws, the audit returns an error and no report is written, so nothing is published as failed from this path.

    nik

  5. nc9 commented on Oct 31, 2026

    @nc9
    ContributorAuthor

    Verified against main after v0.0.149 (the timeout notice is carried out of a cut rules phase). Met and ticked: criteria 1 to 3 (the callback records the timed-out entries as they happen, the cut path reports them in meta.ignored.timedOutEntries, and the uncut path is unchanged). Open: criterion 4, the test cuts the phase at the engine level and asserts the callback saw the entry, but no test asserts the notice in the report of a cut run through the controller. Leaving this open for that test.

    nik

  6. WilliamK112 commented on Oct 31, 2026

    @WilliamK112
    Contributor

    I’ll take the remaining controller-level criterion. I’ll add a deterministic controller test that forces the rules Effect to time out after reporting ignore entry 0, then asserts the returned partial report carries ignored.timedOutEntries: [0] and marks the site checks cut. I’ll keep it test-only and avoid extending production timing seams.

  7. nc9 commented on Oct 31, 2026

    @nc9
    ContributorAuthor

    Shipped in v0.0.151 (7b074ed6 52879078 (with the earlier 9c6e17fa 15b7a5f2 in v0.0.149)), verified against main: every acceptance criterion is met. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.151

    nik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclisize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions