Skip to content

Add a ts:identity-smoke-test skill for browser checks of identity deployments - #1680

Open
aram356 wants to merge 1 commit into
mainfrom
skill/identity-smoke-test
Open

aram356 wants to merge 1 commit into
mainfrom
skill/identity-smoke-test

Conversation

@aram356

@aram356 aram356 commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Closes #1679

Summary

This adds a project skill, ts:identity-smoke-test, for checking a deployed identity build in a real browser through ts dev proxy.

It ships as a plugin named ts under .claude/skills/ts/. Claude Code loads that plugin from the repository root as ts@skills-dir, with no marketplace or settings entry, so the skill is invoked as /ts:identity-smoke-test. Later Trusted Server skills can join the same plugin.

What the skill does

  • Asks for inputs: the publisher hostname, the deployment host and the proxy flags (--rewrite-host, --forwarder-secret-file, --basic-auth-file, --resolve and others), plus the path to the operator config. It asks for file paths, never for secret values.

  • Sets up:

    • checks that the debugging port and proxy port are free and that the CA is trusted;
    • starts the proxy without --launch, which would start Chrome without a debugging port;
    • checks the build and geo headers;
    • starts a proxied Chrome with a debugging port.
  • Runs five phases against the deployed branch's documented behavior:

    1. fresh visitor;
    2. consent signal (GPP or TCF);
    3. second page view;
    4. return visit;
    5. withdrawal.

    It also explains how to tell a mirror that was never set from one that was set and then removed.

  • Reports pass or fail per phase, and keeps publisher names, hosts and identity values out of anything shared.

Scripts

All in scripts/. They need Node 22 or newer and have no dependencies: they speak the Chrome DevTools Protocol over Node's built-in WebSocket.

  • capture.mjs records one page view: the document and the /_ts/, /first-party/, /integrations/ and /auction traffic. It shows timing, the identity cookies each request sent, the Set-Cookie names (marked EXPIRED when Max-Age=0) and the final cookie jar. Cookie values are reduced to their length.
  • probe.mjs reads:
    • the injected tsjs state and public origin;
    • the mirror's and ts-eids EID sources;
    • the CMP's own GPP state;
    • the EID sources each Prebid auction carried;
    • same-site article links.
  • reset.mjs turns the browser into a fresh visitor.
  • cdp-lib.mjs is the shared protocol client.

These scripts replace the DevTools request list for cookie checks, because three things make that list unreliable here:

  • It folds repeated Set-Cookie headers into one value.
  • It keeps only the last 1000 requests, so the document can drop out on a heavy page.
  • ts-ec is HttpOnly, so document.cookie cannot show it.

Testing

Docs and tooling only. There is no product code, so the Rust and JS suites were not run.

  • Plugin check: claude plugin validate .claude/skills/ts passed. Its only warnings were about a missing README and LICENSE inside the plugin folder.

  • Format: docs/node_modules/.bin/prettier --config docs/.prettierrc --check ".claude/**/*.md" passed.

  • URL-host lint: ts dev lint domains --changed-vs origin/main exited 0 with no findings at 928c287a6.

  • Live run: the scripts ran against an identity deployment through ts dev proxy. They reproduced Sourcepoint GPP capture posts a null consent snapshot on each page load and expires the EID mirror #1678, an EXPIRED mirror on a /_ts/consent response, and an opt-out withdrawal.

  • Skill behavior: a fresh agent planned the same smoke test twice.

    • Without the skill: it planned to read Set-Cookie from the DevTools request list, and would have read a missing mirror as "no IDs yet". It would not have checked what Prebid auctions received.
    • With the skill: it asked for the inputs, avoided --launch, used the scripts for cookies, and applied the mirror timeline rule.

    The gaps it reported are fixed in this PR: the GPP-only consent assumption, the provider-owned mirror sources, and a race in reading the request cookie header.

…loyments

Ship a project plugin named ts under .claude/skills/ts so the skill is invoked as /ts:identity-smoke-test. The skill asks for the publisher hostname, the deployment host and the dev proxy flags, runs the proxy and a debuggable Chrome, and checks five identity phases. Node scripts read the browser over the Chrome DevTools Protocol, so cookies come from raw response events with their timing and values are redacted.

@aram356 aram356 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEWER: REQUEST_CHANGES (GitHub blocked this review event: "Review Can not request changes on your own pull request" (HTTP 422), because the acting login aram356 is the PR author in one-account mode)

Reviewed head 928c287a69a5a0d095867763fad81430ceb379ff against base db36dc0ecad8c3041bc443fb6487aeae162e3ed3 (main). The diff adds four executable .mjs scripts, so it is not documentation-only. Five findings are inline: one blocking, two should-fix and two nits.

Checks I ran in a detached worktree at 928c287a6, with Node v24.20.0 and headless Chrome 158 against a local HTTPS test page:

Check Exit Result
node --check on capture.mjs, cdp-lib.mjs, probe.mjs, reset.mjs 0 each no output
claude plugin validate .claude/skills/ts 0 ✔ Validation passed with warnings (one warning: no author information)
claude plugin list 0 ❯ ts@skills-dir, Version: 0.1.0, Scope: project, Path: ./.claude/skills/ts
docs/node_modules/.bin/prettier --config docs/.prettierrc --check ".claude/**/*.md" 0 All matched files use Prettier code style!
git diff --check db36dc0ec 928c287a6 0 no output
cargo run --locked --manifest-path crates/trusted-server-cli/Cargo.toml --target aarch64-apple-darwin --bin ts -- dev lint domains --changed-vs origin/main (origin/main is db36dc0ec) 0 no findings printed
cargo run --locked -p trusted-server-cli -- dev proxy --help 0 lists every flag in the skill's input table; --listen shows [default: 127.0.0.1:18080]
reset.mjs --origin https://localhost:18443 0 {"clearedOrigins":["https://localhost:18443"],"remainingCookies":0}
probe.mjs with state, links, eids, gpp, pbjs 0 each eids decoded a mirror in the rc/identity {"v":1,"eids":[...]} shape and a base64 ts-eids array to sources, UID counts and expiry only
probe.mjs state under Node v22.3.0 (nodejs.org build, SHA-256 verified) 0 the Node 22 floor holds
capture.mjs 0 results are in the inline findings

I also read the cached chrome-devtools-mcp@1.14.0 package without executing it. take_snapshot takes pageId, click takes pageId uid and press_key takes pageId key, all positional, as section 4 uses them. The SKILL.md claims I checked against rc/identity c3e336666 hold: the /_ts/consent statuses (204, 403 on an origin mismatch, 503 with no record store), the ts-ec and mirror cookie attributes, ec.browser_gate values lenient and strict, and the /health and /ready probes.

Not run by REVIEWER, by the user's choice for this round: the repository's full Rust and JS suite. Nothing in the build or CI reads .claude/skills/. GitHub CI reports 30 of 30 checks passing at 928c287a6; those are GitHub's results, not mine. Approval in a later round needs a local full-suite run at that head or the user's waiver.

Next actor: CREATOR, for the inline findings.

method: params.request.method,
url: params.request.url,
type: params.type,
body: redactBody(params.request.postData),

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEWER: blocking capture.mjs prints raw identity values from /auction request bodies. redactBody (line 38) masks only gppString, tcString, euconsent and consentString, and line 116 asks Chrome for request bodies up to 8 KB. At 928c287a6, where this file is unchanged from main, tsjs puts the EIDs it collects into the /auction POST body: collectAuctionEids() keeps each uids[].id (crates/trusted-server-js/lib/src/integrations/prebid/index.ts:1898-1917), and buildAdRequest(validBidRequests, { eids: auctionEids }) sends them (:2417-2421). rc/identity c3e336666 does the same. Printing them breaks the skill's own rule at SKILL.md line 10: never print identity values.

Evidence: I ran this script at 928c287a6 against a local HTTPS test page whose script POSTs an EID with "id":"AUCTION-UID-SECRET" to /auction:

+   14ms POST /auction 200 body={"adUnits":[{"code":"slot"}],"user":{"ext":{"eids":[{"source":"id5-sync.com","uids":[{"id":"AUCTION-UID-SECRET"}]}]}}} sentEC=REDIRECT sent=[ts-ec, __Host-ts-eids-mirror, ts-eids] set=[]

Requested correction: keep the consent-key redaction only for /_ts/consent, where seeing {"gppString":null} matters for #1678, and reduce every other body to its length. A scratch copy with the change below printed POST /auction 200 body=<118 bytes> for the same page, and still printed body={"gppString":"<17 chars>"} for /_ts/consent.

Suggested change
body: redactBody(params.request.postData),
body: new URL(params.request.url).pathname === '/_ts/consent'
? redactBody(params.request.postData)
: params.request.postData && `<${params.request.postData.length} bytes>`,

.filter(([key]) => key.toLowerCase() === 'set-cookie')
.map(([, value]) => value)
.join('\n');
request.setCookies = raw.split('\n').filter(Boolean).map(redactSetCookie).filter((cookie) => isIdentityCookie(cookie.name));

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEWER: should-fix A redirect hop's Set-Cookie drops out of the timeline. Chrome reports every hop of a redirect under one requestId. Line 75 replaces the first hop's entry when requestWillBeSent repeats with a redirectResponse, and this line replaces setCookies on each responseReceivedExtraInfo.

With a scratch script on this PR's cdp-lib.mjs, I logged the CDP events for a local GET / that answers 302 /landing and then 200. All of these share one requestId (the second column):

requestWillBeSent            EA3A07 /
requestWillBeSent            EA3A07 /landing redirectResponse=302
responseReceived             EA3A07 /landing  200
requestWillBeSentExtraInfo   EA3A07
responseReceivedExtraInfo    EA3A07   302 set-cookie=ts-ec
requestWillBeSentExtraInfo   EA3A07
responseReceivedExtraInfo    EA3A07   200 set-cookie=__Host-ts-eids-mirror+ts-eids

capture.mjs kept only the last hop, so the jar holds a ts-ec that no line set:

+    0ms GET /landing 200 sentEC=REDIRECT sent=[ts-ec] set=[__Host-ts-eids-mirror, ts-eids]

This can hide a server expiry in phase 5. On rc/identity c3e336666, finalize_unusable_consent calls expire_ec_cookie whenever consent is withdrawn and the request carried ts-ec, whatever the response status (crates/trusted-server-core/src/ec/finalize.rs:798-812). Only page-load writes skip redirects (crates/trusted-server-core/src/ec/page_load.rs:77-90). If the TCF reload's document redirects, the ts-ec expiry rides the 3xx and is lost. The jar then loses ts-ec with no EXPIRED line, which the rule at SKILL.md line 100 reads as "removed by script".

Requested correction: keep each hop. One way is to keep the first entry when requestWillBeSent brings a redirectResponse for a known requestId, append each responseReceivedExtraInfo's cookies instead of replacing them, and tag cookies from a 3xx with params.statusCode. A scratch patch along those lines printed this for the same page:

+    0ms GET / 200 via=[302->/landing] sentEC=REDIRECT sent=[ts-ec] set=[ts-ec@302, __Host-ts-eids-mirror, ts-eids]

if (target === 'watch') markLoaded();
else if (target === 'reload') await session.send('Page.reload', {});
else await session.send('Page.navigate', { url: target });
await Promise.race([loaded, sleep(60000)]);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEWER: should-fix Every capture runs for at least 60 seconds. The sleep(60000) that loses this race still holds a pending timer, and Node does not exit until it fires, long after the report prints. At 928c287a6, against a local test page with a 2-second settle:

== PR exit=0 wall=60s (settle 2000ms)
   PR watch wall=61s (settle 2000ms)

With only the change below, the same two commands finished in 2 and 3 seconds:

timer-only patch: url exit=0 wall=2s (settle 2000ms)
timer-only patch: watch exit=0 wall=3s (settle 2000ms)

Each phase runs one or more captures, and section 4 asks for the next command only after a watch exits, so every capture adds close to a minute of waiting.

Suggested change
await Promise.race([loaded, sleep(60000)]);
const loadTimeout = setTimeout(markLoaded, 60000);
await loaded;
clearTimeout(loadTimeout);

Comment on lines +128 to +132
- Run `chrome-devtools stop` if you used the CLI.
- Stop Chrome.
- Stop the proxy with an interrupt (Ctrl-C or `SIGINT`), not `SIGKILL`.
- Remove the profile directory and any capture files.
- Run `ts dev proxy ca uninstall` only if this run installed the CA.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEWER: nit The clean-up steps call binaries that the skill never puts on PATH. Section 4 runs the DevTools CLI as npx -y -p chrome-devtools-mcp@1.14.0 chrome-devtools ..., and section 2 runs the proxy as cargo run -p trusted-server-cli -- dev proxy .... These lines say chrome-devtools stop and ts dev proxy ca uninstall. On a machine without global installs of both, an agent that follows them literally gets "command not found", and the CLI daemon that chrome-devtools start launched keeps running. Please use the same forms as the setup: npx -y -p chrome-devtools-mcp@1.14.0 chrome-devtools stop and cargo run -p trusted-server-cli -- dev proxy ca uninstall.


One table: phase, expected, observed (with timestamps and cookie names and attributes from `capture.mjs`), pass or fail. Then list what the run could not cover: jurisdictions the vantage point cannot reach, record-store contents, and the JA4 browser check (the store sees the proxy's TLS stack, not Chrome's).

Keep publisher names, hostnames, URLs and config values out of anything shared: issues, PRs, commits and docs. The scripts already reduce cookie values to lengths.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEWER: nit This line says the scripts reduce cookie values to lengths, and line 10 says never print identity values, but two outputs go further:

  • capture.mjs keeps an 8-character ts-ec prefix (lines 35, 59 and 134), which phase 4 relies on.
  • From reading probe.mjs (my test page had no CMP, so I did not run this path), probe.mjs gpp prints the raw gppString and the raw __gpp cookie (probe.mjs lines 52 and 56). capture.mjs masks the same string.

Please name the ts-ec prefix here as something to keep out of shared reports. For GPP, either drop the raw string and cookie from probe.mjs gpp, since parsedSections covers the SaleOptOut check in section 4, or list it here too.

@aram356 aram356 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEWER: REQUEST_CHANGES — submitted as COMMENT because GitHub rejected formal self-review: Review Can not request changes on your own pull request (HTTP 422). Acting login and PR author: aram356.

Implementation/tooling review against #1679. Reviewed and tested head 928c287a69a5a0d095867763fad81430ceb379ff against base db36dc0ecad8c3041bc443fb6487aeae162e3ed3. I read the complete six-file diff, issue acceptance criteria, surrounding code, prior review, and all five existing threads. The four executable scripts make this PR non-documentation-only.

Two additional should-fix findings are attached at scripts/cdp-lib.mjs:15 (--json consumes the navigation argument) and :37 (publisher selection accepts a different hostname with the same prefix).

The five existing findings remain open, without CREATOR dispositions. None has been accepted or resolved:

I independently reconfirmed the first three with byte-for-byte head scripts, an isolated headless Chrome profile, and a local HTTPS fixture containing fictional IDs. python3 /private/tmp/pr1680-repro.py exited 0 as a recording harness; its individual commands demonstrated:

  • node capture.mjs --host 127.0.0.1:60195 --cdp http://127.0.0.1:60202 --json reload 100: exit 1, Error: Page.navigate: Cannot navigate to invalid URL.
  • node capture.mjs --host 127.0.0.1:60195 --cdp http://127.0.0.1:60202 https://127.0.0.1:60195/ 100: exit 0 after 60.18 seconds. Output contained the raw fictional FIXTURE-AUCTION-UID; the 302 response set ts-ec, but capture retained only GET /landing 200 ... set=[__Host-ts-eids-mirror], while the final jar contained ts-ec.
  • node reset.mjs --cdp http://127.0.0.1:60202 --origin https://127.0.0.1:60195: exit 0, {"clearedOrigins":["https://127.0.0.1:60195"],"remainingCookies":0}.

node /private/tmp/pr1680-helper-repro.mjs exited 0 and recorded the two helper defects; its exact-head import, inputs, mocked target selection, and outputs are described in the new inline comments.

Independent repository checks ran in my detached head worktree under the PRfection ownership wrapper, using Node v24.20.0 and Rust 1.98.1. The 52-command batch recorded 48 zero exits and four nonzero exits. All eight adapter/CLI/codegen Clippy aliases, 3,299 JS tests, native adapter tests, 29 parity tests, 10 build-digest tests, CLI tests including browser audit fixtures, formatting/lint/build checks, URL-host lint, and Spin deadline runtime cases passed. Plugin validation passed with the warning author: No author information provided.

Required local verification remains incomplete:

  • cargo test-fastly, cargo test-fastly-reuse, and the Fastly deadline fixture stopped with unknown import: fastly_compute_runtime::has_domain_inspector has not been defined. viceroy --version exited 0 with viceroy 0.21.0; the repository pins 0.22.0. The Fastly test suites did not execute their tests.
  • The Cloudflare runtime fixture stopped before worker execution: rust Wasm file schema version: 0.2.126 / this binary schema version: 0.2.121. wasm-bindgen --version exited 0 with wasm-bindgen 0.2.121. Separately, wrangler --version exited 126 with No version is set for command wrangler.

I did not execute the base suite, so I am not classifying these failures as pre-existing. No product Docker/browser integration CI jobs or Node 22 compatibility run were independently repeated in this pass. The five PR workflows returned by GitHub report success; those are GitHub's results, separate from my local execution.

Next actors: CREATOR addresses the seven open findings and replies with labelled dispositions. The user supplies the pinned Viceroy and wasm-bindgen runtimes plus a runnable Wrangler, then current-head verification can close the local blockers. No approval is issued.

Exact local commands, exits, and result excerpts

Working directories below are relative to the detached head worktree. Zero-case filtered invocations from the CLI helper are omitted from the excerpts; its complete command exit is recorded.

Command (cwd relative to detached head worktree) Exit Verbatim result lines
node --version 0 v24.20.0
rustc --version 0 rustc 1.98.1 (48a229cea 2026-09-01)
claude plugin validate .claude/skills/ts 0 ✔ Validation passed with warnings
git diff --check db36dc0ecad8c3041bc443fb6487aeae162e3ed3 HEAD 0 (no output)
node --check .claude/skills/ts/skills/identity-smoke-test/scripts/capture.mjs 0 (no output)
node --check .claude/skills/ts/skills/identity-smoke-test/scripts/cdp-lib.mjs 0 (no output)
node --check .claude/skills/ts/skills/identity-smoke-test/scripts/probe.mjs 0 (no output)
node --check .claude/skills/ts/skills/identity-smoke-test/scripts/reset.mjs 0 (no output)
(cwd docs) npm ci 0 added 346 packages, and audited 347 packages in 8s
(cwd crates/trusted-server-js/lib) npm ci 0 added 604 packages, and audited 605 packages in 11s
(cwd crates/trusted-server-js/lib) npm run build 0 [build-all] Total: 13 modules
cargo fmt --all -- --check 0 (no output)
(cwd crates/trusted-server-js/lib) npx --no-install vitest run 0 Test Files 80 passed (80)
Tests 3299 passed (3299)
Type Errors no errors
cargo clippy-fastly 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 55.80s
(cwd crates/trusted-server-js/lib) npm run lint 0 > tsjs@0.1.0 lint
> eslint . --max-warnings=0
(cwd crates/trusted-server-js/lib) npm run format 0 All matched files use Prettier code style!
(cwd docs) npm run lint 0 > trusted-server-docs@1.0.0 lint
> eslint .
(cwd docs) npm run format 0 All matched files use Prettier code style!
(cwd docs) npm run build 0 build complete in 9.82s.
cargo clippy-axum 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.00s
docs/node_modules/.bin/prettier --config docs/.prettierrc --check "*.md" ".claude/**/*.md" ".github/**/*.md" "crates/**/*.md" "scripts/**/*.md" "tinybird/**/*.md" 0 All matched files use Prettier code style!
shellcheck scripts/docs-proposal/*.sh 0 (no output)
node --test scripts/docs-proposal/hunks.test.mjs 0 ℹ tests 20
ℹ pass 20
ℹ fail 0
scripts/docs-proposal/test.sh 0 All documentation proposal script tests passed.
cargo clippy-cloudflare 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.97s
node --test scripts/check-ci-node-pin.test.mjs 0 ℹ tests 30
ℹ pass 30
ℹ fail 0
node scripts/check-ci-node-pin.mjs 0 ok: 34 jobs in 10 workflows pin Node before compiling Rust
node --test scripts/release/phase1.test.mjs 0 ℹ tests 27
ℹ pass 27
ℹ fail 0
shellcheck scripts/release/phase1-build.sh 0 (no output)
cargo clippy-cloudflare-wasm 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.57s
cargo clippy-spin-native 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.47s
cargo clippy-spin-wasm 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.54s
cargo clippy-cli 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.78s
cargo clippy-codegen 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.27s
cargo test-fastly 1 2026-11-28T06:28:56.740892Z ERROR unknown import: `fastly_compute_runtime::has_domain_inspector` has not been defined
error: test failed, to rerun pass `-p trusted-server-adapter-fastly --bin trusted-server-adapter-fastly`
cargo test-fastly-reuse 1 2026-11-28T06:29:28.630357Z ERROR unknown import: `fastly_compute_runtime::has_domain_inspector` has not been defined
error: test failed, to rerun pass `-p trusted-server-adapter-fastly --bin trusted-server-adapter-fastly`
cargo test-axum 0 test result: ok. 25 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.52s
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 31 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
cargo test-cloudflare 0 test result: ok. 32 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
cargo test-spin 0 test result: ok. 58 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
test result: ok. 38 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
cargo test --manifest-path crates/trusted-server-integration-tests/Cargo.toml --test parity 0 test result: ok. 29 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s
cargo test -p trusted-server-core --test template_build_digest 0 test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
cargo clippy -p trusted-server-core --test template_build_digest -- -D warnings 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.86s
scripts/lint-wasm-clock.sh 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.17s
cargo run --manifest-path crates/trusted-server-cli/Cargo.toml --target aarch64-apple-darwin --bin ts -- dev lint domains --changed-vs db36dc0ecad8c3041bc443fb6487aeae162e3ed3 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 28s
node crates/trusted-server-adapter-fastly/tests/deadline-origin.mjs "$(command -v viceroy)" 1 2026-11-28T06:35:30.303404Z ERROR unknown import: `fastly_compute_runtime::has_domain_inspector` has not been defined
cargo build --locked -p trusted-server-adapter-cloudflare --example deadline-runtime --target wasm32-unknown-unknown --features cloudflare 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 16s
cargo clippy --locked -p trusted-server-adapter-cloudflare --example deadline-runtime --target wasm32-unknown-unknown --features cloudflare -- -D warnings 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.42s
node scripts/test-worker-auction-deadlines.mjs cloudflare --runtime "$(command -v wrangler)" 1 rust Wasm file schema version: 0.2.126
this binary schema version: 0.2.121
cargo build --locked -p trusted-server-adapter-spin --example deadline-runtime --target wasm32-wasip1 --features spin 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.05s
cargo clippy --locked -p trusted-server-adapter-spin --example deadline-runtime --target wasm32-wasip1 --features spin -- -D warnings 0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.08s
node scripts/test-worker-auction-deadlines.mjs spin --runtime "$(command -v spin)" 0 PASS spin /fast budget=80 origin=200: complete:213
PASS spin /headers budget=80 origin=0: timeout:82
PASS spin /body budget=80 origin=0: timeout:82
PASS spin /headers budget=80 origin=200: timeout:202
PASS spin /large budget=2000 origin=0: oversized:12
./scripts/test-cli.sh 0 test result: ok. 766 passed; 0 failed; 9 ignored; 0 measured; 0 filtered out; finished in 0.97s
test result: ok. 1 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out; finished in 2.06s
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s
test result: ok. 18 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.66s
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.48s
test result: ok. 35 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.23s
test result: ok. 54 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.84s
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.30s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
test result: ok. 42 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s
test result: ok. 1 passed; 0 failed; 6 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s
test result: ok. 4 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.10s
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.16s
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 772 filtered out; finished in 9.72s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 769 filtered out; finished in 37.21s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out; finished in 8.82s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 3 filtered out; finished in 5.88s

const arg = argv[index];
if (arg.startsWith('--')) {
const key = arg.slice(2);
const value = argv[index + 1] && !argv[index + 1].startsWith('--') ? argv[(index += 1)] : 'true';

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEWER: should-fix Preserve the navigation argument after --json. The documented --json <url|reload|watch> [settleMs] form consumes the action as the value of json. My exact-head helper check (node /private/tmp/pr1680-helper-repro.mjs, importing this file using git show) returned {"options":{"host":"publisher.example","json":"reload"},"positionals":["2000"]} for ['--host','publisher.example','--json','reload','2000']. capture.mjs:123 consequently navigates to 2000. I also ran byte-for-byte head scripts against isolated local Chrome: node capture.mjs --host 127.0.0.1:60195 --cdp http://127.0.0.1:60202 --json reload 100 exited 1 with Error: Page.navigate: Cannot navigate to invalid URL. Recognize --json as a boolean so the following URL/action and settle time remain positional.

const response = await fetch(`${cdp}/json/list`);
const targets = await response.json();
const pages = targets.filter((entry) => entry.type === 'page');
const page = (host && pages.find((entry) => entry.url.startsWith(`https://${host}`))) ?? pages[0];

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEWER: should-fix Match the complete URL host when choosing the publisher tab. startsWith also matches an unrelated host such as publisher.example.other.test, even when a tab for publisher.example exists later in the target list. I reproduced this with the exact-head helper in node /private/tmp/pr1680-helper-repro.mjs: mocked /json/list returned https://publisher.example.other.test/ followed by https://publisher.example/, and mocked WebSocket recorded {"selectedPage":"https://publisher.example.other.test/","selectedSocket":"ws://wrong-page"} from connect({host:'publisher.example', ...}). probe.mjs evaluates in that selected page, and capture.mjs reload/watch also uses that connection, so a multi-tab smoke test can inspect or reload the wrong page. Compare parsed URL hosts for equality while handling non-HTTP/blank targets and retaining the intended initial-page fallback.

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.

Add a ts:identity-smoke-test skill for browser checks of identity deployments

1 participant