You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[[ignore]]: a cut rules phase loses the 'ignore entry timed out' notice #1419
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.
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.
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.
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.
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.
Activity
WilliamK112 commentedon Oct 31, 2026
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.
nc9 commentedon Oct 31, 2026
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
nc9 commentedon Oct 31, 2026
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
WilliamK112 commentedon Oct 31, 2026
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.nc9 commentedon Oct 31, 2026
Shipped in v0.0.151 (
7b074ed652879078(with the earlier9c6e17fa15b7a5f2in v0.0.149)), verified against main: every acceptance criterion is met. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.151nik