Skip to content

test: measure Keepalive handoffs and verified visitor loads - #811

Open
0xcadams wants to merge 1 commit into
0xcadams/keepalive-local-turnsfrom
0xcadams/keepalive-instrumentation
Open

0xcadams wants to merge 1 commit into
0xcadams/keepalive-local-turnsfrom
0xcadams/keepalive-instrumentation

Conversation

@0xcadams

@0xcadams 0xcadams commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What

Extend the opt-in browser handoff harness on top of #810. It reports three different observations: a browser published, its exact running publisher served a checked asset, and the public proxy served a checked page and script. All measurements share one run-local timeline.

Why

A gossip count or successful startup is not evidence that a visitor got the right bytes. We need the time from invitation to independently verified service, the cost of copying the release, and visitor failures during replacement before deciding on a fleet size. None of these measurements needs a production host counter.

Changes

  • Record tab-local turn milestones and use the exact publisher address, run ID and release hash for independent probes. Chrome reports encoded HTTP bytes separately from decoded bundle size and incomplete transfers.
  • Sample public visitor loads on a fixed cadence. Report integrity failures, skipped samples, and latency percentiles; keep the deliberate final-host outage separate.
  • Optionally sample named infrastructure queries on the same timeline. Missing measurements stay null; reports omit backend labels, raw errors and host credentials.
  • Add a loopback Chrome fixture and instructions for capturing a report on an empty test deployment.

@0xcadams
0xcadams added this pull request to stack #812 November 20, 2026 15:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T15:14:49.533062Z 6024e5e PR opened
🔒 Security Review ✅ Completed 2026-11-20T15:19:48.632417Z 6024e5e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@0xcadams

Copy link
Copy Markdown
Member Author

Local verification at 6024e5e9f: mise exec -- task js:keepalive:test (30 tests), mise exec -- task js:keepalive:measurement-check (Chrome with a loopback fixture), mise exec -- task js:keepalive:build, demo TypeScript checks, repository JS lint, formatting and git diff --check passed. The Chrome fixture independently detected modified bytes and HTTP 503 and captured actual encoded HTTP transfers on an expired synthetic turn. The real-handoff Task was dry-run only to check its command line. No hosted run, scale/fault qualification, merge, or deployment was performed.

This branch has not been deployed

No deployments
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.

1 participant