fix(site): the weekend rule reached the table and not the sentence - #24
Merged
Conversation
PRICE_SCHEDULE learned on 2026-08-22 that peak is weekdays only. Four places that a reader (or a search engine) actually reads did not: the cost page's rate-card blurb and three JSON-LD FAQ answers went on saying peak runs "01:00-04:00 and 06:00-10:00 UTC daily", and the pricing strip's not-yet-live branch still described the previous era's flip because adding a new era silently repointed eras[-1] at it. Fixed, and then closed the class: price_now_verdict() now derives the day restriction from the schedule instead of spelling it out, and check_peak_claims() fails the build when any <h2> section quoting both peak windows omits the restriction the schedule is actually in. The escape hatch is a marker, not a turn of phrase — a news entry about a superseded announcement carries <!-- claim:historical --> on purpose, so history cannot be claimed by accident. Verified both directions: dropping a qualifier fails, and dropping `days` from the schedule fails five sections that still said Mon-Fri.
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.
PRICE_SCHEDULElearned on 2026-08-22 that peak is weekdays only. Fourplaces a reader — or a search engine — actually reads did not.
What was stale
cost/rate-card blurb: "Peak hours are 01:00–04:00 and 06:00–10:00 UTC daily"news/, which is the text that gets quoted back in search resultsbench/'s "schedule what can be scheduled" bullet, which named the windows and not the daysprice_now_verdict()'s not-yet-live branch, which still described the previous era's flip: adding the weekend era repointederas[-1]at a new instant while the copy went on saying "every hour bills at the flat card below"make price-checkcompares the CLI's card against the gateway's, andbuild.py --checkcompares committed HTML against the generator. Neithercan see a sentence disagreeing with the table it sits next to.
What stops it recurring
check_peak_claims()runs on every build and every--check. It splitseach page on
<h2>— the unit a reader arrives at from a search result —and fails when a section quotes both peak windows without the day
restriction read off
PRICE_SCHEDULE, not typed into the check.price_now_verdict()now derives that phrase too, so both branches of itfollow the data.
The escape hatch is a marker, not a turn of phrase: a news entry about a
superseded announcement carries
<!-- claim:historical -->. "This ishistory" is a claim the author makes on purpose.
Verified both directions
exit=1, namesbench/: What it means in practicedaysfromPRICE_SCHEDULEexit=1, names all five sections that still say Mon–Frimake site-checkclean. No rate-card numbers changed — the card alreadymatched both published tables.