This repository was archived by the owner on Nov 18, 2026. It is now read-only.
Repository navigation
The sentinel was rebuilding a site nobody publishes, and blaming the deployment - #105
Merged
ChelseaKR merged 1 commit intoSep 10, 2026
Conversation
…deployment tools/verify_live_site.py holds its own copy of the `disclosed.cli site` command. It was last edited on 2026-08-29; since then pages.yml grew four inputs -- --receipts-from (#94), --snapshots-from (#97), --package (#99), --disputes-from (#101) -- and that copy grew none of them. Measured against the live origin on 2026-09-09, before this change: the publisher writes 1,225 files, the rebuild wrote 622, 602 of those 622 differed, and 603 published files were never in the comparison set at all -- 600 institution receipts, both history pages and dataset.jsonld. The receipts are what every page invites a reader to check it against, and nothing had ever fetched one. MINIMUM_FILES = 500 cannot see that; 622 clears it. It failed loudly every scheduled run from 2026-09-08 saying "find out why the deployment is behind the default branch", about a deployment that was correct. The rebuild now takes its inputs from one declared list, and a new test holds that list, pages.yml and `make site` to the same input set in both directions. Run against the live origin afterwards: 1,225 files, 0 differences, exit 0.
ChelseaKR
deleted the
fix/the-sentinel-rebuilds-the-site-that-is-published
branch
September 10, 2026 20:15
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
master'slive integrity sentinelhas been red for three days. Its failure message says to look at the deployment. The deployment is fine.What is actually wrong
tools/verify_live_site.pyholds its own copy of thedisclosed.cli sitecommand, as a literal argument list. It was last edited on 2026-08-29. Since thenpages.yml— the thing that actually publishes — grew four inputs:--receipts-from data/sample.json--snapshots-from data/snapshots--package datapackage.json--disputes-from disputesThat copy grew none of them. So the sentinel has been rebuilding a site this repository does not publish, and comparing the live pages against it.
That is why every institution page differs by a near-constant ~1,210–1,220 bytes while the totals vary: it is one fixed block of markup the publisher renders and the rebuild does not, not a data difference.
The two numbers
Measured against the live origin on 2026-09-09 and again, unchanged, on 2026-09-10, on
origin/masterbefore any change here:So the check that claims "the live surface is what this repository publishes" was examining 622 of 1,225 files, and getting 20 of them right.
The 603 it never looked at are 600 institution
receipt.jsonfiles, bothhistory/<source>/index.htmlpages, anddataset.jsonld. The receipts are the artifact every institution page invites a reader to check it against —pages.ymlrefuses to publish fewer than 500 of them — and the sentinel has never fetched one.MINIMUM_FILES = 500cannot see this. 622 clears a floor of 500, so a whole class of published file leaving the comparison set looks exactly like a smaller site. A floor on the count of things compared says nothing about whether the right things are being compared.And it failed pointing at the wrong thing
Three consecutive scheduled runs — 34240111314 (09-08), 34365526874 (09-09), 34490891921 (09-10) — each reporting the same 603 differences and ending
pages.ymlsucceeded at 09:49 on each of those mornings, from the commit that wasmasterHEAD, and the live front page stamps that day's date. The deployment was never behind. A check that names the wrong cause costs more than one that says nothing: this is the state in which a real staleness gets dismissed as the known noise.What changed
PUBLISHED_INPUTS, which now carries all seven.tests/test_workflows.pyholds three call sites to the same set of inputs —pages.yml,tools/verify_live_site.py, and theMakefile'ssitetarget — failing in either direction, so a fifth input cannot reach the publisher alone.--out,--originand--generatedare excluded by name and with a reason: they are per-caller by design, and requiring them to match would require the sentinel to stop being a sentinel.PUBLISHED_INPUTSagainst the workflow — the tell is every page differing by about the same number of bytes with no deploy in flight).Nothing under
src/moved, andpages.ymlis untouched. The published site is unaffected by this change.Verified
End to end, against the real deployment, on 2026-09-10's tree and 2026-09-10's live site.
origin/master's sentinel, unmodified603 difference(s), exit 1serves exactly what this checkout builds: 1225 file(s), 8,724,883 bytes, exit 0The first row is the strongest evidence here and nothing about it was arranged: the defect is live, so the unmodified tree is the control.
make verifygreen on the rebased branch:1417 passed, exit 0 read from the command rather than through a pipe.Negative controls
Committed first;
git hash-objectasserted changed after each sabotage and asserted equal to the baseline after each restore (git checkout HEAD -- <path>);__pycache__cleared between runs. All five restored cleanly.--disputes-fromfromPUBLISHED_INPUTS(the real incident)--packagefrompages.yml(drift the other way)build_expectedstops reading the list, keeping it declaredPUBLISHED_INPUTS(the floor)Each fired on exactly the guard it was aimed at and left the others green, which is what shows the five are independently load-bearing rather than one assertion written five ways.
One thing I did not do
The first version of the flag scanner read a fixed 2,000-character window after the invocation. In
pages.ymlthat runs past the render step into the next one and picked up a later command's--sourceas an input this render takes — the test failed on its first run for that reason. The window is now the invocation's line plus every following line beginning with--, which is where both wrapped call sites stop. Recording it because the first run is the honest measurement.No issue tracks this defect; it was found by reading the run history for workflows in this repository that have never run or are failing.
Prepared with AI assistance; reviewed before submission.