Accessibility release verification
WCAG conformance is established per success criterion, not by an automated score. Plamenu therefore keeps two complementary records for each release candidate: a repeatable browser report and reviewed manual evidence. The normative target is WCAG 2.2 Level AA; the sampling and evidence approach follows WCAG-EM.
Automated browser gate
Install the pinned packages and matching browser container once, then run the full matrix against an isolated disposable Plamenu and PostgreSQL fixture:
./dev a11y-install
./dev a11y
The default runner uses the digest-pinned official Playwright image so all
three engines have the same reviewed runtime on different developer hosts.
The test image additionally contains the distro encoder and PulseAudio. Its
private null sink lets headless Firefox run real Web Audio/MediaRecorder without
a physical sound card; it discards output and does not contact a host sound
server. The sink is enabled only in the test container and ends with that run.
It is not a Plamenu installation or production-service dependency.
The browsers share a disposable TLS proxy’s network namespace: canonical
https://localhost URLs, including absolute media and caption URLs, resolve
to that fixture without request rewriting. The native server binds only to
Docker’s bridge gateway, and host readiness ports bind only to loopback.
The runner exports the proxy’s ephemeral CA certificate, generates a fresh
fixture-local NSS database with the browser image’s own library, and trusts
that CA only inside the disposable browser container. Firefox imports it by
an explicit container-only automation policy; WebKit uses the container’s certificate store. Browser
and API contexts verify certificates normally. No host certificate store or
browser profile changes. Local-browser mode is rejected because it cannot
provide this isolated trust contract. The service-worker qualification uses
actual HTTPS login cookies, channel image uploads and reload freshness in all
three engines; the other accessibility cases block workers for deterministic
page sampling. A release report still requires every project. The suite exercises representative signed-out and signed-in pages at desktop
and 320 CSS-pixel mobile viewports. Firefox uses a narrow desktop viewport
with touch enabled, not Android emulation: Playwright documents isMobile
as unsupported in Firefox.
The lightbox regression uses real mouse pointers
to drag and real touch taps to dismiss in touch-enabled projects; this is not
physical-device swipe/pinch coverage. It runs axe rules tagged for WCAG 2.0,
2.1, and 2.2 Level A/AA, plus document structure, duplicate-ID, skip-link,
keyboard-focus, reflow, Russian, dark-theme, reduced-motion, forced-colours,
and no-JavaScript contracts. The result is
target/accessibility/runs/<run-id>/automated.json, alongside that run’s
server identity, server log and browser artifacts. An explicit A11Y_REPORT_PATH
must also name a new file; existing reports are never overwritten. A passing axe scan is only evidence for
the rules it can evaluate; it is never treated as a conformance determination.
Every test attempt restores a database and media copy from the offline seeded
baseline and starts its own application process. Sessions are reused only
within that journey; passwords, MFA, rate limits, notifications, drafts and
background jobs cannot carry over to the next test or retry. The mailbox and
offline proxy are reset at the same boundary. Existing seed accounts and UI
assertions are unchanged. The server and encoder process group are stopped
before teardown completes, with a two-second graceful stop budget before forced
termination. This disposable teardown does not qualify graceful-shutdown behavior.
fixtures.json records ownership transitions,
reset duration and each attempt’s server log/identity paths.
Execution remains serial: multiple workers are rejected. Use ./dev a11y,
including for filtered runs; direct Playwright execution against a standing
instance is rejected. Test success remains pending-cleanup, with
full_pass: false, until the runner has closed its services and removed its
containers. Interrupted setup or cleanup cannot qualify a report. The reset
cost is recorded so later optimizations can be measured without sharing state.
Use Playwright arguments to narrow a diagnostic run, for example:
./dev a11y --project chromium-desktop -g 'signed-out'
A release report must match every case in the source-bound browser inventory. Schema-2 reports retain the selected IDs and every attempt; qualification checks the individual results rather than trusting aggregate counters. Narrowed, interrupted, retried, failed, stale-inventory, or dirty-source reports are rejected. Schema-1 reports require a new run. Collection-only output is never execution evidence.
accessibility/coverage-policy.json lists exact case/project/reason combinations
for intentional catalogue duplication and limitations of the pinned browser
runtime (CDP authentication, MediaRecorder and DOM fullscreen). These remain
visible as exclusions, not passing tests. A missing fixture, an unexpected skip,
or a fixme for a known defect still prevents full qualification. Changing the
exclusion policy requires reviewing and refreshing the inventory. Manual evidence
continues to cover physical hardware and assistive technology outside the runtime.
Diagnose recording and fullscreen support
The pinned Playwright 1.63.0 Linux image’s WebKit 26.6 does not expose
MediaRecorder in either headless WPE or headed GTK. Both runtimes omit the
recorder feature; attempting --features=+MediaRecorder in WPE reports that
the feature is unavailable. Installing a microphone or switching to Xvfb does
not supply this API. The image already includes GStreamer base/good/bad/libav
plugins, FFmpeg and a private PulseAudio sink. A different WebKit build must
demonstrate actual recording before removing the nine publisher exclusions in
each WebKit project.
Playwright also explicitly disables DOM fullscreen when WebKit’s isMobile
option is true. This accounts for the two mobile fullscreen exclusions.
Desktop WebKit fullscreen works. Changing isMobile to false tests desktop
behavior at a narrow viewport; it does not verify Safari on an iPhone.
The standalone diagnostic below needs no Plamenu server or accounts. It checks
capabilities, records synthetic moving video and audio with the real browser
encoder, decodes both streams with FFmpeg, and enters/exits real DOM fullscreen
where exposed. It runs serially and always writes full_pass: false; a completed
diagnostic can contain unsupported capabilities. It never qualifies a gate.
Use a new output directory for every run; existing evidence is not overwritten.
# After ./dev a11y-install, from the repository root:
probe_image="plamenu-accessibility-encoder:$(sha256sum accessibility/Dockerfile | cut -c1-16)"
probe_output="target/media-runtime-$(date -u +%Y%m%dT%H%M%SZ)"
mkdir "$probe_output"
docker run --rm --init --network none --shm-size 1g \
--user "$(id -u):$(id -g)" -e A11Y_NULL_AUDIO=1 \
-e "A11Y_BROWSER_IMAGE=$(docker image inspect --format '{{.Id}}' "$probe_image")" \
-v "$PWD:/work:ro" -v "$PWD/$probe_output:/evidence" -w /work \
"$probe_image" node accessibility/probe-media-runtime.mjs /evidence/headless
Add xvfb-run -a before node and --headed after the output directory to
also compare GTK. Use --case=chromium-headless-control,
--case=webkit-headless-desktop, --case=webkit-headless-mobile, or
--headed --case=webkit-headed-desktop to investigate one case. On a Mac with
the matching Playwright browsers and FFmpeg installed, the same Node command
can write to a local directory without Docker or A11Y_NULL_AUDIO. That is a
WebKit diagnostic, not verification of Apple’s shipping Safari.
Safari and iOS device verification
Use a disposable Plamenu account on a trusted HTTPS test deployment, and record the application revision, hardware, OS and Safari versions with the evidence. On macOS Safari and an actual iPhone/iPad, check:
- Camera/microphone permission denial and retry; private preview and cancel; start/stop a broadcast; audio and video received by a second viewer; replay after stopping; and release of the capture indicators after cancel/stop. On platforms offering screen capture, also check camera/screen switching and continuing audio. Record unavailable APIs explicitly.
- VOD playback in portrait and landscape; enter/exit fullscreen through the offered controls; verify the whole picture, seek/pause controls, touch reveal, rotation, and return to inline playback. Distinguish DOM fullscreen from the platform’s native video fullscreen; a native player does not validate Plamenu’s custom DOM fullscreen controls.
- The same controls with VoiceOver, including names, focus, errors and recovery.
Attach recordings/screenshots and observations to manual-media,
manual-adaptation, manual-input and manual-cross-platform as applicable.
If the device is unavailable, keep those checks unverified. Desktop viewport
emulation and capability probes cannot substitute for these results.
Criterion and manual evidence gate
accessibility/criteria.json inventories every WCAG 2.2 Level A and AA
criterion. It deliberately includes obsolete criterion 4.1.1 with the W3C
status and rationale so an absent row cannot be mistaken for an audit gap.
The same catalog tracks the programme’s preferred AAA targets without turning
them into a site-wide AAA claim.
accessibility/manual-checks.json groups the required human procedures while
preserving criterion-level traceability. Validate both with:
./dev a11y-matrix
After the automated matrix passes on a clean release-candidate commit, create the manual record:
./dev a11y-evidence target/accessibility/runs/RUN_ID/automated.json /secure/release-evidence.json
Complete every generated check with:
status: "pass"only after its full procedure passes;- the tester’s name and an ISO 8601
checked_attimestamp; - exact browser, operating-system, device, and assistive-technology versions
in
environments; - durable screenshot, video, accessibility-tree, measurement, or test-note
paths in
artifacts; and - concise observations in
notes, including sampled content and processes.
The cross-platform procedure requires Chromium, Firefox, and WebKit at desktop and mobile sizes; NVDA with Firefox and Chrome; VoiceOver with Safari on macOS and iOS; and TalkBack with Chrome on Android. Other procedures cover keyboard, zoom/reflow, text spacing, target size, contrast, error recovery, authentication, media alternatives, authored/federated content, and no-JavaScript operation. Do not mark a whole grouped check as passed when any listed criterion or required environment is untested.
Validate a work-in-progress record structurally, or enforce release completion:
python3 scripts/accessibility-evidence.py validate /secure/release-evidence.json
python3 scripts/accessibility-evidence.py validate --release /secure/release-evidence.json
The release validator checks the exact Git revision, automated-report digest, complete browser projects, zero failures or skips, a clean tested source, and complete manual evidence. It does not accept averages, waivers, or a generic “not applicable” result at the grouped-check level. Criterion-specific conditional applicability must be explained in the check notes and any public conformance or partial-conformance statement.
Release command
The reviewed experimental 0.7 exception is a separate
release acceptance path.
It preserves full_pass: false and does not satisfy this conformance protocol.
The validator below remains strict, including when 0.7 exceptions are accepted.
Supply the completed record explicitly:
./dev release --accessibility-evidence /secure/release-evidence.json
Release preparation stops before building when the evidence is absent,
incomplete, modified, or belongs to another commit. The validated manual and
automated records are copied into the release stage, hashed with its other
outputs, and represented as a required accessibility check in release.json.
The evidence files may include tester identity or private test notes, so keep
the working copies outside Git and review them before wider distribution.
This gate proves that the recorded representative scope and processes passed; it does not by itself authorize a broader WCAG claim. Any claim must still state the conformance date, WCAG version and level, exact scope, relied-upon technologies, and precisely bounded third-party content.