Skip to content

Probe the Family Site's 404 for Its Security Headers - #507

Merged
ptr727 merged 1 commit into
developfrom
feature/family-404-probe
Oct 24, 2026
Merged

ptr727 merged 1 commit into
developfrom
feature/family-404-probe

Conversation

@ptr727

@ptr727 ptr727 commented Oct 24, 2026

Copy link
Copy Markdown
Owner

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 404 from a handle_errors block of its own, and the live check probed only the blog's. A missing /media/live-check-missing.png on the family host now has to answer 404 with the family's four headers, Content-Security-Policy included. --print-sample lists it as a second missing row, 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

  • The family-probe subtest in test_a_missing_header_fails_on_every_kind_of_response fails against develop's script and passes with the change. The sampled-run case counts statics across both hosts. The whole checks/tests suite passes.
  • Before the change, a hand request to the local staging family host for the missing file answered 404 with all four headers. With the change, the full contract passes against local staging: PASS - 1296 URLs honored.
  • shellcheck, shfmt, ruff, mypy --strict, pyright, markdownlint, and the prose gate (plus sentence-length) are clean. A frontier-tier local pass raised no findings. One comment line is added, so this carries the comments label.

🤖 Generated with Claude Code

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]>
Copilot AI lite review requested due to automatic review settings October 24, 2026 20:40
@ptr727 ptr727 added the comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses label Oct 24, 2026
@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: b3ca2b61-1ad0-4660-94a8-ae8b5cf184c5
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ptr727

ptr727 commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head ac9159f81188f9d58ef22b4654ac3a68722f1c68, the content this pull request carries at that commit against develop, and it recorded 0 findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 404 probes 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

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.70%. Comparing base (df563c4) to head (ac9159f).

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           
Flag Coverage Δ
python-3.13 49.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ptr727
ptr727 merged commit 2ada144 into develop Oct 24, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/family-404-probe branch October 24, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Permits the comment lines the pull request adds or edits, which the prose gate otherwise refuses

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants