Skip to content

feat(showcase): reproduce a real browser walkthrough of the synthetic audit - #279

Merged
drevendev merged 4 commits into
masterfrom
beautifulrepo/synthetic-browser-video-20261105
Nov 5, 2026
Merged

drevendev merged 4 commits into
masterfrom
beautifulrepo/synthetic-browser-video-20261105

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Related to #254.

Reader-facing outcome

Adds an optional, reproducible 22-second browser recording helper for the existing fictional Pocket Trails three-checker report. The helper plays back generated, source-verified report.html inside offline Chromium via Playwright, shows the initial before/after summary, scrolls to detailed checker findings and returns to the overview. It writes a real WebM recording, not a fabricated animation; it does not rerun the checks during recording or claim an actual human session.

Boundaries and regression coverage

  • No change to the dependency-free audit, normal CI or existing screenshot workflow. Playwright, its video encoder and Chrome/Chromium are optional preinstalled media tools; no auto-install.
  • Rejects reports without the expected synthetic markers or containing active embed tags. Network blocked in browser context; not a general-purpose untrusted HTML viewer.
  • Refuses to clobber an existing output. Six standalone offline regressions cover report recognition, hostile markup, motion bounds and no-clobber guards.
  • Example README documents exact commands, provenance limits and accessibility caveats; CHANGELOG updated.

Evidence this run

Replayed the previously generated source-derived HTML from Chrome CI #42028014582 (source checkout recorded as 334b59ffd2f952cee1cadceb0aad2c09e62428c8, not a claim of a fresh current-master capture). A real local Chromium/Playwright recording completed at 23.68 seconds, 1280×720, VP8/WebM and was inspected at key frames. Six new preparation regressions passed locally against the drafted helper. This video remains a local proof; it is not committed or publicly published.

Acceptance

Please check exact-head Quality CI, code review, and if optional video dependencies are available a repeat recording of an artifact produced from this PR head. No independent user/device/accessibility acceptance is claimed. This PR must not be merged before separate later-run acceptance under repository gates.

Copy link
Copy Markdown
Owner Author

Current-head evidence update (supersedes the earlier PR-body recording sample):

  • Head under test: 8f5ffe46f4703e0ef4d52438a92e2082924e5479.
  • Real Chrome CI #42045130629 completed successfully and published the fictional four-file artifact. Its evidence.md records checkout 12639d23993160477754398f4c53ace2ea32f425 (the PR test merge checkout, not identical to head SHA).
  • Downloaded the artifact and verified its ZIP SHA-256: 5227926f5bf62e0d6e27b1cc7d85c23f7eac2ebb0171cf952fb806f39712c18c. HTML SHA-256: 721f23794983fd97627e3b57f1b62eb6fb61a42a73165dbb19d7b3377747840c.
  • Recorded a real Chromium + Playwright replay of this report. Inspected initial/detail frames. Result: 23.52 seconds, 1280×720 H.264/MP4, SHA-256 af64b7c8e8c96b455ce69167c3f100f3fdce971c70f4387b9abe62de25cdba93. Descriptive VTT companion prepared locally.
  • Quality CI #42045130903: six jobs completed successfully on the PR head; Chrome is a seventh successful check. Six new preparation unit regressions passed locally.

This is a source-backed fictional HTML report playback, not evidence of a live terminal audit execution, actual outside-repo remediation, screen-reader testing or human adoption. Video/captions are prepared local artifacts, not committed or published on GitHub. Separate later-run review is still required before merge; no same-run approval is claimed.

@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 review of exact head 8f5ffe46f4703e0ef4d52438a92e2082924e5479.

Reviewed all four changed files, current AGENTS.md / CONTRIBUTING.md, the existing demo.py HTML producer and capture.py, #254, PR discussion, and CI jobs. The new recorder is opt-in, leaves the dependency-free audit and default workflows alone, validates the expected synthetic report markers, blocks browser networking, and exclusively creates its WebM output. Its docs correctly distinguish a generated fictional report from a live audit or human session. The Unreleased changelog entry is present.

I also reconstructed examples/combined-audit/record.py locally and verified that its Git blob exactly matches the PR (e54009e74de621388bcde2d38152f97b98ff7acf). Running that exact script with a disposable marker-matching, scrollable HTML test page and real Chromium + Playwright produced a valid VP8 WebM at 1280×720, ~26.76 s (ffprobe). This smoke test checks the video path but does not establish visual acceptance of the real generated report; the PR's Chrome workflow instead verifies the report/screenshot fixture. Quality run #42045130903 (six jobs) and Chrome run #42045130629 are green on this head; there is no CI E2E test of the new video helper.

Environment note (non-blocking): system ffmpeg on PATH alone was insufficient with a Python Playwright install lacking its own encoder download: BrowserContext.new_page failed looking for Playwright's ffmpeg-1011/ffmpeg-linux. With an encoder made available at Playwright's expected location, recording succeeded. A future README clarification such as python -m playwright install ffmpeg would make the optional setup easier to reproduce.

No merge-blocking defect found within the scoped, intentionally synthetic recorder. This is not approval of external publication, actual user activity, assistive-technology accessibility, or completion of all #254 acceptance criteria.

@drevendev
drevendev merged commit 1df1ea2 into master Nov 5, 2026
7 checks passed
@drevendev
drevendev deleted the beautifulrepo/synthetic-browser-video-20261105 branch November 5, 2026 15:26
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