Repository navigation
Conversation
…eIntegrity in the JSON of report, pages and entities #1667 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
This was referenced Nov 11, 2026
Contributor
Author
|
All commits of this draft are on main (landed in the v0.0.175 bundle). Closing the draft. |
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.
Closes #1667
What
Content-store eviction is global by size cap, so an audit's page bodies can be gone later. Only
report,--resumeand re-audits said so. Now every reader of a stored audit shares one census:eviction-notice.tsgetsStoreIntegrity(full, orevictedwith counts), a purederiveStoreIntegrity,readStoreIntegrity(a quiet census),warnStoreIntegrityandcheckStoreIntegrity.warnEvictedPagesis a wrapper, soreportand resume behave as before.read, for readers whose data does not need the bodies. Its wording is truthful about that: the rows come from page data stored with the audit, but a re-run of the rules cannot see those pages.squirrel pagesandsquirrel entitiesprint the notice on stderr when bodies are gone (they printed nothing before).meta.storeIntegrityin thereportJSON (new optional field onAuditReport), and a top-levelstoreIntegrityinpages -f jsonandentities -f json. It is present only when bodies are gone, so absent means intact. Schema version 1.10 (the last commit, on its own).storage.mdx(eviction section),pages.mdx,entities.mdx,output.mdx, which now also tells the twooutcomefields apart (the top-level runoutcomeofsquirrel auditand the ruleoutcomeon skipped and not-checked entries).Acceptance criteria
squirrel report, pages and entities output (and JSON) state how many page bodies were evicted, when any were.apps/cli/tests/cli/store-integrity-1667-e2e.test.tsaudits a local site (temp HOME in the child's env, its own content store), checks thatreport,pagesandentitiesprint no notice and carry nostoreIntegrity, deletes the content store, and checks all three print the notice and carry the field, with the same count everywhere and the notice count equal to the JSON count; the pages rows and entity nodes are still there.Also: unit tests for the derivation, the
readnotice wording and the report and page-map JSON; existing evicted-bodies, page-map and pages e2e tests pass.tsgoin cli, report and core-contracts, root lint,format:check,make validate.Limits: for
entities, the store-reading show path prints the notice;--list,--diffand--inputfiles do not. The squirrelscan agent skill needs no change.