Repository navigation
Probe the Family Site's 404 for Its Security Headers - #507
Conversation
The family site answers its 404 from a handle_errors block of its own, and the live check probed only the blog's. A missing .png on the family host now has to answer 404 with the family's headers, at the cost of one more static request in the sampled run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
A recorded local strict-review pass covers head |
There was a problem hiding this comment.
🟢 Approval recommended
All reviewed files have no unresolved findings, and the supplied assessments unanimously support approval.
No open issues 🎉
What changed in this PR
This pull request extends live URL checks to verify the family site's 404 response includes the expected security headers, with corresponding test, documentation, and request-budget updates.
Changes:
- Adds a family-site missing-file probe and validates its security headers.
- Updates sampled-run tests and static-request accounting for both sites.
- Documents per-site
404probes and revised URL counts.
| File | Description |
|---|---|
OPERATIONS.md |
Documents blog and family missing-file probes and their URL accounting. |
checks/tests/test_check_live_urls_sample.py |
Tests family-probe sampling, budgeting, and missing-header failures. |
checks/README.md |
Describes per-site 404 security-header coverage. |
checks/check-live-urls.sh |
Probes the family site's missing media path and validates its headers. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #507 +/- ##
========================================
Coverage 49.70% 49.70%
========================================
Files 10 10
Lines 3058 3058
========================================
Hits 1520 1520
Misses 1538 1538
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Answers the second Copilot round on promotion #505, whose headline reads: "The family error route lacks coverage for its security headers."
The family site answers its
404from ahandle_errorsblock of its own, and the live check probed only the blog's. A missing/media/live-check-missing.pngon the family host now has to answer404with the family's four headers,Content-Security-Policyincluded.--print-samplelists it as a secondmissingrow, and the sampled run's static budget goes from 5 to 6 of 8. The page budget stays at 30 of 30.OPERATIONS.md and checks/README.md describe a probe per site rather than one.
Verification
test_a_missing_header_fails_on_every_kind_of_responsefails against develop's script and passes with the change. The sampled-run case counts statics across both hosts. The wholechecks/testssuite passes.404with all four headers. With the change, the full contract passes against local staging:PASS - 1296 URLs honored.--strict, pyright, markdownlint, and the prose gate (plussentence-length) are clean. A frontier-tier local pass raised no findings. One comment line is added, so this carries thecommentslabel.🤖 Generated with Claude Code