Repository navigation
feat(cli): partial-audit marker on reports and publish payload (repo#1082) - #1949
Merged
Merged
Conversation
nc9
force-pushed
the
boat/partial-audit-marker-1082
branch
4 times, most recently
from
November 17, 2026 15:15
f465418 to
7597161
Compare
…1082) Signed-off-by: Nik Cubrilovic <[email protected]>
… rules are excluded (repo#1082) Signed-off-by: Nik Cubrilovic <[email protected]>
…t --publish through the audit guard #1082 squirrel report rebuilt a rule-filtered audit without meta.partialAudit, so report --publish sent a partial score with no marker. The marker is now saved in the crawl's scan scope (no migration, like startRedirect) and restored by reconstruct; report --publish decides through resolvePublishDecision. Renumbers this PR's schema version to 1.25 (1.24 is meta.discovered, #2019), fixes the docs claims for the report path and adds the CHANGELOG entry. Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
boat/partial-audit-marker-1082
branch
from
November 17, 2026 16:11
7597161 to
2602b2d
Compare
nc9
marked this pull request as ready for review
November 17, 2026 16:24
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.
Adds a partial-audit marker for runs narrowed with
--rule-include/--rule-exclude(private issue squirrelscan/repo#1082, CLI side only).PartialAudit(include,exclude,includedCategories) on the report contract, set by the audit controller for a filtered run, absent otherwise.meta.partialAudit, schema 1.25; 1.24 ismeta.discovered, feat(report): record discovered URLs split by sitemap and links (repo#3079) #2019, which merges first), text, markdown, xml and llm output; the stderr "does not mark itself as such" warning is gone.scanScope(same pattern asstartRedirect/maxDuration, no SQLite migration) and restored byreconstructReport, sosquirrel reportandsquirrel report --publishof a filtered audit carry it.partialAudit(viaslimForPublish).squirrel report --publishdecides through the audit's own guard,resolvePublishDecision(reportPublishDecision). The flag is always explicit there, and an explicit--publishof a filtered run publishes on the audit path too, so both paths publish a marked report, with the marker. Auto-publish of a filtered audit is still skipped.computeLockedRulesskips rules the filter turned off; the audit footer filters them too.docs/cli/audit.mdx,docs/configuration/output.mdx; CHANGELOG entry under## [Unreleased].Contract: The private API does not read meta.partialAudit yet (squirrelscan/repo#4834), so a marked publish is still scored as a whole-site report in the cloud until it does.
Acceptance (CLI side):
partial-audit-1082.test.ts"publish payload carries the marker for a filtered run and none otherwise"; rebuilt report:tests/reports/partial-audit-rebuild-1082.test.ts"a marked crawl rebuilds with partialAudit and publishes it".squirrel report -f json/-f texton a rule-filtered audit carries the marker:tests/cli/partial-audit-report-1082-e2e.test.ts(fails on 159fbdb, passes now).report --publishuses the audit guard:tests/commands/report-publish-guard-1082.test.ts.Gates: apps/cli
format:check,lint,typecheckclean; typecheck clean in packages/core-contracts, report, audit-engine. bun test (--timeout 30000, explicit paths): partial-audit-1082, reconstruct-1260, include-pages-e2e, unstored-1396-e2e, rule-filter (68 pass); publish-slim, publish-payload-parity, publish-capped-body, robots-honoured-1782, json-pages-1260 (41 pass); the three new tests, resolve-publish-decision, report-publish-non-public-host (66 pass); report-include-passed, audit-content-store-cap-wiring, completion (116 pass); 0 fail.make validatein docs: all checks passed, 62 pass.Agent skill: no change needed.