Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [main]

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -50,3 +53,14 @@ jobs:

- name: Verify browser interactions
run: pnpm check:browser

- name: Upload fast-gate browser diagnostics
if: failure()
uses: actions/upload-artifact@v4
with:
name: landing-fast-gate-${{ github.run_attempt }}
path: |
playwright-report
test-results
if-no-files-found: warn
retention-days: 7
70 changes: 70 additions & 0 deletions .github/workflows/release-gates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Release browser gates

on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: release-gates-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
browser-matrix:
name: ${{ matrix.project }}
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- project: release-chromium
browser: chromium
- project: release-firefox
browser: firefox
- project: release-webkit
browser: webkit
- project: release-mobile-chromium
browser: chromium
- project: release-mobile-webkit
browser: webkit

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 10

- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Install ${{ matrix.browser }} with system dependencies
run: pnpm exec playwright install --with-deps ${{ matrix.browser }}

- name: Build static candidate
run: CI=true pnpm build

- name: Run curated release smoke
run: pnpm check:release --project=${{ matrix.project }}

- name: Upload release diagnostics
if: always()
uses: actions/upload-artifact@v4
with:
name: landing-${{ matrix.project }}-${{ github.run_attempt }}
path: |
playwright-report-release
test-results/release
if-no-files-found: warn
retention-days: 14
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ artifacts/
/.superpowers
/.copilot/
/playwright-report/
/playwright-report-release/
/test-results/

# analytics keys stay local (copy posthog.config.example.json)
Expand Down
106 changes: 106 additions & 0 deletions docs/release/accessibility-evidence-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# Landing vNext accessibility evidence template

This document is an **unfilled release-evidence template**. Automated Playwright, Axe, forced-colors, target-size, reflow, and reduced-motion results do not constitute VoiceOver, NVDA, TalkBack, physical-device, or user-validation sign-off.

Do not change a row to `pass` without recording the named device, operating system, browser, assistive technology, tested deployment, tester, date, and evidence location.

## Release identity

| Field | Value |
|---|---|
| Candidate commit SHA | _unverified_ |
| Preview or production URL | _unverified_ |
| Product registry revision | _unverified_ |
| Brand contract revision | _unverified_ |
| UI interaction-contract revision | _unverified_ |
| Test owner | _unassigned_ |
| Review date | _unverified_ |

## Required empirical matrix

| Surface | Minimum environment | Status | Tester | Evidence |
|---|---|---|---|---|
| Desktop screen reader | macOS + Safari + VoiceOver | unverified | — | — |
| Desktop screen reader | Windows + Firefox or Chrome + current NVDA | unverified | — | — |
| iPhone | Supported iPhone + Safari + VoiceOver | unverified | — | — |
| Android | Supported Android device + Chrome + TalkBack | unverified | — | — |
| High contrast | Windows High Contrast / forced colors in a real browser | unverified | — | — |
| Keyboard only | Desktop browser without pointer input | unverified | — | — |
| Text enlargement | Browser text size or zoom at 200% | unverified | — | — |
| Reflow | Equivalent 320 CSS-pixel viewport without document-level horizontal scrolling | unverified | — | — |

## Core task script

Run every task without implementation coaching. Record `pass`, `fail`, or `blocked`, plus the exact failure and route.

1. Reach the skip link as the first keyboard focus stop and move focus to main content.
2. Identify the current page and move among How it works, Protocol, Quickstart, GitHub, and Docs.
3. Open and close mobile navigation; confirm Escape returns focus to the Menu trigger.
4. Select system, light, and dark themes and confirm the choice remains understandable without relying on color alone.
5. Explain the difference between available runtime behavior and protocol direction on `/protocol`.
6. Read the three canonical Quickstart commands in order.
7. Copy a command; then repeat with clipboard permission denied and complete the manual-copy fallback.
8. Distinguish the four current products from the archived CastCodes successor record.
9. Follow the hosted-gated and public self-hosted GitHub paths without confusing waitlist access with general availability.
10. Read the security-reporting path and identify that vulnerability details must remain private.
11. Navigate Privacy and Terms by headings; inspect the privacy table without losing keyboard position.
12. Begin a supported Cave download and confirm the browser—not page JavaScript—owns the transfer.
13. Complete the guided proof without motion and identify the principal decision.
14. Return to the primary action from the end of each tested route.

## Per-environment receipt

### Environment

- **Status:** unverified
- **Tester:**
- **Date/time and timezone:**
- **Device model:**
- **Operating system and version:**
- **Browser and version:**
- **Assistive technology and version:**
- **Input method:**
- **Candidate SHA:**
- **Test URL:**

### Results

| Task | Result | Route/state | Observation | Evidence |
|---:|---|---|---|---|
| 1 | unverified | — | — | — |
| 2 | unverified | — | — | — |
| 3 | unverified | — | — | — |
| 4 | unverified | — | — | — |
| 5 | unverified | — | — | — |
| 6 | unverified | — | — | — |
| 7 | unverified | — | — | — |
| 8 | unverified | — | — | — |
| 9 | unverified | — | — | — |
| 10 | unverified | — | — | — |
| 11 | unverified | — | — | — |
| 12 | unverified | — | — | — |
| 13 | unverified | — | — | — |
| 14 | unverified | — | — | — |

### Findings

| Severity | Finding | Reproduction | Owner | Tracking issue | Disposition |
|---|---|---|---|---|---|
| — | — | — | — | — | — |

### Sign-off

- [ ] No critical or serious assistive-technology blocker remains.
- [ ] Focus order and visible focus are coherent.
- [ ] Labels, roles, names, states, and live announcements are accurate.
- [ ] Information remains complete with reduced motion and without JavaScript.
- [ ] Status and authority are understandable without color alone.
- [ ] Any exception has a named owner, accepted risk, expiry, and rollback trigger.

**Reviewer:** _unverified_
**Decision:** _unverified — not approved for release_
**Evidence bundle:** _unverified_

## Release rule

Issue #81 must remain open until the required empirical environments have completed receipts and every launch-blocking finding is resolved or explicitly blocks release. Issue #82 automation may prove repeatability across engines; it may not substitute for this matrix.
81 changes: 81 additions & 0 deletions docs/release/release-gate-matrix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Landing vNext release-gate matrix

The landing uses three deliberately separate evidence layers. Passing one layer never implies that another layer passed.

## 1. Fast pull-request gate

**Workflow:** `.github/workflows/ci.yml`
**Command:** `pnpm check:browser`
**Engine:** Desktop Chromium
**Purpose:** inexpensive, deterministic feedback on every pull request.

This gate runs unit tests, the static build, truth and registry checks, analytics and legal checks, the complete Chromium Playwright suite, Axe coverage, no-JavaScript coverage, 320px reflow, forced-colors emulation, target-size checks, reduced-motion checks, and 200% text-size checks.

When the browser step fails, CI uploads `playwright-report/` and `test-results/` rather than leaving only a red status.

## 2. Curated cross-engine release gate

**Workflow:** `.github/workflows/release-gates.yml`
**Command:** `pnpm check:release`
**Config:** `playwright.release.config.ts`

| Project | Engine/device profile | Primary coverage |
|---|---|---|
| `release-chromium` | Desktop Chrome | routes, metadata, themes, navigation, reduced motion, no JS |
| `release-firefox` | Desktop Firefox | same curated public-surface contract |
| `release-webkit` | Desktop Safari/WebKit | same curated public-surface contract |
| `release-mobile-chromium` | Pixel 5 profile | mobile navigation, reflow, touch-oriented public routes |
| `release-mobile-webkit` | iPhone 13 profile | Safari/WebKit mobile behavior and static fallback |

The workflow uses one matrix job per project, installs only the required browser engine, builds one static candidate, and uploads HTML, JUnit, trace, screenshot, and retained-on-failure video evidence with `if: always()`.

This suite is intentionally smaller than the complete Chromium suite. It validates the highest-risk browser-independent contracts without multiplying every detailed test across five environments.

## 3. Empirical release evidence

**Template:** `docs/release/accessibility-evidence-template.md`

The following remain human/device gates:

- VoiceOver with Safari on macOS.
- NVDA with Firefox or Chrome on Windows.
- VoiceOver with Safari on a supported iPhone.
- TalkBack with Chrome on a supported Android device.
- Real Windows High Contrast behavior.
- Real supported installer/download flows on macOS, Windows, and Linux.
- Moderated first-time-user comprehension.
- Preview deployment and rollback rehearsal.
- Production observation under the approved privacy model.

Automated WebKit is not a substitute for physical Safari. Forced-colors emulation is not a substitute for Windows High Contrast. An Axe pass is not screen-reader sign-off.

## Local commands

```bash
pnpm install --frozen-lockfile
CI=true pnpm build
pnpm check
pnpm check:browser
pnpm check:accessibility
pnpm check:release
```

To run one release project:

```bash
pnpm exec playwright install --with-deps firefox
pnpm check:release --project=release-firefox
```

## Failure policy

A release-gate failure must preserve diagnostics and block the relevant merge or release decision. Do not rerun until green without first recording whether the failure was:

- product behavior;
- browser compatibility;
- accessibility;
- test flake;
- runner/environment failure; or
- an invalid expectation.

Any narrowed or quarantined test requires a linked issue, owner, rationale, and expiry. Manual evidence remains `unverified` until a named tester records a real receipt.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
"build": "astro build && node scripts/sanitize-public-fallbacks.mjs",
"preview": "astro preview --host 127.0.0.1 --port 4173",
"astro": "astro",
"check": "node scripts/verify-upstream-contracts.mjs && node scripts/verify-static.mjs && node scripts/verify-analytics.mjs && node scripts/verify-public-truth.mjs && node scripts/verify-product-registry.mjs && python3 analytics/test-provision.py",
"check": "node scripts/verify-upstream-contracts.mjs && node scripts/verify-static.mjs && node scripts/verify-analytics.mjs && node scripts/verify-public-truth.mjs && node scripts/verify-product-registry.mjs && node scripts/verify-release-gates.mjs && python3 analytics/test-provision.py",
"check:contracts": "node scripts/verify-upstream-contracts.mjs",
"check:analytics": "node scripts/verify-analytics.mjs && python3 analytics/test-provision.py",
"check:truth": "node scripts/verify-public-truth.mjs && node scripts/verify-product-registry.mjs",
"check:registry": "node scripts/verify-product-registry.mjs",
"check:browser": "playwright test",
"check:accessibility": "playwright test tests/accessibility-contracts.spec.ts",
"check:release": "playwright test --config=playwright.release.config.ts",
"test:unit": "node --test 'api/**/*.test.js' 'workers/**/*.test.js'",
"baseline:static": "node scripts/baseline/static.mjs",
"baseline:browser": "node scripts/baseline/browser.mjs",
Expand Down
54 changes: 54 additions & 0 deletions playwright.release.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
testDir: './tests/release',
outputDir: 'test-results/release',
fullyParallel: false,
workers: 1,
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 1 : 0,
reporter: process.env.CI
? [
['line'],
['html', { open: 'never', outputFolder: 'playwright-report-release' }],
['junit', { outputFile: 'test-results/release/junit.xml' }],
]
: [
['list'],
['html', { open: 'never', outputFolder: 'playwright-report-release' }],
],
use: {
baseURL: 'http://127.0.0.1:4173',
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
webServer: {
command: 'pnpm preview',
url: 'http://127.0.0.1:4173',
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
projects: [
{
name: 'release-chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'release-firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'release-webkit',
use: { ...devices['Desktop Safari'] },
},
{
name: 'release-mobile-chromium',
use: { ...devices['Pixel 5'] },
},
{
name: 'release-mobile-webkit',
use: { ...devices['iPhone 13'] },
},
],
});
Loading
Loading