Repository navigation
Conversation
nc9
marked this pull request as ready for review
October 30, 2026 08:03
|
Review of #1344 (info checks + rule-timed-out skips).
Completions, docs and CHANGELOG look consistent. I didn't run the tests or CI checks. |
This was referenced Oct 30, 2026
feat(cli): audit --max-duration stops at a wall-clock budget and writes a partial report #1271
#1324
Closed
…ored in skippedChecks #669 #518 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
feat/info-checks-time-budget-skips-669-518
branch
from
October 30, 2026 10:54
e24fec5 to
3555a6f
Compare
|
Reviewed the diff only. I did not run the tests or checks.
Otherwise the design is sound. The block is opt-in in the LLM output, additive and unscored in the JSON, and capped in size. The docs and completions are updated. |
Contributor
Author
|
Landed in v0.0.144 as nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #669
Fixes #518
Decisions from the maintainer: include info checks (additive, unscored) and add the time-budget skip to
skippedChecks; one shared design.What
infoChecks(JSON, always) and<info-checks>(LLM, opt-in with--include-infoonauditandreport) list checks with statusinfo:ruleId,name,check,message,pages(up to 10, sorted),pagesCount,pagesHasMore, the same shape asskippedChecks(newpackages/report/src/info-checks.ts). Never inissues, never inpassed/warnings/failed, no effect on the score. Present only when non-empty, so a report without them keeps today's keys. The slim-JSON reader ignores the key likeskippedChecks(not read back).skippedChecksgainsrule-timed-out(the existing runner skip reason; the PR text asked for "time-budget" but the constant already in core-contracts isrule-timed-out, so that is the value). The runner records a timeout once per audit and counts pages indetails.pages, sopagesCountuses it andpagesmay be shorter or empty.summary.skippedincludes them.output.mdx(info checks section,reasonvalues),reports.mdx(<info-checks>),robots-meta-conflict.mdx(the info check is not a finding). CHANGELOG under Unreleased / Added.Worth knowing
On a small real audit this produced 130 info checks, most of them "No X found" notes. So the LLM block is opt-in (
--include-info, completions and docs updated) and, when on, lists 25 checks with 3 pages each and a<more count>; the JSON always has all of them, capped at 10 pages per check.Tests
packages/report/tests/info-checks-and-timeouts-669-518.test.ts(listing, never an issue, score unchanged, no key when empty, llm block and caps, timed-out skip with page count andsummary.skipped); json-skipped and json-status still pass. packages/report tsgo, apps/cli format, lint, tsgo, controllers/report test,make validate.Consistency with #1325 (
pagesin the JSON report): no shared fields, both are additive top-level keys.Skill (
squirrelscan/skills): its JSON output notes should mentioninfoChecksand therule-timed-outreason; not filed from here.Review follow-ups: info check messages are cut at 500 characters;
squirrel report --input ... --include-infoprints a note and lists nothing (like--include-passed), documented incli/report.mdx; a rule that threw (#1342's skipped row withdetails.errored) is reported inskippedChecksasrule-errored, apart fromrule-timed-out, and the<rule>-errorsand<rule>-timeoutsrun summaries are kept out ofinfoChecks. No code change needed to compose with #1342 (it only readsdetails.errored).