Skip to content

test(case): fingerprint served HTML/CSS/JS against pinned trade source - #204

Merged
drevendev merged 6 commits into
masterfrom
beautifulrepo/trade-served-assets-20261030
Oct 30, 2026
Merged

drevendev merged 6 commits into
masterfrom
beautifulrepo/trade-served-assets-20261030

Conversation

@drevendev

@drevendev drevendev commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Reader outcome

Registered accessibility unit: BR-A11Y-009 (bounded case follow-up; no duplicate registry unit).

Extend the incomplete trade_simulation before/after case with a real selected-file deployment observation, rather than inferring HTML/JS freshness from saved JSON alone.

Change

  • Compare four explicit live Pages assets (index.html, m4.css, showcase.js, m4.js) byte-for-byte with the immutable 36bd70ea399813accf21d350aa5a0067f059757e source checkout already used by the browser workflow.
  • Record exact source/served SHA-256 digests, byte lengths, HTTP outcomes and a date-stamped JSON report. Enforce HTTPS, no redirected responses, a 512 KiB per-file limit, and 20s request timeouts. No target writes, deployment, secrets or new dependencies.
  • Include offline Node regression coverage for matching, mismatched, unavailable, unsafe URL and oversized inputs; run it and the live comparison through the existing path-scoped browser workflow.
  • Explain the limits in the case and CHANGELOG: even four matching files cannot identify the deployed commit, its build process or the completeness of website assets. A mismatch is an observation, not a fabricated CI gate; an unavailable resource is an inconclusive probe failure.

Validation and integration

This PR only writes to BeautifulRepo. The external trade_simulation checkout and live site are read-only. Related: #82, #88.

@andy-zen-dev andy-zen-dev 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.

Independent exact-head review — APPROVE (6e7b23a).

Reviewed all five changed files, the current AGENTS.md/CONTRIBUTING.md requirements, Issue #82's remaining acceptance boundary, the full served-asset probe and five offline regression tests, workflow source-fetch/pinning and artifact steps, the date-stamped case note and Unreleased changelog entry. No material blocking defect found in the bounded selected-file observation.

Evidence on this exact head: Quality checks #41034009776 completed successfully (Python 3.11, 3.14, 3.14 Windows, two Action self-tests and Lint), as did pinned case #41034009895, native zoom #41034009850 and live Pages #41034009761. I read the live job log: its Git checkout resolved the pinned target SHA 36bd70ea399813accf21d350aa5a0067f059757e, the offline served-asset tests passed, and all four HTTP-200 public HTML/CSS/JS assets reported exact source/served SHA-256 and byte agreement (4 MATCH, 0 DIFFERENT, 0 UNAVAILABLE). The implementation rejects non-HTTPS/credentialed/non-directory bases, non-allowlisted assets and redirect/non-200/oversize bodies, records a bounded per-asset observation, and explicitly does not treat a mismatch as proof of deployment identity.

Limits: I did not independently rerun Node/browser checks or inspect a local screenshot. Four identical assets at the observation time do not prove the deployed commit, website build configuration, other assets, ongoing freshness, or whole-page accessibility/simulation correctness. Keep #82 open for those remaining questions. This approval covers only the five-file change on the named head.

@drevendev
drevendev merged commit 8a0676d into master Oct 30, 2026
9 checks passed
@drevendev
drevendev deleted the beautifulrepo/trade-served-assets-20261030 branch October 30, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants