AgentDeck · Build health

Test Report

Review the decision, remaining risk and next action first; inspect the exact test evidence below.

Partial verification · 8,325 tests · commit 09f7ca4 · generated 2026-11-16 03:32 UTC

Decision first

Partial verification

Passed
8,325
Failed cases
0
Skipped cases
78
Executed / collected
8,325 / 8,403

Not run or no parsed case evidence here: apple, robot.

Remaining risk: mocked inputs do not prove physical readability, real permission flows or device recovery. Evidence from other runs keeps its own commit and date.

Next action: Run missing suites and review manual QA before a release decision. Method and manual QA

Input scope and counting rules

Run profile: github-pages · summary.json

Parsed input scope: vitest, e2e, android. Only supplied cases are counted; this is not release approval.

Setup errors or coverage failures can fail a suite with zero failed cases. Skipped cases are excluded from executed tests.

Build health

Latest run

What this page ran on the merged master commit. Suites that need a macOS runner or physical boards run elsewhere and are marked as not run here — never counted as passing.

Result

Partial verification

8,325 tests executed

Passed

8,325

100.00% of executed

Failed

0

across every suite run here

Skipped

78

excluded from executed tests

Cumulative test time

4 min 34 s

summed per-file test time

Line coverage

67.2%

TypeScript packages

Vitest

Pass

TypeScript unit, contract and integration tests.

Passed
7,702
Failed
0
Files
502
Time
2 min 30 s

Coverage + JSON report

Daemon E2E

Pass

The real daemon process, driven from outside.

Passed
40
Failed
0
Files
3
Time
29.3 s

Real daemon process, loopback, temp HOME

Android

Pass

JUnit + Robolectric.

Passed
583
Failed
0
Suites
63
Time
1 min 34 s

JUnit + Robolectric on ubuntu

Apple (XCTest)

Passed in CI

macOS app and in-process Swift daemon.

Runs in the Apple Tests workflow (macos-26) on apple/** changes; not re-run here

Latest hosted run passed · f9dd73e · master · 2026-11-15

ESP32 Robot

Not run

Flash, boot and serial protocol on real boards.

Physical boards in the maintainer's lab; the pre-release receipt records the last attested result

78 cases skipped here: 78 run on another CI runner, 0 on no CI runner
Skipped caseWhere it runs
bridge/src/__tests__/antigravity-observation.test.tsAntigravity evidence contract › executes the actual Swift parser and scoped reader against Node vectors and the same filesystemmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/apme-async-probes.test.tsAPME background subprocess probes › coalesces concurrent hardware snapshots without blocking timersmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/apme-retention-parity.test.tsAPME retention shared policy › matches actual Swift SQLite preview, markers, metrics and preserved records including Unicode/NULmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/background-work.test.tsbackground work tracker › replays the same vectors through the generated Swift blockmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/calendar.test.tsshared calendar contract › executes the actual Swift parser on every shared vectormacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/claude-background-tasks.test.tsClaude background work projection › replays the same interleaved lifecycle through Swift and NodemacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/codex-background-terminals.test.tsCodex background terminals › replays the same windows and lifecycle through the Swift mirrormacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-recovery.test.tsexplicit local cold recovery › discovers one-time consent on a later ordinary Node launch but never from an explicit test profilemacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-relay-native.test.tsreal mixed Node/Swift relay sockets › Swift worker publishes to Node hub, reconnects once without duplicates, and refuses unsupported commandsmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-relay-native.test.tsreal mixed Node/Swift relay sockets › renders held questions as original choices and returns their selected index through the real Swift workermacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-relay-native.test.tsreal mixed Node/Swift relay sockets › Node worker publishes to Swift hub and receives same-socket controls; real native WS rejects missing/wrong token for a browser-origin peermacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-relay-native.test.tsreal mixed Node/Swift relay sockets › Swift refuses a wrong-version ack and tears down a hub that never acknowledges hellomacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-relay-native.test.tsreal mixed Node/Swift relay sockets › flushes a native retirement receipt before disconnecting upgraded and HTTP stream socketsmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-relay-native.test.tsreal mixed Node/Swift relay sockets › fences old native approvals, delayed HTTP replies and WebSocket sends/commands across successive retirementsmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-supervisor.test.tsLaunchAgent executable contract › executes a non-executable checkout script through the selected Node runtimeWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime); macOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-supervisor.test.tsLaunchAgent executable contract › round-trips XML-sensitive executable, log and PATH values without shell quotingWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime); macOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-supervisor.test.tssupervisorJobRunning / supervisorLivenessProbe › answers for the real launchd job on this machineWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime); macOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/daemon-supervisor.test.tssupervisorJobRunning / supervisorLivenessProbe › caches within the throttle windowWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime); macOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/device-credential-native.test.tsnative device authority › executes the same validation, conflict, revocation and registration vectors in Swift and NodemacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/device-tls-server.test.tsserves the same device authority over the actual Swift TLS listenermacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/fm-helper-build.test.tsfm-helper build invariants › ships a binary carrying the usage stringsmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/fm-helper-build.test.tsfm-helper build invariants › produces a signed binary macOS can prompt formacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/glance-frame-parity.test.tsGlance common rasterizer parity › matches real Swift SVG, 1bpp bytes, signature, orientation and PNG pixelsmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/ips10-roster.test.tsIPS10 rotating roster › keeps the generated Swift kernel behaviorally equivalentmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/matrix-expression.test.tsexpressive BLE matrices › executes the Swift engine and matches Node state and every output pixelmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/pairing-retirement.test.tsactual Swift and Node pairing retirement › replays shared vectors and serializes concurrent cross-runtime rotations without reviving legacy tokensmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/pixoo-baked.test.tscommon fixed Pixoo baked core › compares every RGB byte with the actual Swift/JavaScriptCore renderermacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/pocket-autonomy-parity.test.tsPocket native parity › executes the real Swift engine with identical cards, feedback, state and restart resultsmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/tui-terrarium-snapshots.test.tsexecutes the native TUI samples against Node colors, coverage and footprintsmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/usage-api-recovery.test.tsusage fetching and recovery › yields during Keychain lookup and keeps rendering reads out of the subprocess pathmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/usage-api-recovery.test.tsusage fetching and recovery › retains known credentials and serves stale quota when Keychain cannot be inspectedmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/wifi-config.test.tswifi-config follows the data dir › passes hostile SSIDs as one Keychain argument without a shellmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
bridge/src/__tests__/wifi-config.test.tswifi-config follows the data dir › detects a non-default interface using argument arraysmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
hooks/src/__tests__/install.test.tsHook Installer › buildHookCommandWin (Windows) › delivers UTF-8 stdin through Git Bash and Windows PowerShellWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/install.test.tsthe Windows hook script, executed › checks the daemon.json receiver before a fire-and-forget event and prints nothingWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/install.test.tsthe Windows hook script, executed › waits past the old 2 s cut-off for a held PreToolUse and writes the decision to stdout as UTF-8Windows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/install.test.tsthe Windows hook script, executed › writes a queued Stop directive to stdout, and nothing for an empty answerWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/statusline-relay.test.tsthe Windows relay script, executed › POSTs the document and preserves the original status line through Git BashWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/statusline-relay.test.tsthe Windows relay script, executed › POSTs the document and preserves the original status line through PowerShell streamWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/statusline-relay.test.tsthe Windows relay script, executed › POSTs the document and preserves the original status line through PowerShell pipelineWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/statusline-relay.test.tsthe Windows relay script, executed › POSTs the document and preserves the original status line through PowerShell native streamWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/statusline-relay.test.tsthe Windows relay script, executed › POSTs the document and preserves the original status line through PowerShell native pipelineWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/statusline-relay.test.tsthe Windows relay script, executed › POSTs the document and preserves the original status line through PowerShell literal inputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows Codex hook launcher identity › crosses cmd.exe and sends the actual Codex launcher PID with UTF-8 stdinWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows Codex hook launcher identity › discovers the registry port through the bounded native HTTP health probeWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows Codex hook launcher identity › does not label an unrelated Node launcher as CodexWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows Codex hook launcher identity › still delivers the lifecycle event when the process query is unavailableWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows Codex hook launcher identity › does not loop or invent a PID from cyclic process evidenceWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Claude lifecycle handles a missing registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Claude lifecycle handles a malformed registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Claude lifecycle handles a unhealthy registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Claude lifecycle handles a healthy registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Claude lifecycle retains an explicit managed-session receiverWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Claude status line handles a missing registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Claude status line handles a malformed registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Claude status line handles a unhealthy registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Claude status line handles a healthy registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex lifecycle handles a missing registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex lifecycle handles a malformed registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex lifecycle handles a unhealthy registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex lifecycle handles a healthy registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex lifecycle retains an explicit managed-session receiverWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex notify handles a missing registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex notify handles a malformed registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex notify handles a unhealthy registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex notify handles a healthy registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex notify retains an explicit managed-session receiverWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex hold handles a missing registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex hold handles a malformed registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex hold handles a unhealthy registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex hold handles a healthy registry without changing the user outputWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › Codex hold retains an explicit managed-session receiverWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
hooks/src/__tests__/windows-codex-pid.test.tsWindows observer receiver selection › bounds a registry health request that never answersWindows native runtime (Node 22 / 24 / 26) (ci.yml › windows-native-runtime)
shared/src/__tests__/ci-wait-sync.test.tsNode/Swift CI wait command parity › executes native GitHub verdicts against Node response rulesmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
shared/src/__tests__/ci-wait-sync.test.tsNode/Swift CI wait command parity › executes full-JSON firmware projection against the same compact evidence vectorsmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
shared/src/__tests__/ci-wait-sync.test.tsNode/Swift CI wait command parity › executes every common command vector in SwiftmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
shared/src/__tests__/daemon-parity.test.tsNode/Swift daemon policies › executes the same vectors through generated SwiftmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)
shared/src/__tests__/daemon-relay-sync.test.tsmixed daemon relay policy › matches Node typed rows, null/false, bounds, exclusion and volatile-field rules in real SwiftmacOS-only Vitest cases (Swift parity, launchd, native helpers) (ci.yml › macos-native-parity)

Layers

Verification tiers

Three local tiers run the same catalog steps at three depths: pnpm verify:changed while iterating, pnpm verify:quick before a push, pnpm verify:full before a release. The pre-release receipt is committed, so this page shows what the last release check ran, skipped and attested.

Changed

Changed-area check

While iterating, and before pushing a focused fix · Seconds to a few minutes, depending on what changed

pnpm verify:changed

Runs

Only the steps whose paths match a file changed since the merge base with origin/master (committed, staged, unstaged or untracked). Vitest runs the tests that import a changed file, plus tests that name a changed non-code file; a change to package.json, the lockfile, a tsconfig or vitest.config.ts runs the whole suite.

Does not replace

The quick check. An import graph cannot see every test that depends on a change, and an unaffected step is not run at all.

Quick

Quick check

Before every push and every pull request · About 2–3 minutes; no native toolchain needed

pnpm verify:quick

Runs

Every fast gate the ubuntu jobs of ci.yml and design-system.yml run: version sync, build, type check, the ESLint and design-lint ratchets, the whole Vitest suite, the daemon E2E, protocol and mirror drift, docs and Pages parity.

Does not replace

Path-scoped CI for Android, Apple and ESP32, the Windows and macOS runtime jobs, or the pre-release check.

Pre-release

Pre-release check

Before cutting any release tag · 20–40 minutes on a Mac with every toolchain, plus lab time

pnpm verify:full

Runs

Everything in the quick check, with the coverage floor; every native suite whose toolchain this host has (Android, Apple macOS + iOS, App Store bundle, ESP32 host tests, simulator and TTGO builds); the clean npm package acceptance; and the lab gates, which a person attests with --attest. pnpm verify:full --record commits the receipt that this page shows.

Does not replace

The release workflows (signing, upload, store review) or hosted Windows CI; a step whose toolchain is missing is recorded as skipped, never as passed.

Which step runs in which tier

StepChangedQuickPre-releaseHosted CINeeds
Vobot pairing and attention regressionsvobot-python · python3 integrations/vobot/test_pairing.py && python3 integrations/vobot/test_attention.py && python3 integrations/vobot/test_tls_peer.py && python3 integrations/vobot/test_tls_transport.py ●integrations/vobot/**●always●always ci.yml › vobot-pythonEvery pull request and push to master; local changed, quick and full verificationNode only
Version syncversion · pnpm verify-version ●VERSION +10●always●always ci.yml › testEvery PR and push to masterNode only
Build every workspace packagebuild · pnpm build ●shared/** +8●always●always ci.yml › testEvery PR and push to masterNode only
Strict type checktypecheck · pnpm typecheck ●shared/** +8●always●always ci.yml › testEvery PR and push to masterNode only
ESLint error ratcheteslint · node scripts/check-eslint-baseline.mjs ●**/*.ts +5●always●always ci.yml › testEvery PR and push to masterNode only
Vitest, tests related to the changevitest-related · vitest-related ●related tests–– ci.yml › testEvery PR and push to masterNode only
Vitest, whole suitevitest · npx vitest run –●always– ci.yml › testEvery PR and push to masterNode only
Vitest, whole suite + coverage floorvitest-coverage · npx vitest run --coverage ––●always ci.yml › testEvery PR and push to masterNode only
Daemon hub end-to-ende2e · npx vitest run --config vitest.e2e.config.ts ●bridge/** +4●always●always ci.yml › testEvery PR and push to masteropt-in on macOS (--allow-keychain)
Generated protocol types match protocol.tsprotocol-drift · pnpm generate-protocol (no diff) ●shared/src/*protocol*.ts +4●always●always ci.yml › testEvery PR and push to masterNode only
Preview mirror SYNC-HASH pinspreview-mirror · node scripts/check-preview-mirror-sync.mjs ●always●always●always ci.yml › testEvery PR and push to masterNode only
Design token mirrorstokens · python3 design/verify-tokens-sync.py && python3 design/verify-tokens-sync.py --self-test ●design/** +8●always●always design-system.yml › verifyEvery PR and push to masterNode only
Design-lint ratchetdesign-lint · node scripts/check-design-lint-baseline.mjs ●**/*.html +5●always●always design-system.yml › verifyEvery PR and push to masterNode only
Markdown links, anchors and the AGENTS.md budgetdocs · pnpm docs:check ●**/*.md +2●always●always design-system.yml › verifyEvery PR and push to masterNode only
Design-system catalog and translationsdesign-catalog · pnpm design-system:check ●docs/** +4●always●always design-system.yml › verifyEvery PR and push to masterNode only
Development-log entriesdevlog · pnpm devlog:check ●docs/devlog/** +2●always●always design-system.yml › verifyEvery PR and push to masterNode only
Board table, GNB, spec-card and surface-count paritypages-parity · node scripts/generate-esp32-board-matrix.mjs --check && node scripts/sync-pages-nav.mjs --check && node scripts/sync-hardware-spec-cards.mjs --check && node scripts/check-surface-mirrors.mjs ●shared/src/esp32-boards.ts +9●always●always design-system.yml › verifyEvery PR and push to masterNode only
Android compile + JUnit + Robolectricandroid · cd android && ./gradlew :app:testDebugUnitTest ●android/**–●always android-test.yml › unit-testPRs and pushes touching android/**JDK 17
macOS app build + XCTestapple-macos · bash apple/scripts/verify-build.sh macOS Debug ●apple/** +4–●always apple-test.yml › test-macos, build-ios, validate-submissionPRs and pushes touching apple/**, shared/** or generated/protocol/**macOS, xcodebuild, xcodegen, cargo
macOS Store Release build + Dot exclusionapple-macos-release · bash apple/scripts/verify-build.sh macOS Release ●apple/** +4–●always apple-test.yml › test-macos, build-ios, validate-submissionPRs and pushes touching apple/**, shared/** or generated/protocol/**macOS, xcodebuild, xcodegen, cargo
iOS app build (simulator, unsigned)apple-ios · bash apple/scripts/verify-build.sh iOS Release ●apple/** +4–●always apple-test.yml › test-macos, build-ios, validate-submissionPRs and pushes touching apple/**, shared/** or generated/protocol/**macOS, xcodebuild, xcodegen
macOS DotPreview optimized build + XCTest + artifact boundaryapple-dot-macos · bash apple/scripts/verify-build.sh macOS DotPreviewRelease ●apple/** +4–●always apple-test.yml › test-macos, build-ios, validate-submissionPRs and pushes touching apple/**, shared/** or generated/protocol/**macOS, xcodebuild, xcodegen, cargo
iOS DotPreview optimized build + artifact boundaryapple-dot-ios · bash apple/scripts/verify-build.sh iOS DotPreviewRelease ●apple/** +4–●always apple-test.yml › test-macos, build-ios, validate-submissionPRs and pushes touching apple/**, shared/** or generated/protocol/**macOS, xcodebuild, xcodegen
macOS CloudKit transport and read-only monitoring XCTestapple-cloudkit-macos · bash apple/scripts/verify-build.sh macOS CloudKitPoCDebug ●apple/AgentDeck/RemoteObservation/** +7–●always apple-test.yml › test-macos, build-ios, validate-submissionPRs and pushes touching apple/**, shared/** or generated/protocol/**macOS, xcodebuild, xcodegen
iOS CloudKit PoC unsigned companion buildapple-cloudkit-ios · bash apple/scripts/verify-build.sh iOS CloudKitPoCDebug ●apple/AgentDeck/RemoteObservation/** +7–●always apple-test.yml › test-macos, build-ios, validate-submissionPRs and pushes touching apple/**, shared/** or generated/protocol/**macOS, xcodebuild, xcodegen
Watch app and embedded complications simulator buildapple-watch · bash apple/scripts/verify-build.sh watchOS Debug ●apple/AgentDeckWatch/** +8–●always apple-test.yml › test-macos, build-ios, validate-submissionPRs and pushes touching apple/**, shared/** or generated/protocol/**macOS, xcodebuild, xcodegen
App Store submission bundle limitsapple-submission · bash apple/scripts/validate-appstore-submission.sh ●apple/appstore-submission/** +3–●always apple-test.yml › test-macos, build-ios, validate-submissionPRs and pushes touching apple/**, shared/** or generated/protocol/**ffprobe
ESP32 host policy assertionsesp32-host · bash esp32/sim/run-tests.sh ●esp32/**–●always esp32-sim.yml › compilePRs and master pushes touching esp32/**c++
ESP32 simulator builds and resident/input checksesp32-sim · cd esp32/sim && pio run && bash check-surfaces.sh ●esp32/**–●always esp32-sim.yml › compilePRs and master pushes touching esp32/**pio
ESP32 TTGO target buildesp32-ttgo · cd esp32 && pio run -e ttgo ––●always esp32-sim.yml › ttgoPRs and master pushes touching esp32/** or the ESP32 compile/release workflowspio
Clean npm candidate package acceptancenpm-packaged · pnpm test:packaged --soak-seconds 60 --keep-artifacts ––●always no hosted runnermacOS or Linux
Windows native runtimewindows-runtime · node bridge/dist/cli.js diag native --json ––●always ci.yml › windows-native-runtimeEvery PR and push to masterWindows
ESP32 boards: flash, boot, serial protocol, performanceesp32-robot ––●attested no hosted runnera person and the lab hardware
Build-and-deploy smoke on real devicesdevice-deploy ––●attested no hosted runnera person and the lab hardware
Sandboxed Swift Codex live acceptanceswift-codex-live ––●attested no hosted runnera person and the lab hardware
Signed Swift and Node lifecycle acceptancedaemon-lifecycle-live ––●attested no hosted runnera person and the lab hardware

A changed-area step runs when a file matching one of its paths (hover a cell for all of them) changed since the merge base. Each selected step runs, is skipped with its reason (missing toolchain, other platform), or, for a lab gate, waits for a person to attest it. Nothing counts as passing without running.

Receipts

Last recorded pre-release check

Pass

Pre-release check · commit 5b9781d · uncommitted changes · 2026-11-14 05:15 UTC · darwin/arm64, Node v26.5.0

Passed
28
Failed
0
Skipped
2
Lab, unattested
4
34 steps · 39 min 41 s
  • ✓Vobot pairing and attention regressions 502 ms
  • ✓Version sync 445 ms
  • ✓Build every workspace package 10.7 s
  • ✓Strict type check 5.5 s
  • ✓ESLint error ratchet 9.5 s
  • ✓Vitest, whole suite + coverage floor 1 min 28 s
  • ○Daemon hub end-to-end opt-in on this platform: on macOS the daemon's usage poller reads the login Keychain; pass --allow-keychain to run it
  • ✓Generated protocol types match protocol.ts 7.8 s
  • ✓Preview mirror SYNC-HASH pins 372 ms
  • ✓Design token mirrors 1.2 s
  • ✓Design-lint ratchet 1.0 s
  • ✓Markdown links, anchors and the AGENTS.md budget 586 ms
  • ✓Design-system catalog and translations 450 ms
  • ✓Development-log entries 493 ms
  • ✓Board table, GNB, spec-card and surface-count parity 209 ms
  • ✓Android compile + JUnit + Robolectric 2 min 12 s
  • ✓macOS app build + XCTest 5 min 18 s
  • ✓macOS Store Release build + Dot exclusion 5 min 52 s
  • ✓iOS app build (simulator, unsigned) 1 min 1 s
  • ✓macOS DotPreview optimized build + XCTest + artifact boundary 11 min 1 s
  • ✓iOS DotPreview optimized build + artifact boundary 2 min 17 s
  • ✓macOS CloudKit PoC deterministic persistence + transport XCTest 40.7 s
  • ✓iOS CloudKit PoC unsigned companion build 12.0 s
  • ✓Development Watch app and embedded complications simulator build 6.9 s
  • ✓App Store submission bundle limits 7.2 s
  • ✓ESP32 host policy assertions 8.8 s
  • ✓ESP32 simulator builds and resident/input checks 4 min 36 s
  • ✓ESP32 TTGO target build 1 min 49 s
  • ✓Clean npm candidate package acceptance 2 min 12 s
  • ○Windows native runtime needs Windows (ci.yml › windows-native-runtime runs this on Node 22, 24 and 26 for every pull request)
  • ?ESP32 boards: flash, boot, serial protocol, performance lab gate, not attested
  • ?Build-and-deploy smoke on real devices lab gate, not attested
  • ?Sandboxed Swift Codex live acceptance lab gate, not attested
  • ?Signed Swift and Node lifecycle acceptance lab gate, not attested

Transparency

What we verify

Every check the project runs, where it runs, and what it does not prove. Generated from scripts/verification-catalog.json; CI fails if that file stops matching the repository.

Merge policy · checked 2026-11-05

Branch protection on master requires ESP32 simulator, modern TTGO and legacy TC001 build checks, npm/Python/Rust dependency audits, dependency review, all eight hosted-validated CodeQL analysis jobs, the CodeQL result check and security pipeline freshness. Administrator enforcement and up-to-date branch checks are enabled. Target build and native analysis jobs are promoted only after hosted validation.

Workflow snapshot: . This report updates after a successful Pages build on master. Scheduled scans may be newer; follow each workflow link for current results. Workflow success does not mean zero security findings.

unitintegration
Fails CI

Vobot pairing, TLS policy and attention

Every pull request and push to master; local changed, quick and full verification · ubuntu-latest and local CPython

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

ci.yml runs

Scope, limits and command

Proves

  • Pairing redemption and credential-file cleanup on CPython with loopback sockets and temporary files.
  • Attention state transitions with mocked display peripherals.
  • TLS peer pin and validity policy, bounded response parsing and credential withholding before peer verification with mocked sockets.

Does not prove

  • MicroPython firmware compatibility, physical device settings lifecycle, filesystem isolation, TLS or server-enforced least privilege.
  • Gallery packaging or publication; this check does not establish physical device acceptance.

python3 integrations/vobot/test_pairing.py && python3 integrations/vobot/test_attention.py && python3 integrations/vobot/test_tls_peer.py && python3 integrations/vobot/test_tls_transport.py

Local tiersChangedQuickPre-release

static
Required to merge

Security pipeline freshness

Every PR, master push, hourly and manual · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

security-health.yml runs

Scope, limits and command

Proves

  • Latest default-branch scans and cron executions have separate evidence; disabled, stale, failed and stuck pipelines fail after explicit startup deadlines.

Does not prove

  • Future GitHub scheduler delivery; a first schedule within startup grace remains unverified, not healthy.

node scripts/security-pipeline-health.mjs

Local tiershosted only

unitcontractintegration
Passed here

TypeScript suite (Vitest) + coverage floor

Every PR and push to master · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

ci.yml runs

Scope, limits and command

Proves

  • Scoped device TLS projects only granted session/usage fields, fences revocation and legacy fallback, and admits custody receipts by socket, process and fresh challenge; actual Swift TLS and cross-profile store execution run on macOS.
  • Host C++ executes the transformed SDK auth-scheme, Digest-path, multipart-boundary and portal-route policies; unreviewed SDK bytes fail and downloaded sources remain unchanged.
  • bridge, shared, hooks, plugin, plugin-ulanzi, setup, scripts and the experimental Dot relay behave as their tests specify (the domain table below counts them)
  • USB vendor discovery caches unchanged candidates, bounds retries and retains its subprocess slot until close; fake children cover resisted signals and a POSIX executable fixture covers real timeout/kill recovery
  • Node/Swift daemon policy mirror drift and common turn-boundary vectors; CLI rejects explicit Swift identity as Node readiness (native policy execution also runs on macOS)
  • Deck settings preserve conversation targets and request correlation, reject malformed mutation values, and share generated Node/Swift bounds; picker timeout/refusal and D200H activity redraw regressions are covered
  • line/function/branch/statement coverage of bridge, shared, plugin and hooks stays above the floor in vitest.config.ts
  • generated Swift/Kotlin/C++ mirrors match their TypeScript source of truth (contract tests)
  • CI wait command intent classification and generated Swift drift; identical command vectors execute in both TS and Swift on macOS, including strict JSON booleans, UTF-16 bounds and safe identity extraction; unsupported or ambiguous input is rejected; Hermes normalized CI evidence is allow-listed, bounded and matched by opaque invocation ID in both trackers
  • CI compact transport requires explicit agentWaiting=true for pending phases while preserving terminal verdicts; common vectors execute in Node and Swift, plus the firmware ArduinoJson projection when its build dependency is installed
  • README/overview 1.8.0 supplement references resolve to real assets, user-controlled captioned video, and Pages assembly paths; WebVTT cues are nonempty and ordered
  • Node test module home lookups and default auth data use temporary fixtures; explicit legacy-token tests verify migration with synthetic credentials

Does not prove

  • anything about native apps, firmware or real devices
  • real Dot subscription/report execution, hosted OAuth-provider interoperability or public relay deployment (the relay tests use a local receiver and test JWTs)
  • macOS-only halves (Swift toolchain, launchd) — skipped on this ubuntu runner and executed by the macOS native parity gate instead; the Latest run section lists each skipped case and where it runs
  • CI wait daemon/wire/UI integration or actual GitHub run state; the classifier observes intent only
  • public video pixel fidelity, duration, browser subtitle playback, or actual Pages publication

npx vitest run --coverage

Local tiersChangedQuickPre-release

e2e
Passed here

Daemon hub end-to-end

Every PR and push to master · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

ci.yml runs

Scope, limits and command

Proves

  • the real agentdeck daemon start process boots in an empty HOME and answers /health
  • the daemon under test starts with its OpenClaw Gateway probe off and leaves no OpenClaw state in its temp HOME
  • privacy-scrubbed real Hermes CI terminal callbacks open an unknown foreground wait and clear its matching invocation through actual daemon HTTP/WS; the capture used a local fixture watcher, not a GitHub verdict
  • Claude hook events posted to /hooks/* drive the WebSocket state stream (idle → processing → idle)
  • the exact hook shell snippet the installer writes finds the daemon through daemon.json and delivers events
  • PreToolUse and Stop hooks answer immediately when no device can approve, so Claude never stalls
  • the installed Claude PermissionRequest hook prints nothing and puts the tool's permission prompt on an observed Claude row within one broadcast; the later permission Notification leaves it as is; a held PreToolUse gate keeps its requestId through both signals and is released when its hook connection is aborted
  • the timeline is persisted to timeline.json and replayed to a new client after a restart
  • SIGTERM shuts the daemon down on its own and withdraws daemon.json
  • loopback posture: the port is closed on the host's LAN address
  • z.ai credential edits require a local bearer token, preserve unrelated settings, use private file permissions and never echo or log the key
  • daemon relay (issue 273): two real daemons on loopback — a worker with relay.json publishes an observed OpenCode session to the hub, the hub shows its awaiting prompt, a deck permission decision and prompt sent to the hub land in the WORKER's steering queue (not the hub's), and the row leaves when the worker stops

Does not prove

  • a real Claude/Codex process (events are posted with the documented payload shape)
  • LAN pairing and default-deny from another machine (every same-host address is trusted by design; the gate itself is unit-tested in http-auth-gate.test.ts)
  • device modules (all disabled with --local)
  • the OpenClaw Gateway integration (its probe is off in the daemon under test); that the daemon never contacts a Gateway is observed only where one runs, which CI does not
  • the daemon relay across two machines, through a real ssh -L forward or with a pairing token over a LAN (the relay e2e uses one host's loopback)

pnpm test:e2e

Local tiersChangedQuickPre-release

integratione2e
Informational

Clean npm candidate package acceptance

Before npm candidate delivery, after pnpm build · Local POSIX host with Node 22, 24 or 26

Last pre-release check: passed · 5b9781d · 2026-11-14

No hosted runner — the pre-release receipt records it

Scope, limits and command

Proves

  • all four coordinated npm tarballs install in an empty prefix without workspace links or compiled test payloads
  • real npm directory-pack and pnpm candidate-pack tarballs for all four packages contain the root LICENSE byte-for-byte
  • the installed daemon boots under the exact native-binding executable on an isolated port and temporary data directory
  • installed Claude shell hooks discover that daemon through its registry and deliver a turn
  • a locally fixtured GitHub API process drives failed CI, explicit re-invocation clear, a repair tool and passed rerun over real HTTP/WebSocket interfaces
  • captured Hermes child/cancelled-turn hooks replay correctly and twelve concurrent read-only conversations retain independent labels and identities
  • four volunteered device kinds appear in health; dashboard/reader/plugin peers depart, a WiFi board reconnect updates its retained identity, and compact roster frames parse below the smallest firmware JSON guard
  • the packaged daemon survives the requested soak and replays persisted timeline and credentials after isolated shutdown/restart

Does not prove

  • a live GitHub CI run or real agent execution (the subprocess and hook payloads are fixtures)
  • physical device rendering, hardware transport or optical acceptance
  • Swift/Node ownership handover, store signing or publication
  • a long-term production soak (duration is selected by the operator)

pnpm test:packaged --soak-seconds 60 --keep-artifacts

Local tiersPre-release

e2eintegration
Informational

Signed Swift and Node lifecycle acceptance

Opt-in after building and signing the isolated test app · Maintainer Mac, alternate sandboxed signed app and private data/ports

Last pre-release check: not attested · 5b9781d · 2026-11-14

No hosted runner — the pre-release receipt records it

Scope, limits and command

Proves

  • Actual signed Swift and Node processes converge on one private listener in both startup orders and concurrent startup
  • Isolated stop/restart, client-app crash and owner failure recover with token and synthetic timeline continuity
  • An incoming Node crash after Swift yields recovers without restarting the app or contacting the shared daemon
  • Opt-in in-flight replay checks undecided approvals, stale IDs, aggregate Feed receipts and unconfirmed replica failures across both owner directions
  • Synthetic OTA push retires old transfers and pull OTA reconstructs identical bytes explicitly pre-staged on both owners
  • Dedicated-Mac sleep modes require actual OS sleep and full-wake evidence before checking expired approvals, OTA and Feed restoration
  • Opt-in display-only mode measures actual Mac sleep/wake edge delivery to isolated wire clients in Swift-only, Node-only and combined configurations

Does not prove

  • Installed App Store or Release delivery, real providers, source grants, physical writers or remote network partitions
  • Absent-replica recovery, simultaneous durable-store loss, pins/settings/source-grant migration or staged-image distribution
  • Physical X4 acceptance is deferred to companion-app integration

node scripts/verify-daemon-lifecycle.mjs --allow-visible-fixtures --app APP --swift-data DATA --out OUTPUT

Local tiersPre-release

e2ehardware
Informational

Sandboxed Swift Codex live acceptance

Opt-in after deploying the Swift app · Maintainer Mac running the signed sandboxed app

Last pre-release check: not attested · 5b9781d · 2026-11-14

No hosted runner — the pre-release receipt records it

Scope, limits and command

Proves

  • A verified sandboxed Swift process accepts Codex lifecycle HTTP events and broadcasts matching WebSocket roster states
  • Late OTel cannot override hook ownership, prevent real-time terminal expiry, or resurrect an expired hook row
  • OTel-only and notify-plus-OTel fallback and turn-ID guards remain functional

Does not prove

  • Real Codex CLI emission, interactive trust, or installer configuration preservation (events are synthetic)
  • App Store distribution, Kiro folder consent/revocation, OpenCode SSE reconnect, or physical display pixels
  • Unattended hosted CI: requires an explicitly selected running Mac app and leaves labeled synthetic timeline entries

node scripts/verify-swift-codex-live.mjs --port PORT --pid PID --app /path/AgentDeck.app --allow-visible-fixtures

Local tiersPre-release

staticcontract
Fails CI

Build + type check + version and protocol drift

Every PR and push to master · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

ci.yml runs

Scope, limits and command

Proves

  • every workspace package compiles under strict TypeScript
  • target versions agree with the repository compatibility major
  • generated protocol types (Swift, Kotlin, JSON Schema) are committed in sync with shared/src/protocol.ts
  • every hand-maintained preview mirror still pins the current blob of the renderer it copies (SYNC-HASH)

Does not prove

  • runtime behaviour

pnpm verify-version && pnpm build && pnpm typecheck && pnpm generate-protocol (no diff) && check-preview-mirror-sync.mjs

Local tiersChangedQuickPre-release

static
Fails CI

ESLint error ratchet

Every PR and push to master · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

ci.yml runs

Scope, limits and command

Proves

  • the number of ESLint errors in the TypeScript and JavaScript sources does not grow past scripts/eslint-baseline.json
  • vendored upstream SDK code and gitignored generated files are excluded, so the count is the same on every checkout

Does not prove

  • that the recorded errors are fixed: the baseline still carries them
  • anything about warnings, which are not counted

node scripts/check-eslint-baseline.mjs

Local tiersChangedQuickPre-release

integration
Fails CI

Windows native runtime (Node 22 / 24 / 26)

Every PR and push to master · windows-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

ci.yml runs

Scope, limits and command

Proves

  • better-sqlite3 opens under each supported Node ABI on Windows
  • hook installer, observer, state machine and daemon launcher/supervisor tests pass on Windows paths and shells
  • native Codex hook runner sends the launcher PID through cmd.exe, preserves UTF-8 payloads, and omits guessed identity when CIM evidence is unavailable or cyclic
  • the Claude hook script run by powershell.exe makes no /health request, prints nothing for a fire-and-forget event, and writes the daemon's UTF-8 answer to stdout for PreToolUse and Stop
  • Ulanzi discovery handles missing registries and foreign PIDs; native loopback HTTP/WS registers, exchanges frames and rediscovers a changed port after socket loss
  • the daemon relay works between two real Windows daemons on loopback: a worker publishes an observed session to a hub, a hub-side decision lands in the worker's steering queue, and the row leaves when the worker stops

Does not prove

  • the Scheduled Task autostart on a real login session
  • the Stream Deck app on Windows
  • WSL2 forwarding, the Ulanzi Studio bundled runtime or physical D200 keys
  • the daemon relay between two Windows machines, or terminal injection into an observed Windows session (no such rung exists)

node bridge/dist/cli.js diag native --json && vitest run <the files below> && the daemon relay unit + two-daemon e2e

Local tiersPre-release

contractintegration
Fails CI

macOS-only Vitest cases (Swift parity, launchd, native helpers)

Every PR and push to master · macos-26

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

ci.yml runs

Scope, limits and command

Proves

  • the Node rules and their generated Swift mirrors execute the same vectors and agree: daemon policies, the CI-wait command classifier, the IPS10 roster kernel, matrix expressions (including iDotMatrix creature ownership, attention preemption, background lower bounds and CI/child separation) and the native TUI samples; pairing retirement vectors and concurrent Node/Swift rotations preserve the durable fence
  • the launchd supervisor probe answers on a real launchd, and the Foundation Models helper builds and signs with the runner's Swift toolchain
  • native Glance uses the pinned common rasterizer and bundled fonts to match Node SVG, every packed 1bpp byte, content signatures, physical orientation and decoded PNG pixels; Swift routes preserve conditional responses, Surface identity and listener authentication
  • native Pixoo baked loops use fixed bundled pixel code in system JavaScriptCore to match every Node RGB byte; bounded input/cache, palindrome playback and upload packing are checked
  • native ICS source URL scope, Windows/IANA timezone and DST mapping, WKST week boundaries, monthly BYSETPOS, omission counts and cache/stale policy match Node; memory-only calendar context preserves aggregate Pocket storage
  • native GitHub CI phase classification and aggregation match Node response vectors, and generated transport/identity/freshness policy has no drift
  • real Node/Swift relay sockets work in both directions with native authentication, reconnect dedup, supported controls, explicit rejection and bounded hello acknowledgement; typed row policy matches compiled Swift

Does not prove

  • how the Swift app uses those mirrors (that is apple-test.yml)
  • the ESP32 ArduinoJson projection case, which needs the board's PlatformIO libdeps and stays skipped

vitest run <the files below> --maxWorkers=1

Local tiershosted only

staticcontract
Fails CI

Design system, docs and mirror gates

Every PR and push to master · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

design-system.yml runs

Scope, limits and command

Proves

  • colour/type tokens are identical across CSS, JS, TS, Swift, Kotlin and C++ mirrors
  • every Markdown link and anchor resolves; every docs/ file is cataloged or excluded with a reason
  • the AGENTS.md chain (root + nested) stays under Codex's 32 KiB project_doc_max_bytes and no CLAUDE.md-family file shadows it inside the checkout
  • every development log entry is well-formed

Does not prove

  • how anything looks on a device

verify-tokens-sync.py, design-system:check, docs:check, devlog:check, surface/GNB/spec-card parity, design/lint.sh

Local tiersChangedQuickPre-release

unitintegration
Passed here

Android JUnit + Robolectric

PRs and pushes touching android/** · ubuntu-latest

Latest hosted run passed · 45eedc3 · master · 2026-11-11

android-test.yml runs

Scope, limits and command

Proves

  • the Android app compiles
  • protocol parsing, timeline store and state logic behave as specified on the JVM
  • MOAAN frontlight mode transitions preserve original presets and absent keys across dim levels, process recreation, durable-save failure and refused settings writes
  • multi-host refusal recovery retains endpoint-specific errors and distinguishes approval from network failure
  • e-ink work and usage regions remain visible together with independent scrolling and inline provider limits across roster growth, rotation and large fonts; separate Frame mode preserves continuous travel, state-dependent work and rest behavior, bounded resident separation and quiet Hermes stillness on the JVM
  • guided setup completion and upgrade migration preserve appearance and pairing; setup handoff retains the selected host
  • the packaged manifest disables backup and explicit legacy, cloud-backup and device-transfer rules exclude credential-bearing app storage

Does not prove

  • Compose UI on a device or e-ink panel (there are no instrumented tests)

./gradlew :app:testDebugUnitTest

Local tiersChangedPre-release

unitintegrationcompile
Fails CI

Apple XCTest (macOS) + iOS build and onboarding layout tests

PRs and pushes touching apple/**, shared/** or generated/protocol/** · macos-26

Latest hosted run passed · f9dd73e · master · 2026-11-15

apple-test.yml runs

Scope, limits and command

Proves

  • the macOS app and its in-process Swift daemon build and pass XCTest
  • the offline remote-observation archive guard rejects wrong container, service, environment, iOS APNs, macOS Sandbox and debug entitlements; unsigned build identity never establishes Production signing or cloud delivery
  • CloudKit tests use injected stores and temporary files to exercise account isolation, durable stop/delete/subscription intents, ambiguous event resolution, source invalidation and stale reader state without contacting iCloud; standard builds include the read-only product and the development PoC compiles separately
  • native Pixoo scheduling tests exercise actual one-frame HTTP payloads, coalescing, failed-loop cooldown, dim cancellation, wake brightness and settings preservation; physical Pixoo acceptance is local opt-in
  • native ICS consent and revision-scoped cache projection reject revoked source work, while calendar-derived Pocket persistence keeps only aggregate feedback
  • native APME retention preserves rows/history, validates preview fingerprints and explicit local-only confirmation, rolls both tables back on failure, handles WAL/busy stores and compacts disposable stores; Node/Swift SQL and UTF-16 marker parity use shared vectors
  • native adaptive Pocket cards match the Node golden vectors for selection, Unicode fingerprints, feedback, ignored exposures and persistence; actual Feed/Outbox route tests preserve conditional/OTA-first exposure counting, first-answer-wins replay across restart and LAN authentication
  • native OpenCode observer setup preserves user files, refuses edited or linked assets, updates and removes only owned files, and restores scoped receiver synchronization
  • Hermes folder consent persists receiver selection, follows actual local ready ports across restart, renews stale bookmarks, preserves unknown settings, refuses invalid/unowned/symlinked files, and stops file access after revocation; saved configuration does not prove hook delivery
  • preferred-port listener startup retries address-in-use failures only within a bounded budget and after explicit TCP refusal; peer arrival, unknown probes, cancellation and superseded startup stop retries, failed listeners are released and a ready listener survives its startup deadline
  • daemon process activity is acquired before startup suspends, remains held after success and is released exactly once after failure, cancellation or shutdown; a retired instance cannot release its replacement activity
  • automatic daemon handover and listener-failure recovery resume after actual teardown completion when their bounded wait expires; explicit stop, Settings restart and newer ownership or connection intents suppress stale continuation, and the resumed client monitor supports a subsequent local promotion
  • hosted XCTest app roots remain inert across foreground, retry and direct transport entry points without changing ordinary fixture behavior or migrating saved credentials
  • attention navigation distinguishes fresh empty rosters from unavailable data, scopes session identity to a credential-free endpoint, bounds startup waits and preserves hardware focus during local inspection
  • the Swift daemon's cross-origin /setup-status answers exactly the secret-free key set of shared/setup-status-contract.json, with a session count and a Claude hook flag that never claims missing from inside the sandbox
  • the Swift daemon maps Claude PermissionRequest to the same display-only prompt as the permission Notification, counts the two once, never replaces a held gate or a question, and its HTTP listener releases a held gate undecided when the hook's connection closes
  • the Swift daemon's Claude status-line POST records diagnostic receipts without creating or refreshing quota, billing or subscriptions; existing account relay values and observation times remain unchanged, newer account corrections still apply and stale readings are hidden
  • communication graphs keep unrelated sessions isolated, resolve only explicit peer identity, retain one-way burst ages, and distinguish crossed messages and unavailable history; native graph rendering uses synthetic sessions; habitat currents require visible peers and follow resident parent and camera transforms
  • selected-host discovery recovery survives network retry exhaustion while explicit stops and authentication refusals remain stopped
  • explicit daemon data-directory overrides avoid legacy user-data migration and own only their temporary paths
  • native CI wait intent, lifecycle and foreground accounting replay shared CI fixtures through CiWaitRulesTests
  • native relay hub preserves local ownership, supersedes old sockets, removes stale rows and rejects unsupported or stale worker controls; explicit Keychain-backed target consent survives restart and failed removal stays disabled; built macOS ATS policy permits HTTP only for the RFC 6598 shared IPv4 CIDR in addition to existing local-network access, with no arbitrary-load or TLS-version exception
  • native GitHub CI uses explicit repository/run identity and consent, app-owned Keychain custody, bounded read-only HTTPS, complete evidence and stale/unknown handling; account changes and closed waits reject late replies
  • background task snapshots reach creature accents, stay bounded, freeze under Reduce Motion and clear on completion or approval
  • the iOS app builds unsigned in Store and DotPreview configurations
  • iOS onboarding keeps guidance and recovery in one scroll view with pinned controls at phone portrait, landscape, accessibility text and iPad sizes; reopening retains preferences
  • Store artifacts exclude Dot code/resources and ignore incoming Dot snapshots; DotPreview retains its contract and native tests
  • App Store metadata, screenshots and privacy manifest are within submission limits
  • APME credential fixtures verify acknowledged migration, private CLI-file compatibility, failed-save preservation, clear/restart tombstones and hosted-test refusal of implicit profiles and inherited paid-provider keys; storage doubles replace real Keychain access

Does not prove

  • real Data Protection Keychain custody in an unsigned XCTest host; signed sandbox save, new-process restore and deletion are separate local acceptance
  • UI flows (there is no UI-test target)
  • relay across two physical machines or live signed relay Settings/Keychain acceptance
  • live private GitHub access or signed Keychain availability: transport/storage fixtures run in XCTest; real Keychain requires a separately signed host
  • Shortcuts discovery, Siri execution or real notification clicks on an installed signed app
  • GPU screenshot availability: native scene captures are bounded, optional review attachments; capture failure is recorded and scene assertions still execute
  • behaviour on a signed build with real TCC grants

verify-build.sh macOS Debug / Release / DotPreviewRelease; verify-build.sh iOS Release / DotPreviewRelease; verify-build.sh macOS / iOS CloudKitPoCDebug; verify-build.sh watchOS Debug; validate-appstore-submission.sh

Local tiersChangedPre-release

unitcontract
Required to merge

ESP32 host policy assertions

PRs and master pushes touching esp32/** · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

esp32-sim.yml runs

Scope, limits and command

Proves

  • firmware policy headers execute on the host, including strict unknown-agent glyph refusal and source feature selection; mDNS board hostnames use the full factory MAC and endpoint selection preserves a known choice or refuses ambiguity
  • e-ink paint policies: EPD47 masked differential bands and strip residue, the NM paint gate, the host clock behind "as of", and serial-primary radio parking from the radio's real state
  • HTTP 401 and explicit WebSocket auth-close classification retain a pairing-required fence until trusted provisioning; normal closes, silence and policy 403 never invent token failure

Does not prove

  • pixel output, physical firmware memory pressure, or an installed board update

bash esp32/sim/run-tests.sh

Local tiersChangedPre-release

compileintegration
Required to merge

ESP32 firmware host build and resident/input checks

PRs and master pushes touching esp32/** · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

esp32-sim.yml runs

Scope, limits and command

Proves

  • the real esp32/src render trees compile for the native simulator
  • all eight resident types clear HUD, shell and peer bounds on 86 Box, IPS35, round AMOLED and TTGO; IPS10/knob/ticker inputs retain identity and keep Dot read-only

Does not prove

  • the Xtensa build, flashing, or behaviour on a board

pio run (every esp32/sim env); bash esp32/sim/check-surfaces.sh

Local tiersChangedPre-release

compile
Required to merge

ESP32 TTGO target firmware build

PRs and master pushes touching esp32/** or the ESP32 compile/release workflows · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

esp32-sim.yml runs

Scope, limits and command

Proves

  • a fresh dependency install compiles and links TTGO on the release Xtensa toolchain without static DRAM overflow

Does not prove

  • runtime heap headroom, firmware boot, rendering, flashing, or other board targets

pio run -e ttgo

Local tiersPre-release

compile
Required to merge

ESP32 legacy TC001 firmware build

PRs and master pushes touching esp32/** or the ESP32 compile/release workflows · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

esp32-sim.yml runs

Scope, limits and command

Proves

  • The legacy Arduino 2 / GCC 8 target compiles and links with build-local SDK security backports; per-source original/patched hashes and applied rules are retained.

Does not prove

  • Installed firmware, boot, optical acceptance, complete SDK advisory coverage or protection of older installed builds.

pio run -e led8x32

Local tiershosted only

unitintegratione2e
Informational

This report

Every push to master · ubuntu-latest

Scope, limits and command

Proves

  • re-runs the Vitest, E2E and Android suites on the merged master commit and publishes every result

Does not prove

  • Apple, hardware or release gates — those run in their own workflows and are linked, not re-run here

vitest --coverage, pnpm test:e2e, gradlew testDebugUnitTest, then generate-html-report.py

Local tiershosted only

hardware
Informational

ESP32 Robot Framework (flash, boot, serial protocol, performance)

Manually before an ESP32 firmware release · maintainer lab (boards on USB)

Last pre-release check: not attested · 5b9781d · 2026-11-14

No hosted runner — the pre-release receipt records it

Scope, limits and command

Proves

  • the firmware flashes, boots, parses the serial JSON protocol and meets heap/latency budgets on real boards

Does not prove

  • anything in GitHub CI — no hosted runner has the boards, so this page shows it as not run

bash esp32/robot/run.sh hw|protocol|perf

Local tiersPre-release

hardware
Informational

Build-and-deploy smoke on real devices

Manually, agent-driven, before releases · maintainer lab (Mac, phones, e-ink readers, Stream Deck, ESP32)

Last pre-release check: not attested · 5b9781d · 2026-11-14

No hosted runner — the pre-release receipt records it

Scope, limits and command

Proves

  • the built artifacts install and connect to a daemon on the maintainer's hardware

Does not prove

  • repeatability — results are not recorded here

agentdeck-deploy skill (preflight: bash scripts/macos-preflight.sh)

Local tiersPre-release

release
Fails CI

npm publish

Tag npm-v* · ubuntu-latest

Latest hosted run passed · 67aee16 · push on npm-v2.1.2 · 2026-11-11

npm-release.yml runs

Scope, limits and command

Proves

  • the published packages were built from a green test run and are visible on npm
  • each directory publication first validates the root LICENSE bytes in a real npm tarball

Does not prove

  • a fresh npx @agentdeck/setup install on a clean machine

build, pnpm test, publish, verify packages visible on the registry

Local tiershosted only

release
Fails CI

App Store / TestFlight upload

Tag apple-v* or manual dispatch · macos

Latest hosted run passed · f9dd73e · master · 2026-11-15

apple-release.yml runs

Scope, limits and command

Proves

  • the signed archive satisfies the App Store self-containment invariants and excludes Dot code/resources before upload

Does not prove

  • runs no XCTest itself — relies on apple-test.yml having passed on master

archive, export, verify-appstore-archive.sh, upload

Local tiershosted only

release
Fails CI

Android APK / Play upload

Tag android-v* · ubuntu-latest

Latest hosted run passed · 986adc6 · push on android-v2.1.1 · 2026-11-11

android-release.yml runs

Scope, limits and command

Proves

  • the release APK is signed with the release key

Does not prove

  • runs no tests itself — relies on android-test.yml having passed on master

assembleSideload, apksigner verify, bundle, Play internal track

Local tiershosted only

releasecompile
Fails CI

ESP32 firmware release

Tag esp32-v* · ubuntu-latest

Latest hosted run passed · 285a57d · push on esp32-v2.1.0 · 2026-11-05

esp32-release.yml runs

Scope, limits and command

Proves

  • every supported board's firmware builds and ships with a checksummed manifest

Does not prove

  • boot on hardware (see the Robot suites)

pio run per board, merge factory image, checksums, manifest

Local tiershosted only

release
Fails CI

Stream Deck plugin package

Tag streamdeck-v* · ubuntu-latest

Latest hosted run passed · 285a57d · push on streamdeck-v2.1.0 · 2026-11-05

streamdeck-release.yml runs

Scope, limits and command

Proves

  • the .streamDeckPlugin bundle packages

Does not prove

  • the DRM-processed Marketplace build (verified manually through Elgato's review loop)

package-plugin.sh

Local tiershosted only

release
Fails CI

Ulanzi plugin package

Tag ulanzi-v* · ubuntu-latest

Latest hosted run passed · 285a57d · push on ulanzi-v2.1.0 · 2026-11-05

ulanzi-release.yml runs

Scope, limits and command

Proves

  • the Ulanzi plugin bundle packages with its WASM renderer and fonts

Does not prove

  • behaviour inside Ulanzi Studio (manual, plugin-ulanzi/VERIFY.md)

package-ulanzi-plugin.sh

Local tiershosted only

static
Required to merge

Known vulnerable npm dependencies

Every PR, master push and schedule (dependency review: PR only) · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

security-scan.yml runs

Scope, limits and command

Proves

  • All and production pnpm lockfile scopes are queried against the current registry; unreviewed high/critical advisories and expired exact-version exceptions fail; raw results and hashes are retained.

Does not prove

  • Reachability or absence of unknown vulnerabilities; native firmware dependencies; medium/low advisories do not fail this gate.

pnpm security:audit

Local tiershosted only

static
Informational

Snyk monthly comparison

1st of each month and manual · ubuntu-latest

Latest hosted run passed · 9c5bd71 · master · 2026-11-08

snyk-monthly.yml runs

Scope, limits and command

Proves

  • Snyk Open Source (pnpm workspaces, Android release/sideload runtime) and Snyk Code ran with the repository token; findings absent from the triaged baseline open or update one tracking issue; raw results are kept for 90 days.

Does not prove

  • Anything CodeQL and the dependency audits do not; the 2026-11-08 trial found neither tool reported the three published advisories. Warnings and notes in the baseline were recorded without individual review. It never fails a PR.

node scripts/snyk-monthly.mjs --code <sarif> --oss <json>

Local tiershosted only

static
Required to merge

Python dependency audit

Every PR, master push and schedule (dependency review: PR only) · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

security-scan.yml runs

Scope, limits and command

Proves

  • Resolved BLE and Robot requirements are queried by pip-audit. Resolution or audit failure fails the job.

Does not prove

  • The packages installed in an existing user BLE environment; OS-specific dependencies outside the Linux resolver.

pip-audit -r bridge/python/requirements-ble.txt; pip-audit -r esp32/robot/requirements.txt

Local tiershosted only

staticcontract
Fails CI

AgentDeck token detection

Every PR, master push, daily schedule and manual · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

security-scan.yml runs

Scope, limits and command

Proves

  • Context-bound token shapes have synthetic positive and negative tests; current tracked text is scanned without emitting credential values.
  • Exact native-fixture digests and match counts fence reviewed synthetic tokens; unreadable or oversized text fails collection.

Does not prove

  • GitHub custom-pattern activation or server-side Hyperscan acceptance, historical or binary/ignored-file coverage, arbitrary secret encodings, or credential validity.

node --test scripts/__tests__/token-patterns.test.mjs; python3 scripts/__tests__/token-hyperscan.test.py; node scripts/scan-agentdeck-tokens.mjs

Local tiershosted only

staticintegration
Fails CI

ESP32 dependency inventory

Every PR, master push, daily schedule and manual · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

security-scan.yml runs

Scope, limits and command

Proves

  • All configured environments resolve in a fresh isolated project and package store using pinned PlatformIO; missing transitives or required packages fail collection.
  • Selected versions, dependency edges, full package content hashes, build-time patch inputs and SDK manifests are retained; ESP-IDF/Arduino numeric header declarations are hash-bound observations, with full release and advisory mappings explicitly unknown.
  • Transient public GitHub release download failures use the exact official asset API identity only after full size and SHA-256 verification; unpinned missing digests and partial/corrupt transfers fail closed.

Does not prove

  • Complete SDK/advisory coverage, deterministic version locking, applied build-time patches, firmware compilation, flashing, or installed-device acceptance.

python3 scripts/__tests__/esp32-inventory.test.py; python3 scripts/__tests__/github-release-download.test.py; python3 scripts/inventory-esp32-dependencies.py

Local tiershosted only

staticintegration
Fails CI

Android runtime dependency audit

Every PR, master push, daily schedule and manual · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

security-scan.yml runs

Scope, limits and command

Proves

  • Both Android runtime variants resolve their transitive Maven components and artifacts; unresolved or unmapped components/artifacts fail collection.
  • Exact selected versions are queried against OSV with positional result validation, complete bounded pagination and a queried-only known-vulnerable control; findings and service/schema errors fail the job.

Does not prove

  • Complete advisory coverage, exploitability, AAR-internal native or Android/SDK OS vulnerabilities, installed-device versions, or APK delivery; release-note and physical-client checks remain separate.

node --test scripts/__tests__/android-runtime-collector.test.mjs; node scripts/audit-android-runtime.mjs

Local tiershosted only

static
Required to merge

Rust dependency audit

Every PR, master push and schedule (dependency review: PR only) · ubuntu-latest

Latest hosted run passed · 09f7ca4 · this commit · 2026-11-16

security-scan.yml runs

Scope, limits and command

Proves

  • Cargo.lock is queried by checksum-pinned OSV Scanner without running build scripts; three dated maintenance-only exceptions are visible in policy.

Does not prove

  • A full firmware/native dependency inventory or C++ vulnerability analysis; unmaintained crates are tracked separately from confirmed vulnerabilities.

osv-scanner scan source --config security/osv-scanner.toml --lockfile shared/glance-raster/Cargo.lock

Local tiershosted only

static
Required to merge

New dependency review

Every PR, master push and schedule (dependency review: PR only) · ubuntu-latest

Latest hosted run passed · 0d27e64 · pull_request on codex/npm-2.1.3 · 2026-11-16

dependency-review.yml runs

Scope, limits and command

Proves

  • PR dependency changes are compared by GitHub dependency review; newly introduced high/critical advisories fail.

Does not prove

  • All existing debt, all ecosystems or runtime exploitability.

actions/dependency-review-action

Local tiershosted only

static
Required to merge

CodeQL static security analysis

Every PR, master push and schedule (dependency review: PR only) · ubuntu-latest

Latest hosted run passed · f637ee1 · master · 2026-11-15

codeql.yml runs

Scope, limits and command

Proves

  • security-extended queries analyze JavaScript/TypeScript, Python, Actions, C/C++ and Rust source in no-build mode; extraction or analysis failure fails.
  • newer commits cancel superseded runs only within the same PR and workflow; master, scheduled and manual runs retain independent groups, and cancelled runs are not successful analysis evidence

Does not prove

  • No exploitable defects; Swift/Kotlin coverage; hardware behavior; a successful analysis job does not mean no alerts, which need separate triage.

github/codeql-action

Local tiershosted only

staticcompile
Required to merge

CodeQL java-kotlin security analysis

Every PR, master push, weekly and manual · ubuntu-latest

Latest hosted run passed · f637ee1 · master · 2026-11-15

codeql.yml runs

Scope, limits and command

Proves

  • A clean manual build supplies java-kotlin sources to security-extended queries; build, extraction or analysis failure fails the job.
  • Pinned CodeQL and Gradle tool archives come from exact official GitHub release asset identities and pass full size/SHA-256 verification before extraction.

Does not prove

  • Absence of exploitable defects, physical-device behavior or release delivery; alerts require per-finding review.

./gradlew :app:assembleDebug --no-build-cache --rerun-tasks

Local tiershosted only

staticcompile
Required to merge

CodeQL swift security analysis

Every PR, master push, weekly and manual · macos-26

Latest hosted run passed · f637ee1 · master · 2026-11-15

codeql.yml runs

Scope, limits and command

Proves

  • Clean manual macOS and iOS Simulator builds supply Swift sources to security-extended queries; build, extraction or analysis failure fails the job.

Does not prove

  • Absence of exploitable defects, physical-device behavior or release delivery; alerts require per-finding review.

xcodebuild build -scheme AgentDeck_macOS CODE_SIGNING_ALLOWED=NO

Local tiershosted only

Not verified automatically

A real Claude Code / Codex / OpenCode process driving the daemon

Why not

Needs an authenticated agent CLI and spends model tokens on every run.

What we do instead

The daemon E2E posts the documented hook payloads through the installed snippet; parsers are covered by recorded-output unit tests.

LAN default-deny against a second machine

Why not

Every address of the host itself is trusted by design, so a single CI runner cannot be a LAN peer.

What we do instead

The access gate is a pure function with a full truth-table test (http-auth-gate.test.ts); the E2E checks the loopback bind.

Stream Deck, Ulanzi, Android, iOS and macOS user interfaces

Why not

No UI-test or instrumented-test targets exist; the host apps (Stream Deck, Ulanzi Studio) cannot run in CI.

What we do instead

Renderer snapshot tests, layout-engine tests and manual device deploys.

Firmware behaviour on ESP32 boards, Pixoo, Timebox, iDotMatrix, TC001

Why not

Physical hardware.

What we do instead

Host-simulator compile gate, protocol unit tests, and the lab Robot suites before firmware releases.

macOS privacy prompts (Automation, Accessibility, Screen Recording, Local Network, Bluetooth, firewall)

Why not

They belong to a signed app on a real user session.

What we do instead

scripts/macos-preflight.sh checks the grants before a lab run and stops with the exact System Settings path instead of hanging on a dialog.

Evidence levels

unit
One module in isolation; collaborators faked.
contract
A wire format, generated mirror or SSOT table compared against its canonical source. Catches drift, not behaviour.
integration
Several real modules together in one process (real sockets on ephemeral loopback ports, real files in a temp dir).
e2e
The shipped entry point started as a separate process and driven only through its public interfaces.
compile
Source builds for the target; nothing executes.
static
Lint, type check, link or token checks over source text.
hardware
Runs against a connected physical device.
release
Packaging, signing and store-submission checks on a release tag.

Vitest + E2E

Test domains

Every TypeScript and end-to-end test file, grouped by the question it answers. Open a domain for its files and each test.

12 files

Pass

Dot local and HTTPS MCP

Do loopback MCP, direct HTTPS, local OAuth consent/revocation, private tunnel stdio token rotation, event delivery and correlated reports satisfy their contracts? Local and native fixtures do not prove real Dot or public ingress interoperability.

Passed
108
Failed
0
Skipped
0
Time
2.5 s
12 test files
bridge/src/__tests__/dot-appearance.test.ts4/4
  • ✓imports only bounded static pixels, strips original metadata and resets without changing integration state35 ms
  • ✓keeps normal portraits separate from compact packets and retains sessions when the glyph budget is exhausted16 ms
  • ✓draws a centered tiny pearl while retaining its state rail10 ms
  • ✓keeps the pearl and closed shell in the resident band with both eyes readable253 ms
bridge/src/__tests__/dot-host.test.ts2/2
  • ✓refuses an implicit public Dot bind under loopback-only posture before opening listeners7 ms
  • ✓refuses port strings that could redirect operator credentials in a URL2 ms
bridge/src/__tests__/dot-matrix-glyphs.test.ts24/24
  • ✓canonical dot-matrix agent masks › ships every official agent mark at Pixoo/iDotMatrix and TC001 resolutions8 ms
  • ✓canonical dot-matrix agent masks › preserves the official negative-space features instead of filled approximations1 ms
  • ✓Timebox Mini Agent Beacon › does not replace the agent beacon with an error when quota is exhausted10 ms
  • ✓Timebox Mini Agent Beacon › renders octopus from a non-empty official 9×9 mask1 ms
  • ✓Timebox Mini Agent Beacon › renders jellyfish from a non-empty official 9×9 mask0 ms
  • ✓Timebox Mini Agent Beacon › renders opencode from a non-empty official 9×9 mask0 ms
  • ✓Timebox Mini Agent Beacon › renders crayfish from a non-empty official 9×9 mask0 ms
  • ✓Timebox Mini Agent Beacon › renders antigravity from a non-empty official 9×9 mask0 ms
  • ✓Timebox Mini Agent Beacon › renders kiro from a non-empty official 9×9 mask0 ms
  • ✓Timebox Mini Agent Beacon › keeps OpenCode hollow and OpenClaw source teal highlights at physical resolution1 ms
  • ✓Timebox Mini Agent Beacon › keeps identity fixed and moves only the perimeter rail while processing7 ms
  • ✓Timebox Mini Agent Beacon › renders a device-native standby tide when no agent exists0 ms
  • ✓Timebox Mini Agent Beacon › uses a continuous dim status frame instead of isolated floating pixels0 ms
  • ✓iDotMatrix native 32×32 stage › keeps a vivid official mark and four source-keyed telemetry rails5 ms
  • ✓Pixoo64 provider usage HUD › renders Claude and Codex as matching percentage-plus-reset bands23 ms
  • ✓Pixoo64 provider usage HUD › uses the empty Codex primary zone for the subscription date14 ms
  • ✓Pixoo adaptive push policy › separates state latency from stable animation cadence1 ms
  • ✓Pixoo adaptive push policy › uses safe moving single frames for active Pixoo states0 ms
  • ✓Pixoo adaptive push policy › keeps the safe active cadence at 2.5 seconds0 ms
  • ✓opaque compact creature features › claudeCode actual Pixoo sprite preserves feature color across contrasting water6 ms
  • ✓opaque compact creature features › codex actual Pixoo sprite preserves feature color across contrasting water4 ms
  • ✓opaque compact creature features › openClaw actual Pixoo sprite preserves feature color across contrasting water5 ms
  • ✓opaque compact creature features › openCode actual Pixoo sprite preserves feature color across contrasting water4 ms
  • ✓opaque compact creature features › zero alpha OpenCode leaves every arbitrary background pixel untouched49 ms
services/dot-relay/src/__tests__/direct-https.test.ts2/2
  • ✓direct HTTPS MCP ingress › refuses missing keys, wrong hostname, expired certificate and daemon ports13 ms
  • ✓direct HTTPS MCP ingress › terminates real TLS, rejects plaintext and keeps device actions off public ingress70 ms
services/dot-relay/src/__tests__/display.test.ts2/2
  • ✓projects only received reports into bounded inert cards, with absolute times and no session9 ms
  • ✓keeps direction and stage visible on compact cards without granting control1 ms
services/dot-relay/src/__tests__/local-oauth.test.ts15/15
  • ✓requires native consent and an exact redirect, scope, resource and PKCE18 ms
  • ✓rotates refresh tokens and revokes the entire grant on a replay12 ms
  • ✓persists grants across restart, expires access, and keeps revocation durable5 ms
  • ✓denial returns issuer and state, while consent expires and pending work is bounded3 ms
  • ✓invalidates existing tokens when registered credentials are replaced3 ms
  • ✓supports explicit loopback public clients without weakening confidential clients5 ms
  • ✓replays the shared loopback client vectors the Swift host also replays9 ms
  • ✓advertises registration only on a loopback host, with least-privilege scopes4 ms
  • ✓registers a secretless loopback client that still needs consent, and binds its codes, refreshes and revocation to it14 ms
  • ✓refuses registrations that are not secretless loopback code clients8 ms
  • ✓bounds registrations and evicts only clients nobody depends on253 ms
  • ✓accepts a Client ID Metadata Document only from an allow-listed host, validated, cached and port-agnostic7 ms
  • ✓refuses persisted client registrations that break the loopback rules6 ms
  • ✓clears registered clients with the grants when the host configuration changes3 ms
  • ✓fetches a metadata document without following redirects, within the size cap and the deadline345 ms
services/dot-relay/src/__tests__/native-contract.test.ts4/4
  • ✓keeps the native manifest and generated security budgets aligned with the canonical contract9 ms
  • ✓generates the same relation transition policy consumed by native rendering and storage1 ms
  • ✓checks every generated portable model, phase table, pixel overlay and firmware glyph against the generator274 ms
  • ✓keeps the private plugin endpoint and explicit OAuth test configuration aligned without shipping credentials1 ms
services/dot-relay/src/__tests__/relay.test.ts35/35
  • ✓Dot event and report contracts › discovers the exact experimental version, event and scoped tools67 ms
  • ✓Dot event and report contracts › requires signed challenge success, persists one idempotent subscription and honors finite TTL21 ms
  • ✓Dot event and report contracts › does not activate invalid callbacks or allow a conflicting primary subscription3 ms
  • ✓Dot event and report contracts › reverifies after bounded verification cache expires and dual-signs a secret rotation7 ms
  • ✓Dot event and report contracts › recovers durable pending delivery after restart without manufacturing a report5 ms
  • ✓Dot event and report contracts › deduplicates button presses and rejects a reused key with different input3 ms
  • ✓Dot event and report contracts › retries transient and uncertain receipts with the same event ID and body5 ms
  • ✓Dot event and report contracts › does not retry permanent response 4103 ms
  • ✓Dot event and report contracts › does not retry permanent response 4133 ms
  • ✓Dot event and report contracts › does not retry permanent response 3023 ms
  • ✓Dot event and report contracts › does not retry permanent response 4013 ms
  • ✓Dot event and report contracts › bounds transient retries and never delivers an expired request12 ms
  • ✓Dot event and report contracts › cancels queued deliveries on unsubscribe; repeat unsubscribe is harmless8 ms
  • ✓Dot event and report contracts › isolates accounts and revokes data and pending sends durably5 ms
  • ✓Dot event and report contracts › claims once and rejects conflicting, reversed and terminal-overwriting reports12 ms
  • ✓Dot event and report contracts › does not automatically reclaim a silent attempt3 ms
  • ✓Dot event and report contracts › fails closed on corrupt store data without retaining its lock1 ms
  • ✓callback network boundary › rejects non-public 127.0.0.11 ms
  • ✓callback network boundary › rejects non-public 10.1.2.31 ms
  • ✓callback network boundary › rejects non-public 169.254.169.2540 ms
  • ✓callback network boundary › rejects non-public 192.168.1.10 ms
  • ✓callback network boundary › rejects non-public 100.64.0.10 ms
  • ✓callback network boundary › rejects non-public 0.0.0.00 ms
  • ✓callback network boundary › rejects non-public ::11 ms
  • ✓callback network boundary › rejects non-public ::ffff:127.0.0.11 ms
  • ✓callback network boundary › rejects non-public fc00::11 ms
  • ✓callback network boundary › rejects non-public 2001:db8::11 ms
  • ✓callback network boundary › accepts globally routable addresses but rejects redirect/credential URL tricks2 ms
  • ✓authenticated HTTP round trip › bounds stateless transport methods, versions and notification handling48 ms
  • ✓authenticated HTTP round trip › uses real JWT verification and real loopback HTTP for ten correlated mock-receiver requests212 ms
  • ✓erases expired context and removes retained history without pretending to stop remote work3 ms
  • ✓drains an in-flight verification on shutdown without activating its subscription1 ms
  • ✓records scoped interaction history without promoting Dot claims into target acknowledgements11 ms
  • ✓bounds interaction history and rejects reports after the claim expires16 ms
  • ✓rejects forged persisted interaction provenance on restart3 ms
services/dot-relay/src/__tests__/runtime.test.ts3/3
  • ✓hosts local-consent OAuth over verified HTTPS, isolates operator routes and persists revocation197 ms
  • ✓binds local MCP explicitly, rejects foreign Host/Origin and creates requests without webhook delivery126 ms
  • ✓lets a stock MCP client register over loopback HTTP and still requires native consent before any token23 ms
services/dot-relay/src/__tests__/tunnel-stdio.test.ts8/8
  • ✓rotates before forwarding; concurrent requests share one refresh and use the new access token57 ms
  • ✓marks uncertain rotation durably and never replays it, including after adapter restart2 ms
  • ✓does not replay a report on network error, and refuses further calls after revocation1 ms
  • ✓rejects scope escalation and wrong resources in token responses1 ms
  • ✓does not contact operator routes, arbitrary tools or Events; bounds input and output2 ms
  • ✓handles split stdio frames, parse errors and notifications without inventing a response4 ms
  • ✓uses exclusive private credentials and refuses symlinks or group-readable files7 ms
  • ✓fails closed if replacement token persistence fails after rotation1 ms
services/dot-relay/src/__tests__/webhook.test.ts4/4
  • ✓pins vetted DNS answers for both Node lookup modes while preserving the TLS hostname23 ms
  • ✓blocks mixed public/private DNS answers before any application bytes are sent4 ms
  • ✓rechecks resolution on a subsequent attempt and refuses rebinding1 ms
  • ✓returns redirects without following them and bounds the callback response6 ms
shared/src/__tests__/dot-appearance.test.ts5/5
  • ✓rejects malformed character payloads without replacing the default identity4 ms
  • ✓bounds compact monotonic validity to actual report age and expiry, including legacy unknown expiry1 ms
  • ✓describes missing reports without asserting a connection or global idle0 ms
  • ✓distinguishes missing authorization and clears working on revocation without guessing legacy state0 ms
  • ✓keeps the buoyant orb in its shell-side water pocket and closes its current loop18 ms

27 files

Partial verification

LAN security & pairing

Is the LAN surface default-deny, does a browser page on this machine get no more than a LAN peer, and does pairing hand out credentials only with the operator's consent?

Passed
374
Failed
0
Skipped
3
Time
2.5 s
27 test files
bridge/src/__tests__/auth-token-adoption.test.ts19/19
  • ✓adoptPeerToken › rejects non-string token inputs before touching string operations or token storage224 ms
  • ✓adoptPeerToken › serves the incumbent daemon token after adopting it51 ms
  • ✓adoptPeerToken › keeps accepting the superseded token so devices are not locked out mid-convergence35 ms
  • ✓adoptPeerToken › survives a restart — adoption is persisted, not in-memory71 ms
  • ✓adoptPeerToken › is a no-op when the incumbent serves the token we already hold28 ms
  • ✓adoptPeerToken › refuses a missing or malformed peer token rather than adopting a blank credential25 ms
  • ✓adoptPeerToken › bounds the accepted key ring instead of growing it forever44 ms
  • ✓adoptPeerToken › never records the same token twice in the ring27 ms
  • ✓rotateToken › retires the accepted ring too, or rotation would not retire a leaked token35 ms
  • ✓data-dir resolution › keeps the token beside the rest of the daemon state22 ms
  • ✓data-dir resolution › inherits the legacy credential instead of un-pairing an existing fleet68 ms
  • ✓persisted pairing retirement › does not resurrect a leaked token after adopting a rotated peer and restarting56 ms
  • ✓persisted pairing retirement › refuses conflicting and stale peer retirement state without changing the token41 ms
  • ✓persisted pairing retirement › never falls back to old files when authoritative state is corrupt66 ms
  • ✓persisted pairing retirement › keeps an acknowledged retirement in a private atomic state file73 ms
  • ✓legacy convergence without optional native storage › preserves ordinary legacy adoption while rotation never falls back28 ms
  • ✓legacy convergence without optional native storage › never falls back to mirrors after an authoritative fence exists25 ms
  • ✓refuses an explicitly unavailable corrected peer rather than treating it as tokenless legacy health25 ms
  • ✓closes a previously opened pairing code when retirement is committed25 ms
bridge/src/__tests__/check-deps.test.ts1/1
  • ✓dependency command arguments › passes a configured shell path as an executable, never as shell syntax5 ms
bridge/src/__tests__/credential-response-fence.test.ts3/3
  • ✓HTTP credential generation fence › drops a stale end response instead of exposing the next credential55 ms
  • ✓HTTP credential generation fence › drops a stale stream response instead of exposing the next credential7 ms
  • ✓HTTP credential generation fence › allows the explicit content-free rotation receipt across a generation change28 ms
bridge/src/__tests__/device-credential-native.test.ts4/4
  • ✓keeps the native snapshot policy aligned with the shared projection7 ms
  • ✓keeps native custody constants aligned with the shared contract1 ms
  • ✓keeps the Vobot response bound aligned with both daemon projections1 ms
  • ✓keeps native credential policy constants aligned with the shared authority1 ms
  • ○native device authority › executes the same validation, conflict, revocation and registration vectors in Swift and Node
bridge/src/__tests__/device-credential-store.test.ts11/11
  • ✓device authority independent of legacy pairing › persists a verifier, not the bearer secret, and reloads the same authority23 ms
  • ✓device authority independent of legacy pairing › rejects altered secrets and malformed reserved credentials3 ms
  • ✓device authority independent of legacy pairing › revokes one credential without changing another or legacy files18 ms
  • ✓device authority independent of legacy pairing › never revives a revoked credential during stale-owner adoption6 ms
  • ✓device authority independent of legacy pairing › carries revocation to a receiver that still holds old state8 ms
  • ✓device authority independent of legacy pairing › refuses a conflicting verifier, scope or authority on handover11 ms
  • ✓device authority independent of legacy pairing › fails closed on corrupt state instead of resurrecting a legacy credential3 ms
  • ✓device authority independent of legacy pairing › does not persist failed scope or identity validation2 ms
  • ✓device authority independent of legacy pairing › uses the persisted latest state when two owners mutate the same store8 ms
  • ✓read-only authority boundary › does not admit legacy HTTP routes or query credentials1 ms
  • ✓read-only authority boundary › cannot promote a device to a worker or steering surface by registering again1 ms
bridge/src/__tests__/device-security-cli.test.ts3/3
  • ✓uses the discovered HTTP endpoint {"port":9120}36 ms
  • ✓uses the discovered HTTP endpoint {"port":9120,"httpPort":9140}1 ms
  • ✓refuses an unavailable owner without sending a request2 ms
bridge/src/__tests__/device-security-manager.test.ts3/3
  • ✓waits through a departing native bind without replacing its identity20 ms
  • ✓stops bounded retries on shutdown without starting a late listener4 ms
  • ✓leaves an occupied port alone after the deadline and refuses other bind errors immediately5 ms
bridge/src/__tests__/device-security-replica.test.ts6/6
  • ✓private device custody receipt › recovers after a supervisor restart only from the fresh challenged socket9 ms
  • ✓private device custody receipt › cannot recover an expired or disconnected custody challenge4 ms
  • ✓private device custody receipt › retains ownership without an admitted live same-user successor1 ms
  • ✓private device custody receipt › requires separate readiness and durable receipts from the selected peer2 ms
  • ✓private device custody receipt › retains active custody when a subscribed native client is not ready3 ms
  • ✓private device custody receipt › stays sealed when the durable receipt fails after readiness was confirmed5 ms
bridge/src/__tests__/device-security-store.test.ts3/3
  • ✓moves authority after a fresh seal and leaves the prior profile inactive across restart30 ms
  • ✓rejects stale, mismatched and missing custody rather than restoring a credential7 ms
  • ✓does not replace configured identity or recover from corrupt authority3 ms
bridge/src/__tests__/device-tls-server.test.ts7/7
  • ✓isolated TLS device listener › requires TLS hostname validation and an independent device credential even on loopback56 ms
  • ✓isolated TLS device listener › derives the pinned firmware policy from a verified live TLS handshake5 ms
  • ✓isolated TLS device listener › exports only allowlisted fields for usage authority18 ms
  • ✓isolated TLS device listener › has no command, browser, upgrade or URL-token route37 ms
  • ✓isolated TLS device listener › checks revocation again before a delayed snapshot leaves the process15 ms
  • ✓isolated TLS device listener › fails closed when snapshot collection throws synchronously9 ms
  • ✓isolated TLS device listener › runs local installation, individual issue/revoke and sealed handover without exposing owner routes to browsers110 ms
  • ○serves the same device authority over the actual Swift TLS listener
bridge/src/__tests__/discovery-security.test.ts6/6
  • ✓LAN discovery credential boundary (issue #145) › never serializes a pairing credential into a UDP discovery beacon11 ms
  • ✓LAN discovery credential boundary (issue #145) › keeps the beacon secret-free across periodic re-sends1 ms
  • ✓LAN discovery credential boundary (issue #145) › does not materialize or log a token-bearing pairing URL in ../index.ts1 ms
  • ✓LAN discovery credential boundary (issue #145) › does not materialize or log a token-bearing pairing URL in ../daemon-server.ts3 ms
  • ✓LAN discovery credential boundary (issue #145) › keeps per-session project metadata off LAN discovery1 ms
  • ✓requires explicit legacy UDP module opt-in, including absent/auto config0 ms
bridge/src/__tests__/http-auth-gate.test.ts29/29
  • ✓gateHttpRequest (issue #145 LAN default-deny) › lets an authorized request reach any route2 ms
  • ✓gateHttpRequest (issue #145 LAN default-deny) › serves only the public health payload to unauthorized peers0 ms
  • ✓gateHttpRequest (issue #145 LAN default-deny) › denies every other route to unauthorized peers1 ms
  • ✓POST /pair — only a route while the operator holds a window open › is denied exactly like an unknown path when no window is open0 ms
  • ✓POST /pair — only a route while the operator holds a window open › opens for redemption only while a window is open0 ms
  • ✓POST /pair — only a route while the operator holds a window open › defaults to closed when the caller forgets to pass the window state0 ms
  • ✓POST /pair — only a route while the operator holds a window open › an open window does not unlock anything else, or any other method0 ms
  • ✓POST /pair — only a route while the operator holds a window open › still serves public health while a window is open0 ms
  • ✓buildPublicHealth › never contains credentials, module inventory, or session state2 ms
  • ✓isAuthorizedHttpRequest › trusts same-machine connections without a token1 ms
  • ✓isAuthorizedHttpRequest › accepts a valid query token from a remote peer0 ms
  • ✓isAuthorizedHttpRequest › accepts a valid Authorization: Bearer header0 ms
  • ✓isAuthorizedHttpRequest › rejects remote peers with a wrong or missing token1 ms
  • ✓a same-machine web page is not a local program › trusts a local program, which sends neither header or names this machine2 ms
  • ✓a same-machine web page is not a local program › refuses a DNS-rebinding page, whose Host is its own domain0 ms
  • ✓a same-machine web page is not a local program › refuses a cross-origin POST, which needs no CORS preflight as text/plain1 ms
  • ✓a same-machine web page is not a local program › keeps a cross-origin GET trusted: the browser hides the answer without ACAO0 ms
  • ✓a same-machine web page is not a local program › trusts a POST from a page the daemon served, by the daemon's own port0 ms
  • ✓a same-machine web page is not a local program › admits such a page with the pairing token, as it would a LAN peer0 ms
  • ✓operator approval authorizes an HTTP request › never promotes a scoped credential through legacy trust (local=false)2 ms
  • ✓operator approval authorizes an HTTP request › never promotes a scoped credential through legacy trust (local=true)1 ms
  • ✓operator approval authorizes an HTTP request › refuses an unapproved remote peer1 ms
  • ✓operator approval authorizes an HTTP request › never admits a same-machine web page by approval1 ms
  • ✓operator approval authorizes an HTTP request › admits it once the operator approves its address1 ms
  • ✓operator approval authorizes an HTTP request › admits a device-approved peer from a DIFFERENT address1 ms
  • ✓operator approval authorizes an HTTP request › does not admit a different device sharing an approved device grant1 ms
  • ✓operator approval authorizes an HTTP request › still admits a header-less client approved by address1 ms
  • ✓operator approval authorizes an HTTP request › stops admitting once revoked1 ms
  • ✓operator approval authorizes an HTTP request › retires address and device approvals on each credential generation2 ms
bridge/src/__tests__/local-trust-servers.test.ts13/13
  • ✓WsServer: a same-machine WebSocket › admits a local program, which sends no Origin80 ms
  • ✓WsServer: a same-machine WebSocket › admits the literal file:// the ESP32 WebSocket library sends65 ms
  • ✓WsServer: a same-machine WebSocket › refuses a web page, and records no pairing knock for it8 ms
  • ✓WsServer: a same-machine WebSocket › refuses a DNS-rebinding page by its Host3 ms
  • ✓WsServer: a same-machine WebSocket › admits a page the daemon served, by the daemon's own origin126 ms
  • ✓WsServer: a same-machine WebSocket › admits a web page that carries the pairing token67 ms
  • ✓HookServer: a same-machine POST › accepts a hook from a local program20 ms
  • ✓HookServer: a same-machine POST › refuses a cross-origin text/plain POST, which a browser sends without a preflight2 ms
  • ✓HookServer: a same-machine POST › refuses a DNS-rebinding page by its Host2 ms
  • ✓HookServer: a same-machine POST › accepts such a page with the pairing token2 ms
  • ✓HookServer: a same-machine POST › opens /sse for a cross-origin page without letting it read the stream3 ms
  • ✓HookServer: a same-machine POST › reflects no visitor-supplied token into the /status script6 ms
  • ✓HookServer: a same-machine POST › keeps the issued token for a /status page opened with it1 ms
bridge/src/__tests__/network-posture.test.ts19/19
  • ✓module registry SSOT › MODULE_NAMES matches the modules createDefaultModules actually registers4 ms
  • ✓module registry SSOT › allModulesOff() switches off every registered module1 ms
  • ✓module registry SSOT › covers the two modules the hand-written --local records used to omit0 ms
  • ✓resolveDaemonPosture › defaults to the open posture1 ms
  • ✓resolveDaemonPosture › reads the env switch1 ms
  • ✓resolveDaemonPosture › treats --loopback and the env var as the same switch0 ms
  • ✓resolveDaemonPosture › keeps --local and --loopback independent0 ms
  • ✓daemonModuleConfigs › keeps mDNS and devices enabled but legacy UDP disabled by default1 ms
  • ✓daemonModuleConfigs › allows explicit UDP opt-in only in the LAN posture1 ms
  • ✓daemonModuleConfigs › loopback silences every module that touches the network0 ms
  • ✓daemonModuleConfigs › loopback keeps USB serial — a board on a cable is not a network peer0 ms
  • ✓daemonModuleConfigs › loopback keeps ADB reverse — the tunnel rides USB into the host loopback0 ms
  • ✓daemonModuleConfigs › loopback still honours the AGENTDECK_DAEMON_NO_SERIAL diagnostic gate0 ms
  • ✓daemonModuleConfigs › --local turns off every module, serial included1 ms
  • ✓daemonModuleConfigs › --local wins over loopback when both are set0 ms
  • ✓daemonModuleConfigs › a module added later defaults to off in both restricted postures0 ms
  • ✓describeDaemonPosture › names what is off, not just the bind address1 ms
  • ✓describeDaemonPosture › folds the USB channels into the off-list when --local is also set0 ms
  • ✓describeDaemonPosture › points at the switch when the daemon is wide open0 ms
bridge/src/__tests__/pairing-knocks.test.ts31/31
  • ✓peerKey › prefers the device id and never emits a bare string5 ms
  • ✓peerKey › normalizes so one device cannot appear as several1 ms
  • ✓peerKey › falls back to the address for an id that is not the accepted shape1 ms
  • ✓recording knocks › counts repeat attempts on one row rather than growing the list2 ms
  • ✓recording knocks › carries the stale-token distinction, which reads differently to an operator1 ms
  • ✓recording knocks › ignores an empty address1 ms
  • ✓recording knocks › does not record a peer that is already approved1 ms
  • ✓recording knocks › tells two devices behind one address apart1 ms
  • ✓recording knocks › returns newest first2 ms
  • ✓expiry is applied on read, not by a timer › drops a knock older than the TTL when the list is read1 ms
  • ✓expiry is applied on read, not by a timer › keeps a peer alive while it is still knocking1 ms
  • ✓bounded › caps the list and drops the oldest, so a flood cannot grow it without limit1 ms
  • ✓approving › admits the peer and retires its knock1 ms
  • ✓approving › a device-keyed approval survives an address change1 ms
  • ✓approving › an address-keyed approval does not admit a different address1 ms
  • ✓approving › does not admit a different device that shares the approved address1 ms
  • ✓approving › still admits a device approved by ADDRESS before it learned to send an id1 ms
  • ✓approving › revokes2 ms
  • ✓approving › refuses an empty key rather than minting a blank grant1 ms
  • ✓dismiss is not a block › drops the row but lets the peer knock again1 ms
  • ✓persistence › round-trips approvals across a daemon restart1 ms
  • ✓persistence › migrates the pre-device-id shape instead of discarding it1 ms
  • ✓persistence › reads a Foundation reference-date stamp written by the Swift daemon1 ms
  • ✓persistence › reads an epoch-ms stamp written by this daemon1 ms
  • ✓persistence › does not overwrite an unparseable file — it is evidence, not garbage1 ms
  • ✓persistence › writes through a temp file and leaves none behind1 ms
  • ✓deviceIdFromHeaders › reads and normalizes the handshake header1 ms
  • ✓deviceIdFromHeaders › is null when the client sends nothing, so the address stays the key0 ms
  • ✓approval retirement generation › shows a new knock for a retired grant (null) without restoring access3 ms
  • ✓approval retirement generation › shows a new knock for a retired grant (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) without restoring access1 ms
  • ✓approval retirement generation › fences old grants, persists a new grant generation and refuses a later retirement2 ms
bridge/src/__tests__/pairing-retirement.test.ts0/0
  • ○actual Swift and Node pairing retirement › replays shared vectors and serializes concurrent cross-runtime rotations without reviving legacy tokens
bridge/src/__tests__/pairing-rotation.test.ts21/21
  • ✓active owner rotation › rotates the confirmed owner with a bounded local-only request and verifies its receipt33 ms
  • ✓active owner rotation › refuses ownership other-user before mutation2 ms
  • ✓active owner rotation › refuses ownership unknown before mutation0 ms
  • ✓active owner rotation › refuses malformed file-supplied port 19123@evil.example before any network request1 ms
  • ✓active owner rotation › refuses malformed file-supplied port 19123/path before any network request0 ms
  • ✓active owner rotation › refuses malformed file-supplied port {} before any network request0 ms
  • ✓active owner rotation › refuses malformed file-supplied port NaN before any network request0 ms
  • ✓active owner rotation › refuses malformed file-supplied port 19123.5 before any network request0 ms
  • ✓active owner rotation › refuses malformed file-supplied port 0 before any network request0 ms
  • ✓active owner rotation › refuses malformed file-supplied port 65536 before any network request0 ms
  • ✓active owner rotation › refuses malformed file-supplied port -1 before any network request0 ms
  • ✓active owner rotation › refuses absent or legacy owners0 ms
  • ✓active owner rotation › refuses absent or legacy owners0 ms
  • ✓active owner rotation › refuses absent or legacy owners0 ms
  • ✓active owner rotation › refuses absent or legacy owners0 ms
  • ✓active owner rotation › never retries an ambiguous transport failure or mutates a fallback profile1 ms
  • ✓active owner rotation › recovers one unavailable post-retirement read without rotating again1 ms
  • ✓active owner rotation › bounds unavailable readback recovery and retains the ambiguous-outcome warning1 ms
  • ✓active owner rotation › requires same-owner readback and never treats a lost receipt as success1 ms
  • ✓active owner rotation › accepts a later confirmed rotation without writing an older snapshot back to disk0 ms
  • ✓active owner rotation › refuses a conflicting readback at the receipt revision1 ms
bridge/src/__tests__/pairing-window.test.ts42/42
  • ✓window lifecycle › is closed until the operator opens one4 ms
  • ✓window lifecycle › mints a code of the documented shape1 ms
  • ✓window lifecycle › never repeats a code across many opens (i.e. it is actually random)4 ms
  • ✓window lifecycle › replaces a window rather than leaving two valid secrets running2 ms
  • ✓window lifecycle › closes on the operator asking0 ms
  • ✓window lifecycle › clamps a window length nobody should be able to ask for1 ms
  • ✓window lifecycle › clamps the device count to at least one0 ms
  • ✓redemption › hands over the token for the right code and closes a one-device window1 ms
  • ✓redemption › reads the token live, so a handover reaches a device pairing right now1 ms
  • ✓redemption › never mints a token for a refused redemption2 ms
  • ✓redemption › refuses everything once the window is closed0 ms
  • ✓redemption › pairs several devices from one window, then closes1 ms
  • ✓redemption › closes the window after the attempt budget, across peers1 ms
  • ✓redemption › does not spend the budget on malformed submissions1 ms
  • ✓redemption › accepts the code with the separators the display added0 ms
  • ✓cable-free ESP32 re-arm › is off unless the operator named the board0 ms
  • ✓cable-free ESP32 re-arm › adopts only the addresses the operator named1 ms
  • ✓cable-free ESP32 re-arm › is closed when no window is open at all0 ms
  • ✓cable-free ESP32 re-arm › expires with the window, enforced on read3 ms
  • ✓cable-free ESP32 re-arm › re-arms a board once, not on every reconnect1 ms
  • ✓cable-free ESP32 re-arm › reports the re-armed board to the operator3 ms
  • ✓cable-free ESP32 re-arm › sanitizes a board name from an unauthenticated peer0 ms
  • ✓cable-free ESP32 re-arm › names an unflashed board generically rather than blank0 ms
  • ✓cable-free ESP32 re-arm › rejects malformed addresses instead of storing them1 ms
  • ✓cable-free ESP32 re-arm › bounds how many boards one window may re-arm1 ms
  • ✓cable-free ESP32 re-arm › shows what is still pending, so a silent board is visible1 ms
  • ✓cable-free ESP32 re-arm › stays open for the code after every board is re-armed0 ms
  • ✓cable-free ESP32 re-arm › stays open for a pending board after the code is redeemed0 ms
  • ✓cable-free ESP32 re-arm › closes once both halves are spent0 ms
  • ✓expiry is enforced on read, not by the timer › refuses a window whose deadline passed even if no timer ran1 ms
  • ✓expiry is enforced on read, not by the timer › refuses the right code after expiry1 ms
  • ✓expiry is enforced on read, not by the timer › is still open one millisecond before the deadline1 ms
  • ✓operator status › never contains the code — the opener already has it, nothing else needs it1 ms
  • ✓operator status › reports who paired and who guessed wrong1 ms
  • ✓operator status › sanitizes the device label, which is untrusted text from an unpaired peer1 ms
  • ✓operator status › falls back to a placeholder rather than an empty or non-string label0 ms
  • ✓operator status › still reports the pairing after the window closed on it1 ms
  • ✓operator status › does not report a previous run's pairings to the next window1 ms
  • ✓operator status › forgets the receipt rather than keeping it for the life of the daemon1 ms
  • ✓operator status › the receipt carries no code and no token0 ms
  • ✓operator status › counts down in whole seconds and never shows 0 while open0 ms
  • ✓invalidates an already-open code when its credential generation changes1 ms
bridge/src/__tests__/private-files.test.ts5/5
  • ✓private atomic file replacement › bounds whole-file reads and tails on regular files in both read paths7 ms
  • ✓private atomic file replacement › continues reading intentional local configuration symlinks2 ms
  • ✓private atomic file replacement › replaces the file and removes its private temporary entry3 ms
  • ✓private atomic file replacement › leaves an attacker-planted predictable temp symlink untouched1 ms
  • ✓private atomic file replacement › preserves the target and cleans its temporary entry when rename fails2 ms
bridge/src/__tests__/setup-status.test.ts8/8
  • ✓GET /setup-status payload (Node) › answers exactly the contract keys — nothing a web page should not read4 ms
  • ✓GET /setup-status payload (Node) › carries the session COUNT even while the state word says disconnected1 ms
  • ✓GET /setup-status payload (Node) › says "could not look" as null, not as zero1 ms
  • ✓GET /setup-status payload (Node) › is what daemon-server.ts serves on the route, with the CORS header2 ms
  • ✓claudeHookPresence › installed when the user settings carry an AgentDeck hook2 ms
  • ✓claudeHookPresence › missing when there is no settings file, or no AgentDeck hook in it1 ms
  • ✓claudeHookPresence › unknown — never missing — when the file cannot be parsed1 ms
  • ✓withinBudget › returns the value when the work finishes in time, null when it does not11 ms
bridge/src/__tests__/transport-auth-policy.test.ts3/3
  • ✓keeps the daemon and firmware refusal codes aligned2 ms
  • ✓exposes upstream close payloads without changing the dependency or close response31 ms
  • ✓registers the PlatformIO adapter and compiles a copy of the real source node36 ms
bridge/src/__tests__/ws-server-auth.test.ts11/11
  • ✓WsServer remote auth › rejects a remote connection with no token19 ms
  • ✓WsServer remote auth › accepts the machine token62 ms
  • ✓WsServer remote auth › rejects any non-machine token — the machine token is the ONLY accepted credential3 ms
  • ✓WsServer request URL isolation › rejects scoped credentials before snapshot or legacy approval (local=false)3 ms
  • ✓WsServer request URL isolation › rejects scoped credentials before snapshot or legacy approval (local=true)0 ms
  • ✓WsServer request URL isolation › ignores an untrusted Host value when reading remote query parameters62 ms
  • ✓WsServer request URL isolation › keeps authenticated query-based board classification independent of Host1 ms
  • ✓WsServer request URL isolation › refuses a malformed target only on its remote connection1 ms
  • ✓WsServer request URL isolation › refuses a malformed target only on its browser connection0 ms
  • ✓WsServer request URL isolation › refuses a malformed target only on its program connection0 ms
  • ✓disconnects existing sockets when credentials require reauthentication63 ms
shared/src/__tests__/local-trust-sync.test.ts3/3
  • ✓generated local trust rule mirror in sync › apple/AgentDeck/Daemon/Server/LocalTrustRules.generated.swift matches the SSOT3 ms
  • ✓generated local trust rule mirror in sync › emitter embeds every constant the rule reads1 ms
  • ✓generated local trust rule mirror in sync › the Swift suite replays the shared vector file (grep the test wiring)0 ms
shared/src/__tests__/local-trust.test.ts65/65
  • ✓local trust (shared vectors) › has vectors for every verdict4 ms
  • ✓local trust (shared vectors) › a deck plugin or the CLI over loopback1 ms
  • ✓local trust (shared vectors) › localhost by name0 ms
  • ✓local trust (shared vectors) › IPv6 loopback in brackets0 ms
  • ✓local trust (shared vectors) › no Host header at all (HTTP/1.0 client)0 ms
  • ✓local trust (shared vectors) › this machine's LAN address0 ms
  • ✓local trust (shared vectors) › any IP literal: a browser reaches one without DNS, so rebinding cannot produce it0 ms
  • ✓local trust (shared vectors) › DNS rebinding: the page's own domain re-resolved to loopback0 ms
  • ✓local trust (shared vectors) › this machine's .local name, any case0 ms
  • ✓local trust (shared vectors) › this machine's bare host name: macOS resolves a single label through the DNS search domains, which the network answers0 ms
  • ✓local trust (shared vectors) › a domain built from this machine's name is answered by DNS too0 ms
  • ✓local trust (shared vectors) › a fully qualified host name is a DNS name, even when it is this machine's0 ms
  • ✓local trust (shared vectors) › no .local name is guessed from a fully qualified one0 ms
  • ✓local trust (shared vectors) › no .local name is guessed from a bare one either: another machine may hold it0 ms
  • ✓local trust (shared vectors) › a bare host name stays a DNS name when it is all there is0 ms
  • ✓local trust (shared vectors) › an entry that is only the suffix names nothing0 ms
  • ✓local trust (shared vectors) › a fully qualified name's trailing dot0 ms
  • ✓local trust (shared vectors) › another machine's .local name0 ms
  • ✓local trust (shared vectors) › a .localhost name resolves to loopback by definition (RFC 6761)0 ms
  • ✓local trust (shared vectors) › a name that resolves to loopback is still a name0 ms
  • ✓local trust (shared vectors) › an unclosed IPv6 bracket0 ms
  • ✓local trust (shared vectors) › a port that is not a number0 ms
  • ✓local trust (shared vectors) › a combining mark after a digit is not a digit0 ms
  • ✓local trust (shared vectors) › only ASCII whitespace is trimmed0 ms
  • ✓local trust (shared vectors) › a host port other than the daemon's does not matter0 ms
  • ✓local trust (shared vectors) › Host is checked before Origin0 ms
  • ✓local trust (shared vectors) › a cross-origin GET keeps local trust: the browser hides the answer unless the route sends ACAO0 ms
  • ✓local trust (shared vectors) › HEAD is not checked against Origin0 ms
  • ✓local trust (shared vectors) › a CORS preflight is not checked against Origin0 ms
  • ✓local trust (shared vectors) › a WebSocket from a local program carries no Origin0 ms
  • ✓local trust (shared vectors) › a WebSocket from a web page1 ms
  • ✓local trust (shared vectors) › a WebSocket from a page the daemon served0 ms
  • ✓local trust (shared vectors) › the daemon's own origin by localhost0 ms
  • ✓local trust (shared vectors) › another local server's page0 ms
  • ✓local trust (shared vectors) › an opaque origin: a sandboxed frame, or a file page in a browser0 ms
  • ✓local trust (shared vectors) › an opaque origin in upper case0 ms
  • ✓local trust (shared vectors) › the literal file:// a non-browser client sends0 ms
  • ✓local trust (shared vectors) › a rebinding page's origin, isolated from its Host0 ms
  • ✓local trust (shared vectors) › an IP with the daemon's port that is not this machine0 ms
  • ✓local trust (shared vectors) › this machine's LAN address as the origin0 ms
  • ✓local trust (shared vectors) › IPv6 loopback as the origin0 ms
  • ✓local trust (shared vectors) › an IPv4-mapped loopback origin0 ms
  • ✓local trust (shared vectors) › a browser extension0 ms
  • ✓local trust (shared vectors) › an origin without a port is port 800 ms
  • ✓local trust (shared vectors) › this machine's .local name as the origin0 ms
  • ✓local trust (shared vectors) › userinfo is never part of an origin0 ms
  • ✓local trust (shared vectors) › a trailing slash from a non-browser client0 ms
  • ✓local trust (shared vectors) › an origin with a path is not an origin0 ms
  • ✓local trust (shared vectors) › a POST from the CLI, the app or a hook carries no Origin0 ms
  • ✓local trust (shared vectors) › a cross-origin POST from a web page0 ms
  • ✓local trust (shared vectors) › a POST from a page the daemon served (the APME dashboard)0 ms
  • ✓local trust (shared vectors) › the method is compared in any case0 ms
  • ✓local trust (shared vectors) › DELETE changes state too0 ms
  • ✓local trust (shared vectors) › an Origin of only spaces is no Origin0 ms
  • ✓local trust (shared vectors) › an origin on another machine's port 9120 by name0 ms
  • ✓local trust (shared vectors) › a page this daemon served through a port forward: both headers carry the forwarded port0 ms
  • ✓local trust (shared vectors) › a WebSocket from that page by name0 ms
  • ✓local trust (shared vectors) › the address a request was sent to is its host as well as its port0 ms
  • ✓local trust (shared vectors) › another local server's page posting through the forward0 ms
  • ✓local trust (shared vectors) › an origin equal to Host is still not this machine's unless the address is0 ms
  • ✓local trust (shared vectors) › a scheme is looked up among the known ones only, never on the object behind them0 ms
  • ✓local trust (shared vectors) › a byte-order mark is not an empty Origin0 ms
  • ✓local trust (shared vectors) › nor is a next-line character0 ms
  • ✓local trust (shared vectors) › the method is upper-cased as ASCII only: a long s is not an S2 ms
  • ✓local trust environment › asks isLocalAddress only about an IP origin, without brackets or zone1 ms
shared/src/__tests__/pairing-code-rules-sync.test.ts12/12
  • ✓generated mirrors in sync › apple/AgentDeck/Model/PairingCodeRules.generated.swift matches the SSOT3 ms
  • ✓generated mirrors in sync › android/app/src/main/kotlin/dev/agentdeck/net/PairingCodeRules.generated.kt matches the SSOT0 ms
  • ✓generated mirrors in sync › emitters embed the SSOT constants (sanity on the emitters themselves)1 ms
  • ✓generated mirrors in sync › the Swift mirror emits every outcome the TS union declares1 ms
  • ✓generated mirrors in sync › Kotlin stays a client mirror — no evaluator, no HTTP statuses1 ms
  • ✓status contract the mirrors must agree on › accepted answers 200 in TS and in the Swift mirror2 ms
  • ✓status contract the mirrors must agree on › no-window answers 401 in TS and in the Swift mirror0 ms
  • ✓status contract the mirrors must agree on › expired answers 410 in TS and in the Swift mirror1 ms
  • ✓status contract the mirrors must agree on › exhausted answers 429 in TS and in the Swift mirror0 ms
  • ✓status contract the mirrors must agree on › mismatch answers 401 in TS and in the Swift mirror0 ms
  • ✓status contract the mirrors must agree on › malformed answers 400 in TS and in the Swift mirror0 ms
  • ✓status contract the mirrors must agree on › the Swift mirror decides expiry before it reads the code0 ms
shared/src/__tests__/pairing-code.test.ts23/23
  • ✓normalizePairingCode › accepts a bare code3 ms
  • ✓normalizePairingCode › accepts the separators a human or a formatted display introduces0 ms
  • ✓normalizePairingCode › rejects anything that is not exactly the code length0 ms
  • ✓normalizePairingCode › rejects non-strings rather than coercing them0 ms
  • ✓normalizePairingCode › isPairingCode only accepts the canonical form0 ms
  • ✓formatPairingCode › groups the code in half for reading aloud0 ms
  • ✓formatPairingCode › normalizes before grouping, so formatting is idempotent0 ms
  • ✓formatPairingCode › passes through anything it cannot parse instead of mangling it0 ms
  • ✓evaluatePairingRedemption › accepts the right code and closes a single-redemption window0 ms
  • ✓evaluatePairingRedemption › keeps a multi-device window open until its last credential0 ms
  • ✓evaluatePairingRedemption › accepts a code that arrives with the separators it was displayed with0 ms
  • ✓evaluatePairingRedemption › answers 401 with no window, so a closed daemon looks like an unknown route0 ms
  • ✓evaluatePairingRedemption › decides expiry before it looks at the code0 ms
  • ✓evaluatePairingRedemption › treats the expiry instant as closed, not as the last open millisecond0 ms
  • ✓evaluatePairingRedemption › burns one attempt per well-formed wrong code and closes on the last one1 ms
  • ✓evaluatePairingRedemption › refuses a window whose attempts are already spent, even for the right code0 ms
  • ✓evaluatePairingRedemption › refuses a window with no credentials left0 ms
  • ✓evaluatePairingRedemption › does not spend an attempt on a malformed submission1 ms
  • ✓evaluatePairingRedemption › gives an attacker at most PAIRING_MAX_FAILED_ATTEMPTS guesses per window0 ms
  • ✓pairingWindowSecondsRemaining › rounds up so a countdown never shows 0 while the window is still open0 ms
  • ✓pairingWindowSecondsRemaining › floors at zero for an expired or absent window0 ms
  • ✓constants › keeps the code long enough that the attempt cap is the real defence0 ms
  • ✓constants › keeps the window short enough to be an operator action, not a mode0 ms
shared/src/__tests__/pairing-credentials.test.ts23/23
  • ✓pairing credential retirement policy › legacy convergence retains previous device token4 ms
  • ✓pairing credential retirement policy › same legacy token is unchanged0 ms
  • ✓pairing credential retirement policy › rotation clears all accepted tokens1 ms
  • ✓pairing credential retirement policy › new retirement drops the previous local ring0 ms
  • ✓pairing credential retirement policy › legacy peer cannot restore a retired token0 ms
  • ✓pairing credential retirement policy › old revision cannot restore a retired token0 ms
  • ✓pairing credential retirement policy › same retirement and token are unchanged0 ms
  • ✓pairing credential retirement policy › same event cannot name an older token0 ms
  • ✓pairing credential retirement policy › equal revision with a different event is refused0 ms
  • ✓pairing credential retirement policy › later rotation wins without retaining a ring0 ms
  • ✓pairing credential retirement policy › explicit malformed metadata is not legacy0 ms
  • ✓pairing credential retirement policy › boolean revision is invalid0 ms
  • ✓pairing credential retirement policy › fractional revision is invalid0 ms
  • ✓pairing credential retirement policy › invalid metadata version is refused0 ms
  • ✓pairing credential retirement policy › invalid event id is refused0 ms
  • ✓pairing credential retirement policy › rotation incorporates a newer inactive-peer floor0 ms
  • ✓pairing credential retirement policy › rotation cannot reuse the old current token0 ms
  • ✓pairing credential retirement policy › rotation cannot reuse an accepted token0 ms
  • ✓pairing credential retirement policy › rotation cannot reuse an event id0 ms
  • ✓pairing credential retirement policy › rotation refuses counter exhaustion0 ms
  • ✓pairing credential retirement policy › positive retirement cannot contain a ring0 ms
  • ✓pairing credential retirement policy › matches generated Swift bytes1 ms
  • ✓pairing credential retirement policy › rejects malformed authoritative states instead of reviving a legacy ring1 ms

3 files

Pass

End-to-end (real processes)

Does the shipped daemon work when started and driven from outside?

Passed
40
Failed
0
Skipped
0
Time
29.3 s
3 test files
tests/e2e/daemon-hub.e2e.test.ts33/33
  • ✓daemon hub (real CLI process) › announces itself on /health and in daemon.json, from the temp data dir only5 ms
  • ✓daemon hub (real CLI process) › requires a local bearer token for credential edits, preserves settings and never returns or logs keys24 ms
  • ✓daemon hub (real CLI process) › keeps ESP32 WiFi credentials behind loopback and the token, applies them live and never returns the password218 ms
  • ✓daemon hub (real CLI process) › answers a web page on this machine as a LAN peer, and a local program as before23 ms
  • ✓daemon hub (real CLI process) › binds loopback only: the same port is closed on a LAN address1 ms
  • ✓daemon hub (real CLI process) › keeps a background CI wait through Stop and sends explicit null on re-invocation159 ms
  • ✓daemon hub (real CLI process) › turns Claude hook events into the state stream and the persisted timeline416 ms
  • ✓daemon hub (real CLI process) › answers a board asking for a session by the cut id it holds, even after a long reply213 ms
  • ✓daemon hub (real CLI process) › closes a long Claude turn against its prompt and keeps the turn in a plain client's Detail view280 ms
  • ✓daemon hub (real CLI process) › replays real Hermes CI tool callbacks through HTTP and clears the exact foreground wait1.1 s
  • ✓daemon hub (real CLI process) › replays a real Hermes delegated turn through HTTP without a child roster row113 ms
  • ✓daemon hub (real CLI process) › reports Hermes human waits without controls, Claude attribution or synthetic task events118 ms
  • ✓daemon hub (real CLI process) › replays real Hermes CLI/Gateway captures without calling cancelled turns completed90 ms
  • ✓daemon hub (real CLI process) › stamps an observed OpenCode turn with the model and endpoint its stop names10 ms
  • ✓daemon hub (real CLI process) › ingests a Codex turn delivered to both its codex_* hooks and the generic hooks once, as Codex (#490)516 ms
  • ✓daemon hub (real CLI process) › lands a Stop reply on the turn a task notification opened, which the timeline drops19 ms
  • ✓daemon hub (real CLI process) › closes a running turn a queued message displaced as `injected`, reading the real transcript10 ms
  • ✓daemon hub (real CLI process) › answers the request-response hooks (PreToolUse, Stop) promptly when no device can approve3 ms
  • ✓daemon hub (real CLI process) › withdraws OpenCode Attention when its process exits without a final hook1.0 s
  • ✓daemon hub (real CLI process) › does not invent an MCP human wait when reviewer evidence is beyond-window2.0 s
  • ✓daemon hub (real CLI process) › does not invent an MCP human wait when reviewer evidence is missing-file2.0 s
  • ✓daemon hub (real CLI process) › does not invent an MCP human wait when reviewer evidence is malformed1.6 s
  • ✓daemon hub (real CLI process) › does not invent an MCP human wait when reviewer evidence is missing-reviewer315 ms
  • ✓daemon hub (real CLI process) › does not invent an MCP human wait when reviewer evidence is unknown-reviewer2.0 s
  • ✓daemon hub (real CLI process) › does not resurrect a human wait after a newer stop overtakes a long reviewer read423 ms
  • ✓daemon hub (real CLI process) › preserves Blender MCP user approval semantics beyond multiple rollout windows325 ms
  • ✓daemon hub (real CLI process) › preserves Blender MCP auto_review approval semantics beyond multiple rollout windows260 ms
  • ✓daemon hub (real CLI process) › keeps automatic Codex review working without Attention or a device hold, and preserves human approval1.2 s
  • ✓daemon hub (real CLI process) › holds a Codex approval for a device decision, from a deck key too, and releases it when the turn ends778 ms
  • ✓daemon hub (real CLI process) › shows Claude Attention only for a real waiting notification, never for speculative hooks6.7 s
  • ✓daemon hub (real CLI process) › accepts events from the installed hook snippet, which finds the daemon via daemon.json200 ms
  • ✓daemon hub (real CLI process) › never reaches for an OpenClaw Gateway on this machine1 ms
  • ✓daemon hub (real CLI process) › shuts down cleanly and replays the persisted timeline after a restart724 ms
tests/e2e/daemon-relay.e2e.test.ts4/4
  • ✓daemon relay (two real CLI daemons) › the hub advertises the capability and the worker attaches111 ms
  • ✓daemon relay (two real CLI daemons) › a session observed on the worker appears on the hub with its prompt1.9 s
  • ✓daemon relay (two real CLI daemons) › a deck decision and prompt on the hub reach the worker’s steering, not the hub’s2.2 s
  • ✓daemon relay (two real CLI daemons) › the relayed row leaves the hub when the worker goes away1.8 s
tests/e2e/hooks-uninstall.e2e.test.ts3/3
  • ✓hooks uninstall (real CLI entry point) › removes the Codex block and keeps what Codex added inside it110 ms
  • ✓hooks uninstall (real CLI entry point) › keeps a config it cannot edit safely and says so97 ms
  • ✓hooks uninstall (real CLI entry point) › does nothing to Codex when it was never configured94 ms

30 files

Pass

Timeline

Is every turn, task and approval recorded once, attributed to the right session, and kept across restarts?

Passed
390
Failed
0
Skipped
0
Time
2.3 s
30 test files
bridge/src/__tests__/apme-sample-timeline.test.ts13/13
  • ✓sampleEventToTimeline projection › projects user_message → chat_start5 ms
  • ✓sampleEventToTimeline projection › projects a text assistant_message → chat_response but skips tool_only1 ms
  • ✓sampleEventToTimeline projection › projects tool → tool_resolved with status mapping + input summary1 ms
  • ✓sampleEventToTimeline projection › skips model and state events (no standalone row)0 ms
  • ✓OpenClaw session.tool / session.message → spans › maps a tool start to a tool_call span carrying the args1 ms
  • ✓OpenClaw session.tool / session.message → spans › maps a tool result to a tool_result span carrying the output0 ms
  • ✓OpenClaw session.tool / session.message → spans › reports an errored tool as a result, not as a success0 ms
  • ✓OpenClaw session.tool / session.message → spans › treats phase 'error' as a failure even when isError is absent0 ms
  • ✓OpenClaw session.tool / session.message → spans › maps a user message to turn_start — the prompt no other channel carries1 ms
  • ✓OpenClaw session.tool / session.message → spans › maps an assistant message to session_meta + turn_response0 ms
  • ✓OpenClaw session.tool / session.message → spans › does not count an assistant toolCall block as a tool0 ms
  • ✓OpenClaw session.tool / session.message → spans › drops a toolResult message — session.tool already reported it0 ms
  • ✓OpenClaw session.tool / session.message → spans › drops empty/blank messages and nameless tools0 ms
bridge/src/__tests__/claude-hook-timeline.test.ts3/3
  • ✓claude hook timeline projection › creates a bounded request with correlation and safe input summary6 ms
  • ✓claude hook timeline projection › maps success and failure completions without exposing arbitrary payloads1 ms
  • ✓claude hook timeline projection › ignores unrelated hook events0 ms
bridge/src/__tests__/daemon-timeline-handover.test.ts3/3
  • ✓Swift timeline handover › stages the global snapshot without writing timeline.json, then merges both histories28 ms
  • ✓Swift timeline handover › bounds a silent peer and retains the previous staged snapshot on failure54 ms
  • ✓Swift timeline handover › accepts an explicitly empty global history4 ms
bridge/src/__tests__/fallback-task-timeline.test.ts4/4
  • ✓FallbackTaskTimeline › opens a task on the first prompt and closes it on session end5 ms
  • ✓FallbackTaskTimeline › segments on /clear and numbers the next task1 ms
  • ✓FallbackTaskTimeline › ignores session end with no open task and tracks sessions independently2 ms
  • ✓FallbackTaskTimeline › drops the per-session counter on session_end so counts cannot grow unbounded0 ms
bridge/src/__tests__/gateway-timeline-attribution.test.ts3/3
  • ✓enrichGatewayTimelineEntry › stamps agentType/projectName onto a bare OpenClaw adapter entry3 ms
  • ✓enrichGatewayTimelineEntry › preserves agentType/projectName the adapter already set0 ms
  • ✓enrichGatewayTimelineEntry › does not mutate the input entry0 ms
bridge/src/__tests__/kiro-timeline-feed.test.ts6/6
  • ✓KiroTimelineFeed › emits the last turn — and only that — the first time it sees a session3 ms
  • ✓KiroTimelineFeed › cuts the seeded turn at its prompt, never mid-turn1 ms
  • ✓KiroTimelineFeed › emits only what appeared after the first sighting0 ms
  • ✓KiroTimelineFeed › emits the first row of a session that was empty when first seen0 ms
  • ✓KiroTimelineFeed › forgets a session that is no longer observed0 ms
  • ✓KiroTimelineFeed › orders rows across sessions and survives a reader that throws0 ms
bridge/src/__tests__/kiro-transcript-timeline.test.ts8/8
  • ✓kiroTimelineForSession › reads the shared nested-v3 fixture and excludes reasoning5 ms
  • ✓kiroTimelineForSession › turns a real transcript into paired chat rows2 ms
  • ✓kiroTimelineForSession › reads the timestamp as seconds, not milliseconds1 ms
  • ✓kiroTimelineForSession › gives every reply record in one turn its own timestamp2 ms
  • ✓kiroTimelineForSession › keeps thinking blocks and tool results out of the rows2 ms
  • ✓kiroTimelineForSession › honours since and limit against the row timestamps1 ms
  • ✓kiroTimelineForSession › returns nothing rather than guessing when it cannot read1 ms
  • ✓kiroTimelineForSession › finds a session under a workspace-hash directory, not just cli/1 ms
bridge/src/__tests__/openclaw-timeline-completion.test.ts4/4
  • ✓OpenClaw chat final → single completion row › emits chat_response only (no chat_end) when the turn has response text64 ms
  • ✓OpenClaw chat final → single completion row › marks gateway-initiated (cron) turns automated and skips LLM enrichment11 ms
  • ✓OpenClaw chat final → single completion row › emits chat_end (not chat_response) for a response-less turn1 ms
  • ✓captured external run → adapter state › starts WORKING during preparation and stays working through tool execution3 ms
bridge/src/__tests__/openclaw-timeline-feed.test.ts12/12
  • ✓OpenClawTimelineFeed › emits NOTHING on a first sighting — unlike the Kiro feed, deliberately5 ms
  • ✓OpenClawTimelineFeed › emits work that arrives after the position it adopted2 ms
  • ✓OpenClawTimelineFeed › reads only recently-active sessions — the store never forgets one0 ms
  • ✓OpenClawTimelineFeed › forgets a session that falls out of the window, and re-seeds it silently0 ms
  • ✓OpenClawTimelineFeed › names WHICH OpenClaw session produced each row, at the head of detail0 ms
  • ✓OpenClawTimelineFeed › attributes rows to the virtual Gateway session, never to a new one0 ms
  • ✓OpenClawTimelineFeed › preserves a row detail the parser already wrote, under the session line1 ms
  • ✓OpenClawTimelineFeed › returns rows oldest-first across all sessions0 ms
  • ✓OpenClawTimelineFeed › survives a reader that throws, and keeps going for the others1 ms
  • ✓OpenClawTimelineFeed › returns nothing when the store cannot be listed at all0 ms
  • ✓shortSessionKey › drops the constant agent prefix and keeps what says which work this is0 ms
  • ✓shortSessionKey › leaves a key it does not recognize alone rather than emptying it0 ms
bridge/src/__tests__/openclaw-transcript-timeline.test.ts13/13
  • ✓listOpenClawSessions › reads the index keys as session keys, newest first3 ms
  • ✓listOpenClawSessions › returns nothing rather than throwing when there is no store0 ms
  • ✓openClawTimelineForSession › emits one row per tool CALL — the gap the Gateway stream leaves2 ms
  • ✓openClawTimelineForSession › names the tool and what it was asked to do0 ms
  • ✓openClawTimelineForSession › stamps the row at the CALL, not at the result0 ms
  • ✓openClawTimelineForSession › completes the row from its matching result, keyed by toolCallId1 ms
  • ✓openClawTimelineForSession › puts the outcome and the model ahead of unbounded tool output0 ms
  • ✓openClawTimelineForSession › marks a failure reported by isError alone — there is no exit code0 ms
  • ✓openClawTimelineForSession › keeps a call that never got a result — that is the abandoned approval1 ms
  • ✓openClawTimelineForSession › honors since/limit so a poller only sees new work1 ms
  • ✓openClawTimelineForSession › returns nothing for a session that is not in the store0 ms
  • ✓summarizeToolArguments › prefers the command for exec — the whole story of the call0 ms
  • ✓summarizeToolArguments › degrades to something TRUE for a tool this build has never seen0 ms
bridge/src/__tests__/orphan-chat-reaper-loop.test.ts3/3
  • ✓orphan chat_start reaper › closes an orphan even when an identical close already sits NEWER in the buffer7 ms
  • ✓orphan chat_start reaper › does not collapse two different turns that close with the same text1 ms
  • ✓orphan chat_start reaper › still absorbs a duplicate emit of the same close0 ms
bridge/src/__tests__/session-timeline-relay.test.ts5/5
  • ✓SessionTimelineRelay › connects to sibling and relays timeline_event320 ms
  • ✓SessionTimelineRelay › relays timeline_history entries302 ms
  • ✓SessionTimelineRelay › removes subscription when session disappears201 ms
  • ✓SessionTimelineRelay › ignores daemon sessions0 ms
  • ✓SessionTimelineRelay › handles upsert timeline events402 ms
bridge/src/__tests__/session-timeline-reply.test.ts4/4
  • ✓query_session_timeline reply › answers a board under the id it asked with, for a UUID and an observed id alike5 ms
  • ✓query_session_timeline reply › trims a board's rows before the byte budget, so a long newest reply still leaves an answer1 ms
  • ✓query_session_timeline reply › gives a dashboard the resolved id and full rows, with tool rows only when it opted in1 ms
  • ✓query_session_timeline reply › answers nothing without a session id or rows0 ms
bridge/src/__tests__/session-transcript-timeline.test.ts5/5
  • ✓lastAssistantTextFromTranscript › returns the last assistant text at Stop time3 ms
  • ✓lastAssistantTextFromTranscript › skips tool_result user continuations between assistant messages1 ms
  • ✓lastAssistantTextFromTranscript › returns empty when the tail is an unanswered prompt0 ms
  • ✓lastAssistantTextFromTranscript › returns empty for a missing file0 ms
  • ✓lastAssistantTextFromTranscript › skips malformed tail lines1 ms
bridge/src/__tests__/subagent-timeline-store.test.ts6/6
  • ✓subagent rows in the bridge timeline store › keeps siblings of one fan-out that share a label and an instant6 ms
  • ✓subagent rows in the bridge timeline store › still dedups identical rows that claim no child identity1 ms
  • ✓subagent rows in the bridge timeline store › upserts a growing dispatch burst in place, past the 1s tolerance1 ms
  • ✓subagent rows in the bridge timeline store › does not shed the dispatch row ahead of ordinary tool rows18 ms
  • ✓OpenClaw transcript rows vs. tool_exec-first eviction › does not let an OpenClaw row evict itself on insertion into a full buffer8 ms
  • ✓OpenClaw transcript rows vs. tool_exec-first eviction › sheds an observed agent's tool rows ahead of OpenClaw's31 ms
bridge/src/__tests__/subagent-timeline.test.ts17/17
  • ✓SubagentTimelineTracker › consumes Claude internal suggestion stops without inventing a worker or APME event5 ms
  • ✓SubagentTimelineTracker › preserves typed/legacy orphan and non-Claude stops (claude-code, {"agent_type":"Explore"})1 ms
  • ✓SubagentTimelineTracker › preserves typed/legacy orphan and non-Claude stops (claude-code, {})0 ms
  • ✓SubagentTimelineTracker › preserves typed/legacy orphan and non-Claude stops (codex-cli, {"agent_type":""})0 ms
  • ✓SubagentTimelineTracker › counts an OpenCode Task-tool child session on its parent2 ms
  • ✓SubagentTimelineTracker › closes a known child even when its stop loses its type0 ms
  • ✓SubagentTimelineTracker › collapses start and stop into existing compatible Timeline types2 ms
  • ✓SubagentTimelineTracker › consumes child tool hooks without producing per-tool noise or controls0 ms
  • ✓SubagentTimelineTracker › keeps future child notification and stop hooks out of parent control0 ms
  • ✓SubagentTimelineTracker › summarizes team task completion without exposing team settings0 ms
  • ✓SubagentTimelineTracker › records a task-list completion as info, never as a child agent0 ms
  • ✓SubagentTimelineTracker › recognizes Codex lifecycle names and preserves the provider0 ms
  • ✓SubagentTimelineTracker › keeps a simultaneous fan-out distinguishable and counted1 ms
  • ✓SubagentTimelineTracker › reports an explicit zero once a fan-out drains, never absence1 ms
  • ✓SubagentTimelineTracker › does not pin a parent at "running" when a stop hook is lost0 ms
  • ✓SubagentTimelineTracker › separates one wave from the next0 ms
  • ✓SubagentTimelineTracker › reports a census change so the parent row can be rebroadcast0 ms
bridge/src/__tests__/timeline-integration.test.ts43/43
  • ✓BridgeTimelineStore › adds and retrieves entries5 ms
  • ✓BridgeTimelineStore › filters history by timestamp0 ms
  • ✓BridgeTimelineStore › returns timeline history sorted by timestamp after late upserts1 ms
  • ✓BridgeTimelineStore › returns per-session history sorted by timestamp after late upserts1 ms
  • ✓BridgeTimelineStore › normalizes OpenClaw cron prompt dumps before storing history1 ms
  • ✓BridgeTimelineStore › drops low-signal OpenClaw placeholder tool rows before broadcast/history1 ms
  • ✓BridgeTimelineStore › drops Codex tool_exec rows before broadcast/history0 ms
  • ✓BridgeTimelineStore › loads persisted timeline history without replaying Codex tool_exec firehose1 ms
  • ✓BridgeTimelineStore › calls listeners on new entries0 ms
  • ✓BridgeTimelineStore › upsert updates existing entry with same ts+type0 ms
  • ✓BridgeTimelineStore › upsert keeps timeline attribution fields0 ms
  • ✓BridgeTimelineStore › does not upsert a different OpenClaw run inside the timestamp tolerance1 ms
  • ✓BridgeTimelineStore › upsert adds new entry when no match exists0 ms
  • ✓BridgeTimelineStore › task_end updates in place by taskId and carries judge fields1 ms
  • ✓BridgeTimelineStore › updateEntryStatus updates approval status0 ms
  • ✓BridgeTimelineStore › getLastEntry returns most recent of given type0 ms
  • ✓BridgeTimelineStore › getLastEntry returns null when type not found0 ms
  • ✓BridgeTimelineStore › removeListener stops notifications0 ms
  • ✓BridgeTimelineStore › enforces MAX_ENTRIES (200) with FIFO13 ms
  • ✓deduplicateEntry pipeline › exact duplicate within 8s → skip0 ms
  • ✓deduplicateEntry pipeline › same type, different content → add0 ms
  • ✓deduplicateEntry pipeline › different type, same raw → add0 ms
  • ✓deduplicateEntry pipeline › chat_response identical raw 6s apart → skip (multi-producer race)0 ms
  • ✓deduplicateEntry pipeline › chat_response near-duplicate beyond 8s → repetitive merge0 ms
  • ✓BridgeTimelineStore.setAttributor — history replay attribution › addEntry passes the entry through the attributor before storage0 ms
  • ✓BridgeTimelineStore.setAttributor — history replay attribution › caller-set fields take precedence over attributor (idempotent)0 ms
  • ✓BridgeTimelineStore.setAttributor — history replay attribution › listener (broadcast) receives the same attributed entry0 ms
  • ✓BridgeTimelineStore.setAttributor — history replay attribution › upsertEntry propagates summaryKind to existing entry (LLM enrichment regression)0 ms
  • ✓BridgeTimelineStore.setAttributor — history replay attribution › upsertEntry routes through the attributor too0 ms
  • ✓BridgeTimelineStore.setAttributor — history replay attribution › late upsert preserves the original entry attribution after task rotation (regression)0 ms
  • ✓BridgeTimelineStore.setAttributor — history replay attribution › merge path (repetitive dedup) does not re-attribute after task rotation0 ms
  • ✓BridgeTimelineStore.setAttributor — history replay attribution › upsert with no existing match falls through to attributor (insert path)0 ms
  • ✓BridgeTimelineStore.setAttributor — history replay attribution › caller-set taskId on upsert overrides existing entry attribution0 ms
  • ✓BridgeTimelineStore.setAttributor — history replay attribution › history replay returns entries with taskId/runId set (regression)0 ms
  • ✓completion multi-producer double-emit (regression) › identical chat_response from two emit paths is collapsed by store0 ms
  • ✓Timeline → WS broadcast pipeline › store entries trigger broadcast via listener1 ms
  • ✓Timeline → WS broadcast pipeline › upsert entries broadcast with upsert flag0 ms
  • ✓Timeline → WS broadcast pipeline › exact duplicate within 5s is skipped by store0 ms
  • ✓Timeline → WS broadcast pipeline › different content within 5s is NOT deduped0 ms
  • ✓TimelineEntry types › common entry types have expected shape1 ms
  • ✓TimelineEntry types › entries with status field0 ms
  • ✓TimelineEntry types › entries with detail field0 ms
  • ✓TimelineEntry types › entries with automated flag0 ms
bridge/src/__tests__/timeline-orphan-reaper.test.ts5/5
  • ✓BridgeTimelineStore.reapOrphanTaskStarts › synthesizes task_end for orphaned task_start rows only5 ms
  • ✓BridgeTimelineStore.reapOrphanTaskStarts › anchors the synthetic end after the task's last row with an approx duration1 ms
  • ✓BridgeTimelineStore.reapOrphanTaskStarts › closes stale orphaned chat_start rows without touching live or completed turns1 ms
  • ✓BridgeTimelineStore.reapOrphanTaskStarts › anchors the synthetic chat_end before the session's next chat_start1 ms
  • ✓BridgeTimelineStore.reapOrphanTaskStarts › lets a real task_end merge over the synthetic by taskId0 ms
bridge/src/__tests__/timeline-persistence.test.ts17/17
  • ✓persistence is opt-in › writes nothing until enablePersistence is called9 ms
  • ✓persistence is opt-in › writes once enabled4 ms
  • ✓write behaviour › coalesces a burst of entries into a single write1 ms
  • ✓write behaviour › leaves no temp file behind2 ms
  • ✓write behaviour › flushes pending entries on shutdown instead of losing them2 ms
  • ✓write behaviour › stopPersistence is safe when nothing is pending2 ms
  • ✓write behaviour › survives an unwritable path rather than taking the daemon down1 ms
  • ✓late updates to an already-written row › persists a ts-matched upsert (late LLM summary on chat_end)3 ms
  • ✓late updates to an already-written row › persists a task_end merged by taskId (late evaluation result)2 ms
  • ✓late updates to an already-written row › persists an approval status change2 ms
  • ✓late updates to an already-written row › reaches disk on the debounce timer alone, without a shutdown flush2 ms
  • ✓round-trip › a written file reloads into an equivalent buffer2 ms
  • ✓round-trip › restored history is included in the next write, not truncated away2 ms
  • ✓cross-implementation format contract (Swift DaemonTimelineStore) › writes a plain JSON array, not a wrapper object1 ms
  • ✓cross-implementation format contract (Swift DaemonTimelineStore) › every row carries the ts/type/raw triple both implementations require1 ms
  • ✓cross-implementation format contract (Swift DaemonTimelineStore) › reads a file in the shape the Swift daemon writes1 ms
  • ✓cross-implementation format contract (Swift DaemonTimelineStore) › treats a corrupt file as empty history rather than throwing1 ms
bridge/src/__tests__/timeline-projection-cutover.test.ts4/4
  • ✓BridgeTimelineStore projection cutover › default OFF: every entry passes (no behavior change)5 ms
  • ✓BridgeTimelineStore projection cutover › ON: drops locally-emitted chat/tool rows0 ms
  • ✓BridgeTimelineStore projection cutover › ON: projected (bypass) chat/tool rows pass through0 ms
  • ✓BridgeTimelineStore projection cutover › ON: task hierarchy + error rows are never suppressed0 ms
bridge/src/__tests__/timeline-summarizer-chain.test.ts5/5
  • ✓summarizeResponse provider chain › prefers on-device Foundation Models over MLX6 ms
  • ✓summarizeResponse provider chain › falls to MLX when the helper is unavailable39 ms
  • ✓summarizeResponse provider chain › never dials the removed Ollama tier, even when 11434 would answer3 ms
  • ✓summarizeResponse provider chain › returns null when every provider is down so the caller uses the heuristic1 ms
  • ✓summarizeResponse provider chain › probes the helper once, not once per summary1 ms
bridge/src/__tests__/timeline-task-retention.test.ts10/10
  • ✓BridgeTimelineStore task-row retention › keeps an in-flight task_start alive through FIFO overflow310 ms
  • ✓BridgeTimelineStore task-row retention › evicts closed task pairs once the task cap is exceeded, oldest first103 ms
  • ✓BridgeTimelineStore task-row retention › sheds tool_exec before chat_start so a tool-heavy turn survives replay5 ms
  • ✓BridgeTimelineStore task-row retention › sheds Claude's per-tool hook rows before any turn row, each request with its result8 ms
  • ✓BridgeTimelineStore task-row retention › getHistoryForSession can leave per-tool hook rows out before applying its limit1 ms
  • ✓BridgeTimelineStore task-row retention › getChatRowsForSession reads the whole turn skeleton past any number of other rows1 ms
  • ✓BridgeTimelineStore task-row retention › getHistoryForSession returns task rows beyond the per-session limit2 ms
  • ✓BridgeTimelineStore task-row retention › getHistoryForSession canonicalizes observed session ids1 ms
  • ✓BridgeTimelineStore task-row retention › matches Swift hook and bare IDs in either history-query direction0 ms
  • ✓BridgeTimelineStore task-row retention › loadPersistedEntries keeps task rows past the generic trim1 ms
shared/src/__tests__/task-title.test.ts16/16
  • ✓deriveTaskTitle › uses the first non-empty line, trimmed and whitespace-collapsed2 ms
  • ✓deriveTaskTitle › returns null for empty / missing prompts0 ms
  • ✓deriveTaskTitle › skips bare slash-command lines and finds the first real line0 ms
  • ✓deriveTaskTitle › a slash PATH is not a slash command — path-leading bug reports keep their title0 ms
  • ✓deriveTaskTitle › a non-ASCII word after the slash is not a command (commands are ASCII)0 ms
  • ✓deriveTaskTitle › a prompt STARTING with markup is machine plumbing — null, never its inner body0 ms
  • ✓deriveTaskTitle › markup after a real first line does not block that line0 ms
  • ✓deriveTaskTitle › a fence swallows its whole body — the ask wins, never the pasted code0 ms
  • ✓deriveTaskTitle › strips markdown furniture0 ms
  • ✓deriveTaskTitle › rejects fragments shorter than the minimum0 ms
  • ✓deriveTaskTitle › caps long prompts at a word boundary with an ellipsis1 ms
  • ✓deriveTaskTitle › hard-cuts boundary-less CJK text without dropping most of the budget0 ms
  • ✓deriveTaskTitle › all index math is in code points, not UTF-16 units0 ms
  • ✓deriveTaskTitle › every derived title passes the timeline meaningful-title gate1 ms
  • ✓deriveTaskTitle › a prompt that literally says "Task 3" still reads as non-meaningful downstream0 ms
  • ✓cross-language parity vectors › has enough vectors to be a gate, and each passes1 ms
shared/src/__tests__/text-scanning.test.ts3/3
  • ✓bounded-work scanning of agent output › preserves delimiter behavior for complete and truncated model output3 ms
  • ✓bounded-work scanning of agent output › retains ordered same-line terms and whitespace after the suffix term1 ms
  • ✓bounded-work scanning of agent output › handles long unmatched delimiters, terms and whitespace without repeated suffix searches56 ms
shared/src/__tests__/timeline-approval-status.test.ts5/5
  • ✓approval status icons › separates the three outcomes on the resolution row2 ms
  • ✓approval status icons › never draws a denial or an abandonment as success1 ms
  • ✓approval status icons › an abandonment is not an error — nobody refused it0 ms
  • ✓approval status icons › pending and abandoned share the no-decision icon on the request row0 ms
  • ✓approval status icons › an unknown status degrades, it does not claim an outcome0 ms
shared/src/__tests__/timeline-rotating-glyph.test.ts6/6
  • ✓rotating rows draw the running glyph, not their own › an open task_start rotates and renders `running`, not `task`4 ms
  • ✓rotating rows draw the running glyph, not their own › a closed task returns to its own `task` glyph0 ms
  • ✓rotating rows draw the running glyph, not their own › a non-rotating row is unchanged by the display key0 ms
  • ✓rotating rows draw the running glyph, not their own › a stale orphaned task_start stops rotating and shows `task`0 ms
  • ✓an `error` closes a turn for rotation purposes › a later same-session error stops the spinner0 ms
  • ✓an `error` closes a turn for rotation purposes › an error in a DIFFERENT session leaves it spinning0 ms
shared/src/__tests__/timeline-summarizer.test.ts13/13
  • ✓extractTopicHintWithKind — Korean polite-closer robustness › returns the cleaned topic when the response opens with "네, …"4 ms
  • ✓extractTopicHintWithKind — Korean polite-closer robustness › returns the original (kind=fallback) when the entire response is just a polite closer1 ms
  • ✓extractTopicHintWithKind — Korean polite-closer robustness › returns null for empty / very short text (still)0 ms
  • ✓extractTopicHintWithKind — Korean polite-closer robustness › skips lone heading markers and code fences1 ms
  • ✓extractTopicHintWithKind — Korean polite-closer robustness › a heading WITH text becomes the topic (heading is the title)0 ms
  • ✓extractTopicHintWithKind — Korean polite-closer robustness › strips list bullet markers0 ms
  • ✓extractTopicHintWithKind — Korean polite-closer robustness › extractTopicHint convenience returns just the hint string0 ms
  • ✓promptSnippetFallback › returns first sentence trimmed0 ms
  • ✓promptSnippetFallback › returns whole string when no sentence terminator0 ms
  • ✓promptSnippetFallback › truncates to maxLen with ellipsis0 ms
  • ✓promptSnippetFallback › cuts at first newline if no sentence terminator0 ms
  • ✓promptSnippetFallback › returns null for empty / very short input0 ms
  • ✓promptSnippetFallback › handles Korean prompts0 ms
shared/src/__tests__/timeline-task-display.test.ts16/16
  • ✓timelineIsMeaningfulTaskTitle › rejects empty and auto-minted numeric titles6 ms
  • ✓timelineIsMeaningfulTaskTitle › accepts real titles0 ms
  • ✓timelineTaskClosure › finds the matching task_end by taskId0 ms
  • ✓timelineTaskClosure › ignores mismatched ids and non-headers0 ms
  • ✓timelineShouldRenderTaskRow › never renders task_end standalone — including interrupted reaper rows3 ms
  • ✓timelineShouldRenderTaskRow › passes non-task rows through0 ms
  • ✓timelineShouldRenderTaskRow › hides bare "Task N" headers with no eval payload (open or interrupted)0 ms
  • ✓timelineShouldRenderTaskRow › shows headers with meaningful titles0 ms
  • ✓timelineShouldRenderTaskRow › shows judged tasks via the closure eval payload0 ms
  • ✓timelineShouldRenderTaskRow › _empty category hides regardless of source0 ms
  • ✓timelineShouldRenderTaskRow › a non-_empty closure category alone qualifies as eval payload0 ms
  • ✓timelineTaskHeaderDisplay › folds closure label, badge fields, and closedAt into the header1 ms
  • ✓timelineTaskHeaderDisplay › the judge summary outranks a meaningful own title (outcome > intent in the one line a row gets)0 ms
  • ✓timelineTaskHeaderDisplay › a meaningful own title holds the slot while the task is unjudged0 ms
  • ✓timelineTaskHeaderDisplay › open task: not closed, no closure text, falls back to own raw2 ms
  • ✓timelineTaskHeaderDisplay › closedAtMs falls back to the closure ts when endedAt is absent0 ms
shared/src/__tests__/timeline-task-hierarchy.test.ts47/47
  • ✓deduplicateEntry — task hierarchy › always adds task_start even with identical raw within 8s3 ms
  • ✓deduplicateEntry — task hierarchy › always adds task_end with same boundarySignal back-to-back0 ms
  • ✓deduplicateEntry — task hierarchy › always adds task_milestone even with identical raw within 8s0 ms
  • ✓deduplicateEntry — task hierarchy › still dedupes ordinary chat_start within 8s0 ms
  • ✓timelineIconKey › maps task entries to "task"0 ms
  • ✓timelineIconKey › maps tool_request status to success/error/awaiting0 ms
  • ✓timelineIconKey › chat_start in flight is "running"; chat_end is "success"0 ms
  • ✓timelineIconKey › error → error; user_action → user; memory_recall → memory0 ms
  • ✓timelineIconKey › every key has an e-ink glyph of constant 4-char width1 ms
  • ✓isInFlightTask › task_start without matching task_end is in flight0 ms
  • ✓isInFlightTask › task_start whose task_end (same taskId) appeared is finished0 ms
  • ✓isInFlightTask › mismatched taskId on task_end does not close it0 ms
  • ✓isInFlightTask › task_start without taskId is never considered in flight0 ms
  • ✓isInFlightTask › non-task_start entries are never in flight0 ms
  • ✓isInFlightTask › task_start older than the staleness cap is no longer in flight0 ms
  • ✓isRotatingEntry › chat_start without a timestamp rotates (icon-key running, legacy rows)0 ms
  • ✓isRotatingEntry › fresh chat_start rotates0 ms
  • ✓isRotatingEntry › chat_start older than the age cap stops rotating0 ms
  • ✓isRotatingEntry › chat_start with a later same-session completion stops rotating0 ms
  • ✓isRotatingEntry › chat_start superseded by a newer same-session prompt stops rotating0 ms
  • ✓isRotatingEntry › other sessions' completions do not stop a running chat_start0 ms
  • ✓isRotatingEntry › orphan task_start rotates via in-flight predicate0 ms
  • ✓isRotatingEntry › closed task_start does not rotate0 ms
  • ✓isRotatingEntry › static rows do not rotate0 ms
  • ✓isRotatingEntry › eval_result and task_end never rotate0 ms
  • ✓parseTimelineMarkdown › returns single text line for plain text1 ms
  • ✓parseTimelineMarkdown › parses headings 1-6 with required space1 ms
  • ✓parseTimelineMarkdown › parses bullets and numbered lists0 ms
  • ✓parseTimelineMarkdown › handles code fence — verbatim lines, not interpreted0 ms
  • ✓parseTimelineMarkdown › blank line → blank kind0 ms
  • ✓parseTimelineMarkdown › parses tables with header separator1 ms
  • ✓parseTimelineMarkdown › parses tables without separator (no header)0 ms
  • ✓parseTimelineMarkdown › table block ends at first non-table line0 ms
  • ✓parseTimelineMarkdown › quote lines parse0 ms
  • ✓parseInlineSpans › returns empty for empty string0 ms
  • ✓parseInlineSpans › returns single plain span for plain text0 ms
  • ✓parseInlineSpans › parses **bold**0 ms
  • ✓parseInlineSpans › parses *italic* (single star)0 ms
  • ✓parseInlineSpans › parses `code` inline0 ms
  • ✓parseInlineSpans › parses [text](url) link0 ms
  • ✓parseInlineSpans › unclosed ** falls back to plain0 ms
  • ✓parseInlineSpans › multiple spans in one line2 ms
  • ✓parseInlineSpans › first-match-wins: ** consumed before * (no double-italic split)0 ms
  • ✓prepareMarkdownDetail › preserves markdown markers (chat-response detail goes to client)1 ms
  • ✓prepareMarkdownDetail › still filters system JSON blobs0 ms
  • ✓prepareMarkdownDetail › collapses 3+ blank lines but keeps double-blank paragraph break0 ms
  • ✓prepareMarkdownDetail › contrasts with cleanDetailText which strips markdown (non-chat path)1 ms
shared/src/__tests__/timeline.test.ts91/91
  • ✓cleanDetailText › returns empty/falsy input unchanged2 ms
  • ✓cleanDetailText › strips markdown bold0 ms
  • ✓cleanDetailText › strips markdown headings0 ms
  • ✓cleanDetailText › strips code fences0 ms
  • ✓cleanDetailText › strips inline backticks0 ms
  • ✓cleanDetailText › strips markdown links0 ms
  • ✓cleanDetailText › strips blockquotes0 ms
  • ✓cleanDetailText › strips list markers0 ms
  • ✓cleanDetailText › collapses multiple blank lines0 ms
  • ✓cleanDetailText › filters system JSON blobs (connectionId)0 ms
  • ✓cleanDetailText › extracts error from JSON blob0 ms
  • ✓cleanDetailText › compacts other JSON0 ms
  • ✓cleanRawText › strips bold, headings, links, backticks0 ms
  • ✓cleanRawText › returns empty/falsy unchanged0 ms
  • ✓cleanNopMarkers › removes NOP markers0 ms
  • ✓cleanNopMarkers › collapses resulting blank lines0 ms
  • ✓cleanNopMarkers › returns empty/falsy unchanged0 ms
  • ✓normalizeTimelineEntryForStorage › summarizes OpenClaw cron model_call prompts instead of storing shell-like instructions2 ms
  • ✓normalizeTimelineEntryForStorage › drops low-signal OpenClaw placeholder tool rows0 ms
  • ✓normalizeTimelineEntryForStorage › keeps OpenClaw placeholder tool rows when detail carries input or output0 ms
  • ✓normalizeTimelineEntryForStorage › keeps coalesced Codex subagent lifecycle rows0 ms
  • ✓normalizeTimelineEntryForStorage › drops OpenClaw NO_REPLY polling responses from the user-facing timeline0 ms
  • ✓normalizeTimelineEntryForStorage › drops OpenClaw automated polling chat starts from the user-facing timeline0 ms
  • ✓normalizeTimelineEntryForStorage › drops Claude task notification chat starts from the user-facing timeline0 ms
  • ✓normalizeTimelineEntryForStorage › keeps OpenClaw LINE userId notification failures visible0 ms
  • ✓normalizeTimelineEntryForStorage › drops Codex command tool rows even when detail carries input0 ms
  • ✓normalizeTimelineEntryForStorage › drops OpenCode tool rows so a tool-heavy turn does not flood the strip0 ms
  • ✓normalizeTimelineEntryForStorage › drops Antigravity tool rows too (forward-compat with the observed classifier)0 ms
  • ✓normalizeTimelineEntryForStorage › extracts readable labels from cron headers0 ms
  • ✓normalizeTimelineEntryForStorage › handles long malformed cron separators without retrying label matches1 ms
  • ✓normalizeTimelineEntryForStorage › requires the header identifier and keeps label normalization and cap0 ms
  • ✓isAssistantProgressUpdate › detects non-terminal build/status updates0 ms
  • ✓isAssistantProgressUpdate › does not classify final completion reports as progress3 ms
  • ✓extractSemanticCore › strips duration suffix for chat_end0 ms
  • ✓extractSemanticCore › keeps full text for chat_end without separator0 ms
  • ✓extractSemanticCore › keeps full text for non-chat_end types0 ms
  • ✓extractSemanticCore › trims whitespace0 ms
  • ✓isRepetitiveEntry › detects exact duplicate chat_end entries0 ms
  • ✓isRepetitiveEntry › detects keyword-similar entries0 ms
  • ✓isRepetitiveEntry › returns -1 for non-matching entries0 ms
  • ✓isRepetitiveEntry › ignores entries outside window0 ms
  • ✓isRepetitiveEntry › only applies to chat_end, chat_start, and error types0 ms
  • ✓isRepetitiveEntry › dedupes repeated error entries within 1h window0 ms
  • ✓isRepetitiveEntry › matches chat_start entries0 ms
  • ✓isRepetitiveEntry › dedupes automated entries regardless of content0 ms
  • ✓isRepetitiveEntry › exempts error rows from the content-agnostic automated collapse0 ms
  • ✓isRepetitiveEntry › does not dedup automated vs non-automated0 ms
  • ✓isRepetitiveEntry › uses 8h window for automated entries0 ms
  • ✓isRepetitiveEntry › expires automated dedup after 8h0 ms
  • ✓parseLogLine › returns null for null/undefined/non-object1 ms
  • ✓parseLogLine › returns null for empty message0 ms
  • ✓parseLogLine › returns null for model start/complete (suppressed)0 ms
  • ✓parseLogLine › parses memory/recall (legacy structured)0 ms
  • ✓parseLogLine › parses tool execution (legacy structured)0 ms
  • ✓parseLogLine › filters gateway/ws subsystem0 ms
  • ✓parseLogLine › filters infrastructure noise0 ms
  • ✓parseLogLine › filters channel infra reconnect noise1 ms
  • ✓parseLogLine › filters connection status JSON blobs0 ms
  • ✓parseLogLine › filters transient fetch timeouts0 ms
  • ✓parseLogLine › filters edit mismatch errors (agent retries)0 ms
  • ✓parseLogLine › filters failover cascade noise0 ms
  • ✓parseLogLine › parses genuine errors1 ms
  • ✓parseLogLine › parses error from message pattern (not level)1 ms
  • ✓parseLogLine › filters model/inference patterns (suppressed)0 ms
  • ✓parseLogLine › does not synthesize memory_recall from message text alone0 ms
  • ✓parseLogLine › does not synthesize tool_exec from message text alone0 ms
  • ✓parseLogLine › parses ISO timestamp correctly via error pattern0 ms
  • ✓parseLogLine › falls back to Date.now() for invalid timestamp on error message0 ms
  • ✓parseLogLine › truncates long tool raw to 500 chars0 ms
  • ✓parseLogLine › filters whatsapp noise from channel infra subsystem0 ms
  • ✓parseSlashCommandPrompt › parses a bare command1 ms
  • ✓parseSlashCommandPrompt › parses a command with arguments0 ms
  • ✓parseSlashCommandPrompt › parses plugin-scoped command names0 ms
  • ✓parseSlashCommandPrompt › parses the Claude Code command XML envelope0 ms
  • ✓parseSlashCommandPrompt › normalizes an envelope name missing the leading slash0 ms
  • ✓parseSlashCommandPrompt › rejects ordinary prompts and filesystem paths0 ms
  • ✓normalizeCommandPrompt › shows the typed answer of a Codex question-reply envelope1 ms
  • ✓normalizeCommandPrompt › collapses an XML envelope to "/name args"0 ms
  • ✓normalizeCommandPrompt › passes ordinary prompts through unchanged0 ms
  • ✓deduplicateEntry — interrupted close + cross-session guards › never repetitive-merges rows from different sessions0 ms
  • ✓deduplicateEntry — interrupted close + cross-session guards › adds interrupted chat_end rows instead of merging them by semantic core0 ms
  • ✓session-scoped CI timeline exact dedup parity › different sessions retain identical CI wait evidence0 ms
  • ✓session-scoped CI timeline exact dedup parity › same session absorbs duplicate CI wait evidence0 ms
  • ✓session-scoped CI timeline exact dedup parity › legacy unattributed evidence retains content dedup0 ms
  • ✓session-scoped CI timeline exact dedup parity › backdated evidence outside exact window stays distinct0 ms
  • ✓session-scoped CI timeline exact dedup parity › exact boundary has the same inclusive window0 ms
  • ✓session-scoped CI timeline exact dedup parity › different sessions keep an identical reply (#490: two Codex threads both answering pong)0 ms
  • ✓session-scoped CI timeline exact dedup parity › different sessions keep an identical prompt0 ms
  • ✓session-scoped CI timeline exact dedup parity › the same session absorbs a duplicate reply0 ms
  • ✓session-scoped CI timeline exact dedup parity › the same session in its observed and bare id forms still dedups0 ms
  • ✓session-scoped CI timeline exact dedup parity › an unattributed reply keeps content dedup0 ms

17 files

Partial verification

Usage & quota

Are Claude, Codex and Z.ai quota windows read, relayed and aged correctly?

Passed
382
Failed
0
Skipped
2
Time
3.4 s
17 test files
bridge/src/__tests__/codex-rate-limits-live.test.ts66/66
  • ✓parseLiveCodexRateLimits › does not activate an additional reserve pool while ordinary quota is available3 ms
  • ✓parseLiveCodexRateLimits › maps the app-server shape onto the wire shape2 ms
  • ✓parseLiveCodexRateLimits › accepts the rollout spelling of the window length0 ms
  • ✓parseLiveCodexRateLimits › clamps out-of-range percentages0 ms
  • ✓parseLiveCodexRateLimits › returns null when the result carries no usable limits0 ms
  • ✓parseLiveCodexRateLimits — limit id provenance › takes the limit id from the map key when the value carries none0 ms
  • ✓pickAccountWideLiveLimits › keeps the top-level block, which is what the Codex CLI itself shows0 ms
  • ✓pickAccountWideLiveLimits › falls back to the unnamed family when the top level is scoped to one model0 ms
  • ✓pickAccountWideLiveLimits › answers null when every family is model-scoped0 ms
  • ✓pickAccountWideLiveLimits › does not let the top-level block fingerprint against its own mirror0 ms
  • ✓pickAccountWideLiveLimits › prefers a windowed entry even on the last-resort rung0 ms
  • ✓pickAccountWideLiveLimits › never adopts a model-scoped entry's key for the account block0 ms
  • ✓pickAccountWideLiveLimits › adopts a matching entry key when the top-level block names no id0 ms
  • ✓pickAccountWideLiveLimits › carries the map key out as the limit id0 ms
  • ✓pickBestCodexRateLimits › prefers the newer capture1 ms
  • ✓pickBestCodexRateLimits › keeps a passive reading that is newer than the cached live one0 ms
  • ✓pickBestCodexRateLimits › preserves Luna metadata when the newer passive reading wins0 ms
  • ✓pickBestCodexRateLimits › does not resurrect an old passive reserve when a fresh live answer omits it0 ms
  • ✓pickBestCodexRateLimits › does not carry cached live reserve into recovered ordinary quota0 ms
  • ✓pickBestCodexRateLimits › handles either side being absent0 ms
  • ✓pickBestCodexRateLimits › lets a stamped snapshot beat an unstamped one2 ms
  • ✓pickBestCodexRateLimits › takes the live reading over a NEWER rollout minted under the old plan0 ms
  • ✓pickBestCodexRateLimits › still prefers a fresh passive reading once the rollout carries the new plan0 ms
  • ✓pickBestCodexRateLimits › takes the live reading over a NEWER rollout describing a different limit family0 ms
  • ✓pickBestCodexRateLimits › does not let the family guard outrank the plan test0 ms
  • ✓pickBestCodexRateLimits › stops arbitrating once the live answer is older than a few query intervals0 ms
  • ✓pickBestCodexRateLimits › ignores a family fingerprint whose own weekly window has already elapsed0 ms
  • ✓pickBestCodexRateLimits › lets a caller with no live reading opt out of the family guard entirely0 ms
  • ✓pickBestCodexRateLimits › lets a credits-only live answer win over a leftover windowed rollout0 ms
  • ✓pickBestCodexRateLimits › does not let a contentless block win on recency, in either direction0 ms
  • ✓pickBestCodexRateLimits › does not let a windowless live block veto a fully-windowed passive reading0 ms
  • ✓pickBestCodexRateLimits › keeps preferring the fresher passive reading within the account family0 ms
  • ✓codexSnapshotsShareLimitFamily › separates the Spark pool from the account even when both claim `codex`0 ms
  • ✓codexSnapshotsShareLimitFamily › treats a missing side as no information rather than a mismatch0 ms
  • ✓codexSnapshotsShareLimitFamily › tolerates the seconds of jitter Codex puts on the same weekly window0 ms
  • ✓codexSnapshotsShareLimitFamily › ignores the 5h window, whose reset instant slides with every request0 ms
  • ✓codexSnapshotsShareLimitFamily › reads the weekly fingerprint off whichever slot still carries a reset0 ms
  • ✓codexSnapshotsShareLimitFamily › reports a different id as a different family0 ms
  • ✓codexLiveFamilyAuthorityExpiry › holds for the fresher rollout the picker keeps, not only for the live block itself1 ms
  • ✓codexLiveFamilyAuthorityExpiry › is false with no live reading, and false when the live one cannot reject0 ms
  • ✓codexLiveFamilyAuthorityExpiry › refuses a rolling window, which is a countdown rather than an anchor0 ms
  • ✓codexLiveFamilyAuthorityExpiry › is false when what was published belongs to another family0 ms
  • ✓liveCorroboratesPassiveFamily › is NOT the complement of liveRejectsPassiveFamily, which is the point0 ms
  • ✓liveCorroboratesPassiveFamily › lets a plan that structurally has no weekly window earn the skip0 ms
  • ✓liveCorroboratesPassiveFamily › does not let a content-free answer corroborate its way into the deadlock0 ms
  • ✓liveCorroboratesPassiveFamily › earns the skip only with a present, current, agreeing answer0 ms
  • ✓codexRateLimitsWithLiveRefresh — throttle wiring › spends a query when the cached live answer has aged out, mid-turn or not14 ms
  • ✓codexRateLimitsWithLiveRefresh — throttle wiring › keeps the mid-turn skip while the cached answer is fresh and agrees1 ms
  • ✓shouldQueryCodexRateLimitsLive › queries when the passive snapshot has gone quiet0 ms
  • ✓shouldQueryCodexRateLimitsLive › skips while Codex is mid-turn (the rollout is writing fresh readings)0 ms
  • ✓shouldQueryCodexRateLimitsLive › always asks once, even mid-turn, when nothing has been asked yet0 ms
  • ✓shouldQueryCodexRateLimitsLive › queries a fresh passive snapshot when its plan is one the account no longer holds0 ms
  • ✓shouldQueryCodexRateLimitsLive › does not let a plan mismatch defeat the spawn throttles0 ms
  • ✓shouldQueryCodexRateLimitsLive › queries a fresh passive snapshot that describes a different limit family5 ms
  • ✓shouldQueryCodexRateLimitsLive › stops treating an elapsed live fingerprint as a family mismatch0 ms
  • ✓shouldQueryCodexRateLimitsLive › honours the minimum interval between spawns0 ms
  • ✓shouldQueryCodexRateLimitsLive › backs off hard after repeated misses (no Codex CLI installed)0 ms
  • ✓codexSpawnPlan › runs a plain binary directly on posix0 ms
  • ✓codexSpawnPlan › asks for a shell on Windows .cmd/.bat shims, which spawn refuses to run bare0 ms
  • ✓codexSpawnPlan › quotes a shim path with spaces, since the shell re-parses the command line0 ms
  • ✓codexSpawnPlan › leaves a real Windows executable alone — the shell is only for the shims0 ms
  • ✓codexSpawnPlan › never asks for a shell on posix, even for a file that happens to end in .cmd0 ms
  • ✓queryCodexRateLimitsLive › reads the rate limits out of the JSON-RPC stream41 ms
  • ✓queryCodexRateLimitsLive › resolves null when the server never answers, without hanging305 ms
  • ✓queryCodexRateLimitsLive › resolves null when the binary does not exist3 ms
  • ✓queryCodexRateLimitsLive › resolves null when the server exits before replying28 ms
bridge/src/__tests__/codex-rate-limits.test.ts24/24
  • ✓parseCodexRateLimitsFromText › parses primary/secondary windows and converts resets_at to ISO3 ms
  • ✓parseCodexRateLimitsFromText › returns the most recent snapshot when multiple lines are present0 ms
  • ✓parseCodexRateLimitsFromText › clamps used_percent into 0..1000 ms
  • ✓parseCodexRateLimitsFromText › tolerates a truncated leading line (tail window cut mid-line)0 ms
  • ✓parseCodexRateLimitsFromText › returns null when no rate_limits line exists0 ms
  • ✓parseCodexRateLimitsFromText › omits a window missing required fields0 ms
  • ✓parseCodexRateLimitsFromText › keeps a credit-based snapshot when windows are null0 ms
  • ✓parseCodexRateLimitsFromText › prefers a windowed snapshot over an older credits-only one0 ms
  • ✓parseCodexRateLimitsFromText › still returns null when neither windows, credits, nor limitId are present0 ms
  • ✓pickCodexRateLimits (file selection across day-dirs) › returns null when the tree does not exist1 ms
  • ✓pickCodexRateLimits (file selection across day-dirs) › picks the active prior-day rollout over a newer empty day-dir9 ms
  • ✓pickCodexRateLimits (file selection across day-dirs) › falls through a newer empty file to an older one with data in the same day-dir1 ms
  • ✓pickCodexRateLimits (file selection across day-dirs) › chooses the newest captured snapshot across concurrent active rollouts1 ms
  • ✓pickCodexRateLimits (file selection across day-dirs) › invalidates the cache when a non-leading rollout writes a newer snapshot2 ms
  • ✓pickCodexRateLimits (file selection across day-dirs) › reaches across a month boundary for a still-active prior-month session1 ms
  • ✓pickCodexRateLimits (plan-aware selection) › takes the older snapshot that matches the account tier1 ms
  • ✓pickCodexRateLimits (plan-aware selection) › keeps pure newest-wins when the account tier is unknown1 ms
  • ✓pickCodexRateLimits (plan-aware selection) › still returns a mismatched snapshot when it is the only one1 ms
  • ✓pickCodexRateLimits (limit family) › scans past a newer per-model line to the account-wide one behind it1 ms
  • ✓pickCodexRateLimits (limit family) › reports no snapshot rather than one model's quota as the account's1 ms
  • ✓pickCodexRateLimits (limit family) › keeps the credit-plan family, which is account-wide despite its odd id1 ms
  • ✓capturedAt (snapshot freshness anchor) › stamps the snapshot line timestamp, not the file mtime1 ms
  • ✓capturedAt (snapshot freshness anchor) › falls back to the file mtime when the line carries no timestamp1 ms
  • ✓capturedAt (snapshot freshness anchor) › falls back to the file mtime when the line timestamp is unparseable1 ms
bridge/src/__tests__/hook-server-usage-relay.test.ts7/7
  • ✓POST /voice/transcribe — binary payload boundary › bounds concurrent transcription and releases capacity when work completes111 ms
  • ✓POST /voice/transcribe — binary payload boundary › enforces a bounded request window and recovers at the next window357 ms
  • ✓POST /voice/transcribe — binary payload boundary › rejects parsed JSON arrays and length-shaped objects without transcribing18 ms
  • ✓POST /voice/transcribe — binary payload boundary › continues accepting binary audio and passes the exact bytes to transcription8 ms
  • ✓GET /usage — relay source contract › serves numbers together with a positive fetchedAt3 ms
  • ✓GET /usage — relay source contract › withholds numbers that carry no timestamp (fetchedAt 0)3 ms
  • ✓GET /usage — relay source contract › reports the same empty shape when no usage source is registered3 ms
bridge/src/__tests__/relayed-usage.test.ts21/21
  • ✓resolveRelayedUsageEvent — branch selection › keeps the Claude-bearing relay when preferOwnClaudeUsage is undefined5 ms
  • ✓resolveRelayedUsageEvent — branch selection › keeps the Claude-bearing relay when preferOwnClaudeUsage is false0 ms
  • ✓resolveRelayedUsageEvent — branch selection › preserves the preferred account snapshot (5h=40) and relays session counters4 ms
  • ✓resolveRelayedUsageEvent — branch selection › preserves the preferred account snapshot (5h=undefined) and relays session counters1 ms
  • ✓resolveRelayedUsageEvent — branch selection › counts a lone sevenDayPercent as Claude quota too0 ms
  • ✓resolveRelayedUsageEvent — branch selection › splits by half when the relay carries no Claude quota0 ms
  • ✓resolveRelayedUsageEvent — Codex block reconciliation (#253) › replaces the bridge's voided block with the daemon's live window1 ms
  • ✓resolveRelayedUsageEvent — Codex block reconciliation (#253) › keeps the bridge's block when it is the newer reading0 ms
  • ✓resolveRelayedUsageEvent — Codex block reconciliation (#253) › keeps the daemon's block when the bridge relays a different limit family1 ms
  • ✓resolveRelayedUsageEvent — Codex block reconciliation (#253) › lets the authority lapse on this event's clock, not the build's0 ms
  • ✓resolveRelayedUsageEvent — Codex block reconciliation (#253) › falls back to recency when the daemon has no live reading to arbitrate with0 ms
  • ✓resolveRelayedUsageEvent — Codex block reconciliation (#253) › never lets the daemon's contentless block displace a windowed relayed one0 ms
  • ✓resolveRelayedUsageEvent — Codex block reconciliation (#253) › supplies the daemon's block when the relay says nothing about Codex0 ms
  • ✓resolveRelayedUsageEvent — Codex block reconciliation (#253) › leaves the relayed event untouched when the daemon has never built one0 ms
  • ✓resolveRelayedUsageEvent — Codex block reconciliation (#253) › keeps the relayed block on an exact tie rather than churning the object0 ms
  • ✓resolveRelayedUsageEvent — Codex block reconciliation (#253) › does not reconcile Codex on the merged branch — that block is already the daemon's0 ms
  • ✓resolveRelayedUsageEvent — z.ai provider block › re-attaches the daemon's remembered z.ai block onto a Claude-bearing relay0 ms
  • ✓resolveRelayedUsageEvent — z.ai provider block › retains the daemon z.ai plan alongside a session subscription snapshot []1 ms
  • ✓resolveRelayedUsageEvent — z.ai provider block › retains the daemon z.ai plan alongside a session subscription snapshot [ { name: 'Claude' }, …(1) ]0 ms
  • ✓resolveRelayedUsageEvent — z.ai provider block › replaces an old z.ai plan once and removes it on explicit retirement2 ms
  • ✓resolveRelayedUsageEvent — z.ai provider block › keeps the identity return when there is no z.ai block to attach0 ms
bridge/src/__tests__/usage-api-recovery.test.ts14/14
  • ○usage fetching and recovery › yields during Keychain lookup and keeps rendering reads out of the subprocess path
  • ○usage fetching and recovery › retains known credentials and serves stale quota when Keychain cannot be inspected
  • ✓usage fetching and recovery › stamps retryAfter onto the cache as it is now, not the snapshot it started with230 ms
  • ✓usage fetching and recovery › recovers an expired credential and retries with the newly read token in the same poll45 ms
  • ✓usage fetching and recovery › does not claim success when CLI exits but leaves credentials expired34 ms
  • ✓usage fetching and recovery › recovers a server-rejected credential that records no local expiry27 ms
  • ✓usage fetching and recovery › recovers a server-rejected token even when its local expiry is in the future24 ms
  • ✓usage fetching and recovery › retries a transient 401 with an unchanged valid token (recovery=false)37 ms
  • ✓usage fetching and recovery › retries a transient 401 with an unchanged valid token (recovery=true)32 ms
  • ✓usage fetching and recovery › does not loop on a 403 by spending quota on authentication probes24 ms
  • ✓usage fetching and recovery › never spawns recovery from a session bridge or when opted out32 ms
  • ✓usage fetching and recovery › uses a token with five minutes remaining rather than inventing early expiry26 ms
  • ✓usage fetching and recovery › keeps Retry-After separate from freshness, including after module restart53 ms
  • ✓usage fetching and recovery › honors Retry-After even without an existing cache28 ms
  • ✓usage fetching and recovery › deduplicates simultaneous API polls26 ms
  • ✓usage fetching and recovery › backs off from failures even without a successful cache and recovers on rotation28 ms
bridge/src/__tests__/usage-api.test.ts28/28
  • ✓resolveOAuthCredentials › darwin: parses the Keychain blob and never reads a file5 ms
  • ✓resolveOAuthCredentials › win32: reads <configDir>/.credentials.json and never spawns the security CLI2 ms
  • ✓resolveOAuthCredentials › win32: CLAUDE_CODE_OAUTH_TOKEN takes precedence over the file, expiresAt undefined1 ms
  • ✓resolveOAuthCredentials › win32: an empty CLAUDE_CODE_OAUTH_TOKEN falls through to the file0 ms
  • ✓resolveOAuthCredentials › win32: a whitespace-only CLAUDE_CODE_OAUTH_TOKEN falls through to the file1 ms
  • ✓resolveOAuthCredentials › win32: a padded env token is trimmed before use0 ms
  • ✓resolveOAuthCredentials › linux: honors a relocated configDir (CLAUDE_CONFIG_DIR)1 ms
  • ✓resolveOAuthCredentials › win32: neither file nor env → null, no throw0 ms
  • ✓resolveOAuthCredentials › win32: malformed / partial JSON → null, never throws1 ms
  • ✓resolveOAuthCredentials › win32: valid token but non-numeric expiresAt → token kept, expiresAt undefined0 ms
  • ✓resolveOAuthCredentials › darwin: security CLI returns null (no keychain entry) → null0 ms
  • ✓buildCredSources (production wiring) › wires the real platform, env, and default configDir1 ms
  • ✓buildCredSources (production wiring) › honors CLAUDE_CONFIG_DIR when set0 ms
  • ✓buildCredSources (production wiring) › passes the security + file readers as UN-invoked function references (lazy thunks)0 ms
  • ✓parseScopedLimits › keeps only model-scoped entries (drops session / weekly_all)1 ms
  • ✓parseScopedLimits › sorts worst-first: active ahead of inactive, then by descending percent1 ms
  • ✓parseScopedLimits › inactive limits sort by descending percent0 ms
  • ✓parseScopedLimits › falls back to kind when the model has no display_name0 ms
  • ✓parseScopedLimits › skips entries without a numeric percent0 ms
  • ✓parseScopedLimits › returns [] for non-array / missing input0 ms
  • ✓fileCacheExpired — TTL slack › expires a cache that is a fetch-latency hair under the nominal TTL0 ms
  • ✓fileCacheExpired — TTL slack › expires at the nominal TTL and beyond0 ms
  • ✓fileCacheExpired — TTL slack › still holds a genuinely recent cache — the cross-session 429 dedupe survives0 ms
  • ✓fileCacheExpired — TTL slack › treats a future or unusable stamp as expired, never as the freshest cache0 ms
  • ✓fileCacheExpired — TTL slack › slack stays well inside the poll interval0 ms
  • ✓UsageFetchResult observation timestamps › stamps the successful network response once, then preserves it on file-cache hits55 ms
  • ✓UsageFetchResult observation timestamps › preserves the cache observation time across a module restart73 ms
  • ✓UsageFetchResult observation timestamps › returns the original time with stale data when the next network request fails24 ms
bridge/src/__tests__/usage-event.test.ts39/39
  • ✓buildUsageEvent subscription quota scoping › omits Anthropic quota when the model is not yet known5 ms
  • ✓buildUsageEvent subscription quota scoping › omits Anthropic 5h/7d quota for GLM/API-backed models1 ms
  • ✓buildUsageEvent subscription quota scoping › keeps Anthropic 5h/7d quota on the daemon hub even with a non-Claude aggregate model0 ms
  • ✓buildUsageEvent subscription quota scoping › keeps Anthropic 5h/7d quota for Claude model aliases0 ms
  • ✓buildUsageEvent scoped limits › forwards scopedLimits for a subscription Claude model1 ms
  • ✓buildUsageEvent scoped limits › omits scopedLimits for an API/GLM-backed model even when present0 ms
  • ✓buildUsageEvent scoped limits › omits scopedLimits when the scoped array is empty (no phantom key)0 ms
  • ✓buildUsageEvent staleness contract › flags usageStale when no quota numbers ride the frame (never fetched)0 ms
  • ✓buildUsageEvent staleness contract › does not flag usageStale when fresh quota numbers are present0 ms
  • ✓buildUsageEvent staleness contract › always puts usageStale on the wire, never omits it0 ms
  • ✓buildUsageEvent staleness contract › retires cached quota on a stale frame1 ms
  • ✓buildUsageEvent staleness contract › does not force usageStale when the cost-based API-billing percent is present0 ms
  • ✓buildUsageEvent Codex window normalization › retires reserve for recovered or ended windows (19, expired=false)1 ms
  • ✓buildUsageEvent Codex window normalization › retires reserve for recovered or ended windows (100, expired=false)0 ms
  • ✓buildUsageEvent Codex window normalization › retires reserve for recovered or ended windows (100, expired=true)0 ms
  • ✓buildUsageEvent Codex window normalization › marks an expired window stale and drops its resetsAt (no misleading "now")0 ms
  • ✓buildUsageEvent Codex window normalization › leaves a live window untouched0 ms
  • ✓buildUsageEvent Codex window normalization › forwards capturedAt so consumers can age the reading themselves0 ms
  • ✓buildUsageEvent Codex window normalization › does NOT set `stale` on a merely-old snapshot of a live window1 ms
  • ✓buildUsageEvent Codex window normalization › keeps capturedAt through the credits-only synthetic window0 ms
  • ✓buildUsageEvent Codex window normalization › treats each window independently (5h expired, 7d live)1 ms
  • ✓buildUsageEvent Codex window normalization › routes a weekly window arriving in Codex's primary slot to the secondary (7D) wire slot0 ms
  • ✓buildUsageEvent Codex window normalization › maps exhausted credit-based plan (null windows) to a 100% primary gauge0 ms
  • ✓buildUsageEvent Codex window normalization › maps an unlimited credit plan to a 0% primary gauge0 ms
  • ✓buildUsageEvent Codex window normalization › leaves a partial credit balance absent (no honest percentage)0 ms
  • ✓mergeRelayedSessionUsage › keeps the relay session counters1 ms
  • ✓mergeRelayedSessionUsage › keeps the daemon account half authoritative — a quota-less relay cannot blank the gauge1 ms
  • ✓mergeRelayedSessionUsage › leaves the daemon value in place for a session field the relay omits0 ms
  • ✓mergeRelayedSessionUsage › does not mutate either input0 ms
  • ✓buildUsageEvent Codex plan reconciliation › retires expired Luna metadata on the common wire for WiFi and serial clients1 ms
  • ✓buildUsageEvent Codex plan reconciliation › voids a snapshot minted under a plan the account no longer holds0 ms
  • ✓buildUsageEvent Codex plan reconciliation › keeps a snapshot whose plan still matches the account0 ms
  • ✓buildUsageEvent Codex plan reconciliation › keeps a genuine free-tier snapshot — free is a plan, not a synonym for void0 ms
  • ✓buildUsageEvent Codex plan reconciliation › keeps the snapshot when either side reports no plan (absence is no information)0 ms
  • ✓buildUsageEvent Codex plan reconciliation › emits the account tier even with no rollout at all, so a client can RETRACT0 ms
  • ✓buildUsageEvent Codex plan reconciliation › stays absent for a user with no Codex account at all0 ms
  • ✓buildUsageEvent Codex plan reconciliation › still names the plan in the subscriptions footer after voiding0 ms
  • ✓subscription replacement snapshots › does not treat session billing or windowless cache as a current subscription0 ms
  • ✓subscription replacement snapshots › removes only Claude on failure and restores it on a fresh reading0 ms
bridge/src/__tests__/usage-relay-fallback.test.ts15/15
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › no siblings → uses the direct API4 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › siblings exist but the relay yields nothing → falls back to the direct API25 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › siblings exist but only serve null usage → falls back to the direct API38 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › sibling serves fresh usage → relay wins, direct API not called (429 prevention preserved)7 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › stale sibling data (>5 min old) is ignored → falls back to the direct API7 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › rejects an untrustworthy HTTP timestamp (undefined)7 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › rejects an untrustworthy HTTP timestamp (null)6 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › rejects an untrustworthy HTTP timestamp (0)6 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › rejects an untrustworthy HTTP timestamp (-1)5 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › rejects an untrustworthy HTTP timestamp (1800000000000)5 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › rejects an untrustworthy HTTP timestamp (NaN)6 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › rejects a future HTTP timestamp5 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › revalidates an unstamped legacy WS payload through the direct API12 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › keeps legacy WS usage stale when direct API unavailable6 ms
  • ✓fetchUsageRelayed — direct-API fallback (regression: fa1d98c9) › keeps legacy WS usage stale when direct API throws7 ms
bridge/src/__tests__/usage-relay.test.ts14/14
  • ✓Usage relay — HTTP (Tier 1) › fetches usage from sibling GET /usage41 ms
  • ✓Usage relay — HTTP (Tier 1) › returns null usage when sibling has no data7 ms
  • ✓Usage relay — HTTP (Tier 1) › rejects stale data (>5 min old)3 ms
  • ✓Usage relay — WebSocket (Tier 2) › receives usage_update from sibling WS on connect260 ms
  • ✓Usage relay — WebSocket (Tier 2) › does not send usage_update when sibling has no data253 ms
  • ✓Usage relay — scoped limits round-trip › preserves scopedLimits (active + severity) over the sibling WS relay255 ms
  • ✓Usage relay — scoped limits round-trip › carries scopedLimits through the HTTP /usage relay tier4 ms
  • ✓HookServer GET /usage (relay source) › returns cached usage via onApiUsage getter8 ms
  • ✓HookServer GET /usage (relay source) › returns fresh usage after update5 ms
  • ✓429 prevention — relay-first strategy › sibling with data prevents direct API call3 ms
  • ✓429 prevention — relay-first strategy › multiple siblings — first with data wins6 ms
  • ✓ApiUsageData shape › has all required fields1 ms
  • ✓ApiUsageData shape › serializes to valid JSON and back0 ms
  • ✓ApiUsageData shape › handles null optional fields0 ms
bridge/src/__tests__/zai-usage.test.ts16/16
  • ✓zaiCacheExpired (TTL/slack pair) › expires at TTL minus slack, so a 60s poll dividing the 120s TTL cannot double it167 ms
  • ✓fetchZaiQuota › answers null data with no key configured anywhere33 ms
  • ✓fetchZaiQuota › maps the Max-plan standard schema onto wire windows and caches the reading85 ms
  • ✓fetchZaiQuota › treats an HTTP-200 error envelope as a failure and serves the cache as not-fresh49 ms
  • ✓fetchZaiQuota › reports a pay-as-you-go key as an explicit windowless block, never as gauges20 ms
  • ✓fetchZaiQuota › does not reuse another account cache or backoff when the key changes22 ms
  • ✓fetchZaiQuota › retires cached plan windows immediately for a pay-as-you-go replacement21 ms
  • ✓fetchZaiQuota › discards a response whose credential was replaced in flight23 ms
  • ✓fetchZaiQuota › reports HTTP-200 credential rejection, retains it during backoff, and clears it after replacement27 ms
  • ✓fetchZaiQuota › does not label transport failure as credential rejection28 ms
  • ✓fetchZaiQuota › discovers the key from the Claude Code settings hint only when the base URL is z.ai18 ms
  • ✓fetchZaiQuota › ignores the hint when Claude Code points elsewhere18 ms
  • ✓fetchZaiQuota › never writes the key into a log line31 ms
  • ✓buildUsageEvent z.ai block › normalizes windows (ended window → stale, reset cleared) and keeps plan axes14 ms
  • ✓buildUsageEvent z.ai block › adds the GLM Coding Plan row with the tier when windows are live0 ms
  • ✓buildUsageEvent z.ai block › omits the block entirely when the provider is not configured0 ms
shared/src/__tests__/claude-statusline-sync.test.ts3/3
  • ✓generated Claude status-line rule mirror in sync › apple/AgentDeck/Daemon/Core/ClaudeStatuslineRules.generated.swift matches the SSOT3 ms
  • ✓generated Claude status-line rule mirror in sync › emitter embeds the SSOT constants1 ms
  • ✓generated Claude status-line rule mirror in sync › the Swift suite replays the shared vector file (grep the test wiring)0 ms
shared/src/__tests__/claude-statusline.test.ts74/74
  • ✓claude status-line relay rules (shared vectors) › has vectors in every section2 ms
  • ✓claude status-line relay rules (shared vectors) › parse › documented example: both windows, seconds epoch1 ms
  • ✓claude status-line relay rules (shared vectors) › parse › five-hour window alone (seven-day dropped after its reset passed)0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › resets_at already in milliseconds is not multiplied again0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › window without resets_at keeps its percent and no reset0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › percent above 100 is clamped, not refused0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › no rate_limits at all (API-key session or before the first response)0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › only a gateway spend limit is not a subscription window0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › a string percentage is not a number0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › a boolean percentage is not a number0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › a negative percentage is refused while its sibling window survives0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › an empty model id and empty session id read as unknown0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › valid response counters include zero0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › invalid response counters remain unknown0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › a finite reset beyond the Date range keeps the quota without throwing0 ms
  • ✓claude status-line relay rules (shared vectors) › parse › an array payload is not a document0 ms
  • ✓claude status-line relay rules (shared vectors) › age › one second old is fresh0 ms
  • ✓claude status-line relay rules (shared vectors) › age › exactly at the fresh bound is fresh0 ms
  • ✓claude status-line relay rules (shared vectors) › age › one ms past the bound is aged0 ms
  • ✓claude status-line relay rules (shared vectors) › age › a stamp from the future is fresh (same-machine clock skew)0 ms
  • ✓claude status-line relay rules (shared vectors) › age › no stamp is unknown0 ms
  • ✓claude status-line relay rules (shared vectors) › age › a zero stamp is unknown0 ms
  • ✓claude status-line relay rules (shared vectors) › age › fresh bound is the exported constant0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth poll decision › no status line yet: poll as before0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth poll decision › aged status line: poll resumes0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth poll decision › fresh status line, no OAuth baseline yet: one poll to learn the caps0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth poll decision › fresh status line, account without scoped caps, OAuth one minute old: wait0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth poll decision › fresh status line, no scoped caps, one ms before 10 min: wait0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth poll decision › fresh status line, no scoped caps, exactly 10 min: revalidate account0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth poll decision › fresh status line, no scoped caps, 59 min: revalidate account0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth poll decision › fresh status line, scoped caps, OAuth 5 min old: wait0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth poll decision › fresh status line, scoped caps, OAuth exactly 10 min old: slow refresh0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth poll decision › fresh status line, scoped caps, OAuth 59 min old: slow refresh0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth carry-over › OAuth 29 min old still carries scoped caps0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth carry-over › OAuth exactly 30 min old still carries0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth carry-over › OAuth 30 min and 1 ms old drops them0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth carry-over › never fetched carries nothing0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth carry-over › a zero stamp carries nothing0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth observation ordering › older sibling cannot rewind a newer OAuth correction0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth observation ordering › older sibling cannot rewind statusline0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth observation ordering › newer account reading replaces statusline0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth observation ordering › failed OAuth preserves token-free statusline0 ms
  • ✓claude status-line relay rules (shared vectors) › OAuth observation ordering › failed OAuth marks an OAuth reading stale0 ms
  • ✓claude status-line relay rules (shared vectors) › changed › first reading always changes0 ms
  • ✓claude status-line relay rules (shared vectors) › changed › identical reading does not0 ms
  • ✓claude status-line relay rules (shared vectors) › changed › a move under the epsilon does not0 ms
  • ✓claude status-line relay rules (shared vectors) › changed › a move at the epsilon does0 ms
  • ✓claude status-line relay rules (shared vectors) › changed › a new reset time does (the window rolled over)0 ms
  • ✓claude status-line relay rules (shared vectors) › changed › a window appearing does0 ms
  • ✓claude status-line relay rules (shared vectors) › changed › a window disappearing does0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › the first subscription reading is accepted0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › idle timer and receipt time advancing do not renew identical response freshness0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › an older session replay is rejected even after another session takes the display0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › API progress renews observation even when rounded quota is unchanged0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › token progress renews observation without a quota change0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › an out of order elapsed-session document cannot renew or replace quota0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › resume can reset API counters and compaction can shrink context while elapsed time advances0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › same reset instant with different ISO formatting still rejects a quota decrease1 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › an older reset cannot replace another session's fresh window even with higher usage0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › remembered idle session dropping its expired window cannot erase a newer live window0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › a session may retire its own expired window and keep a weekly zero0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › same-window retirement recognizes equivalent reset offsets0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › an aged high water mark no longer blocks a fresh lower account reading0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › a new reset window can start below the previous window's usage0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › a real quota change below repaint epsilon still renews freshness0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › an OAuth reading's microsecond reset is the status line's whole-second window (live usage cache, 2026-10-18)0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › a status-line percent within one point below OAuth's whole percent is the same observation0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › a status-line percent more than one point below OAuth for the same window is still older0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › an older window stays rejected across carriers0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › a sibling relay of an OAuth reading compares at OAuth's precision0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › a session may retire its own window while OAuth holds the same window at microsecond precision0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › an OAuth fraction below the whole second is still the status line's window (live usage cache, 03:46 KST)0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › below the second, a status line more than one point lower for the same window is still older0 ms
  • ✓claude status-line relay rules (shared vectors) › acceptance and session ordering › between status-line readings the order stays exact0 ms
shared/src/__tests__/codex-freshness-rules.test.ts11/11
  • ✓codex freshness threshold invariants › is an absolute duration, not a fraction of any window2 ms
  • ✓codex freshness threshold invariants › is a whole number of minutes, so every platform can print it0 ms
  • ✓generated mirrors in sync › apple/AgentDeck/Model/CodexFreshnessRules.generated.swift matches the SSOT0 ms
  • ✓generated mirrors in sync › android/app/src/main/kotlin/dev/agentdeck/util/CodexFreshnessRules.generated.kt matches the SSOT0 ms
  • ✓generated mirrors in sync › emits the threshold in each platform's own unit0 ms
  • ✓generated mirrors in sync › mirrors the plan-reconciliation rule to Swift (the other PRODUCER of the wire snapshot)0 ms
  • ✓generated mirrors in sync › mirrors the plan-aware RANKING to Swift, not just the void rule0 ms
  • ✓generated mirrors in sync › emits every plan display name from the SSOT table to BOTH mirrors2 ms
  • ✓generated mirrors in sync › emits the same three footnote states the TS SSOT resolves0 ms
  • ✓TS side still produces what the mirrors promise › names a tier the build predates without dropping it or showing it raw1 ms
  • ✓TS side still produces what the mirrors promise › threshold boundary matches the emitted constant2 ms
shared/src/__tests__/usage-presentation.test.ts11/11
  • ✓shared usage display policy › keeps regular windows until exhausted, then restores them after reset3 ms
  • ✓shared usage display policy › expires reserve and regular windows independently0 ms
  • ✓shared usage display policy › attributes reported subscription metadata without inventing a provider0 ms
  • ✓shared usage display policy › prints the plan tier beside the brand mark, never the provider twice0 ms
  • ✓shared usage display policy › generates the firmware predicate and provider table from the actual source1 ms
  • ✓shared usage display policy › Codex credits after an exhausted plan window › formats the balance from the shared vectors1 ms
  • ✓shared usage display policy › Codex credits after an exhausted plan window › gates on an exhausted window and a positive balance1 ms
  • ✓shared usage display policy › Codex credits after an exhausted plan window › reads the wire balance, treating hasCredits:false as zero1 ms
  • ✓shared usage display policy › Codex credits after an exhausted plan window › shows credits only while a live window is exhausted and a balance remains1 ms
  • ✓shared usage display policy › Codex credits after an exhausted plan window › reports the latest exhausted reset as the end of credit spending0 ms
  • ✓shared usage display policy › Codex credits after an exhausted plan window › ignores an unparseable reset instead of letting it win the sort0 ms
shared/src/__tests__/usage-severity.test.ts16/16
  • ✓quota severity across dashboards › classifies 0% normal consumed as undefined3 ms
  • ✓quota severity across dashboards › classifies 69.9% normal consumed as undefined0 ms
  • ✓quota severity across dashboards › classifies 70% warning consumed as undefined0 ms
  • ✓quota severity across dashboards › classifies 82% warning consumed as undefined0 ms
  • ✓quota severity across dashboards › classifies 89.9% warning consumed as undefined0 ms
  • ✓quota severity across dashboards › classifies 90% critical consumed as undefined0 ms
  • ✓quota severity across dashboards › classifies 100% critical consumed as undefined0 ms
  • ✓quota severity across dashboards › classifies 101% critical consumed as undefined0 ms
  • ✓quota severity across dashboards › does not portray unknown undefined as healthy zero1 ms
  • ✓quota severity across dashboards › does not portray unknown null as healthy zero0 ms
  • ✓quota severity across dashboards › does not portray unknown -1 as healthy zero0 ms
  • ✓quota severity across dashboards › does not portray unknown NaN as healthy zero0 ms
  • ✓quota severity across dashboards › does not portray unknown Infinity as healthy zero0 ms
  • ✓quota severity across dashboards › keeps remaining and consumed readings equivalent, with freshness first0 ms
  • ✓quota severity across dashboards › keeps small percentage text legible on dark screens and paper1 ms
  • ✓quota severity across dashboards › generates every native palette and boundary from the source1 ms
shared/src/__tests__/zai-pair-view.test.ts3/3
  • ✓z.ai pair view › cycles both → first → second → both2 ms
  • ✓z.ai pair view › never invents a missing window1 ms
  • ✓z.ai pair view › accepts only known saved modes0 ms
shared/src/__tests__/zai-quota.test.ts20/20
  • ✓zai quota vectors (shared with the Swift suite) › standard schema, Max plan — live capture 2026-09-19: TOKENS_LIMIT is the 5h credits window (percentage only), TIME_LIMIT the monthly MCP window with full numbers5 ms
  • ✓zai quota vectors (shared with the Swift suite) › credit schema, lite plan — CREDIT_LIMIT items told apart by unit (3=hours×5 session, 6=weeks×1 weekly); percent derived from currentValue/total when percentage is absent0 ms
  • ✓zai quota vectors (shared with the Swift suite) › CREDIT_LIMIT capacity may ride `usage` instead of `total` — currentValue stays the consumed amount0 ms
  • ✓zai quota vectors (shared with the Swift suite) › credit item with an unrecognized unit is skipped as a window but still marks the response's family0 ms
  • ✓zai quota vectors (shared with the Swift suite) › 5h window with no nextResetTime — absent is unknown, never a fabricated reset0 ms
  • ✓zai quota vectors (shared with the Swift suite) › weekly preferred over MCP for the secondary slot when a schema reports both0 ms
  • ✓zai quota vectors (shared with the Swift suite) › percentage above 100 clamps — the wire never carries >100%0 ms
  • ✓zai quota vectors (shared with the Swift suite) › unclassifiable items (unknown type, non-object) carry nothing; a plan level alone still rides0 ms
  • ✓zai quota vectors (shared with the Swift suite) › empty item list read nothing — plan rides, family does not0 ms
  • ✓zai quota vectors (shared with the Swift suite) › absent limits and absent level — no information at all0 ms
  • ✓zai pay-as-you-go key detection › community PAYG marker prefix0 ms
  • ✓zai pay-as-you-go key detection › payg anywhere in the key0 ms
  • ✓zai pay-as-you-go key detection › case-insensitive0 ms
  • ✓zai pay-as-you-go key detection › a normal coding-plan key0 ms
  • ✓zai pay-as-you-go key detection › empty is not a PAYG claim — it is no key at all0 ms
  • ✓zai pay-as-you-go key detection › null is no key0 ms
  • ✓zai pay-as-you-go key detection › an unknown tier still displays, never drops0 ms
  • ✓generated mirrors in sync › apple/AgentDeck/Model/ZaiQuotaRules.generated.swift matches the SSOT1 ms
  • ✓generated mirrors in sync › android/app/src/main/kotlin/dev/agentdeck/util/ZaiQuotaRules.generated.kt matches the SSOT0 ms
  • ✓generated mirrors in sync › carries the window constants so a unit slip cannot hide1 ms

36 files

Partial verification

Daemon lifecycle & CLI

Does exactly one daemon own the port, start, upgrade, restart and hand over cleanly on every OS?

Passed
556
Failed
0
Skipped
13
Time
14.8 s
36 test files
bridge/src/__tests__/agent-cli-diagnostics.test.ts4/4
  • ✓agent CLI compatibility diagnostics › reports installed versions against package-owned compatibility ranges4 ms
  • ✓agent CLI compatibility diagnostics › reports a missing binary without exposing command output2 ms
  • ✓agent CLI compatibility diagnostics › formats an actionable daemon-first report1 ms
  • ✓does not confuse written configuration with active observation1 ms
bridge/src/__tests__/cli.test.ts72/72
  • ✓agentdeck CLI parser › registers a weather command with set/show/clear subcommands3 ms
  • ✓agentdeck CLI parser › reports a misspelled top-level command as unknown and suggests the closest command3 ms
  • ✓agentdeck CLI parser › marks every managed per-session command as legacy compatibility in --help metadata0 ms
  • ✓managed PTY compatibility contract › points agentdeck claude users to daemon-first direct launch1 ms
  • ✓managed PTY compatibility contract › points agentdeck codex users to daemon-first direct launch0 ms
  • ✓managed PTY compatibility contract › points agentdeck opencode users to daemon-first direct launch0 ms
  • ✓managed PTY compatibility contract › points monitor users to all normal agent entry points0 ms
  • ✓esp32-ota target resolution › maps short aliases to their canonical device_info.board string1 ms
  • ✓esp32-ota target resolution › leaves a canonical board string unchanged0 ms
  • ✓esp32-ota target resolution › passes an unknown target (e.g. a raw IP) through untouched for IP targeting0 ms
  • ✓esp32-ota target resolution › every alias resolves to a board that is itself a canonical entry (self-consistent SSOT)1 ms
  • ✓esp32-ota target resolution › drops the retired esp32_c6_147 board from the OTA target set0 ms
  • ✓esp32-ota manifest identity resolution › selects one exact product + board + channel tuple1 ms
  • ✓esp32-ota manifest identity resolution › fails instead of guessing when a board has no registered identity1 ms
  • ✓esp32-ota sandbox retry payload › preserves stage and the exact Surface namespace on inline retry0 ms
  • ✓esp32-ota sandbox retry payload › keeps the live retry a live OTA request0 ms
  • ✓tokenizeArgString › splits bare flags on whitespace0 ms
  • ✓tokenizeArgString › collapses runs of whitespace and trims0 ms
  • ✓tokenizeArgString › keeps a quoted value with spaces as one token0 ms
  • ✓tokenizeArgString › returns [] for empty or undefined0 ms
  • ✓applyGlobalEnvArgs › splices env tokens immediately after the session subcommand0 ms
  • ✓applyGlobalEnvArgs › inserts env tokens before user-typed flags (scalar options: retyping wins on last-write)0 ms
  • ✓applyGlobalEnvArgs › applies to monitor as well0 ms
  • ✓applyGlobalEnvArgs › is a no-op for non-session commands0 ms
  • ✓applyGlobalEnvArgs › is a no-op for a non-session command whose positional VALUE is a session word0 ms
  • ✓applyGlobalEnvArgs › is a no-op when the var is unset or empty0 ms
  • ✓applyGlobalEnvArgs › does not match a session word that appears as a flag value0 ms
  • ✓applyGlobalEnvArgs › skips the splice entirely when the user typed --no-env-args0 ms
  • ✓applyGlobalEnvArgs › strips an env-smuggled --no-env-args instead of letting it half-disable the layers0 ms
  • ✓weaveAgentCommand › appends the per-agent var to the default command0 ms
  • ✓weaveAgentCommand › appends onto an explicit -c command without replacing it0 ms
  • ✓weaveAgentCommand › uses the agent-specific var and ignores others0 ms
  • ✓weaveAgentCommand › returns the command unchanged when the var is unset or blank0 ms
  • ✓weaveAgentCommand › leaves the user's shell quoting and metacharacters untouched0 ms
  • ✓weaveAgentCommand › does not re-quote a Windows-style command0 ms
  • ✓weaveAgentCommand › appends a quoted env value verbatim rather than tokenizing it0 ms
  • ✓resolveAgentCommand (per-agent half of the --no-env-args hatch) › weaves when env args are enabled0 ms
  • ✓resolveAgentCommand (per-agent half of the --no-env-args hatch) › returns the command untouched when the hatch disabled env args0 ms
  • ✓env defaults through real option parsing › an env-provided boolean flag sticks as the default1 ms
  • ✓env defaults through real option parsing › --no-env-args genuinely overrides an env boolean per-invocation0 ms
  • ✓env defaults through real option parsing › a retyped scalar option wins over the env default (last-write through parseArg)0 ms
  • ✓daemon autostart posture › --enterprise is the admin spelling of the loopback posture0 ms
  • ✓daemon autostart posture › does not fold --local into --enterprise1 ms
  • ✓daemon autostart posture › a plain install carries no posture flags0 ms
  • ✓daemon autostart posture › the LaunchAgent argv carries the posture, one <string> per flag1 ms
  • ✓daemon autostart posture › the LaunchAgent launches absolute node + cli.js paths, never a PATH lookup1 ms
  • ✓daemon autostart posture › a plain LaunchAgent is byte-identical to the pre-posture one0 ms
  • ✓worktree checkout guard (autostart/plugin installs) › classifies a worktree path by path segment0 ms
  • ✓worktree checkout guard (autostart/plugin installs) › accepts the main checkout and npm-global install paths0 ms
  • ✓worktree checkout guard (autostart/plugin installs) › matches only the whole path segment, not a substring of another name0 ms
  • ✓worktree checkout guard (autostart/plugin installs) › classifies Windows-style paths on any platform0 ms
  • ✓claude action wiring (parseAsync end-to-end) › prints the compatibility notice before starting the still-functional bridge4 ms
  • ✓claude action wiring (parseAsync end-to-end) › without the hatch: env flags parse in and the agent command is woven2 ms
  • ✓claude action wiring (parseAsync end-to-end) › --no-env-args disables BOTH layers for the invocation1 ms
  • ✓claude action wiring (parseAsync end-to-end) › a session bridge drives no device but ADB, even without --local1 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › reports an incumbent Swift daemon rather than false Node readiness603 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › waits through Swift health until Node takes ownership301 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › finds Node on a fallback while Swift still answers on the preferred port0 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › returns no-daemon when nothing ever answers602 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › does NOT accept the daemon it was trying to replace602 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › accepts the spawned pid on the preferred port1 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › accepts a supervisor respawn on the same build and flags it as not ours1 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › survives the child exiting deliberately before the supervisor binds600 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › refuses a respawn serving a DIFFERENT build than the one on disk602 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › does not call an unknown build a mismatch1 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › ignores an answer that is explicitly not a daemon601 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › keeps waiting past the floor while the child is still alive601 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › gives up once the child has EXITED without anything answering300 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › finds the daemon on a fallback port and reports THAT port1 ms
  • ✓waitForRestartedDaemon — `daemon restart` reports what it measured › waits rather than giving up on the first miss601 ms
  • ✓observed run environment arguments › inserts defaults before typed run options0 ms
  • ✓observed run environment arguments › keeps the typed both-layer escape hatch for run0 ms
bridge/src/__tests__/connection-diagnostics.test.ts10/10
  • ✓local connection diagnostics › probes real health and ping/pong without copying private frames or modifying the registry34 ms
  • ✓local connection diagnostics › keeps an EPERM PID inconclusive and still probes the endpoint6 ms
  • ✓local connection diagnostics › skips dead entries without deleting them and uses the next usable registry5 ms
  • ✓local connection diagnostics › reports missing, unreadable and invalid registries without probing an assumed default port2 ms
  • ✓local connection diagnostics › rejects a reused PID even when health and WebSocket work3 ms
  • ✓local connection diagnostics › supports separate HTTP and WS ports and an explicit target without registry identity claims7 ms
  • ✓local connection diagnostics › distinguishes HTTP reachability from a rejected WebSocket and strips rejection text3 ms
  • ✓local connection diagnostics › bounds an endless HTTP body and a WebSocket which never pongs103 ms
  • ✓local connection diagnostics › rejects malformed or non-daemon health and never echoes its body5 ms
  • ✓local connection diagnostics › caps a large HTTP response instead of retaining a full diagnostic dump8 ms
bridge/src/__tests__/daemon-build-identity.test.ts17/17
  • ✓findStaleSources › reports nothing when every build is newer than its source9 ms
  • ✓findStaleSources › names the package and the newest unbuilt file4 ms
  • ✓findStaleSources › compares per package, not against one global build time3 ms
  • ✓findStaleSources › treats a package that has never been built as stale1 ms
  • ✓findStaleSources › ignores test sources — they compile to nothing the daemon loads2 ms
  • ✓findStaleSources › says nothing about a package it cannot see2 ms
  • ✓findSourceCheckout › finds the workspace root from a package inside it1 ms
  • ✓findSourceCheckout › returns null for an installed package (a dist with no src beside it)2 ms
  • ✓distBuildIdentity › answers the same digest every time within a process49 ms
  • ✓distBuildIdentity › recomputes on demand for the before/after comparison around a build61 ms
  • ✓distBuildIdentity › is a short hex digest over real build output1 ms
  • ✓installed runtime build identity › hashes hoisted shared/hooks without executing them and retains the startup snapshot84 ms
  • ✓installed runtime build identity › hashes the resolved nested dependency rather than an unused hoisted copy66 ms
  • ✓installed runtime build identity › preserves the digest when identical runtime packages move from hoisted to nested layout120 ms
  • ✓installed runtime build identity › matches the source checkout digest for byte-equivalent installed package dist trees278 ms
  • ✓buildPackages › does nothing when nothing is stale1 ms
  • ✓buildPackages › reports a missing package manager as a reason, not as a failed build5 ms
bridge/src/__tests__/daemon-checkpoint-handover.test.ts4/4
  • ✓treats a refused/unknown owner as a refusal, never legacy endpoint absence35 ms
  • ✓commits a prepared lease only after its exact checkpoint is durably staged27 ms
  • ✓leaves the current owner uncommitted when local checkpoint persistence is unavailable5 ms
  • ✓refuses a prepared peer without configuration support before commit4 ms
bridge/src/__tests__/daemon-checkpoint.test.ts5/5
  • ✓local owner checkpoints › consumes the common receipt and checkpoint vectors20 ms
  • ✓local owner checkpoints › continues aggregate state and a response-loss receipt, preserving a different inactive profile5 ms
  • ✓local owner checkpoints › restarts an absent owner on a new authority branch without losing its receipts4 ms
  • ✓local owner checkpoints › rejects corrupt, oversize, lossy and unsafe counters without overwriting evidence5 ms
  • ✓local owner checkpoints › fences old generations and sequences and retains every acknowledged receipt across restart4 ms
bridge/src/__tests__/daemon-cli-scope.test.ts28/28
  • ✓CLI lifecycle supervisor data-scope ownership › preserves readable default service routing without a live daemon and regardless of fallback port6 ms
  • ✓CLI lifecycle supervisor data-scope ownership › isolated data never controls a global launchd service1 ms
  • ✓CLI lifecycle supervisor data-scope ownership › isolated data never controls a global systemd service0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › isolated data never controls a global schtasks service0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › permits an explicitly matching configured systemd data scope1 ms
  • ✓CLI lifecycle supervisor data-scope ownership › systemd inactive or ambiguous environment never authorizes a custom scope: #Environment="AGENTDECK_DATA_DIR=/qa"0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › systemd inactive or ambiguous environment never authorizes a custom scope: ;Environment="AGENTDECK_DATA_DIR=/qa"0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › systemd inactive or ambiguous environment never authorizes a custom scope: Environment="AGENTDECK_DATA_DIR=/qa" Environment="AGENTDECK_DATA_DIR=/production"0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › systemd inactive or ambiguous environment never authorizes a custom scope: Environment="AGENTDECK_DATA_DIR=/qa" Environment=0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › systemd inactive or ambiguous environment never authorizes a custom scope: Environment="AGENTDECK_DATA_DIR=/qa" EnvironmentFile=/production.env0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › systemd inactive or ambiguous environment never authorizes a custom scope: Environment="AGENTDECK_DATA_DIR=/qa" UnsetEnvironment=AGENTDECK_DATA_DIR0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › systemd inactive or ambiguous environment never authorizes a custom scope: [Install] Environment="AGENTDECK_DATA_DIR=/qa"0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › launchd uses the active environment dictionary and ignores harmless XML comments1 ms
  • ✓CLI lifecycle supervisor data-scope ownership › launchd misplaced or ambiguous override is unknown: <key>AGENTDECK_DATA_DIR</key><string>/qa</string>0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › launchd misplaced or ambiguous override is unknown: <key>EnvironmentVariables</key><dict><key>AGENTDECK_DATA_DIR</key><string>/qa</string><key>AGENTDECK_DATA_DIR</key><string>/production</string></dict>0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › launchd misplaced or ambiguous override is unknown: <key>EnvironmentVariables</key><dict><key>AGENTDECK_DATA_DIR</key><string>/qa</string></dict><key>EnvironmentVariables</key><dict><key>AGENTDECK_DATA_DIR</key><string>/production</string></dict>0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › launchd misplaced or ambiguous override is unknown: <key>EnvironmentVariables</key><dict><key>Nested</key><dict><key>AGENTDECK_DATA_DIR</key><string>/qa</string></dict></dict>0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › launchd misplaced or ambiguous override is unknown: <key>Unrelated</key><dict><key>EnvironmentVariables</key><dict><key>AGENTDECK_DATA_DIR</key><string>/qa</string></dict></dict>0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › launchd misplaced or ambiguous override is unknown: <!-- <key>EnvironmentVariables</key><dict><key>AGENTDECK_DATA_DIR</key><string>/qa</string></dict>0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › malformed readable unit is unknown ()0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › malformed readable unit is unknown (not a service)0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › malformed readable unit is unknown (<plist><key>PATH</key><string>/bin</string></plist>)0 ms
  • ✓CLI lifecycle supervisor data-scope ownership › a scheduled task cannot inherit a custom install-shell data directory1 ms
  • ✓CLI lifecycle supervisor data-scope ownership › refuses unknown configuration, conflicting supervisor stamps, unrelated pids and app-owned targets0 ms
  • ✓actual CLI stop call does not unload an unrelated installed unit › stops isolated target via HTTP without launchctl bootout, unload waits or global service controls12 ms
  • ✓actual CLI stop call does not unload an unrelated installed unit › default scope still stops its readable installed unit on a fallback port3 ms
  • ✓actual CLI stop call does not unload an unrelated installed unit › actual stop command resolves explicit environment port when its isolated registry is absent9 ms
  • ✓actual CLI stop call does not unload an unrelated installed unit › refuses a foreign-owned target before controlling even the default unit1 ms
bridge/src/__tests__/daemon-configuration.test.ts15/15
  • ✓minimized owner configuration › empty3 ms
  • ✓minimized owner configuration › unicode-and-slash1 ms
  • ✓minimized owner configuration › boolean brightness0 ms
  • ✓minimized owner configuration › duplicate devices0 ms
  • ✓minimized owner configuration › secret field refused0 ms
  • ✓minimized owner configuration › url refused0 ms
  • ✓minimized owner configuration › boolean weight0 ms
  • ✓minimized owner configuration › foreign id form0 ms
  • ✓minimized owner configuration › duplicate pins0 ms
  • ✓minimized owner configuration › fractional time0 ms
  • ✓minimized owner configuration › unknown root0 ms
  • ✓minimized owner configuration › invalid mode0 ms
  • ✓minimized owner configuration › out of range IP0 ms
  • ✓minimized owner configuration › adopts the active profile in both directions, preserving unrelated keys and clearing removed entries23 ms
  • ✓minimized owner configuration › refuses corrupt existing settings without overwriting them2 ms
bridge/src/__tests__/daemon-launcher.test.ts2/2
  • ✓detached daemon launcher › rejects an asynchronous OS spawn failure instead of reporting success7 ms
  • ✓detached daemon launcher › waits for successful creation before releasing the child30 ms
bridge/src/__tests__/daemon-lifecycle.test.ts21/21
  • ✓daemon.json lifecycle › writeDaemonInfo creates daemon.json with correct content7 ms
  • ✓daemon.json lifecycle › readDaemonInfo returns info when PID is alive2 ms
  • ✓daemon.json lifecycle › readDaemonInfo returns null and removes file when PID is dead1 ms
  • ✓daemon.json lifecycle › readDaemonInfo returns null when file does not exist1 ms
  • ✓daemon.json lifecycle › removeDaemonInfo deletes daemon.json1 ms
  • ✓daemon.json lifecycle › removeDaemonInfo is safe when file already gone2 ms
  • ✓daemon.json lifecycle › self-heals daemon.json after an external deletion2 ms
  • ✓daemon.json lifecycle › repairs a malformed daemon.json without rewriting a healthy record1 ms
  • ✓session registry with real files › register creates sessions.json3 ms
  • ✓session registry with real files › register replaces existing entry with same id2 ms
  • ✓session registry with real files › deregister removes session by id2 ms
  • ✓session registry with real files › listActive prunes dead PIDs2 ms
  • ✓session registry with real files › multiple sessions coexist2 ms
  • ✓session registry with real files › findExistingDaemon returns daemon session2 ms
  • ✓session registry with real files › findExistingDaemon returns null when no daemon1 ms
  • ✓findDaemonPort › returns port from daemon.json (priority 1)1 ms
  • ✓findDaemonPort › falls back to sessions.json daemon entry1 ms
  • ✓findDaemonPort › returns null when no daemon anywhere1 ms
  • ✓findDaemonPort › daemon.json takes precedence over sessions.json1 ms
  • ✓probeDaemonHealth › returns health JSON from running server44 ms
  • ✓probeDaemonHealth › returns null for closed port2 ms
bridge/src/__tests__/daemon-listen.test.ts9/9
  • ✓startup preferred-port reclaim › binds after a 58s silent macOS hold without a fallback or leaked listeners21 ms
  • ✓startup preferred-port reclaim › bounds a permanently silent conflict on darwin11 ms
  • ✓startup preferred-port reclaim › bounds a permanently silent conflict on linux3 ms
  • ✓startup preferred-port reclaim › bounds a permanently silent conflict on win322 ms
  • ✓startup preferred-port reclaim › stops retrying when a newly discovered peer requires concede1 ms
  • ✓startup preferred-port reclaim › stops retrying when a newly discovered peer requires fallback1 ms
  • ✓startup preferred-port reclaim › propagates a non-contention error without probing or retrying4 ms
  • ✓startup preferred-port reclaim › cleans up after a synchronous listen failure2 ms
  • ✓startup preferred-port reclaim › retains a real port after the incumbent socket closes, using the resolved bind address512 ms
bridge/src/__tests__/daemon-port.test.ts15/15
  • ✓daemon port — validation › accepts only integers inside the bindable range3 ms
  • ✓daemon port — validation › rejects text that parseInt would silently truncate1 ms
  • ✓daemon port — precedence › falls back to the documented default when nothing is set1 ms
  • ✓daemon port — precedence › orders flag › env › settings › default1 ms
  • ✓daemon port — precedence › reads a persisted port stored as a string (hand-edited settings.json)0 ms
  • ✓daemon port — precedence › ignores an unusable persisted port instead of refusing to start1 ms
  • ✓daemon port — precedence › ignores a malformed env override the same way0 ms
  • ✓daemon port — precedence › names every source0 ms
  • ✓daemon port — precedence › waits long enough to outlast the measured kernel port reservation0 ms
  • ✓daemon port — persistence round trip › persists, reads back, and clears4 ms
  • ✓daemon port — persistence round trip › preserves unrelated settings when writing1 ms
  • ✓daemon port — persistence round trip › writes over a malformed settings.json rather than refusing1 ms
  • ✓daemon port — persistence round trip › never records the port the daemon actually landed on4 ms
  • ✓port window exhaustion message › separates ports this install owns from ports it cannot see into1 ms
  • ✓port window exhaustion message › does not tell a user to stop sessions they do not have0 ms
bridge/src/__tests__/daemon-recovery.test.ts9/9
  • ○explicit local cold recovery › discovers one-time consent on a later ordinary Node launch but never from an explicit test profile
  • ✓explicit local cold recovery › recovers both directions while the other owner was absent, including removals and aggregates72 ms
  • ✓explicit local cold recovery › fences concurrent writers by commit revision rather than independent generations17 ms
  • ✓explicit local cold recovery › preserves divergent offline files, corrupt databases and unavailable folders41 ms
  • ✓explicit local cold recovery › retains offline edits if no other owner advanced the recovery head27 ms
  • ✓explicit local cold recovery › resumes a shared commit when the process died before updating its private cursor17 ms
  • ✓explicit local cold recovery › refuses a corrupt private cursor instead of treating it as first-time consent16 ms
  • ✓explicit local cold recovery › persists explicit location, can disconnect without deleting shared data, and strips unknown checkpoint fields229 ms
  • ✓preserves both conflict snapshots, refuses a stale preview, and applies each explicit choice once120 ms
  • ✓migrates a v1 head without resetting its content or consent23 ms
bridge/src/__tests__/daemon-relay-native.test.ts0/0
  • ○real mixed Node/Swift relay sockets › Swift worker publishes to Node hub, reconnects once without duplicates, and refuses unsupported commands
  • ○real mixed Node/Swift relay sockets › renders held questions as original choices and returns their selected index through the real Swift worker
  • ○real mixed Node/Swift relay sockets › Node worker publishes to Swift hub and receives same-socket controls; real native WS rejects missing/wrong token for a browser-origin peer
  • ○real mixed Node/Swift relay sockets › Swift refuses a wrong-version ack and tears down a hub that never acknowledges hello
  • ○real mixed Node/Swift relay sockets › flushes a native retirement receipt before disconnecting upgraded and HTTP stream sockets
  • ○real mixed Node/Swift relay sockets › fences old native approvals, delayed HTTP replies and WebSocket sends/commands across successive retirements
bridge/src/__tests__/daemon-relay.test.ts28/28
  • ✓selectRelayableRows › relays observed rows only — never managed, the Gateway row, or rows received from a relay4 ms
  • ✓selectRelayableRows › drops the per-second elapsedSec, so an unchanged roster diffs as unchanged2 ms
  • ✓sanitizeRelayedRows › forces the hub-local meaning of port and controlMode2 ms
  • ✓sanitizeRelayedRows › keeps a wrongly-typed field out of the hub roster instead of letting it throw there1 ms
  • ✓sanitizeRelayedRows › drops malformed, duplicate and managed rows and bounds the count2 ms
  • ✓acceptRelayedCommand (worker-side allow-list) › accepts observed steering for a session it is relaying1 ms
  • ✓acceptRelayedCommand (worker-side allow-list) › refuses everything else — the hub cannot drive the worker daemon itself1 ms
  • ✓acceptRelayedCommand (worker-side allow-list) › answers options only for observed Claude rows — elsewhere the daemon would fall through to the focused session0 ms
  • ✓routeRelayCommand (hub-side decision) › routes session-scoped commands for a relayed session, restoring a truncated id1 ms
  • ✓routeRelayCommand (hub-side decision) › routes a permission decision by the request id the relayed row carries0 ms
  • ✓routeRelayCommand (hub-side decision) › wraps a bare command for a focused relayed session, and leaves everything else to local routing0 ms
  • ✓RelayHub › a heartbeat carrying the same rows costs no roster broadcast3 ms
  • ✓RelayHub › never routes a session or a request this daemon shows itself, whatever a peer claims1 ms
  • ✓RelayHub › announces a silent worker’s rows as gone once, and again only after they came back1 ms
  • ✓RelayHub › refuses a hello from itself or from another protocol version1 ms
  • ✓RelayHub › serves a worker’s rows after hello, and drops them on close1 ms
  • ✓RelayHub › stops serving a silent worker after the row TTL — its sessions cannot be steered0 ms
  • ✓RelayHub › a reconnecting worker supersedes its previous socket1 ms
  • ✓RelayHub › routes a command down the socket of the worker that owns the session1 ms
  • ✓RelayHub › ignores relay frames on a socket that never said hello, and passes other frames through1 ms
  • ✓relay over real sockets (worker uplink ↔ hub WsServer) › publishes the worker’s observed rows over one outbound socket1 ms
  • ✓relay over real sockets (worker uplink ↔ hub WsServer) › carries a deck decision down to the worker, which executes only what it accepts51 ms
  • ✓relay over real sockets (worker uplink ↔ hub WsServer) › a row change reaches the hub without waiting for the heartbeat101 ms
  • ✓RelayUplink refusals › rejects an ack for a different protocol version54 ms
  • ✓RelayUplink refusals › discards a retired socket snapshot without delaying or replacing its reconnected roster2.1 s
  • ✓RelayUplink refusals › does not dial a hub that lacks the daemonRelay capability51 ms
  • ✓RelayUplink refusals › names a rejected token instead of redialing silently51 ms
  • ✓RelayUplink refusals › refuses a non-loopback hub without a pairing token51 ms
bridge/src/__tests__/daemon-socket-drain.test.ts2/2
  • ✓daemon socket handover › resets an open http peer and releases the listener37 ms
  • ✓daemon socket handover › resets an open upgrade peer and releases the listener2 ms
bridge/src/__tests__/daemon-supervisor.test.ts40/40
  • ○LaunchAgent executable contract › executes a non-executable checkout script through the selected Node runtime
  • ○LaunchAgent executable contract › round-trips XML-sensitive executable, log and PATH values without shell quoting
  • ✓stop plans — a stop that stays stopped › launchd boots the job OUT; `launchctl stop` is not a stop here4 ms
  • ✓stop plans — a stop that stays stopped › a job that was never loaded is a legitimate state, not a failure1 ms
  • ✓stop plans — a stop that stays stopped › systemd and Task Scheduler stop through their own verbs1 ms
  • ✓start plans › launchd bootstraps before it kickstarts1 ms
  • ✓start plans › systemd and Task Scheduler start through their own verbs1 ms
  • ✓unit posture — read from what the installers write › reads the posture back out of the real LaunchAgent plist1 ms
  • ✓unit posture — read from what the installers write › reads the posture back out of the real systemd unit (quoted ExecStart words)2 ms
  • ✓unit posture — read from what the installers write › reads the posture back out of the real scheduled-task XML (bare argv)1 ms
  • ✓unit posture — read from what the installers write › a longer flag that merely starts with the same letters is not a match0 ms
  • ✓unit posture — read from what the installers write › the posture list is comparable as a string — same order as daemonPostureArgs0 ms
  • ✓routeDaemonLifecycle › an installed unit performs the command0 ms
  • ✓routeDaemonLifecycle › no unit means the CLI does it, as it always did0 ms
  • ✓routeDaemonLifecycle › a one-off flag the unit cannot carry takes it back0 ms
  • ✓routeDaemonLifecycle › a posture the unit does not carry takes it back — the enterprise downgrade1 ms
  • ✓routeDaemonLifecycle › an absent posture pair is not a mismatch0 ms
  • ✓routeDaemonLifecycle › flags outrank posture — both are reported one at a time0 ms
  • ✓oneOffFlagsBlockingSupervisor › a plain invocation blocks nothing0 ms
  • ✓oneOffFlagsBlockingSupervisor › every flag the unit cannot express is named0 ms
  • ✓runSupervisorPlan › an optional failure is not a failed plan37 ms
  • ✓runSupervisorPlan › a required failure is37 ms
  • ✓runSupervisorPlan › a missing binary never throws — the machine must not be left daemonless5 ms
  • ✓runSupervisorPlan › runs the plan in order and reports each command62 ms
  • ✓describeSupervisor › names the thing the user would have to go look at0 ms
  • ○supervisorJobRunning / supervisorLivenessProbe › answers for the real launchd job on this machine
  • ✓supervisorJobRunning / supervisorLivenessProbe › an unknown answer keeps the wait alive rather than ending it4 ms
  • ✓supervisorJobRunning / supervisorLivenessProbe › systemd transitional states are not an outcome1 ms
  • ✓supervisorJobRunning / supervisorLivenessProbe › a localized schtasks answer is unreadable, not "not running"1 ms
  • ✓supervisorJobRunning / supervisorLivenessProbe › a finished launcher defers to the daemon's own startedBy stamp0 ms
  • ✓supervisorJobRunning / supervisorLivenessProbe › preserves unknown ownership while a healthy daemon has no readable registry1 ms
  • ✓supervisorJobRunning / supervisorLivenessProbe › only a supervisor kind we recognise may come out of the environment1 ms
  • ✓supervisorJobRunning / supervisorLivenessProbe › only a command that ran and exited non-zero has answered1 ms
  • ✓supervisorJobRunning / supervisorLivenessProbe › a supervisor with no unit file has no posture to compare, not a default one0 ms
  • ✓supervisorJobRunning / supervisorLivenessProbe › an unreadable unit posture leaves the restart with the supervisor0 ms
  • ○supervisorJobRunning / supervisorLivenessProbe › caches within the throttle window
  • ✓classifySupervision — does the unit own the daemon this machine is running › a daemon answering with the job not running is the state install must converge0 ms
  • ✓classifySupervision — does the unit own the daemon this machine is running › a running job owns whatever daemon is up, or is about to be0 ms
  • ✓classifySupervision — does the unit own the daemon this machine is running › nothing answering with the job down is a failed start, not a handover0 ms
  • ✓classifySupervision — does the unit own the daemon this machine is running › a supervisor that did not answer is unknown, never unsupervised0 ms
  • ✓classifySupervision — does the unit own the daemon this machine is running › another user's daemon is never touched, whatever this machine's job is doing0 ms
  • ✓launchd removal barrier › waits through a loaded job and unknown probes before accepting removal1 ms
  • ✓launchd removal barrier › bounds a job that never proves removal (false)0 ms
  • ✓launchd removal barrier › bounds a job that never proves removal (undefined)0 ms
bridge/src/__tests__/daemon-takeover.test.ts36/36
  • ✓negotiateIncumbentDaemon › refuses to stop a TLS owner when custody cannot be captured8 ms
  • ✓negotiateIncumbentDaemon › captures device custody before asking Swift to stand down1 ms
  • ✓negotiateIncumbentDaemon › keeps Swift fully live for the foreground worker and captures its timeline only there3 ms
  • ✓negotiateIncumbentDaemon › still refuses a foreign explicit owner before deferring a background handover1 ms
  • ✓negotiateIncumbentDaemon › takes neither the token nor the port from another user's daemon1 ms
  • ✓negotiateIncumbentDaemon › refuses loudly when that port was asked for by name1 ms
  • ✓negotiateIncumbentDaemon › still hands the port over between two daemons of the same user1 ms
  • ✓negotiateIncumbentDaemon › leaves Swift serving when its timeline cannot be captured1 ms
  • ✓negotiateIncumbentDaemon › captures the Swift activity projection before the listener stands down1 ms
  • ✓negotiateIncumbentDaemon › proceeds when ownership cannot be proven, because absence is not evidence1 ms
  • ✓negotiateIncumbentDaemon › falls back to /shutdown when the app is too old for /stand-down5 ms
  • ✓negotiateIncumbentDaemon › a live Node daemon of ours means "already running", not a takeover0 ms
  • ✓negotiateIncumbentDaemon › replaces a daemon of ours that is serving an older build0 ms
  • ✓negotiateIncumbentDaemon › leaves a matching build alone — that daemon IS this build0 ms
  • ✓negotiateIncumbentDaemon › treats a missing build on either side as no information, never as different1 ms
  • ✓negotiateIncumbentDaemon › --no-upgrade leaves the older daemon running, and says which build it is0 ms
  • ✓negotiateIncumbentDaemon › never evicts another user's daemon over a build mismatch0 ms
  • ✓negotiateIncumbentDaemon › refuses rather than silently moving when the replaced daemon will not free an explicit port0 ms
  • ✓negotiateIncumbentDaemon › an empty port is not a negotiation0 ms
  • ✓takeover from a Swift TLS replica › stands Swift down and keeps the local TLS owner and its credentials16 ms
  • ✓takeover from a Swift TLS replica › keeps Swift running when local TLS custody is missing1 ms
  • ✓takeover from a Swift TLS replica › keeps Swift running when local TLS custody is replica3 ms
  • ✓takeover from a Swift TLS replica › keeps Swift running when local TLS custody is corrupt configuration1 ms
  • ✓takeover from a Swift TLS replica › keeps Swift running when local TLS custody is corrupt credentials2 ms
  • ✓takeover from a Swift TLS replica › requires a same-user Swift replica on the supported protocol ({"isSwift":false})2 ms
  • ✓takeover from a Swift TLS replica › requires a same-user Swift replica on the supported protocol ({})2 ms
  • ✓takeover from a Swift TLS replica › requires a same-user Swift replica on the supported protocol ({"deviceSecurity":{"version":2,"state":"replica"}})2 ms
  • ✓findDaemonPortAsync port scan › will not join another user's daemon, and says so instead of failing silently3 ms
  • ✓findDaemonPortAsync port scan › joins a daemon of ours found by the same scan1 ms
  • ✓findDaemonPortAsync port scan › joins a daemon whose ownership is unproven1 ms
  • ✓localPeerOwnership › reads this process as ours and a dead pid as unknown0 ms
  • ✓localPeerOwnership › isForeignDaemon reports only a definite refusal0 ms
  • ✓discovered-daemon selection › prefers this user's daemon over whichever answered first32 ms
  • ✓discovered-daemon selection › demotes but never drops another user's daemon0 ms
  • ✓discovered-daemon selection › an explicitly named host outranks even our own daemon0 ms
  • ✓discovered-daemon selection › ranks a daemon that predates the TXT keys last, without excluding it1 ms
bridge/src/__tests__/daemon-target.test.ts27/27
  • ✓daemon-target helpers › isLoopbackHost › treats loopback forms as local3 ms
  • ✓daemon-target helpers › isLoopbackHost › treats LAN/remote hosts as non-local0 ms
  • ✓daemon-target helpers › formatHostForUrl › brackets bare IPv6 literals0 ms
  • ✓daemon-target helpers › formatHostForUrl › leaves IPv4 and already-bracketed hosts untouched0 ms
  • ✓daemon-target helpers › parseHostHint › defaults the port to 9120 when none is given1 ms
  • ✓daemon-target helpers › parseHostHint › parses host:port0 ms
  • ✓daemon-target helpers › parseHostHint › does not mistake bare IPv6 for host:port0 ms
  • ✓daemon-target helpers › parseHostHint › parses bracketed IPv6 with and without a port0 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › prefers a local daemon and never consults remote paths2 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › refuses (null + warn) an incapable loopback daemon under --remote-daemon with no host hint4 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › falls through to a capable named host when the loopback daemon is incapable1 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › refuses an ssh -L tunnel to an incapable daemon named via --daemon-host 127.0.0.11 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › prefers an explicit tokenHint over the daemon-advertised token0 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › uses tokenHint on the mDNS path too1 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › warns once (with provisioning hint) when a remote target has no token at all1 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › still returns an incapable local daemon without the switch (local default untouched)0 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › warnRemoteOnce logs a given key at most once (resolver re-runs on every backoff)0 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › ignores an explicit host without --remote-daemon: the switch gates BOTH remote paths0 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › resolves an explicit host with --remote-daemon, without touching mDNS0 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › returns null for an unreachable explicit host without falling through to mDNS0 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › refuses (null + warn) an explicit remote daemon lacking sameSocketControl1 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › runs mDNS discovery ONLY when the --remote-daemon switch is set0 ms
  • ✓daemon-target helpers › resolveDaemonTarget precedence + opt-in gate › never leaves the machine with no opt-in (no host, no switch)1 ms
  • ✓daemon-target helpers › deriveRemoteAttachOpts (shared CLI/index derivation) › is inert with no flags and no env0 ms
  • ✓daemon-target helpers › deriveRemoteAttachOpts (shared CLI/index derivation) › flags a host given without the switch as ignored0 ms
  • ✓daemon-target helpers › deriveRemoteAttachOpts (shared CLI/index derivation) › does not warn when the opt-in arrives via env alone0 ms
  • ✓daemon-target helpers › deriveRemoteAttachOpts (shared CLI/index derivation) › honors env host aliases in precedence order0 ms
bridge/src/__tests__/daemon-ws-client.test.ts8/8
  • ✓DaemonWsClient register frame › always includes an explicit integer weight (unweighted ⇒ 0, never omitted)5 ms
  • ✓DaemonWsClient register frame › carries the launch-time --weight value0 ms
  • ✓DaemonWsClient register frame › normalizes garbage weights so the wire only ever sees in-range integers0 ms
  • ✓DaemonWsClient target re-resolution (real socket, short backoff) › clears the cached target on a null resolution and only redials once a valid target resolves again218 ms
  • ✓DaemonWsClient target re-resolution (real socket, short backoff) › capability downgrade through the REAL resolver: incapable local daemon ⇒ no new socket (reviewer end-to-end case)210 ms
  • ✓DaemonWsClient target re-resolution (real socket, short backoff) › client guard: refuses to dial a non-null capability-less target under remote intent152 ms
  • ✓DaemonWsClient shutdown › does not leak an asynchronous error when closed while CONNECTING27 ms
  • ✓DaemonWsClient silent handshake › times out an unanswered upgrade, re-resolves the target and redials304 ms
bridge/src/__tests__/event-loop-telemetry.test.ts1/1
  • ✓event-loop delay telemetry (#327) › reports a sane snapshot and resets the window per read245 ms
bridge/src/__tests__/hub-state-identity.test.ts21/21
  • ✓resolveHubFrameIdentity › a Claude hook driving the machine yields an aggregate frame with that session, never OpenClaw4 ms
  • ✓resolveHubFrameIdentity › a hook without a session id still drops the OpenClaw label1 ms
  • ✓resolveHubFrameIdentity › the Gateway driving the machine names its own row and takes its own snapshot0 ms
  • ✓resolveHubFrameIdentity › no driver yet: OpenClaw while the Gateway is alive (unattributed), daemon otherwise0 ms
  • ✓resolveHubFrameIdentity › a hook driver outranks a live Gateway; a Gateway driver with the Gateway gone is plain daemon0 ms
  • ✓HubStateDriverTracker › remembers the latest driver and clears it on that session's end only1 ms
  • ✓HubStateDriverTracker › a short session ending does not disconnect the hub while another session lives (#545)1 ms
  • ✓HubStateDriverTracker › a session silent past the live window no longer holds the hub open1 ms
  • ✓HubStateDriverTracker › gateway activity replaces a hook driver and is cleared when the Gateway goes away1 ms
  • ✓HubStateDriverTracker › an anonymous hook driver (no session id) is cleared by an anonymous end0 ms
  • ✓HubStateDriverTracker › a session that only went quiet still holds the hub open (watchdog silence is not an end)0 ms
  • ✓HubStateDriverTracker › noteDriverSilent clears the frame identity but not liveness0 ms
  • ✓HubStateDriverTracker › an anonymous driver holds the hub open until its own end0 ms
  • ✓HubStateDriverTracker › hasLiveHookSession forgets sessions silent past the live window0 ms
  • ✓HubStateDriverTracker › the turn watchdog marks quiet sessions silent, never ended3 ms
  • ✓HubStateDriverTracker › normalises empty ids and projects to absent0 ms
  • ✓shapeHubFrame › Gateway (re)connect during a Claude turn announces the Gateway's own idle state, not the machine's turn2 ms
  • ✓shapeHubFrame › a Gateway that is itself waiting keeps its prompt fields1 ms
  • ✓shapeHubFrame › a hook-driven frame keeps the machine's turn but wears the hook session's identity1 ms
  • ✓shapeHubFrame › a hook-driven frame without a project drops the Gateway's leftover label rather than carrying it0 ms
  • ✓shapeHubFrame › does not mutate its input0 ms
bridge/src/__tests__/kiro-diagnostics.test.ts14/14
  • ✓Kiro privacy-safe diagnostics › correlates an explicit resume id without serializing content, paths, ids, or commands8 ms
  • ✓Kiro privacy-safe diagnostics › distinguishes cwd correlation, ACP records, and process-only IDE observation2 ms
  • ✓Kiro privacy-safe diagnostics › reports missing prerequisites without treating them as a command failure1 ms
  • ✓Kiro privacy-safe diagnostics › only exposes allowlisted transcript schema markers1 ms
  • ✓Kiro privacy-safe diagnostics › summarizes measured v3 message envelopes and recognizes completed turns2 ms
  • ✓Kiro privacy-safe diagnostics › takes the spoken reply, not the trailing redacted Reasoning block0 ms
  • ✓Kiro privacy-safe diagnostics › separates a not-yet-prompted transcript from an unrecognized one1 ms
  • ✓Kiro privacy-safe diagnostics › reports an unreadable transcript as unrecognized, not as not-yet-prompted0 ms
  • ✓Kiro privacy-safe diagnostics › counts only non-blank transcript lines as evidence of content0 ms
  • ✓Kiro privacy-safe diagnostics › discovers the measured v3 workspace/session directory layout8 ms
  • ✓Kiro privacy-safe diagnostics › projects measured SQLite v2 rows and recognizes their schema marker1 ms
  • ✓Kiro privacy-safe diagnostics › uses prompt-history mtime as a content-free pending-turn marker0 ms
  • ✓native Kiro explicit turn boundaries › does not reopen a completed or interrupted turn for a delayed assistant record0 ms
  • ✓native Kiro explicit turn boundaries › keeps an unmatched start processing through silent tools and reasoning0 ms
bridge/src/__tests__/legacy-rearm-ledger.test.ts6/6
  • ✓LegacyRearmLedger › asks for the re-arm the first time and never again for that token4 ms
  • ✓LegacyRearmLedger › re-arms once more when the token actually changes0 ms
  • ✓LegacyRearmLedger › tracks each port independently0 ms
  • ✓LegacyRearmLedger › counts an ack as served, so a later device_info cannot reschedule it0 ms
  • ✓LegacyRearmLedger › forgets a port on unplug so a replug is evaluated fresh0 ms
  • ✓LegacyRearmLedger › records an ATTEMPT, not a delivery0 ms
bridge/src/__tests__/linux-service.test.ts39/39
  • ✓getDaemonNodeTarget › resolves absolute node + cli.js paths3 ms
  • ✓buildUnitFile › produces a well-formed unit with the three standard sections1 ms
  • ✓buildUnitFile › runs the daemon in the foreground so systemd supervises the real process1 ms
  • ✓buildUnitFile › carries the network posture in ExecStart, quoted like every other unit word0 ms
  • ✓buildUnitFile › mirrors LaunchAgent KeepAlive via Restart=on-failure0 ms
  • ✓buildUnitFile › waits for the network to be online0 ms
  • ✓buildUnitFile › defaults the working directory to ~/.agentdeck0 ms
  • ✓buildUnitFile › derives BOTH WorkingDirectory and Environment from one dataDirOverride0 ms
  • ✓buildUnitFile › reflects the AGENTDECK_DATA_DIR override in WorkingDirectory and Environment0 ms
  • ✓unit-file escaping (golden bytes) › emits NO Environment= line when the override is not set1 ms
  • ✓unit-file escaping (golden bytes) › passes a plain path with a space through quoted and unescaped0 ms
  • ✓unit-file escaping (golden bytes) › escapes % as %% (specifier expansion) in Environment and WorkingDirectory0 ms
  • ✓unit-file escaping (golden bytes) › C-escapes backslash and double quote inside the quoted Environment value0 ms
  • ✓unit-file escaping (golden bytes) › keeps $ SINGLE in Environment= (systemd does not expand $ there)0 ms
  • ✓unit-file escaping (golden bytes) › doubles $ and % in ExecStart words (expanded there even inside quotes)0 ms
  • ✓unit-file escaping (golden bytes) › escapeUnitEnvAssignment / escapeExecWord expose the per-directive rules0 ms
  • ✓unit-file escaping (golden bytes) › rejects control characters in the override (newline)2 ms
  • ✓unit-file escaping (golden bytes) › rejects control characters in the override (carriage return)0 ms
  • ✓unit-file escaping (golden bytes) › rejects control characters in the override (NUL)0 ms
  • ✓unit-file escaping (golden bytes) › rejects non-absolute overrides (relative path)0 ms
  • ✓unit-file escaping (golden bytes) › rejects non-absolute overrides (bare tilde)0 ms
  • ✓unit-file escaping (golden bytes) › rejects non-absolute overrides (tilde path)0 ms
  • ✓unit-file escaping (golden bytes) › rejects non-absolute overrides (ignore-missing prefix)0 ms
  • ✓unit-file escaping (golden bytes) › rejects edge whitespace the unit parser would trim (leading space)1 ms
  • ✓unit-file escaping (golden bytes) › rejects edge whitespace the unit parser would trim (trailing space)0 ms
  • ✓unit-file escaping (golden bytes) › rejects edge whitespace the unit parser would trim (trailing tab)0 ms
  • ✓unit-file escaping (golden bytes) › validateDataDirOverride accepts a hostile-but-legal absolute path0 ms
  • ✓Environment= round-trip (systemd parse semantics) › round-trips the raw value (space)0 ms
  • ✓Environment= round-trip (systemd parse semantics) › round-trips the raw value (percent specifier)0 ms
  • ✓Environment= round-trip (systemd parse semantics) › round-trips the raw value (double quote)0 ms
  • ✓Environment= round-trip (systemd parse semantics) › round-trips the raw value (backslash)0 ms
  • ✓Environment= round-trip (systemd parse semantics) › round-trips the raw value (dollar)0 ms
  • ✓Environment= round-trip (systemd parse semantics) › round-trips the raw value (everything at once)0 ms
  • ✓getDataDir › defaults to ~/.agentdeck0 ms
  • ✓getDataDir › honors AGENTDECK_DATA_DIR0 ms
  • ✓installUnit (fresh data dir) › creates a not-yet-existing data directory before touching systemd214 ms
  • ✓installUnit (fresh data dir) › rejects an invalid override BEFORE creating any directory3 ms
  • ✓getUnitPath / getUnitDir › defaults to ~/.config/systemd/user1 ms
  • ✓getUnitPath / getUnitDir › honors $XDG_CONFIG_HOME3 ms
bridge/src/__tests__/native-dependency-diagnostics.test.ts5/5
  • ✓native dependency diagnostics › supports only the maintained even Node lines AgentDeck verifies4 ms
  • ✓native dependency diagnostics › opens an in-memory database instead of treating require success as binding success3 ms
  • ✓native dependency diagnostics › reports a missing native binding with the exact daemon runtime identity and recovery1 ms
  • ✓native dependency diagnostics › rejects Node 20 before probing a binding that may happen to exist1 ms
  • ✓native dependency diagnostics › closes a database even when the smoke query fails1 ms
bridge/src/__tests__/session-registry.test.ts30/30
  • ✓registry input boundary › rejects registry ports that could change a loopback URL authority7 ms
  • ✓registry input boundary › retains valid session rows while rejecting malformed peer ports and pids2 ms
  • ✓Session Registry Logic › pruneDeadSessions › keeps alive sessions1 ms
  • ✓Session Registry Logic › pruneDeadSessions › removes sessions with dead PIDs0 ms
  • ✓Session Registry Logic › pruneDeadSessions › keeps old sessions if PID is alive0 ms
  • ✓Session Registry Logic › pruneDeadSessions › handles mix of alive and dead sessions0 ms
  • ✓Session Registry Logic › port allocation logic › returns base port when no ports are used0 ms
  • ✓Session Registry Logic › port allocation logic › returns next port when base is taken0 ms
  • ✓Session Registry Logic › port allocation logic › skips used ports0 ms
  • ✓Session Registry Logic › port allocation logic › finds gaps in used ports0 ms
  • ✓Session Registry Logic › port allocation logic › throws when all ports are taken1 ms
  • ✓Session Registry Logic › atomic write › write-then-rename produces valid JSON1 ms
  • ✓Session Registry Logic › shouldConcedePortToOccupant (startup-race hardening) › does not concede to a non-daemon occupant (session bridge)0 ms
  • ✓Session Registry Logic › shouldConcedePortToOccupant (startup-race hardening) › does not concede when the probe failed (null occupant)0 ms
  • ✓Session Registry Logic › shouldConcedePortToOccupant (startup-race hardening) › concedes to a daemon backed by a live, distinct PID0 ms
  • ✓Session Registry Logic › shouldConcedePortToOccupant (startup-race hardening) › does NOT concede to a forged/stale daemon whose PID is dead0 ms
  • ✓Session Registry Logic › shouldConcedePortToOccupant (startup-race hardening) › does NOT concede when the reported PID is our own0 ms
  • ✓Session Registry Logic › shouldConcedePortToOccupant (startup-race hardening) › trusts the mode when no PID is reported (e.g. Swift App Store daemon)0 ms
  • ✓Session Registry Logic › scanDaemonPortWindow / waitForDaemonExit (split-brain guard) › finds a Swift daemon sitting on a fallback port inside the window23 ms
  • ✓Session Registry Logic › scanDaemonPortWindow / waitForDaemonExit (split-brain guard) › ignores non-daemon occupants (session bridges) and skipped ports6 ms
  • ✓Session Registry Logic › scanDaemonPortWindow / waitForDaemonExit (split-brain guard) › returns empty when the window is quiet2 ms
  • ✓Session Registry Logic › scanDaemonPortWindow / waitForDaemonExit (split-brain guard) › waitForDaemonExit resolves true once /health stops answering505 ms
  • ✓Session Registry Logic › scanDaemonPortWindow / waitForDaemonExit (split-brain guard) › waitForDaemonExit resolves false when the daemon never leaves756 ms
  • ✓Session Registry Logic › scanDaemonPortWindow / waitForDaemonExit (split-brain guard) › waitForPortBindable refuses a port that is still bound454 ms
  • ✓Session Registry Logic › scanDaemonPortWindow / waitForDaemonExit (split-brain guard) › waitForPortBindable resolves true once the socket is actually released302 ms
  • ✓Session Registry Logic › scanDaemonPortWindow / waitForDaemonExit (split-brain guard) › waitForPortBindable resolves true immediately for a free port0 ms
  • ✓daemon port window › defaults when unset or blank1 ms
  • ✓daemon port window › accepts a well-formed range0 ms
  • ✓daemon port window › falls back to the default for anything it cannot trust1 ms
  • ✓daemon port window › reports whether the resolved window is the documented one0 ms
bridge/src/__tests__/wake-detector.test.ts5/5
  • ✓classifyClockTick › reads a late tick where both clocks advanced together as lag, not a wake3 ms
  • ✓classifyClockTick › reads a wall-clock jump the monotonic clock did not follow as a wake0 ms
  • ✓classifyClockTick › is on schedule below the gap on either clock0 ms
  • ✓classifyClockTick › keeps the gap rule on win32, whose monotonic clock counts through sleep0 ms
  • ✓classifyClockTick › monotonicNowMs is monotonic and in milliseconds1 ms
bridge/src/__tests__/windows-child-window.test.ts5/5
  • ✓no child process may open a console window › every child_process call hides its window, names a POSIX-only binary, or says why not551 ms
  • ✓the gate reads what it claims to read › counts only child_process imports, aliases included1 ms
  • ✓the gate reads what it claims to read › never reads a function name out of prose0 ms
  • ✓the gate reads what it claims to read › extracts a call across newlines and nested parens0 ms
  • ✓the gate reads what it claims to read › reads the binary out of a literal first argument1 ms
bridge/src/__tests__/windows-service.test.ts11/11
  • ✓scheduled task registration › passes a private UTF-16 XML file as one argument and cleans it afterwards6 ms
  • ✓getDaemonNodeTarget › resolves the running node and the cli.js beside this module as absolute paths0 ms
  • ✓xmlEscape › escapes XML metacharacters0 ms
  • ✓buildScheduledTaskXml › produces a well-formed v1.2 task with a logon trigger0 ms
  • ✓buildScheduledTaskXml › mirrors LaunchAgent KeepAlive / no-stop semantics0 ms
  • ✓buildScheduledTaskXml › uses node as unquoted Command and quotes the cli.js path in Arguments0 ms
  • ✓buildScheduledTaskXml › runs the detached launcher, never the daemon itself0 ms
  • ✓buildScheduledTaskXml › carries the network posture in Arguments — Task Scheduler has no env element0 ms
  • ✓buildScheduledTaskXml › emits no trailing space when there is no posture to carry0 ms
  • ✓buildScheduledTaskXml › XML-escapes special characters in the user id and paths0 ms
  • ✓buildScheduledTaskXml › places both UserId fields (trigger + principal) with the same user1 ms
setup/src/__tests__/onboarding.test.ts46/46
  • ✓classifyNpmFailure › reads the QA EACCES as a permission problem on the path npm named3 ms
  • ✓classifyNpmFailure › falls back to the quoted path in the Error line1 ms
  • ✓classifyNpmFailure › permission wins even when a native build is also mentioned0 ms
  • ✓classifyNpmFailure › a node-gyp / prebuild failure is the only native-build kind0 ms
  • ✓classifyNpmFailure › a registry problem that merely names node-pty is not a build failure0 ms
  • ✓classifyNpmFailure › anything else is reported verbatim through the stderr tail2 ms
  • ✓decideRetry › EACCES on the default prefix moves to the per-user prefix, never a source build0 ms
  • ✓decideRetry › EACCES inside the per-user prefix fails instead of looping0 ms
  • ✓decideRetry › EPERM is reported, not papered over with a second install0 ms
  • ✓decideRetry › a native-build failure earns exactly one source build, and none on Windows0 ms
  • ✓decideRetry › an unclassified failure is never retried0 ms
  • ✓prefix writability and the install plan › the QA machine (root-owned /usr/local) installs into ~/.agentdeck/npm1 ms
  • ✓prefix writability and the install plan › a user-owned prefix (Homebrew, nvm) keeps the default global install0 ms
  • ✓prefix writability and the install plan › checks the nearest existing parent of a missing scope dir0 ms
  • ✓prefix writability and the install plan › a writable modules dir with a root-owned bin dir is still unwritable0 ms
  • ✓prefix writability and the install plan › an unanswerable npm prefix is no evidence: try the default, EACCES still falls back0 ms
  • ✓prefix writability and the install plan › keeps updating an earlier per-user install so the old copy cannot shadow a new one0 ms
  • ✓prefix writability and the install plan › uses the Windows npm layout (node_modules and shims directly under the prefix)1 ms
  • ✓prefix writability and the install plan › npm arguments carry --prefix only for the per-user install, and never sudo1 ms
  • ✓PATH handling › prepends once and keeps every other entry0 ms
  • ✓PATH handling › compares Windows entries case-insensitively with either slash0 ms
  • ✓shell profile PATH line › picks the login profile each shell actually reads2 ms
  • ✓shell profile PATH line › writes a $HOME-relative, clearly marked line0 ms
  • ✓shell profile PATH line › is idempotent and preserves the rest of the profile2 ms
  • ✓shell profile PATH line › creates a missing profile and replaces an outdated marked line in place1 ms
  • ✓shell profile PATH line › upsertProfileLine handles empty content0 ms
  • ✓classifyClaudeProbe › missing when not on PATH or ENOENT0 ms
  • ✓classifyClaudeProbe › ok on a zero exit, with the version parsed0 ms
  • ✓classifyClaudeProbe › broken when the launcher exists but its native binary does not (the QA case)0 ms
  • ✓classifyClaudeProbe › broken on a timeout, and a silent failure still says how it failed0 ms
  • ✓classifyClaudeProbe › caps a long error line0 ms
  • ✓deck host surfaces › detects Ulanzi Studio on macOS from the app bundle or its data dir1 ms
  • ✓deck host surfaces › probes the (unverified) Windows Ulanzi locations1 ms
  • ✓deck host surfaces › a Ulanzi-only machine never hears about a missing Stream Deck0 ms
  • ✓deck host surfaces › neither host found lists both briefly instead of warning about one1 ms
  • ✓deck host surfaces › --surface overrides detection0 ms
  • ✓deck host surfaces › both hosts, or Linux with none0 ms
  • ✓next steps text › Ulanzi: daemon first with the OFFLINE consequence, then the Ulanzi Marketplace — no Stream Deck0 ms
  • ✓next steps text › Stream Deck keeps the existing steps0 ms
  • ✓next steps text › unknown host lists both plugin links briefly0 ms
  • ✓next steps text › Linux keeps the systemd/linger hint and no deck host0 ms
  • ✓next steps text › a per-user install names the absolute CLI path the next terminal can run0 ms
  • ✓next steps text › with the daemon installed there is no daemon step0 ms
  • ✓next steps text › numbers steps sequentially and indents continuation lines0 ms
  • ✓daemon prompt gating › asks only at an interactive terminal without --yes and outside CI0 ms
  • ✓daemon prompt gating › defaults to No0 ms
setup/src/__tests__/setup-args.test.ts9/9
  • ✓Node runtime support contract › accepts the maintained even release lines3 ms
  • ✓Node runtime support contract › rejects EOL Node 20 and short-lived odd release lines0 ms
  • ✓parseSetupArgs › prints next steps by default instead of installing the daemon0 ms
  • ✓parseSetupArgs › --yes / -y finishes the install without a second command0 ms
  • ✓parseSetupArgs › --enterprise implies --yes0 ms
  • ✓parseSetupArgs › ignores unknown flags rather than refusing to install0 ms
  • ✓parseSetupArgs › --statusline opts into the Claude status-line relay without implying --yes0 ms
  • ✓parseSetupArgs › --surface forces the deck host the next steps describe, in either spelling0 ms
  • ✓parseSetupArgs › an unknown --surface value is ignored, like an unknown flag0 ms
shared/src/__tests__/daemon-parity.test.ts7/7
  • ✓Node/Swift daemon policies › keeps the native policy generated from the canonical source7 ms
  • ✓Node/Swift daemon policies › start without end remains processing0 ms
  • ✓Node/Swift daemon policies › interrupted end closes turn0 ms
  • ✓Node/Swift daemon policies › resumed activity starts another turn0 ms
  • ✓Node/Swift daemon policies › user text alone is not a boundary0 ms
  • ✓Node/Swift daemon policies › keeps discovery and fallback inside the selected process window2 ms
  • ✓Node/Swift daemon policies › shares legacy tool-turn and runtime acceptance decisions2 ms
  • ○Node/Swift daemon policies › executes the same vectors through generated Swift
shared/src/__tests__/daemon-relay-sync.test.ts2/2
  • ✓mixed daemon relay policy › preserves an explicit read-only controller boundary across relay normalization4 ms
  • ✓mixed daemon relay policy › generates the canonical native policy without drift1 ms
  • ○mixed daemon relay policy › matches Node typed rows, null/false, bounds, exclusion and volatile-field rules in real Swift
shared/src/__tests__/exec-file-probe.test.ts1/1
  • ✓bounded local process probes › settles at the deadline even if SIGKILL never produces an exit, without spawning repeated children10 ms
shared/src/__tests__/net-utils-route.test.ts2/2
  • ✓default-route refresh › keeps callers responsive and shares one pending route probe11 ms
  • ✓default-route refresh › retains a usable route on probe failure and drops an address withdrawn by the OS2 ms

79 files

Partial verification

Agent observation & hooks

Are Claude, Codex, OpenCode, Kiro, Antigravity and Hermes sessions seen, attributed and gated correctly from their hooks and transcripts, including missing-PID revalidation for partial process snapshots, Hermes observer setup/discovery diagnostics, explicit loopback delivery without a registry, captured Hermes child suppression, Claude PermissionRequest as the immediate display signal ahead of the permission Notification, the opt-in Codex device-approval hold (shared rules, a generated Swift mirror and both installers' exact hold command), and background work (Claude snapshots, Codex rollout terminals, OpenCode and Hermes plugin reports) through one tracker with executable Node/Swift parity?

Passed
1,450
Failed
0
Skipped
47
Time
22.3 s
79 test files
bridge/src/__tests__/antigravity-local.test.ts1/1
  • ✓Antigravity local status › yields while sqlite is pending and reads the auth record only once9 ms
bridge/src/__tests__/antigravity-observation.test.ts6/6
  • ✓Antigravity evidence contract › publishes file evidence with an unknown process table (rejected=false), expires its lease and refuses ambiguous PID ownership15 ms
  • ✓Antigravity evidence contract › publishes file evidence with an unknown process table (rejected=true), expires its lease and refuses ambiguous PID ownership2 ms
  • ✓Antigravity evidence contract › keeps the generated policy current1 ms
  • ✓Antigravity evidence contract › projects the explicit DB activity without changing the store and refuses unknown activity162 ms
  • ✓Antigravity evidence contract › uses stable conversation/turn identities and never invents completion for stale/unknown evidence4 ms
  • ✓Antigravity evidence contract › scans explicit sources without a process, ignores unreadable/symlinked records and keeps timestamps stable5 ms
  • ○Antigravity evidence contract › executes the actual Swift parser and scoped reader against Node vectors and the same filesystem
bridge/src/__tests__/antigravity-transcript.test.ts4/4
  • ✓antigravity transcript parsing › extracts goal, model (from settings change), state and tool task4 ms
  • ✓antigravity transcript parsing › reports processing when the newest step is RUNNING; later model change wins1 ms
  • ✓antigravity transcript parsing › reports idle when only historical steps are RUNNING (newest step is DONE)0 ms
  • ✓antigravity transcript parsing › matches the agy CLI binary as an Antigravity process1 ms
bridge/src/__tests__/ask-gate-decisions.test.ts20/20
  • ✓askGateDecision — who pays for the hold › holds only when there is no way to type into the session2 ms
  • ✓askGateDecision — who pays for the hold › never holds when the answer could be typed instead0 ms
  • ✓askGateDecision — who pays for the hold › never holds a session no device can see0 ms
  • ✓askGateDecision — who pays for the hold › never holds with the gate off or nobody connected0 ms
  • ✓askPressVerdict — what may commit an answer › accepts a press that names the live question1 ms
  • ✓askPressVerdict — what may commit an answer › refuses a press that does not name its question0 ms
  • ✓askPressVerdict — what may commit an answer › refuses a press aimed at a question the prompt moved past0 ms
  • ✓askPressVerdict — what may commit an answer › refuses to answer an overlay the held gate does not own0 ms
  • ✓askPressVerdict — what may commit an answer › refuses anything that is not an option selection0 ms
  • ✓askPressVerdict — what may commit an answer › refuses an index that is not in the live option list0 ms
  • ✓askPressVerdict — what may commit an answer › matches on the option index, not its array position0 ms
  • ✓askPressVerdict — what may commit an answer › refuses when no question is open at all0 ms
  • ✓askPressVerdict — what may commit an answer › accepts an answer from a device that could only hold part of the question1 ms
  • ✓askEchoMatches — a truncated echo still names its question › accepts an exact echo0 ms
  • ✓askEchoMatches — a truncated echo still names its question › accepts a long enough prefix0 ms
  • ✓askEchoMatches — a truncated echo still names its question › refuses a prefix too short to identify the question0 ms
  • ✓askEchoMatches — a truncated echo still names its question › refuses an echo that diverges from the live question0 ms
  • ✓askEchoMatches — a truncated echo still names its question › refuses an echo LONGER than the live question0 ms
  • ✓askEchoMatches — a truncated echo still names its question › accepts an echo cut inside a grapheme, as the Swift mirror does0 ms
  • ✓askEchoMatches — a truncated echo still names its question › refuses a superseded question that shares a long prefix0 ms
bridge/src/__tests__/ask-gate.test.ts6/6
  • ✓AskUserQuestion ask-gate (device answer → agent) › delivers a single-question answer as the hook decision reason10 ms
  • ✓AskUserQuestion ask-gate (device answer → agent) › walks a multi-question call one question at a time, then answers with all pairs2 ms
  • ✓AskUserQuestion ask-gate (device answer → agent) › releases with an EMPTY body when nobody answers, so the terminal picker shows1 ms
  • ✓AskUserQuestion ask-gate (device answer → agent) › does not hold when nothing could answer, leaving zero added latency1 ms
  • ✓AskUserQuestion ask-gate (device answer → agent) › keeps a partially answered prompt out of the agent when the hold expires1 ms
  • ✓AskUserQuestion ask-gate (device answer → agent) › clears the prompt on PostToolUse when the tool did run (injection path)1 ms
bridge/src/__tests__/background-work.test.ts6/6
  • ✓background work tracker › keeps the generated Swift tracker and hook vocabulary in sync with the TS source4 ms
  • ✓background work tracker › replays the shared vectors: start/finish/snapshot, child stops, stale reaping, resets14 ms
  • ✓background work tracker › never covers foreground, approval, question or offline states1 ms
  • ✓background work tracker › puts a long-running process on standby without ever aging a job2 ms
  • ✓background work tracker › reports a standby crossing from reap exactly once1 ms
  • ✓background work tracker › bounds sessions and items16 ms
  • ○background work tracker › replays the same vectors through the generated Swift block
bridge/src/__tests__/ci-wait-probe.test.ts6/6
  • ✓CI wait provider evidence › keeps canonical CI activity ahead of a stale tool or FM summary3 ms
  • ✓CI wait provider evidence › does not claim success while a legacy status is pending, failed or unreadable1 ms
  • ✓CI wait provider evidence › only probes explicit bounded identities on github.com1 ms
  • ✓CI wait provider evidence › distinguishes missing, cancelled and incomplete evidence from pass/fail0 ms
  • ✓reports counts only for complete readable evidence2 ms
  • ✓leaves skipped and neutral check runs out of the commit verdict and counts1 ms
bridge/src/__tests__/ci-wait-process.test.ts3/3
  • ✓CI watcher ownership › does not inspect argv without pending waits or outside their owner trees5 ms
  • ✓CI watcher ownership › closes only an observed owned watcher after a newer successful snapshot loses it1 ms
  • ✓CI watcher ownership › does not assign ambiguous same-process sessions or another process tree0 ms
bridge/src/__tests__/claude-background-tasks.test.ts6/6
  • ✓Claude background work projection › keeps work visible after Stop without reopening the parent turn or counting shell jobs as subagents5 ms
  • ✓Claude background work projection › retains unknown snapshots and converges on explicit completion across interleaved sessions1 ms
  • ✓Claude background work projection › never replaces foreground work, approval, questions, or offline state1 ms
  • ✓Claude background work projection › distinguishes absent/malformed data from zero, deduplicates IDs, and excludes the finishing child1 ms
  • ✓Claude background work projection › puts open-ended task types on standby: an idle teammate or a dev server stops holding the parent working1 ms
  • ✓Claude background work projection › keeps the generated Swift reducer synchronized37 ms
  • ○Claude background work projection › replays the same interleaved lifecycle through Swift and Node
bridge/src/__tests__/claude-inbox.test.ts10/10
  • ✓Claude local inbox delivery › contains inbox lookups inside temporary roots, including traversal and prefix boundaries3 ms
  • ✓Claude local inbox delivery › confirms the actual recipient UUID rather than a successful write or unrelated transcript row159 ms
  • ✓Claude local inbox delivery › reports hold and a later correlated release without approving anything or retrying86 ms
  • ✓Claude local inbox delivery › distinguishes explicit refusal and never treats it as permission to use a terminal3 ms
  • ✓Claude local inbox delivery › keeps a silent receiver unconfirmed and sends one message only2.0 s
  • ✓Claude local inbox delivery › rejects changed identity, symlink endpoints and mismatched transcript bindings before writing1 ms
  • ✓Claude local inbox delivery › ignores an old PID end hook and closes admission on teardown152 ms
  • ✓Claude local inbox delivery › does not send after teardown crosses the asynchronous reply-listen boundary752 ms
  • ✓Claude local inbox delivery › destroys active receipt clients on teardown even while they keep sending54 ms
  • ✓Claude local inbox delivery › bounds reply listeners across completed deliveries to separate temporary directories21 ms
bridge/src/__tests__/claude-interrupt-marker.test.ts7/7
  • ✓isClaudeInterruptRecord › matches both marker spellings Claude Code writes2 ms
  • ✓isClaudeInterruptRecord › matches on `interruptedMessageId` even if the marker text changes0 ms
  • ✓isClaudeInterruptRecord › does NOT match the marker quoted inside a tool_result0 ms
  • ✓isClaudeInterruptRecord › does NOT match an assistant that mentions the marker0 ms
  • ✓isClaudeInterruptRecord › does not match ordinary records or junk0 ms
  • ✓isClaudeInterruptRecord › tolerates an empty `interruptedMessageId` instead of trusting its presence0 ms
  • ✓isClaudeInterruptMessage › reads string content as well as text blocks0 ms
bridge/src/__tests__/claude-spare-hooks.test.ts5/5
  • ✓Claude background-job hooks › drops a spare announcing itself, reading a fresh table when the cached one predates it5 ms
  • ✓Claude background-job hooks › keeps a claimed spare compacting, every non-start event, and real windows1 ms
  • ✓Claude background-job hooks › names the parked conversation a background job continues1 ms
  • ✓Claude background-job hooks › an unknown pid never drops or retires anything1 ms
  • ✓isParkedClaudeSession › trusts only the window's own parkedJobId record3 ms
bridge/src/__tests__/claude-statusline-core.test.ts16/16
  • ✓BridgeCore × Claude status-line relay › a reading feeds the gauge as a live subscription reading26 ms
  • ✓BridgeCore × Claude status-line relay › the next own usage tick cannot revive a window retired by a focused snapshot5 ms
  • ✓BridgeCore × Claude status-line relay › OAuth-only fields ride along from a recent OAuth reading and drop after 30 minutes3 ms
  • ✓BridgeCore × Claude status-line relay › a newer successful account read can correct statusline quota downward without forgetting replay history2 ms
  • ✓BridgeCore × Claude status-line relay › a fresh OAuth reading's microsecond resets and whole percent do not lock newer status-line documents out3 ms
  • ✓BridgeCore × Claude status-line relay › preserves source timestamps when a fresh file/sibling cache predates the statusline1 ms
  • ✓BridgeCore × Claude status-line relay › idle rerenders cannot renew age or suppress fallback after five minutes1 ms
  • ✓BridgeCore × Claude status-line relay › remembers a rejected old session so it cannot return after the newer account reading ages2 ms
  • ✓BridgeCore × Claude status-line relay › an idle session retiring its old 5h window cannot clear another session's newer window2 ms
  • ✓BridgeCore × Claude status-line relay › delayed documents cannot rewind session order and a resumed API counter may restart1 ms
  • ✓BridgeCore × Claude status-line relay › a weekly-only snapshot removes the previous 5h window from outgoing usage2 ms
  • ✓BridgeCore × Claude status-line relay › broadcasts on the first reading and on a repaint-worthy change only3 ms
  • ✓BridgeCore × Claude status-line relay › OAuth poll decision: a fresh reading suppresses, one baseline read is owed, every account gets bounded revalidation, an aged reading resumes1 ms
  • ✓BridgeCore × Claude status-line relay › poll ticks skip the fetch while a reading is fresh and count the suppression183 ms
  • ✓BridgeCore × Claude status-line relay › every ad-hoc refresh goes through the same gate and the same counters13 ms
  • ✓BridgeCore × Claude status-line relay › fetchUsageIfStale defers to the status line while it is fresh2 ms
bridge/src/__tests__/claude-transcript-reader.test.ts27/27
  • ✓readLastTurn › reads the latest turn and model after a large malformed prefix16 ms
  • ✓readLastTurn › refuses non-regular transcript inputs1 ms
  • ✓readLastTurn › refuses a symlink swapped into the transcript path1 ms
  • ✓readLastTurn › extracts assistant text and user prompt from a text-only turn1 ms
  • ✓readLastTurn › flags tool-only turns (tool_use blocks, no text blocks)1 ms
  • ✓readLastTurn › concatenates text across multiple assistant records for one turn1 ms
  • ✓readLastTurn › picks the LAST user prompt when multiple turns are in the file1 ms
  • ✓readLastTurn › returns null for missing file1 ms
  • ✓readLastTurn › skips malformed lines and continues parsing1 ms
  • ✓readLastTurn › accepts legacy string content on both roles1 ms
  • ✓readTurnEndProbe › reports end_turn with the record timestamp on a finished turn1 ms
  • ✓readTurnEndProbe › skips trailing non-message records (mode markers)1 ms
  • ✓readTurnEndProbe › reports tool_use mid-turn (prompt open / tools pending)1 ms
  • ✓readTurnEndProbe › reports the user role while a tool_result is the tail (assistant pending)1 ms
  • ✓readTurnEndProbe › returns null timestamp when the record has none, and null on unreadable file1 ms
  • ✓readTurnEndProbe › skips a truncated final line (concurrent write)1 ms
  • ✓readTurnEndProbe › flags the ESC interrupt marker as the turn end1 ms
  • ✓readTurnEndProbe › does not read a quoted marker inside a tool_result as an interrupt1 ms
  • ✓readOpenTurnEvidence › finds a marker buried under the retyped prompt that followed it1 ms
  • ✓readOpenTurnEvidence › will not pay this turn for the previous turn's cancel1 ms
  • ✓readOpenTurnEvidence › a stampless record does not hide markers behind it1 ms
  • ✓readOpenTurnEvidence › returns null on a clean turn and on an unreadable file1 ms
  • ✓readOpenTurnEvidence › distinguishes an unreadable transcript from one holding no evidence1 ms
  • ✓readOpenTurnEvidence › reports the client abort that ends a turn with no Stop hook1 ms
  • ✓readOpenTurnEvidence › will not pay this turn for the previous turn's abort1 ms
  • ✓readOpenTurnEvidence › reports the end_turn that finished the turn, and nothing for one still running1 ms
  • ✓readOpenTurnEvidence › reports a turn that never ran — two prompts, no assistant record between1 ms
bridge/src/__tests__/claude-turn-watchdog.test.ts16/16
  • ✓ClaudeTurnWatchdog › does not stat or read network-share paths supplied in hook data8 ms
  • ✓ClaudeTurnWatchdog › closes a turn whose Stop was dropped once the transcript shows end_turn1 ms
  • ✓ClaudeTurnWatchdog › fires at most once per turn1 ms
  • ✓ClaudeTurnWatchdog › ignores the previous turn's end_turn (timestamp before turn open)1 ms
  • ✓ClaudeTurnWatchdog › closes a turn the user cancelled, tagged as an interrupt rather than a loss1 ms
  • ✓ClaudeTurnWatchdog › closes a turn the client aborted (usage limit / auth / API error)1 ms
  • ✓ClaudeTurnWatchdog › ignores the previous turn's abort1 ms
  • ✓ClaudeTurnWatchdog › ignores the previous turn's interrupt marker1 ms
  • ✓ClaudeTurnWatchdog › a plain user record is not an interrupt1 ms
  • ✓ClaudeTurnWatchdog › never closes a genuine wait (stop_reason tool_use)1 ms
  • ✓ClaudeTurnWatchdog › does not probe while the hook channel is active1 ms
  • ✓ClaudeTurnWatchdog › disarms when the real Stop arrives1 ms
  • ✓ClaudeTurnWatchdog › skips the transcript read when mtime has not advanced1 ms
  • ✓ClaudeTurnWatchdog › disarms on SessionEnd without killing later recovery (/clear fires SessionEnd mid-session)1 ms
  • ✓ClaudeTurnWatchdog › stop() (bridge shutdown) disarms permanently1 ms
  • ✓ClaudeTurnWatchdog › waits without a transcript path and recovers once one is learned1 ms
bridge/src/__tests__/claude-usage-recovery.test.ts16/16
  • ✓ClaudeUsageRecovery › resolves a relative executable before recovery changes cwd3 ms
  • ✓ClaudeUsageRecovery › identifies an overridden Windows .cmd shim1 ms
  • ✓ClaudeUsageRecovery › identifies an overridden Windows .BAT shim0 ms
  • ✓ClaudeUsageRecovery › does not restart the quick tier on repeatedly rotated rejected credentials4 ms
  • ✓ClaudeUsageRecovery › never recovers a different macOS Keychain namespace1 ms
  • ✓ClaudeUsageRecovery › resolves a relative credential directory before changing the child cwd0 ms
  • ✓ClaudeUsageRecovery › removes inherited credential/provider and session overrides without changing the parent0 ms
  • ✓ClaudeUsageRecovery › preserves the configured Claude executable through recovery environment sanitization1 ms
  • ✓ClaudeUsageRecovery › deduplicates concurrent callers and survives restarts without storing credentials1 ms
  • ✓ClaudeUsageRecovery › backs off six hours after three attempts, including failed child processes1 ms
  • ✓ClaudeUsageRecovery › retries an unchanged credential after one minute before using the normal backoff1 ms
  • ✓ClaudeUsageRecovery › persists a sanitized recovery outcome for detached-daemon diagnostics1 ms
  • ✓ClaudeUsageRecovery › fails closed if the retry budget cannot be persisted1 ms
  • ✓ClaudeUsageRecovery › resolves the CLI off PATH, honours PATHEXT, and reports a shell shim as unusable1 ms
  • ✓ClaudeUsageRecovery › resolves the cooldown record and the usage cache under AGENTDECK_DATA_DIR152 ms
  • ✓ClaudeUsageRecovery › disables tools and customizations while keeping OAuth available1 ms
bridge/src/__tests__/cmux-titles.test.ts4/4
  • ✓cmux live display names › joins current workspace and surface titles and refuses ambiguous IDs5 ms
  • ✓cmux live display names › updates rename and moves with stable routing IDs, and clears to the current fallback on refusal4 ms
  • ✓cmux live display names › isolates cmux instances and reads each socket once per snapshot1 ms
  • ✓cmux live display names › uses one read-only method, checks response identity and bounds silent peers518 ms
bridge/src/__tests__/codex-ambient-hooks.test.ts35/35
  • ✓isCodexAmbientPrompt (shared vectors) › hyperpersonalized suggestions generator (live 2026-09-11)2 ms
  • ✓isCodexAmbientPrompt (shared vectors) › generator prompt with its Markdown heading, verbatim from the hook (live 2026-09-29)0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › composer next-message suggestion (live 2026-10-17)0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › composer suggestion accepts leading whitespace and a line break between declarations0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › a user quoting the composer declaration is real work0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › a blockquoted declaration is real user content0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › a partial composer declaration is not enough evidence0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › a user prompt headed Overview is not ambient0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › safety and compliance review of ambient suggestions (live 2026-09-11)0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › leading whitespace and case do not hide the signature0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › a user prompt that mentions suggestions is not ambient0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › the signature must be at the start, not quoted mid-prompt0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › ordinary work prompt0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › codex exec image batch driven by another agent is real work0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › empty prompt0 ms
  • ✓isCodexAmbientPrompt (shared vectors) › non-string prompts are never ambient0 ms
  • ✓isCodexBackgroundCwd (shared vectors) › memory consolidation under the default home (live 2026-09-27)0 ms
  • ✓isCodexBackgroundCwd (shared vectors) › trailing slash0 ms
  • ✓isCodexBackgroundCwd (shared vectors) › a file inside the memory store0 ms
  • ✓isCodexBackgroundCwd (shared vectors) › custom CODEX_HOME0 ms
  • ✓isCodexBackgroundCwd (shared vectors) › custom CODEX_HOME still recognises the default suffix0 ms
  • ✓isCodexBackgroundCwd (shared vectors) › codex home itself is not the memory agent0 ms
  • ✓isCodexBackgroundCwd (shared vectors) › a user project named memories0 ms
  • ✓isCodexBackgroundCwd (shared vectors) › a project that merely contains .codex in its path0 ms
  • ✓isCodexBackgroundCwd (shared vectors) › ordinary project0 ms
  • ✓isCodexBackgroundCwd (shared vectors) › empty cwd0 ms
  • ✓CodexAmbientSessions — memory consolidation agent › drops the thread from its very first hook, the session start, and keeps dropping it1 ms
  • ✓CodexAmbientSessions — memory consolidation agent › leaves a real project session alone0 ms
  • ✓codexHookPromptText › reads prompt, then user_prompt, then message.content0 ms
  • ✓CodexAmbientSessions › classifies the thread on its prompt and every later hook on that id: You are an expert at upholding safety and compliance standards for Codex ambient suggestions. I will present1 ms
  • ✓CodexAmbientSessions › classifies the thread on its prompt and every later hook on that id: This is an app-generated request for a suggested next user message. The user did not write this message. Your suggestion will appear in the user's empty message composer.0 ms
  • ✓CodexAmbientSessions › a user thread on the same host is untouched, even at cwd /0 ms
  • ✓CodexAmbientSessions › only codex_* hooks with a session id are considered0 ms
  • ✓CodexAmbientSessions › a background thread is forgotten after the TTL, and re-identified by a fresh prompt0 ms
  • ✓CodexAmbientSessions › a hook on a live background thread refreshes its TTL0 ms
bridge/src/__tests__/codex-approval-hold.test.ts10/10
  • ✓Codex approval hold in the Node daemon › reads the captured request as the question devices show3 ms
  • ✓Codex approval hold in the Node daemon › releases a hold on every event that ends a Codex turn here1 ms
  • ✓CodexApprovalHolds › keeps one hold per session and reports a turn that ended under it1 ms
  • ✓CodexApprovalHolds › ignores a release for a hold it no longer owns0 ms
  • ✓a deck press on an open hold › answers with the decision the shared press vectors name3 ms
  • ✓a deck press on an open hold › leaves a session with no open hold to its usual route0 ms
  • ✓a deck press on an open hold › drops a press that echoes a prompt the hold does not show1 ms
  • ✓permission resolver with the Codex decision format › answers a device decision in the format the Codex hook prints4 ms
  • ✓permission resolver with the Codex decision format › releases a hold early as an empty pass and tells its owner1 ms
  • ✓permission resolver with the Codex decision format › still times out to a pass4 ms
bridge/src/__tests__/codex-approval-probe.test.ts3/3
  • ✓pending Codex approval reads › does not publish a delayed read after later session activity2 ms
  • ✓pending Codex approval reads › retains live hold twins through parallel progress, but not after close or a terminal hook0 ms
  • ✓pending Codex approval reads › keeps twins and other sessions independent, including a new read after invalidation0 ms
bridge/src/__tests__/codex-auth.test.ts24/24
  • ✓resolveChatGptRenewalDate › 'reported future date is preserved exa…'3 ms
  • ✓resolveChatGptRenewalDate › 'reported future annual date is not sh…'0 ms
  • ✓resolveChatGptRenewalDate › 'reported future date-only value is pr…'0 ms
  • ✓resolveChatGptRenewalDate › 'reported future date preserves offset…'0 ms
  • ✓resolveChatGptRenewalDate › 'Dec 11 regression: old October end es…'0 ms
  • ✓resolveChatGptRenewalDate › 'one calendar month rather than thirty…'0 ms
  • ✓resolveChatGptRenewalDate › 'many missed months keep the reported …'0 ms
  • ✓resolveChatGptRenewalDate › 'same-month candidate still in the fut…'0 ms
  • ✓resolveChatGptRenewalDate › 'equal boundary moves strictly into th…'0 ms
  • ✓resolveChatGptRenewalDate › 'equal rolled boundary moves strictly …'0 ms
  • ✓resolveChatGptRenewalDate › 'January 31 clamps to February 28'0 ms
  • ✓resolveChatGptRenewalDate › 'January 31 anchor survives a short Fe…'0 ms
  • ✓resolveChatGptRenewalDate › 'leap-year February clamps to 29'0 ms
  • ✓resolveChatGptRenewalDate › 'February 29 anchor survives the follo…'0 ms
  • ✓resolveChatGptRenewalDate › 'year boundary'0 ms
  • ✓resolveChatGptRenewalDate › 'UTC anchor is independent of the host…'0 ms
  • ✓resolveChatGptRenewalDate › 'old date-only value can anchor a mont…'0 ms
  • ✓resolveChatGptRenewalDate › 'missing end has no estimate'0 ms
  • ✓resolveChatGptRenewalDate › 'empty end has no estimate'0 ms
  • ✓resolveChatGptRenewalDate › 'malformed end cannot anchor an estima…'0 ms
  • ✓readCodexAuthStatus renewal source › does not turn a multi-month auth snapshot into a two-month billing cycle5 ms
  • ✓readCodexAuthStatus renewal source › prefers a future reported end over any monthly estimate1 ms
  • ✓readCodexAuthStatus renewal source › can estimate from a past end without a start1 ms
  • ✓readCodexAuthStatus renewal source › does not invent a date when only a start is known1 ms
bridge/src/__tests__/codex-background-terminals.test.ts4/4
  • ✓Codex background terminals › replays real rollout windows: running until its CommandExecution completion, retained when the start scrolls out4 ms
  • ✓Codex background terminals › projects an idle Codex row as working only while terminals run, and never covers other states4 ms
  • ✓Codex background terminals › polls only while a session has terminals and stops when the last one finishes3 ms
  • ✓Codex background terminals › stops watching when liveness cannot be seen and nothing is appended, and lets the count expire1 ms
  • ○Codex background terminals › replays the same windows and lifecycle through the Swift mirror
bridge/src/__tests__/codex-exec-children.test.ts26/26
  • ✓codex exec shape predicates › recognises the exec subcommand behind node and timeout wrappers, not the helpers4 ms
  • ✓codex exec shape predicates › reads the working directory from -C / --cd / --cd=1 ms
  • ✓codex exec shape predicates › treats only codex_exec as headless, case-insensitively0 ms
  • ✓nearestAncestorPeer › walks the wrapper chain up to the launching session1 ms
  • ✓nearestAncestorPeer › never matches the process itself and returns null with no peer ancestor0 ms
  • ✓nearestAncestorPeer › survives a cyclic or truncated table0 ms
  • ✓nearestAncestorPeer › is deterministic when several peers share a pid (Codex Desktop conversations)0 ms
  • ✓CodexExecChildren.noteHook › attaches a headless run to its launcher on SessionStart when the process is visible4 ms
  • ✓CodexExecChildren.noteHook › matches the argv -C path against the canonical rollout cwd (/tmp vs /private/tmp)0 ms
  • ✓CodexExecChildren.noteHook › completes the child on its Stop with the inline reply, once1 ms
  • ✓CodexExecChildren.noteHook › falls back to the rollout reply when the Stop payload carries none0 ms
  • ✓CodexExecChildren.noteHook › lets an interactive TUI session through untouched1 ms
  • ✓CodexExecChildren.noteHook › judges a headless run with no session ancestor standalone0 ms
  • ✓CodexExecChildren.noteHook › resolves a run launched without -C as the only unclaimed codex exec in the table0 ms
  • ✓CodexExecChildren.noteHook › asks for a fresh table once when the process is not visible yet, and lets the hooks flow meanwhile1 ms
  • ✓CodexExecChildren.noteHook › does not ask for a fresh table twice for one session0 ms
  • ✓CodexExecChildren.noteHook › gives up on a pending run after PENDING_TTL_MS and after a terminal hook0 ms
  • ✓CodexExecChildren.noteHook › re-checks a rollout that was not on disk at SessionStart1 ms
  • ✓CodexExecChildren.noteHook › ignores non-codex hooks and hooks without a session id0 ms
  • ✓CodexExecChildren.noteHook › does not let two same-cwd siblings claim one process1 ms
  • ✓CodexExecChildren.reconcile › attaches observer-found children and completes them when their process exits1 ms
  • ✓CodexExecChildren.reconcile › treats an empty process table as "could not look", not as every child finishing0 ms
  • ✓CodexExecChildren.reconcile › attaches a pending hook-side run from the tick table when the observer did not report it1 ms
  • ✓CodexExecChildren.reconcile › marks a parentless observation standalone so its later hooks flow0 ms
  • ✓CodexExecChildren.reconcile › corrects a best-effort hook-side pid with the observer's exact one1 ms
  • ✓CodexExecChildren.reconcile › does not complete a guessed-pid child while a same-cwd run is still alive1 ms
bridge/src/__tests__/codex-hook-replay.test.ts6/6
  • ✓CodexHookReplayGuard (#490) › replays every shared vector to its route6 ms
  • ✓CodexHookReplayGuard (#490) › ingests one Codex Stop once when both its codex_stop hook and a generic Stop hook deliver it, in either order1 ms
  • ✓CodexHookReplayGuard (#490) › keeps two different turns of one thread, and two threads closing with identical text1 ms
  • ✓CodexHookReplayGuard (#490) › does not deduplicate when the payload lacks its discriminator, and forgets after the window0 ms
  • ✓CodexHookReplayGuard (#490) › gives a notify payload its thread as session_id so it lands on the Codex session0 ms
  • ✓CodexHookReplayGuard (#490) › never re-routes a Claude payload, whatever model it names0 ms
bridge/src/__tests__/codex-hook-silence.test.ts5/5
  • ✓CodexHookSilenceWarning › warns once when the PTY is active but no codex_* event ever arrived6 ms
  • ✓CodexHookSilenceWarning › stays quiet when any codex hook event arrives (channel proven)1 ms
  • ✓CodexHookSilenceWarning › stays quiet when the terminal was barely used (session may not have started)1 ms
  • ✓CodexHookSilenceWarning › warns late when activity only crosses the threshold after the deadline1 ms
  • ✓CodexHookSilenceWarning › stop() disarms (session shutdown)0 ms
bridge/src/__tests__/codex-otel.test.ts27/27
  • ✓codex OTLP span parser › reads a full turn from dotted span names4 ms
  • ✓codex OTLP span parser › normalizes underscore and slash span-name variants0 ms
  • ✓codex OTLP span parser › rejects short numeric ids and prefers the durable alias on the same span1 ms
  • ✓codex OTLP span parser › ignores a tool span own cwd but inherits the thread-scoped one1 ms
  • ✓codex OTLP span parser › falls through to resource-level attributes0 ms
  • ✓codex OTLP span parser › keeps untrusted attribute names as data and preserves span-over-resource precedence0 ms
  • ✓codex OTLP span parser › drops unknown spans and spans with no identity at all0 ms
  • ✓codex OTLP span parser › summarizes span names for diagnostics0 ms
  • ✓codex OTLP span parser › finds no durable identity in a live ChatGPT.app Codex batch1 ms
  • ✓CodexOtelTracker › overlays state and tool onto the matching observed row instead of duplicating it3 ms
  • ✓CodexOtelTracker › synthesizes a codex-app row only when the process scan found nothing1 ms
  • ✓CodexOtelTracker › hook-owned Codex threads › keeps the hook row when a finished exec session's spans arrive late2 ms
  • ✓CodexOtelTracker › hook-owned Codex threads › still synthesizes a row for a thread no hook has reported0 ms
  • ✓CodexOtelTracker › Codex background threads › never synthesizes a row for a thread the hook classifier already dropped1 ms
  • ✓CodexOtelTracker › Codex background threads › retracts a row its spans opened before the identifying hook arrived1 ms
  • ✓CodexOtelTracker › Codex background threads › leaves the user's own thread alone0 ms
  • ✓CodexOtelTracker › rejects a superseded turnEnd so a stale span cannot close the live turn0 ms
  • ✓CodexOtelTracker › lets a follow-up turn revive a thread its own turnEnd retired0 ms
  • ✓CodexOtelTracker › expires a finished thread, and a quiet one, instead of pinning a creature1 ms
  • ✓CodexOtelTracker › stops overriding observer state once its own observation goes stale0 ms
  • ✓CodexOtelTracker › never lets progress-only activity spans open or revive a thread1 ms
  • ✓CodexOtelTracker › leaves non-codex rows untouched0 ms
  • ✓Codex OTel rollout subagent exclusion › retracts a late-classified phantom and does not promote later spans105 ms
  • ✓Codex OTel rollout subagent exclusion › retains standalone or unreadable metadata (false)52 ms
  • ✓Codex OTel rollout subagent exclusion › retains standalone or unreadable metadata (undefined)50 ms
  • ✓Codex OTel rollout subagent exclusion › retries only unknown metadata after the canonical retry period102 ms
  • ✓Codex OTel rollout subagent exclusion › bounds concurrent reads and cached identities3 ms
bridge/src/__tests__/codex-rollout-response.test.ts23/23
  • ✓codex rollout response reader › classifies the sanitized actual desktop thread_spawn metadata from a bounded head9 ms
  • ✓codex rollout response reader › keeps missing malformed or oversized head evidence unknown7 ms
  • ✓codex rollout response reader › reads automatic review from the actual hook rollout beyond the response tail6 ms
  • ✓codex rollout response reader › finds either reviewer beyond multiple windows, including a single huge tool record225 ms
  • ✓codex rollout response reader › retains a complete settings record that itself crosses several windows198 ms
  • ✓codex rollout response reader › stops at the newest unknown or different-turn record instead of reviving an older user119 ms
  • ✓codex rollout response reader › reads append, same-size rewrite, truncation and replacement afresh4 ms
  • ✓codex rollout response reader › locates a rollout by the session uuid embedded in the filename2 ms
  • ✓codex rollout response reader › locates asynchronously by exact id with bounded days and unreadable/missing results7 ms
  • ✓codex rollout response reader › prefers task_complete.last_agent_message (authoritative turn close)2 ms
  • ✓codex rollout response reader › reads the same outcome from a path the hook already carried1 ms
  • ✓codex rollout response reader › falls back to the newest agent_message when no task_complete follows1 ms
  • ✓codex rollout response reader › returns empty for missing rollouts, malformed lines, and bad ids1 ms
  • ✓codex rollout response reader › failed turns › reports the error a task_complete carries instead of a reply1 ms
  • ✓codex rollout response reader › failed turns › reports a standalone error record1 ms
  • ✓codex rollout response reader › failed turns › unwraps the upstream JSON body Codex nests in the message1 ms
  • ✓codex rollout response reader › failed turns › never inherits the previous turn's reply1 ms
  • ✓codex rollout response reader › failed turns › still returns a successful reply unchanged1 ms
  • ✓codex rollout response reader › codexTurnCompletionSince › returns the task_complete newer than the turn, with its reply2 ms
  • ✓codex rollout response reader › codexTurnCompletionSince › carries the failure Codex wrote on the completion — such a turn fires no Stop1 ms
  • ✓codex rollout response reader › codexTurnCompletionSince › never attributes an older turn's completion to this one1 ms
  • ✓codex rollout response reader › codexTurnCompletionSince › a later turn opening after the completion does not hide it1 ms
  • ✓codex rollout response reader › codexTurnCompletionSince › records without a timestamp cannot be placed, and a missing rollout is no evidence2 ms
bridge/src/__tests__/codex-turn-manager.test.ts12/12
  • ✓CodexTurnManager (hook-primary path) › happy path: UPS → tool_start → tool_end → stop emits one chat33 ms
  • ✓CodexTurnManager (hook-primary path) › a benign `message` on codex_stop is never rendered as an error14 ms
  • ✓CodexTurnManager (hook-primary path) › an explicit `error` on codex_stop renders the error close row12 ms
  • ✓CodexTurnManager (hook-primary path) › codex_stop does not reset subsequent turn_index numbering26 ms
  • ✓CodexTurnManager (hook-primary path) › codex_stop finalizes APME turn (endedAt set, tool_calls flushed)18 ms
  • ✓CodexTurnManager (hook-primary path) › next prompt opens a fresh chat_start15 ms
  • ✓CodexTurnManager (hook-primary path) › turn-complete notify closes a turn when codex_stop is absent17 ms
  • ✓CodexTurnManager (hook-primary path) › long-bash: hook tool_start + tool_end keep the same turn open14 ms
  • ✓CodexTurnManager (stale-turn recovery on prompt-submit) › missed codex_stop: next prompt closes the stale turn and opens a fresh row16 ms
  • ✓CodexTurnManager (stale-turn recovery on prompt-submit) › late prompt text fills a tool_start-opened turn without splitting it15 ms
  • ✓CodexTurnManager (stale-turn recovery on prompt-submit) › duplicate prompt echo within the window is a no-op14 ms
  • ✓CodexTurnManager (stale-turn recovery on prompt-submit) › text-less stale turn older than the fill window is closed, not filled17 ms
bridge/src/__tests__/coordination-evidence.test.ts49/49
  • ✓parseCrossSessionEnvelope › reads the sender pid, name and body off a real envelope13 ms
  • ✓parseCrossSessionEnvelope › is null for an ordinary user prompt, even one that mentions a peer1 ms
  • ✓parseSendMessageInput › splits a uds address into a pid and keeps a name as a name5 ms
  • ✓isAgentSpawnCommand › matches the measured headless worker launch and nothing else1 ms
  • ✓findAncestorSession › walks bash wrappers up to the parent agent and stops at launchd1 ms
  • ✓CoordinationTracker › indexes exact session path segments, deduplicates matches and retains compound-id callers6 ms
  • ✓CoordinationTracker › links a claude -p worker to its parent by ancestry and closes it when it exits2 ms
  • ✓CoordinationTracker › counts a background job the session is waiting on once, by its outermost process1 ms
  • ✓CoordinationTracker › resolves a uniquely addressed process and keeps a name-only message unidentified2 ms
  • ✓CoordinationTracker › records a spawn intent from a Bash launch and folds it into the child once seen1 ms
  • ✓CoordinationTracker › never invents a relation from shared project membership0 ms
  • ✓shared coordination-evidence vectors › envelopes0 ms
  • ✓shared coordination-evidence vectors › sendMessage1 ms
  • ✓shared coordination-evidence vectors › spawn and agent commands1 ms
  • ✓shared coordination-evidence vectors › labels1 ms
  • ✓shared coordination-evidence vectors › ancestry0 ms
  • ✓shared coordination-evidence vectors › background jobs and spawned workers from the measured process table1 ms
  • ✓shared coordination-evidence vectors › makes no claim when the process table could not be read1 ms
  • ✓shared coordination-evidence vectors › registers a hook pid and walks a wrapper shell up to the agent process1 ms
  • ✓message intent evidence › classifies notification: FYI: deployment finished.1 ms
  • ✓message intent evidence › classifies notification: pong0 ms
  • ✓message intent evidence › classifies notification: 수정 결과 보고입니다. 이 메시지는 세션 사이 알림이다.0 ms
  • ✓message intent evidence › classifies request: Please reply with the findings.0 ms
  • ✓message intent evidence › classifies request: 확인 후 답변 부탁드립니다.0 ms
  • ✓message intent evidence › classifies request: 결과를 알려 주세요.0 ms
  • ✓message intent evidence › classifies notification: Please reply. No response is required.0 ms
  • ✓message intent evidence › classifies notification: 답변 부탁드립니다. 응답은 필요 없습니다.0 ms
  • ✓message intent evidence › classifies unknown: > Please reply with results. Example only.0 ms
  • ✓message intent evidence › classifies notification: ``` Please reply ``` FYI: syntax example.0 ms
  • ✓message intent evidence › classifies unknown: The log contains `please reply`.0 ms
  • ✓message intent evidence › classifies unknown: Does this need changing?0 ms
  • ✓message intent evidence › classifies response: In reply to your request: all checks passed.0 ms
  • ✓message intent evidence › classifies response: 요청하신 분석 결과입니다.0 ms
  • ✓message intent evidence › classifies request: FYI: please reply with your findings.0 ms
  • ✓message intent evidence › classifies request: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1 ms
  • ✓message intent evidence › classifies unknown: Please reply.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1 ms
  • ✓message intent evidence › classifies unknown: I will report back tomorrow.0 ms
  • ✓message intent evidence › classifies unknown: Example: "Please reply with results".0 ms
  • ✓message intent evidence › classifies unknown: 예시: “알려 주세요” 문구.0 ms
  • ✓message intent evidence › classifies notification: COMPOSER_FINAL_NOTIFICATION: FYI only, the final aquarium vi1 ms
  • ✓message intent evidence › classifies notification: No reply is requested.0 ms
  • ✓message intent evidence › classifies notification: No response expected.0 ms
  • ✓message intent evidence › classifies notification: A response is not required.0 ms
  • ✓message intent evidence › classifies notification: Please do not send a response.0 ms
  • ✓message intent evidence › classifies notification: Don't respond.0 ms
  • ✓message intent evidence › classifies request: No deployment is requested. Please reply with your findings.0 ms
  • ✓message intent evidence › classifies request: The log says "No reply is requested." Please reply with your0 ms
  • ✓message intent evidence › never interprets a summary or an oversized body as a reply request0 ms
  • ✓bounds intent matching time for a complete message filled with whitespace1 ms
bridge/src/__tests__/deferred-reply-read.test.ts3/3
  • ✓scheduleDeferredReplyRead › retries on the bounded schedule and applies the first non-empty read11 ms
  • ✓scheduleDeferredReplyRead › gives up silently after the last delay, and a throwing reader counts as empty1 ms
  • ✓scheduleDeferredReplyRead › never holds the process open for the retry timer0 ms
bridge/src/__tests__/hermes-attention.test.ts19/19
  • ✓Hermes human-input status (Node only) › restores a live snapshot as display only and expires it without closing a run7 ms
  • ✓Hermes human-input status (Node only) › keeps an existing run open while snapshots refresh past the silence TTL8 ms
  • ✓Hermes human-input status (Node only) › applies empty snapshots without creating an execution row1 ms
  • ✓Hermes human-input status (Node only) › reports clarify without offering control or exporting prompt content2 ms
  • ✓Hermes human-input status (Node only) › reports approval without offering control or exporting prompt content1 ms
  • ✓Hermes human-input status (Node only) › reports sudo without offering control or exporting prompt content0 ms
  • ✓Hermes human-input status (Node only) › keeps overlapping waits through unrelated tools and resolves only matching requests0 ms
  • ✓Hermes human-input status (Node only) › fences resolved-before-request and duplicate events, including the next turn0 ms
  • ✓Hermes human-input status (Node only) › clears waits at hermes_stop0 ms
  • ✓Hermes human-input status (Node only) › clears waits at hermes_user_prompt_submit0 ms
  • ✓Hermes human-input status (Node only) › clears waits at hermes_session_end0 ms
  • ✓Hermes human-input status (Node only) › never creates or resurrects an execution row from attention0 ms
  • ✓Hermes human-input status (Node only) › retires a lost resolution as stale, never as task success0 ms
  • ✓Hermes human-input status (Node only) › does not extend a human wait merely because an otherwise idle CLI is alive0 ms
  • ✓Hermes human-input status (Node only) › bounds pending requests without evicting unresolved waits1 ms
  • ✓Hermes human-input status (Node only) › rejects malformed attention {"kind":"smart"}0 ms
  • ✓Hermes human-input status (Node only) › rejects malformed attention {"attention_id":"native"}0 ms
  • ✓Hermes human-input status (Node only) › rejects malformed attention {"session_id":"bad"}0 ms
  • ✓Hermes human-input status (Node only) › rejects malformed attention {"kind":null}0 ms
bridge/src/__tests__/hermes-sessions.test.ts18/18
  • ✓Hermes conversation lifetime › does not renew unconfirmed work just because the CLI process is alive5 ms
  • ✓Hermes conversation lifetime › does not resurrect completed work from late tool callbacks1 ms
  • ✓Hermes conversation lifetime › keeps a captured delegated turn as one read-only parent until finalization1 ms
  • ✓Hermes conversation lifetime › admits captured real Hermes CI invocation and clears only its matching tool end3 ms
  • ✓Hermes conversation lifetime › replays captured real CLI tool work through Stop and finalization2 ms
  • ✓Hermes conversation lifetime › survives multiple turns and keeps tools separate from a final response2 ms
  • ✓Hermes conversation lifetime › finalizes and rejects trailing callbacks until explicit reopening0 ms
  • ✓Hermes conversation lifetime › expires a missing stop without inventing successful completion1 ms
  • ✓Hermes conversation lifetime › recovers mid-tool after restart but rejects orphan stops and unknown events0 ms
  • ✓Hermes conversation lifetime › isolates simultaneous profile/conversation identities and rejects malformed ids0 ms
  • ✓Hermes conversation lifetime › bounds retained sessions even if a gateway opens many conversations13 ms
  • ✓Hermes conversations end with their process › closes a conversation whose process is gone, and a late callback cannot reopen it1 ms
  • ✓Hermes conversations end with their process › keeps the conversation while the process runs, or when the probe cannot tell0 ms
  • ✓Hermes conversations end with their process › leaves rows from an observer that reports no pid to the silence TTL0 ms
  • ✓Hermes conversations end with their process › probes a shared gateway process once and closes all of its conversations0 ms
  • ✓Hermes conversations end with their process › reopens a resumed conversation from its new process0 ms
  • ✓Hermes conversations end with their process › keeps a running CLI conversation on screen like OpenClaw, but not a gateway one0 ms
  • ✓Hermes conversations end with their process › reads only "no such process" as dead26 ms
bridge/src/__tests__/hook-claude-sessions.test.ts8/8
  • ✓Claude lifecycle roster merge (#367) › keeps concurrent sessions isolated and preserves passive facts across the whole turn5 ms
  • ✓Claude lifecycle roster merge (#367) › retains another parallel tool when one succeeds or fails1 ms
  • ✓Claude lifecycle roster merge (#367) › never creates a phantom row, suppresses ended rows, and reopens only on SessionStart1 ms
  • ✓Claude lifecycle roster merge (#367) › sanitizes and bounds names, ignores unrelated hooks and never changes managed rows1 ms
  • ✓Claude lifecycle roster merge (#367) › leaves permission overlay precedence and its request identity intact1 ms
  • ✓Claude hook settings readout (#463) › surfaces model, effort and permission mode in Claude's own words1 ms
  • ✓Claude hook settings readout (#463) › prefers the transcript model (it follows /model) over the opening SessionStart model0 ms
  • ✓Claude hook settings readout (#463) › does not carry settings across a new SessionStart0 ms
bridge/src/__tests__/hook-codex-sessions.test.ts32/32
  • ✓HookCodexSessions › registers idle without resetting a turn on duplicate SessionStart5 ms
  • ✓HookCodexSessions › surfaces a Codex the process scan never found4 ms
  • ✓HookCodexSessions › enriches a hook-only Windows row from its id-keyed desktop rollout1 ms
  • ✓HookCodexSessions › yields to the observer instead of doubling the row1 ms
  • ✓HookCodexSessions › matches the observer row in either id form0 ms
  • ✓HookCodexSessions › tracks tool state through a turn1 ms
  • ✓HookCodexSessions › reaps a finished session, and one that died without a stop hook1 ms
  • ✓HookCodexSessions › lets a follow-up prompt revive a finished session0 ms
  • ✓HookCodexSessions › opens a row from a mid-turn hook when the session start predates the daemon1 ms
  • ✓HookCodexSessions › never lets a trailing tool callback resurrect a finished session1 ms
  • ✓HookCodexSessions › keeps the first cwd instead of relabelling on a later hook1 ms
  • ✓HookCodexSessions › ignores non-codex events and payloads with no session id0 ms
  • ✓Codex PermissionRequest / Interrupt hooks › a permission request keeps the row alive as progress; an interrupt is terminal0 ms
  • ✓Codex PermissionRequest / Interrupt hooks › a permission request can open a row the scan never found (the hook proves the session)0 ms
  • ✓Codex PermissionRequest / Interrupt hooks › buildCodexPermissionQuestion names the command, never the whole input1 ms
  • ✓a resumed idle session is not reaped by its previous terminal timestamp0 ms
  • ✓hook-only Codex terminal reconciliation › settles explicit task_complete without a Stop hook on every platform2 ms
  • ✓hook-only Codex terminal reconciliation › settles explicit turn_aborted without a Stop hook on every platform1 ms
  • ✓hook-only Codex terminal reconciliation › keeps work for head only0 ms
  • ✓hook-only Codex terminal reconciliation › keeps work for undated terminal0 ms
  • ✓hook-only Codex terminal reconciliation › keeps work for old terminal0 ms
  • ✓hook-only Codex terminal reconciliation › keeps work for future terminal0 ms
  • ✓hook-only Codex terminal reconciliation › keeps work for new task_started0 ms
  • ✓hook-only Codex terminal reconciliation › keeps work for new user_message1 ms
  • ✓hook-only Codex terminal reconciliation › rejects mismatched identity, failed reads and malformed/default idle summaries1 ms
  • ✓hook-only Codex terminal reconciliation › preserves observer priority without starting disk lookup2 ms
  • ✓hook-only Codex terminal reconciliation › accepts terminal evidence after a delayed tool-end but not after new tool-start work1 ms
  • ✓hook-only Codex terminal reconciliation › does not close a new prompt from a cached previous terminal0 ms
  • ✓hook-only Codex terminal reconciliation › bounds positive/negative reads and discards an async answer superseded by a same-ms prompt1 ms
  • ✓hook-only Codex terminal reconciliation › caches successful reads across repeated broadcasts without extending the terminal TTL1 ms
  • ✓hook-only Codex terminal reconciliation › keeps Windows metadata stable while refreshing but invalidates it for a new prompt1 ms
  • ✓hook-only Codex terminal reconciliation › discards async evidence after forget and accepts a fresh successful read1 ms
bridge/src/__tests__/hook-opencode-sessions.test.ts16/16
  • ✓HookOpenCodeSessions › native observation-only permissions carry attention without an answerable request3 ms
  • ✓HookOpenCodeSessions › surfaces a session from its hooks with the turn state the process scan cannot see2 ms
  • ✓HookOpenCodeSessions › PERM: permission.asked is a genuine wait with an answerable requestId, cleared by the reply1 ms
  • ✓HookOpenCodeSessions › a permission without an id is not a wait anyone can answer (no PERM)0 ms
  • ✓HookOpenCodeSessions › unrelated tool traffic preserves a wait; terminal stop clears it0 ms
  • ✓HookOpenCodeSessions › the PID row for the same working directory yields to the hook row (one TUI, one creature)1 ms
  • ✓HookOpenCodeSessions › a PID row with no cwd is kept (nothing proves it is the same session)0 ms
  • ✓HookOpenCodeSessions › a hook on an unknown session is ignored unless it opens one0 ms
  • ✓HookOpenCodeSessions › session_end removes the row; silence reaps it after the TTL1 ms
  • ✓replays the shared identity-scoped wait contract2 ms
  • ✓publishes real choices and correlates a device reply to the live question2 ms
  • ✓does not convert multiple-choice groups or missing transport into a binary permission1 ms
  • ✓renders one-time permission choices and routes each transport to the current native permission1 ms
  • ✓removes a permission wait after its owning OpenCode process is confirmed exited0 ms
  • ✓retains legacy unknown-PID sessions and updates the owner when a session resumes0 ms
  • ✓keeps observer-only structured choices read-only even if the SDK supports replies0 ms
bridge/src/__tests__/hook-response-source.test.ts5/5
  • ✓resolveStopResponse › inline text wins for every agent and touches no file6 ms
  • ✓resolveStopResponse › a Codex hook's transcript_path is its rollout, read by the Codex reader — never the Claude one2 ms
  • ✓resolveStopResponse › a Codex hook without a path locates the rollout by session id, and carries its recorded failure0 ms
  • ✓resolveStopResponse › a Claude hook's transcript_path goes to the Claude reader0 ms
  • ✓resolveStopResponse › an agent with neither inline text nor an owned reader yields nothing rather than a guess0 ms
bridge/src/__tests__/managed-hook-harness.test.ts12/12
  • ✓ManagedHookGate › each managed adapter owns its own harness (the codex bridge is agentType codex-cli)12 ms
  • ✓ManagedHookGate › a Claude bridge keeps Claude hooks and hands Codex hooks away2 ms
  • ✓ManagedHookGate › a Codex bridge re-routes its own Claude-shaped hook and ingests the twin once1 ms
  • ✓ManagedHookGate › a Codex bridge answers a re-routed Claude-shaped command with nothing1 ms
  • ✓ManagedHookGate › drops a Codex payload with no Codex route on either bridge0 ms
  • ✓createDaemonHookForwarder › never forwards to itself or to a missing daemon1 ms
  • ✓createDaemonHookForwarder › reuses a resolved daemon port and spends the lookup time from the hook budget6 ms
  • ✓createDaemonHookForwarder › restates a Codex hold request to the wait this hop can give, which is too short to hold1 ms
  • ✓createDaemonHookForwarder › bounds the wait just under each hook script’s own deadline0 ms
  • ✓createDaemonHookForwarder › a nested Codex hook on a managed Claude bridge reaches the daemon unchanged and never drives the Claude session71 ms
  • ✓createDaemonHookForwarder › a nested Codex hold request reaches the daemon still marked as one, so the daemon neither ingests nor holds it13 ms
  • ✓createDaemonHookForwarder › a managed Codex bridge drives its session from the notification and answers the hold twin without emitting it10 ms
bridge/src/__tests__/observed-hook-classify.test.ts19/19
  • ✓classifyObservedHookEvent › passes Claude-mapped events through with claude-code attribution5 ms
  • ✓classifyObservedHookEvent › maps codex_* lifecycle names to their boundary with codex-cli attribution0 ms
  • ✓classifyObservedHookEvent › maps codex notify turn_complete to stop (single completion row per turn)0 ms
  • ✓classifyObservedHookEvent › keeps Codex subagent hooks attributed to Codex0 ms
  • ✓classifyObservedHookEvent › maps opencode_* plugin events to their boundary with opencode attribution0 ms
  • ✓classifyObservedHookEvent › accepts antigravity_* for forward-compatibility (no installer yet)0 ms
  • ✓classifyObservedHookEvent › maps Kiro 2.x and 3.x hook vocabulary without requiring managed launch0 ms
  • ✓classifyObservedHookEvent › leaves unknown or unprefixed names untouched (claude fallback)0 ms
  • ✓Hermes observer attribution › session_start stays Hermes0 ms
  • ✓Hermes observer attribution › user_prompt_submit stays Hermes0 ms
  • ✓Hermes observer attribution › tool_start stays Hermes0 ms
  • ✓Hermes observer attribution › tool_end stays Hermes0 ms
  • ✓Hermes observer attribution › stop stays Hermes0 ms
  • ✓Hermes observer attribution › session_end stays Hermes0 ms
  • ✓classifyObservedHookEvent — Codex PermissionRequest / Interrupt › permission_request keeps its own boundary (a wait, not a turn edge)0 ms
  • ✓classifyObservedHookEvent — Codex PermissionRequest / Interrupt › interrupt is a turn END with no Stop coming, so it rides the stop boundary0 ms
  • ✓keeps OpenCode question_asked attributed to its harness0 ms
  • ✓keeps OpenCode question_replied attributed to its harness0 ms
  • ✓keeps OpenCode question_rejected attributed to its harness0 ms
bridge/src/__tests__/observed-inject.test.ts84/84
  • ✓parseTmuxPanes › maps pane ttys (dev-prefix stripped) to pane ids2 ms
  • ✓parseTmuxPanes › ignores malformed lines0 ms
  • ✓buildItermSelectScript › targets the session by tty and types Down x index then Enter0 ms
  • ✓buildItermSelectScript › index 0 is a bare Enter0 ms
  • ✓buildItermSelectScript › can emit the arrows without the Enter that would act on them0 ms
  • ✓parseProcessTable with tty column › parses tty and treats ?? as none0 ms
  • ✓buildTerminalAppSelectTabScript › selects the tab by tty without activating the app0 ms
  • ✓buildTerminalAppSelectTabScript › returns notfound when no tab matches0 ms
  • ✓buildPostKeysScript › matches by bundle id first, then localized name0 ms
  • ✓buildPostKeysScript › posts to the pid (never activates) and ends with Return0 ms
  • ✓buildPostKeysScript › carries a second Return only when a grouped prompt needs submitting0 ms
  • ✓buildAppButtonPressScript › matches the button by label with prefix tolerance and clicks it0 ms
  • ✓buildAppButtonPressScript › escapes quotes in labels0 ms
  • ✓buildAppKeysScript › raises the app, keys, and restores the previous frontmost app0 ms
  • ✓escapeAppleScript › escapes backslashes and quotes0 ms
  • ✓app-host resolution › extracts the app name from a bundle path0 ms
  • ✓app-host resolution › walks the ancestry to find the hosting app0 ms
  • ✓app-host resolution › returns undefined for a plain terminal session0 ms
  • ✓parseCmuxEnv › reads the surface id and socket path from the environment1 ms
  • ✓parseCmuxEnv › is undefined for a process that does not run under cmux0 ms
  • ✓parseCmuxEnv › removes all argv before reading the real environment0 ms
  • ✓parseCmuxEnv › does not treat a surface mentioned only in argv as a cmux host0 ms
  • ✓parseCmuxEnv › requires a readable complete argv prefix without trimming argument whitespace0 ms
  • ✓parseCmuxEnv › rejects a surface id that is not a UUID, so it can never read as a flag0 ms
  • ✓parseCmuxEnv › drops a socket path that is relative or missing, leaving discovery to the CLI0 ms
  • ✓cmux error reading › keeps the first line without the Error: prefix0 ms
  • ✓cmux error reading › recognises both shapes of a socket refusal0 ms
  • ✓cmux rung › pastes a dictated line into the surface, then submits it with Enter252 ms
  • ✓cmux rung › never forces text over a draft: cmux refuses, and nothing is submitted1 ms
  • ✓cmux rung › quotes ping when the socket refuses, and names the setting to change0 ms
  • ✓cmux rung › answers a picker with paced, forced Down presses and an Enter542 ms
  • ✓cmux rung › reports a break after keys landed instead of re-sending them elsewhere122 ms
  • ✓cmux rung › leaves sessions outside cmux to the AppleScript rungs2 ms
  • ✓cmux rung › ignores argv-only CMUX_SURFACE_ID in the text ladder1 ms
  • ✓cmux rung › ignores argv-only CMUX_SURFACE_ID in the selection ladder0 ms
  • ✓cmux rung › does not select cmux when argv is changed after the environment probe1 ms
  • ✓cmux rung › does not select cmux when argv is unreadable after the environment probe0 ms
  • ✓cmux rung › does not look for cmux when the agent pid is unknown0 ms
  • ✓terminal Automation host guard › text delivery › skips Automation for Ghostty1 ms
  • ✓terminal Automation host guard › text delivery › skips Automation for WezTerm0 ms
  • ✓terminal Automation host guard › text delivery › skips Automation for kitty0 ms
  • ✓terminal Automation host guard › text delivery › skips Automation for Alacritty0 ms
  • ✓terminal Automation host guard › text delivery › skips Automation for Visual Studio Code0 ms
  • ✓terminal Automation host guard › text delivery › only controls the owning app /Applications/iTerm.app/Contents/MacOS/iTerm21 ms
  • ✓terminal Automation host guard › text delivery › only controls the owning app /System/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal0 ms
  • ✓terminal Automation host guard › text delivery › does not try another app when the owner fails: /Applications/iTerm.app/Contents/MacOS/iTerm22 ms
  • ✓terminal Automation host guard › text delivery › does not try another app when the owner fails: /System/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal0 ms
  • ✓terminal Automation host guard › text delivery › uses the nearest app when an editor was launched from iTerm20 ms
  • ✓terminal Automation host guard › text delivery › keeps an unreadable or incomplete host unknown: {"code":1}0 ms
  • ✓terminal Automation host guard › text delivery › keeps an unreadable or incomplete host unknown: {"stdout":""}0 ms
  • ✓terminal Automation host guard › text delivery › keeps an unreadable or incomplete host unknown: {"stdout":"4242 100 /opt/homebrew/bin/claude"}0 ms
  • ✓terminal Automation host guard › text delivery › keeps an unreadable or incomplete host unknown: {"stdout":"4242 100 /opt/homebrew/bin/claude\n100 4242 /bin/zsh"}1 ms
  • ✓terminal Automation host guard › text delivery › keeps an unreadable or incomplete host unknown: {"stdout":"4242 1 /opt/homebrew/bin/claude"}0 ms
  • ✓terminal Automation host guard › text delivery › keeps an unreadable or incomplete host unknown: {"stdout":"malformed process snapshot"}0 ms
  • ✓terminal Automation host guard › text delivery › skips Automation without a valid pid: undefined0 ms
  • ✓terminal Automation host guard › text delivery › skips Automation without a valid pid: 00 ms
  • ✓terminal Automation host guard › text delivery › skips Automation without a valid pid: -10 ms
  • ✓terminal Automation host guard › text delivery › skips Automation without a valid pid: 1.50 ms
  • ✓terminal Automation host guard › text delivery › skips Automation without a valid pid: NaN1 ms
  • ✓terminal Automation host guard › text delivery › still delivers through tmux without discovering an app252 ms
  • ✓terminal Automation host guard › text delivery › never uses Automation on a non-macOS host1 ms
  • ✓terminal Automation host guard › selection delivery › skips Automation for Ghostty0 ms
  • ✓terminal Automation host guard › selection delivery › skips Automation for WezTerm0 ms
  • ✓terminal Automation host guard › selection delivery › skips Automation for kitty0 ms
  • ✓terminal Automation host guard › selection delivery › skips Automation for Alacritty0 ms
  • ✓terminal Automation host guard › selection delivery › skips Automation for Visual Studio Code0 ms
  • ✓terminal Automation host guard › selection delivery › only controls the owning app /Applications/iTerm.app/Contents/MacOS/iTerm2301 ms
  • ✓terminal Automation host guard › selection delivery › only controls the owning app /System/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal1 ms
  • ✓terminal Automation host guard › selection delivery › does not try another app when the owner fails: /Applications/iTerm.app/Contents/MacOS/iTerm20 ms
  • ✓terminal Automation host guard › selection delivery › does not try another app when the owner fails: /System/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal1 ms
  • ✓terminal Automation host guard › selection delivery › uses the nearest app when an editor was launched from iTerm21 ms
  • ✓terminal Automation host guard › selection delivery › keeps an unreadable or incomplete host unknown: {"code":1}0 ms
  • ✓terminal Automation host guard › selection delivery › keeps an unreadable or incomplete host unknown: {"stdout":""}2 ms
  • ✓terminal Automation host guard › selection delivery › keeps an unreadable or incomplete host unknown: {"stdout":"4242 100 /opt/homebrew/bin/claude"}0 ms
  • ✓terminal Automation host guard › selection delivery › keeps an unreadable or incomplete host unknown: {"stdout":"4242 100 /opt/homebrew/bin/claude\n100 4242 /bin/zsh"}0 ms
  • ✓terminal Automation host guard › selection delivery › keeps an unreadable or incomplete host unknown: {"stdout":"4242 1 /opt/homebrew/bin/claude"}0 ms
  • ✓terminal Automation host guard › selection delivery › keeps an unreadable or incomplete host unknown: {"stdout":"malformed process snapshot"}1 ms
  • ✓terminal Automation host guard › selection delivery › skips Automation without a valid pid: undefined0 ms
  • ✓terminal Automation host guard › selection delivery › skips Automation without a valid pid: 00 ms
  • ✓terminal Automation host guard › selection delivery › skips Automation without a valid pid: -10 ms
  • ✓terminal Automation host guard › selection delivery › skips Automation without a valid pid: 1.50 ms
  • ✓terminal Automation host guard › selection delivery › skips Automation without a valid pid: NaN0 ms
  • ✓terminal Automation host guard › selection delivery › still delivers through tmux without discovering an app300 ms
  • ✓terminal Automation host guard › selection delivery › never uses Automation on a non-macOS host0 ms
bridge/src/__tests__/observed-launch-integration.test.ts1/1
  • ✓real inherited-terminal shell › preserves quoted executable/arguments, cwd and output redirection441 ms
bridge/src/__tests__/observed-launch.test.ts7/7
  • ✓observed terminal launch › preserves shell grammar on darwin6 ms
  • ✓observed terminal launch › preserves shell grammar on linux0 ms
  • ✓observed terminal launch › preserves shell grammar on win320 ms
  • ✓observed terminal launch › preserves shell grammar on win320 ms
  • ✓observed terminal launch › does not silently misroute hooks from a managed terminal1 ms
  • ✓observed terminal launch › preserves signal exit status and removes signal listeners1 ms
  • ✓observed terminal launch › reports a missing shell and cleans up on failure0 ms
bridge/src/__tests__/observed-steering.test.ts32/32
  • ✓PreToolUse cannot prove a human wait › passes unlisted calls through in unknown mode6 ms
  • ✓PreToolUse cannot prove a human wait › passes unlisted calls through in default mode1 ms
  • ✓PreToolUse cannot prove a human wait › passes unlisted calls through in acceptEdits mode1 ms
  • ✓PreToolUse cannot prove a human wait › passes unlisted calls through in auto mode1 ms
  • ✓PreToolUse cannot prove a human wait › passes unlisted calls through in dontAsk mode1 ms
  • ✓PreToolUse cannot prove a human wait › passes unlisted calls through in plan mode1 ms
  • ✓PreToolUse cannot prove a human wait › passes unlisted calls through in bypassPermissions mode1 ms
  • ✓PreToolUse cannot prove a human wait › does not invent a hold even for an ask rule (other hooks can decide it)1 ms
  • ✓soft STOP › consumeStop is one-shot1 ms
  • ✓soft STOP › clearOnUserPrompt clears stop + directives (user took over)1 ms
  • ✓soft STOP › clearStop drops the flag without consuming semantics1 ms
  • ✓turn-end directive queue › caps the queue and pops exactly one per takeDirective1 ms
  • ✓turn-end directive queue › rejects empty text1 ms
  • ✓turn-end directive queue › a pending STOP outranks directives: queue is discarded, nothing delivered1 ms
  • ✓turn-end directive queue › empty queue always returns undefined (no stop_hook_active loop)1 ms
  • ✓turn-end directive queue › a synthetic Stop leaves the queue intact — nothing is listening on that response1 ms
  • ✓turn-end directive queue › takeDirectiveForStop tolerates a missing payload1 ms
  • ✓turn-end directive queue › steeringSnapshot reflects both flags for device badges2 ms
  • ✓evaluatePermissionRules verdicts › none when no files exist (and the command is not built-in read-only)2 ms
  • ✓evaluatePermissionRules verdicts › built-in read-only commands are allow even with no rules1 ms
  • ✓evaluatePermissionRules verdicts › exact vs prefix Bash specs2 ms
  • ✓evaluatePermissionRules verdicts › deny beats allow1 ms
  • ✓evaluatePermissionRules verdicts › ask rules never match loosely on unparseable specs (no over-holding)1 ms
  • ✓beginAskGate (AskUserQuestion always prompts — no precision guards) › holds without consulting permission rules or the prompt-prone set2 ms
  • ✓beginAskGate (AskUserQuestion always prompts — no precision guards) › holds even where the rule surface is unreadable (the sandbox case)1 ms
  • ✓beginAskGate (AskUserQuestion always prompts — no precision guards) › never holds when disabled or with nobody to answer1 ms
  • ✓beginAskGate (AskUserQuestion always prompts — no precision guards) › keeps the one-gate-per-session invariant in both directions1 ms
  • ✓beginAskGate (AskUserQuestion always prompts — no precision guards) › releases the session so the next question can hold again1 ms
  • ✓beginAskGate (AskUserQuestion always prompts — no precision guards) › an unanswered ask teaches the auto-approval learner nothing1 ms
  • ✓buildAskAnswerReason (the device answer reaching the agent) › states every Q→A pair and forbids re-asking1 ms
  • ✓buildAskAnswerReason (the device answer reaching the agent) › drops groups that were never answered1 ms
  • ✓buildGateQuestion (device-native semantics, no TUI mirroring) › previews the Bash command / file path / url1 ms
bridge/src/__tests__/observed-turn-watchdogs.test.ts11/11
  • ✓ObservedTurnWatchdogs › recovers a dropped Stop and reports the session it belongs to6 ms
  • ✓ObservedTurnWatchdogs › keeps sessions independent — one session's Stop must not disarm another1 ms
  • ✓ObservedTurnWatchdogs › one session's tool traffic does not keep another's watchdog quiet1 ms
  • ✓ObservedTurnWatchdogs › a real Stop pre-empts recovery for that session1 ms
  • ✓ObservedTurnWatchdogs › the synthetic Stop it triggers disarms it, so it fires once per turn1 ms
  • ✓ObservedTurnWatchdogs › never closes a genuine wait (transcript still shows tool_use)1 ms
  • ✓ObservedTurnWatchdogs › only admits a session that has submitted a prompt0 ms
  • ✓ObservedTurnWatchdogs › sweep() drops cold sessions so their poll timers cannot outlive them1 ms
  • ✓ObservedTurnWatchdogs › sweep() leaves a session that is still posting hooks alone2 ms
  • ✓ObservedTurnWatchdogs › caps tracked sessions, evicting the coldest first1 ms
  • ✓ObservedTurnWatchdogs › stop() (daemon teardown) kills every session timer1 ms
bridge/src/__tests__/opencode-adapter-state.test.ts11/11
  • ✓OpenCodeAdapter run-state arming › arms processing on the first message.part.updated and latches once per turn12 ms
  • ✓OpenCodeAdapter run-state arming › emits idle on session.idle and re-arms on the next turn3 ms
  • ✓OpenCodeAdapter run-state arming › auto-tracks the session and arms when no active session was resolved at connect2 ms
  • ✓OpenCodeAdapter run-state arming › arms when an assistant message is still generating (no time.completed)2 ms
  • ✓OpenCodeAdapter run-state arming › does not arm on a completed assistant message alone2 ms
  • ✓OpenCodeAdapter run-state arming › drops parts for a different active session1 ms
  • ✓OpenCodeAdapter timeline turn shape › upserts the user prompt into chat_start when the user message carries text2 ms
  • ✓OpenCodeAdapter timeline turn shape › routes user text parts to the prompt, not the response3 ms
  • ✓OpenCodeAdapter timeline turn shape › emits chat_response XOR chat_end — response turns produce no chat_end2 ms
  • ✓OpenCodeAdapter timeline turn shape › closes response-less (tool-only) turns with chat_end2 ms
  • ✓OpenCodeAdapter timeline turn shape › resets prompt/response state between turns2 ms
bridge/src/__tests__/opencode-client.test.ts13/13
  • ✓OpenCodeClient › health › should call /global/health10 ms
  • ✓OpenCodeClient › listSessions › should call /session with directory and limit1 ms
  • ✓OpenCodeClient › createSession › should POST to /session1 ms
  • ✓OpenCodeClient › sendMessage › should POST to /session/{id}/message with parts1 ms
  • ✓OpenCodeClient › sendMessage › should include model option when provided1 ms
  • ✓OpenCodeClient › abortSession › should POST to /session/{id}/abort1 ms
  • ✓OpenCodeClient › respondPermission › should POST allow response1 ms
  • ✓OpenCodeClient › respondPermission › should POST deny response1 ms
  • ✓OpenCodeClient › HTTP error handling › should throw on non-ok response3 ms
  • ✓OpenCodeClient › disconnect › should prevent reconnection after disconnect1 ms
  • ✓OpenCodeClient › url accessor › should return server URL0 ms
  • ✓OpenCodeClient › url accessor › should strip trailing slash0 ms
  • ✓OpenCodeAdapter event mapping › should export OpenCodeSSEEvent type0 ms
bridge/src/__tests__/opencode-hook.test.ts9/9
  • ✓opencode-hook → telemetry spans › tool part with status=running produces a tool_call span4 ms
  • ✓opencode-hook → telemetry spans › tool part with status=completed produces a tool_result span0 ms
  • ✓opencode-hook → telemetry spans › todowrite completion with all todos completed emits a task_boundary span (todo_complete)1 ms
  • ✓opencode-hook → telemetry spans › todowrite completion with a pending todo does NOT emit a task_boundary0 ms
  • ✓opencode-hook → telemetry spans › todowrite reads todos out of state.output JSON string when input is absent0 ms
  • ✓opencode-hook → telemetry spans › non-tool part returns an empty span list1 ms
  • ✓opencode-hook → telemetry spans › message.updated for user role with prompt emits a turn_start1 ms
  • ✓opencode-hook → telemetry spans › message.updated for assistant role with response emits session_meta + turn_response1 ms
  • ✓opencode-hook → telemetry spans › assistant message with modelID but no response still emits session_meta (early model attribution)1 ms
bridge/src/__tests__/opencode-steering.test.ts10/10
  • ✓opencode steering queue › poll drains queued commands immediately7 ms
  • ✓opencode steering queue › a parked long-poll wakes the moment a command arrives1 ms
  • ✓opencode steering queue › long-poll resolves empty after the wait window1.0 s
  • ✓opencode steering queue › permission_respond commands pass through with id + decision intact0 ms
  • ✓opencode steering queue › caps the queue1 ms
  • ✓opencode steering queue › a closed long-poll is withdrawn so the live poller receives the command1 ms
  • ✓opencode steering queue › a poll whose client is already gone takes nothing0 ms
  • ✓opencode steering queue › requeued commands go back ahead of newer ones and wake a parked poller1 ms
  • ✓opencode steering queue › retires question reply availability after the last poll and broadcasts the change6 ms
  • ✓opencode steering queue › steerability reflects a live poller1.0 s
bridge/src/__tests__/passive-observer.test.ts66/66
  • ✓passive-observer parsers › expires a silent observed processing state without hiding fresh work9 ms
  • ✓passive-observer parsers › parses ps output without depending on fixed command columns3 ms
  • ✓passive-observer parsers › parses Win32_Process JSON, converting bytes to KB and dropping null command lines1 ms
  • ✓passive-observer parsers › parses the bare object ConvertTo-Json emits for a single row0 ms
  • ✓passive-observer parsers › returns no rows for non-JSON scan output0 ms
  • ✓passive-observer parsers › parses scan output that arrives with a UTF-8 BOM6 ms
  • ✓passive-observer parsers › summarizes Claude transcripts and redacts tool secrets2 ms
  • ✓passive-observer parsers › reads idle after an ESC/interrupt marker aborts a pending tool_use1 ms
  • ✓passive-observer parsers › reads Codex effort and permission mode verbatim from turn_context1 ms
  • ✓passive-observer parsers › summarizes Codex rollout metadata, context, and pending tool calls1 ms
  • ✓passive-observer parsers › reads idle after task_complete even when sampling dropped tool outputs0 ms
  • ✓passive-observer parsers › reads idle after turn_aborted with dangling tool calls0 ms
  • ✓passive-observer parsers › clears stale pending calls from a prior turn when a new user message arrives0 ms
  • ✓passive-observer parsers › stays processing through mid-turn thinking gaps and agent messages0 ms
  • ✓passive-observer parsers › maps lsof field output to Codex rollout files by pid0 ms
  • ✓passive-observer parsers › keeps every rollout a desktop app-server pid holds open, deduped0 ms
  • ✓passive-observer parsers › admits Codex Desktop app-server but rejects helper lookalikes1 ms
  • ✓passive-observer parsers › matches Win32 command lines — quoted paths, backslashes, .exe suffix0 ms
  • ✓passive-observer parsers › finds an npm-installed Claude Code, which never puts "claude" in argv[0]1 ms
  • ✓passive-observer parsers › finds a Claude Code background job launched from the versioned binary0 ms
  • ✓passive-observer parsers › drops Electron child processes that reuse the app binary name1 ms
  • ✓passive-observer parsers › matches Kiro CLI and IDE owners while rejecting Electron helpers1 ms
  • ✓passive-observer parsers › collapses the Kiro launcher and kiro-cli-chat child to one chat process0 ms
  • ✓passive-observer parsers › collapses the real four-deep chat tree, acp child included, to one process0 ms
  • ✓passive-observer parsers › reads Kiro 2.x metadata and transcript turn state3 ms
  • ✓passive-observer parsers › reads a Kiro tool subject out of the nested operations shape1 ms
  • ✓passive-observer parsers › reads documented Kiro ACP session notifications for the v3 fallback0 ms
  • ✓passive-observer parsers › does not complete a Kiro turn after ten minutes of silent tool work1 ms
  • ✓passive-observer parsers › correlates a naturally launched Kiro process with its newest cwd session1 ms
  • ✓passive-observer parsers › marks internal subagent rollouts from session_meta source0 ms
  • ✓passive-observer parsers › reuses unchanged rollout summaries and invalidates changes/removals1 ms
  • ✓passive-observer parsers › surfaces top-level Desktop rollouts and excludes internal subagents2 ms
  • ✓passive-observer parsers › drops stale idle Desktop rollouts while retaining recent and processing chats1 ms
  • ✓passive-observer parsers › keeps an idle Codex CLI rollout because its owning process is the live session1 ms
  • ✓passive-observer parsers › dedupes a hook-observed Desktop conversation without hiding sibling rollouts1 ms
  • ✓passive-observer parsers › counts Codex cached input once when the producer folds it into input_tokens1 ms
  • ✓passive-observer parsers › recognizes standalone Antigravity processes for CLI daemon passive discovery1 ms
  • ✓passive-observer scan resilience › re-reads live or inaccessible missing PIDs and only confirms ESRCH exits3 ms
  • ✓passive-observer scan resilience › does not call a failed targeted read an exit while the PID still exists1 ms
  • ✓passive-observer scan resilience › applies exits, replacements and new sessions while retaining only an inconclusive PID16 ms
  • ✓passive-observer scan resilience › recovers a partial nonempty scan and preserves freshness when revalidation is unknown4 ms
  • ✓passive-observer scan resilience › does not replace established Desktop identities after an unreadable rollout probe6 ms
  • ✓passive-observer scan resilience › still removes a confirmed exited owner while another Codex probe is unavailable3 ms
  • ✓passive-observer scan resilience › keeps an inconclusive Desktop owner through a mixed scan and a subsequent rollout failure104 ms
  • ✓passive-observer scan resilience › treats a partial nonempty lsof frame as unknown, but accepts a known process with no rollout3 ms
  • ✓passive-observer scan resilience › retains the process table when a scan comes back empty1 ms
  • ✓passive-observer scan resilience › retains the last roster when a scan rejects1 ms
  • ✓passive-observer scan resilience › backs the scan cadence off to the cost of the last scan0 ms
  • ✓passive-observer scan resilience › schedules a 200 ms scan with 4800 ms remaining (rejects=false)2 ms
  • ✓passive-observer scan resilience › schedules a 11000 ms scan with 11000 ms remaining (rejects=false)1 ms
  • ✓passive-observer scan resilience › schedules a 30000 ms scan with 30000 ms remaining (rejects=true)1 ms
  • ✓passive-observer scan resilience › schedules a 70000 ms scan with 60000 ms remaining (rejects=false)1 ms
  • ✓foldHeadlessCodexSessions › drops a headless run that descends from an observed session and reports it as that session's child1 ms
  • ✓foldHeadlessCodexSessions › keeps a headless run with no session ancestor as a row, reported with parent null0 ms
  • ✓foldHeadlessCodexSessions › never leaks codexOriginator onto a roster row and leaves TUI/desktop rows alone1 ms
  • ✓selectClaudeConversationFiles › shows the background job instead of the window it was moved out of, and never a spare1 ms
  • ✓selectClaudeConversationFiles › keeps a parked window whose job is not visibly alive0 ms
  • ✓selectClaudeConversationFiles › a spare cannot stand in for the job a window parked into0 ms
  • ✓selectClaudeConversationFiles › keeps independent background jobs and ordinary windows0 ms
  • ✓Claude identity read continuity › retains a known live Claude when its session file is temporarily malformed or missing4 ms
  • ✓Claude identity read continuity › refreshes user names, clears them, survives unreadable scans and fresh observer reconstruction5 ms
  • ✓Claude identity read continuity › still removes an ended process and never invents an identity for an unreadable new process2 ms
  • ✓Claude identity read continuity › does not retain an explicitly spare process or one that execed another command3 ms
  • ✓Codex explicit terminal evidence › rejects an old turn id or time after a newer start0 ms
  • ✓Codex explicit terminal evidence › keeps the current task_started id through its id-less user message0 ms
  • ✓Codex explicit terminal evidence › does not carry a prior turn id across a sampled user-message boundary0 ms
bridge/src/__tests__/permission-resolver.test.ts13/13
  • ✓permission-resolver › refuses a late press when wall time expired before the sleeping timer ran8 ms
  • ✓permission-resolver › register → resolve(allow) ends the held response with allow1 ms
  • ✓permission-resolver › resolve(deny) ends with deny1 ms
  • ✓permission-resolver › times out to an EMPTY pass-through body after timeoutMs (never an explicit "ask")1 ms
  • ✓permission-resolver › resolving an unknown id returns null and is a no-op0 ms
  • ✓permission-resolver › double resolve: second returns null (already resolved)1 ms
  • ✓permission-resolver › abandonPending drops the entry without writing a decision1 ms
  • ✓permission-resolver › sweepStalePending releases entries older than maxAge as pass-through1 ms
  • ✓permission-resolver › re-registering a duplicate requestId releases the stale entry first1 ms
  • ✓permission-resolver › resolving over a dead socket does not throw and still clears the entry2 ms
  • ✓permission-resolver › fires onResolved exactly once on a device decision2 ms
  • ✓permission-resolver › fires onResolved with "pass" on timeout (arms the auto-approval learner)1 ms
  • ✓permission-resolver › drainAllPending releases every held response as pass-through1 ms
bridge/src/__tests__/project-name.test.ts32/32
  • ✓resolveProjectName › returns git toplevel basename from a nested subdir21 ms
  • ✓resolveProjectName › labels real linked worktrees consistently without reading or changing their branch39 ms
  • ✓resolveProjectName › falls back to nearest package.json name when no git5 ms
  • ✓resolveProjectName › skips package.json with empty name and keeps walking5 ms
  • ✓resolveProjectName › falls back to cwd basename when no git and no package.json6 ms
  • ✓resolveProjectName › returns 'unknown' for a basename-less root4 ms
  • ✓resolveProjectName › AGENTDECK_PROJECT_NAME env var wins over everything7 ms
  • ✓resolveProjectName › envOverride option takes precedence over env var0 ms
  • ✓resolveProjectName › preserves scoped package name verbatim4 ms
  • ✓resolveProjectName › git subprocess error (non-repo) does not throw5 ms
  • ✓resolveProjectName › malformed package.json is ignored (walks to parent)5 ms
  • ✓gitToplevelBasename › returns null outside a git worktree4 ms
  • ✓gitToplevelBasename › returns repo basename from nested subdir11 ms
  • ✓resolveProjectNameFromCwdCached (passive-observer resolver) › matches the PTY resolver for a git repo subdir (launch-path parity)11 ms
  • ✓resolveProjectNameFromCwdCached (passive-observer resolver) › detects a .git FILE (worktree/submodule layout)1 ms
  • ✓resolveProjectNameFromCwdCached (passive-observer resolver) › falls back to package.json name, then basename1 ms
  • ✓resolveProjectNameFromCwdCached (passive-observer resolver) › memoizes per cwd (stale after dir changes are acceptable)8 ms
  • ✓nearestPackageJsonName › returns null when no ancestor has package.json1 ms
  • ✓nearestPackageJsonName › returns nearest ancestor name1 ms
  • ✓shared worktree project-label contract › relative linked worktree2 ms
  • ✓shared worktree project-label contract › absolute linked worktree2 ms
  • ✓shared worktree project-label contract › absolute common directory2 ms
  • ✓shared worktree project-label contract › Claude nested worktree3 ms
  • ✓shared worktree project-label contract › same basename retains worktree distinction2 ms
  • ✓shared worktree project-label contract › spaces and Unicode2 ms
  • ✓shared worktree project-label contract › detached worktree2 ms
  • ✓shared worktree project-label contract › submodule is its own project2 ms
  • ✓shared worktree project-label contract › missing common directory1 ms
  • ✓shared worktree project-label contract › missing common HEAD1 ms
  • ✓shared worktree project-label contract › bare common repository1 ms
  • ✓shared worktree project-label contract › malformed marker1 ms
  • ✓shared worktree project-label contract › empty common pointer2 ms
bridge/src/__tests__/remote-sessions.test.ts7/7
  • ✓remote-sessions registry › registers a remote session with display host/port5 ms
  • ✓remote-sessions registry › keeps startedAt stable but refreshes target on re-register0 ms
  • ✓remote-sessions registry › re-register swaps the sender; the old socket cannot remove or overwrite1 ms
  • ✓remote-sessions registry › updates state only for known sessions0 ms
  • ✓remote-sessions registry › renders enriched rows marked alive/managed3 ms
  • ✓remote-sessions registry › normalizes remote weight and preserves it for legacy re-registration0 ms
  • ✓remote-sessions registry › removes a session0 ms
bridge/src/__tests__/session-activity.test.ts2/2
  • ✓quickActivity › names the file or script a tool is acting on3 ms
  • ✓quickActivity › never shows a session id fragment as the thing being run0 ms
bridge/src/__tests__/session-display-name.test.ts3/3
  • ✓Claude display-name sources (#544) › uses measured user names, then matching titles, then derived/unknown names3 ms
  • ✓Claude display-name sources (#544) › uses the last matching custom-title, ignores agent-name/foreign records and accepts clear1 ms
  • ✓Claude display-name sources (#544) › reads branch changes and worktree pointers without invoking Git9 ms
bridge/src/__tests__/session-id-resolve.test.ts4/4
  • ✓resolveSessionIdPrefix › returns exact matches untouched3 ms
  • ✓resolveSessionIdPrefix › restores the ESP32 31-char truncation of an observed id0 ms
  • ✓resolveSessionIdPrefix › leaves ambiguous prefixes unresolved0 ms
  • ✓resolveSessionIdPrefix › leaves unknown ids and empty input untouched0 ms
hooks/src/__tests__/codex-install.test.ts88/88
  • ✓codex-mini-toml: applyManagedBlock › appends fence when absent4 ms
  • ✓codex-mini-toml: applyManagedBlock › replaces existing fence block1 ms
  • ✓codex-mini-toml: applyManagedBlock › apply twice is idempotent1 ms
  • ✓codex-mini-toml: applyManagedBlock › moves Codex hook trust state out of the managed fence2 ms
  • ✓codex-mini-toml: removeManagedBlock › leaves user content1 ms
  • ✓codex-mini-toml: removeManagedBlock › is idempotent without fence0 ms
  • ✓codex-mini-toml: hasTopLevelKeyOutsideFence › detects user notify key0 ms
  • ✓codex-mini-toml: hasTopLevelKeyOutsideFence › ignores notify key inside table0 ms
  • ✓codex-mini-toml: hasTopLevelKeyOutsideFence › ignores notify key inside fence0 ms
  • ✓codex-mini-toml: hasTableOutsideFence › detects user [otel] table0 ms
  • ✓codex-mini-toml: hasTableOutsideFence › detects user [otel.exporter] dotted table0 ms
  • ✓codex-mini-toml: hasTableOutsideFence › detects array-of-table header [[hooks.Stop]]0 ms
  • ✓codex-mini-toml: hasTableOutsideFence › ignores Codex hook trust state outside fence0 ms
  • ✓codex-mini-toml: hasTableOutsideFence › ignores [otel] inside fence0 ms
  • ✓codex-mini-toml: hasTableOutsideFence › ignores [otelfoo] (word boundary)0 ms
  • ✓codex-mini-toml: hasIncompatibleHookTableOutsideFence › allows official lifecycle arrays to merge1 ms
  • ✓codex-mini-toml: hasIncompatibleHookTableOutsideFence › rejects regular hook tables while ignoring trust state0 ms
  • ✓codex-mini-toml: quoted › escapes backslash and double quote0 ms
  • ✓codex-mini-toml: quoted › escapes newline and tab0 ms
  • ✓codex-mini-toml: quoted › passes simple ASCII0 ms
  • ✓codex-install: managedBlockBody › roundtrip preserves user TOML byte-for-byte (load-bearing)35 ms
  • ✓codex-install: managedBlockBody › matches Codex schema (lifecycle hooks + endpoints + notify dummy)4 ms
  • ✓codex-install: managedBlockBody › posts the launcher PID through the real command shell39 ms
  • ✓codex-install: managedBlockBody › uses PowerShell command hooks on Windows15 ms
  • ✓codex-install: managedBlockBody › windows notify sidecar reads payload from $args and posts codex_turn_complete1 ms
  • ✓codex-install: managedBlockBody › falls back instead of emitting an out-of-range OTel endpoint2 ms
  • ✓codex-install: managedBlockBody › omits conflicting optional channels when asked2 ms
  • ✓codex-install: install / uninstall (file I/O) › preserves permissions and refuses dotfile-manager symlinks88 ms
  • ✓codex-install: install / uninstall (file I/O) › reports refused removal and retains both config and sidecar1 ms
  • ✓codex-install: install / uninstall (file I/O) › refreshes pre-PID hooks while retaining user settings and trust records48 ms
  • ✓codex-install: install / uninstall (file I/O) › preserves settings inserted by Codex between installs and on removal (linux)45 ms
  • ✓codex-install: install / uninstall (file I/O) › preserves settings inserted by Codex between installs and on removal (win32)240 ms
  • ✓codex-install: install / uninstall (file I/O) › refuses invalid UTF-8 without rewriting bytes1 ms
  • ✓codex-install: install / uninstall (file I/O) › keeps notify in root scope when migrating an appended fence28 ms
  • ✓codex-install: install / uninstall (file I/O) › creates config with fence when file is absent3 ms
  • ✓codex-install: install / uninstall (file I/O) › preserves user content when installing into existing config4 ms
  • ✓codex-install: install / uninstall (file I/O) › preserves a user disabling hooks in [features]1 ms
  • ✓codex-install: install / uninstall (file I/O) › preserves user lifecycle arrays in the same TOML representation4 ms
  • ✓codex-install: install / uninstall (file I/O) › skips when user has an incompatible regular [hooks] table1 ms
  • ✓codex-install: install / uninstall (file I/O) › omits notify when user has top-level notify3 ms
  • ✓codex-install: install / uninstall (file I/O) › omits OTel when user has [otel] table3 ms
  • ✓codex-install: install / uninstall (file I/O) › refreshes Windows pre-PID commands and sidecar without losing user settings or trust240 ms
  • ✓codex-install: install / uninstall (file I/O) › omits OTel by default on Windows installs14 ms
  • ✓codex-install: install / uninstall (file I/O) › writes the notify sidecar script on Windows and removes it on uninstall199 ms
  • ✓codex-install: install / uninstall (file I/O) › downgrades to lifecycle-only with a warning when the sidecar write fails12 ms
  • ✓codex-install: install / uninstall (file I/O) › skips notify on Windows when user has top-level notify (no sidecar written)14 ms
  • ✓codex-install: install / uninstall (file I/O) › uninstall strips fence and preserves user content18 ms
  • ✓codex-install: install / uninstall (file I/O) › uninstall is idempotent when no config exists1 ms
  • ✓codex-install: install / uninstall (file I/O) › honours AGENTDECK_NO_CODEX_HOOKS=1 opt-out0 ms
  • ✓codex-install: install / uninstall (file I/O) › install is idempotent (same port → no rewrite)32 ms
  • ✓codex-install: install / uninstall (file I/O) › preserves Codex hook trust state across reinstall50 ms
  • ✓codex-install: device approvals › emits exactly the shared hold command (Codex hashes it for trust)1 ms
  • ✓codex-install: device approvals › writes the PermissionRequest group the Swift installer writes3 ms
  • ✓codex-install: device approvals › adds the hold as a second handler and leaves every other byte of the block alone3 ms
  • ✓codex-install: device approvals › is off by default, on when asked, kept by a plain refresh, and removed when turned off98 ms
  • ✓codex-install: device approvals › reads AGENTDECK_CODEX_APPROVALS as the default policy34 ms
  • ✓codex-install: device approvals › keeps trust records and user hooks through on and off, and uninstall leaves no residue88 ms
  • ✓codex-install: device approvals › is recognised as AgentDeck-owned, so an installer without the hold rewrites the block cleanly28 ms
  • ✓codex-install: device approvals › emits a Windows hold that echoes only a decision71 ms
  • ✓codex-install: device approvals › prints only a daemon decision, and nothing for any other answer57 ms
  • ✓shared lossless config cases › 'fresh'39 ms
  • ✓shared lossless config cases › 'enabled'45 ms
  • ✓shared lossless config cases › 'commented'47 ms
  • ✓shared lossless config cases › 'disabled'1 ms
  • ✓shared lossless config cases › 'missing'1 ms
  • ✓shared lossless config cases › 'inline'1 ms
  • ✓shared lossless config cases › 'quoted'1 ms
  • ✓shared lossless config cases › 'dotted'1 ms
  • ✓shared lossless config cases › 'truncated'1 ms
  • ✓shared lossless config cases › 'multiline'51 ms
  • ✓shared lossless config cases › 'crlf'45 ms
  • ✓shared lossless config cases › 'multiline-array'36 ms
  • ✓shared lossless config cases › 'user-notify-otel'38 ms
  • ✓shared lossless config cases › 'root-and-profile'43 ms
  • ✓shared lossless config cases › 'later-root-key'42 ms
  • ✓shared lossless config cases › 'later-enabled-feature'57 ms
  • ✓shared lossless config cases › 'later-disabled-hooks'1 ms
  • ✓shared lossless config cases › 'triple-quotes-comment'46 ms
  • ✓shared lossless config cases › 'literal-fake-fence'56 ms
  • ✓shared lossless config cases › 'unterminated-multiline'1 ms
  • ✓shared lossless config cases › 'later-multiline-root'52 ms
  • ✓shared lossless config cases › 'multiline-crlf'51 ms
  • ✓shared lossless config cases › 'extended-managed-hook'1 ms
  • ✓shared lossless config cases › 'user-hook-in-managed-group'1 ms
  • ✓shared lossless config cases › 'foreign-notify-in-fence'40 ms
  • ✓shared lossless config cases › 'foreign-table-in-fence'42 ms
  • ✓shared lossless config cases › 'owned-windows-hook'42 ms
  • ✓shared lossless config cases › 'foreign-windows-hook'42 ms
hooks/src/__tests__/command-refresh.test.ts19/19
  • ✓Custom integration handler preservation › keeps other handlers and group metadata when refreshing on any platform6 ms
  • ✓Generated integration command refresh › upgrades existing owned hooks and relay once, preserving user commands7 ms
  • ✓Generated integration command refresh › refreshes an existing relay without adding absent hooks1 ms
  • ✓Generated integration command refresh › Claude lifecycle sends no payload when the daemon registry is missing9 ms
  • ✓Generated integration command refresh › Claude lifecycle sends no payload when the daemon registry is malformed146 ms
  • ✓Generated integration command refresh › Claude lifecycle sends no payload when the daemon registry is unhealthy25 ms
  • ✓Generated integration command refresh › Claude status line sends no payload when the daemon registry is missing13 ms
  • ✓Generated integration command refresh › Claude status line sends no payload when the daemon registry is malformed163 ms
  • ✓Generated integration command refresh › Claude status line sends no payload when the daemon registry is unhealthy44 ms
  • ✓Generated integration command refresh › Codex lifecycle sends no payload when the daemon registry is missing5 ms
  • ✓Generated integration command refresh › Codex lifecycle sends no payload when the daemon registry is malformed121 ms
  • ✓Generated integration command refresh › Codex lifecycle sends no payload when the daemon registry is unhealthy32 ms
  • ✓Generated integration command refresh › Codex notify sends no payload when the daemon registry is missing7 ms
  • ✓Generated integration command refresh › Codex notify sends no payload when the daemon registry is malformed134 ms
  • ✓Generated integration command refresh › Codex notify sends no payload when the daemon registry is unhealthy26 ms
  • ✓Generated integration command refresh › Codex approval hold sends no payload when the daemon registry is missing4 ms
  • ✓Generated integration command refresh › Codex approval hold sends no payload when the daemon registry is malformed138 ms
  • ✓Generated integration command refresh › Codex approval hold sends no payload when the daemon registry is unhealthy34 ms
  • ✓Generated integration command refresh › keeps every co-owned resolver isolated4 ms
hooks/src/__tests__/hermes-diagnostics.test.ts19/19
  • ✓Hermes setup readiness › distinguishes activity-only receivers from attention capability undefined47 ms
  • ✓Hermes setup readiness › distinguishes activity-only receivers from attention capability 17 ms
  • ✓Hermes setup readiness › reports both missing plugin and missing registry without assuming a default port2 ms
  • ✓Hermes setup readiness › checks an explicitly selected sandbox receiver without a registry or hook POST4 ms
  • ✓Hermes setup readiness › disabled wins over enabled and the environment opt-out is reported2 ms
  • ✓Hermes setup readiness › HERMES_SAFE_MODE=1 means Hermes loads no plugin, even an enabled one3 ms
  • ✓Hermes setup readiness › HERMES_SAFE_MODE= TRUE means Hermes loads no plugin, even an enabled one2 ms
  • ✓Hermes setup readiness › HERMES_SAFE_MODE=on means Hermes loads no plugin, even an enabled one2 ms
  • ✓Hermes setup readiness › HERMES_SAFE_MODE=0 leaves hooks allowed2 ms
  • ✓Hermes setup readiness › HERMES_SAFE_MODE=false leaves hooks allowed1 ms
  • ✓Hermes setup readiness › HERMES_SAFE_MODE= leaves hooks allowed1 ms
  • ✓Hermes setup readiness › malformed config plugins: [ is unknown, never disabled2 ms
  • ✓Hermes setup readiness › malformed config plugins: 42 is unknown, never disabled3 ms
  • ✓Hermes setup readiness › malformed config false is unknown, never disabled2 ms
  • ✓Hermes setup readiness › malformed config plugins: {enabled: wrong} is unknown, never disabled5 ms
  • ✓Hermes setup readiness › invalid explicit selection does not fall back to a working registry7 ms
  • ✓Hermes setup readiness › unreadable explicit selection is unknown and never falls back3 ms
  • ✓Hermes setup readiness › uses registry httpPort and distinguishes unsupported from malformed health7 ms
  • ✓Hermes setup readiness › bounds a peer which accepts HTTP but never finishes34 ms
hooks/src/__tests__/hermes-install.test.ts10/10
  • ✓explicit Hermes observer installation › preserves profile configuration and refreshes only its own directory7 ms
  • ✓explicit Hermes observer installation › refuses a directory it does not own5 ms
  • ✓explicit Hermes observer installation › preserves an explicit connection on update and can return to registry discovery4 ms
  • ✓explicit Hermes observer installation › rejects invalid port 0 before writing files1 ms
  • ✓explicit Hermes observer installation › rejects invalid port 65536 before writing files1 ms
  • ✓explicit Hermes observer installation › rejects invalid port 1.5 before writing files1 ms
  • ✓explicit Hermes observer installation › rejects invalid port NaN before writing files1 ms
  • ✓explicit Hermes observer installation › runs the Python observer behavior/transport suite2.9 s
  • ✓parseHermesPortFlag › accepts plain decimal ports only1 ms
  • ✓parseHermesPortFlag › an unparseable flag is refused before any file is written0 ms
hooks/src/__tests__/install.test.ts57/57
  • ✓Hook Installer › buildHookEntry › creates matcher-group format naming the event3 ms
  • ✓Hook Installer › buildHookEntry › uses `*` matcher for tool events and empty matcher for lifecycle events0 ms
  • ✓Hook Installer › buildHookCommand (POSIX) › uses an explicit port or a healthy registry receiver, otherwise skips0 ms
  • ✓Hook Installer › buildHookCommand (POSIX) › keeps strict port-validation markers in every co-owned hook writer1 ms
  • ✓Hook Installer › buildHookCommand (POSIX) › rejects non-numeric and out-of-range ports before URL construction165 ms
  • ✓Hook Installer › buildHookCommand (POSIX) › accepts a validated daemon.json port27 ms
  • ✓Hook Installer › buildHookCommand (POSIX) › bounds a blocked daemon-file read before the hook can stall231 ms
  • ✓Hook Installer › buildHookCommand (POSIX) › bounds the fire-and-forget POST so a wedged daemon cannot stall session exit1 ms
  • ✓Hook Installer › buildHookCommand (POSIX) › emits newline-separated shell so if/then/for/do keywords are not mis-terminated by `;`0 ms
  • ○Hook Installer › buildHookCommandWin (Windows) › delivers UTF-8 stdin through Git Bash and Windows PowerShell
  • ✓Hook Installer › buildHookCommandWin (Windows) › invokes the hook script by path and passes the event as a parameter0 ms
  • ✓Hook Installer › buildHookCommandWin (Windows) › puts no "$" on the command line, because a POSIX shell parses it first1 ms
  • ✓Hook Installer › buildHookCommandWin (Windows) › stays a single ASCII line0 ms
  • ✓Hook Installer › WINDOWS_HOOK_SCRIPT › keeps the port discovery, validation and UTF-8 handling of the old one-liner1 ms
  • ✓Hook Installer › WINDOWS_HOOK_SCRIPT › answers the request-response hooks on stdout within the POSIX bounds, and nothing else1 ms
  • ✓Hook Installer › WINDOWS_HOOK_SCRIPT › bounds registry health discovery and posts to only its selected receiver without proxy detection0 ms
  • ✓Hook Installer › WINDOWS_HOOK_SCRIPT › omits the macOS App Store sandbox-container fallback paths0 ms
  • ✓Hook Installer › WINDOWS_HOOK_SCRIPT › accepts the underscored daemon events the Kiro hook file uses0 ms
  • ✓Hook Installer › WINDOWS_HOOK_SCRIPT › writes the script idempotently and repairs a tampered copy1 ms
  • ✓Hook Installer › isAgentDeckHookCommand › recognises the Windows -File form, which carries neither legacy marker0 ms
  • ✓Hook Installer › applyHooks › installs hooks to empty settings in matcher-group format4 ms
  • ✓Hook Installer › applyHooks › preserves non-AgentDeck hooks1 ms
  • ✓Hook Installer › applyHooks › replaces old flat-format hooks0 ms
  • ✓Hook Installer › applyHooks › replaces old matcher-format hooks1 ms
  • ✓Hook Installer › applyHooks › is idempotent — running twice produces same result1 ms
  • ✓Hook Installer › applyHooks › preserves existing non-hook settings1 ms
  • ✓Hook Installer › removeHooks › removes all AgentDeck hooks (new format)0 ms
  • ✓Hook Installer › removeHooks › removes old flat-format AgentDeck hooks0 ms
  • ✓Hook Installer › removeHooks › preserves non-AgentDeck hooks0 ms
  • ✓Hook Installer › removeHooks › handles empty settings gracefully0 ms
  • ✓Hook Installer › migrateHooks › migrates old hardcoded port to env var0 ms
  • ✓Hook Installer › migrateHooks › migrates flat format to matcher-group format0 ms
  • ✓Hook Installer › migrateHooks › skips already-migrated hooks (new format)0 ms
  • ✓Hook Installer › migrateHooks › skips non-AgentDeck hooks0 ms
  • ✓Hook Installer › migrateHooks › migrates multiple events at once1 ms
  • ✓Hook Installer › migrateHooks › migrates hardcoded port inside matcher-group0 ms
  • ✓Hook Installer › migrateHooksIfNeeded (file-based) › upgrades old :-9120 fallback hooks to daemon.json-reading format0 ms
  • ✓Hook Installer › migrateHooksIfNeeded (file-based) › self-heals installed hooks that predate strict port validation3 ms
  • ✓migration 12 (Windows inline -Command → script file) › rewrites hooks whose $variables a POSIX shell would eat4 ms
  • ✓migration 12 (Windows inline -Command → script file) › does not duplicate hooks across repeated installs3 ms
  • ✓migration 12 (Windows inline -Command → script file) › removes the script on uninstall4 ms
  • ✓migration 12 (Windows inline -Command → script file) › repairs the script without rewriting current settings2 ms
  • ✓migration 12 (Windows inline -Command → script file) › keeps the bootstrap script byte-identical to the hooks script1 ms
  • ✓steering hook channels (request-response) › PreToolUse and Stop echo the daemon response to stdout; others stay fire-and-forget0 ms
  • ✓steering hook channels (request-response) › migration 5 rewrites legacy Stop hooks to the current platform hook set (request-response on POSIX)0 ms
  • ✓install target (~/.claude/settings.json) › installs into the watched settings.json, never settings.local.json3 ms
  • ✓install target (~/.claude/settings.json) › strips AgentDeck hooks out of the legacy file while keeping the user keys1 ms
  • ✓install target (~/.claude/settings.json) › relocates pre-move installs from the legacy file into settings.json2 ms
  • ✓install target (~/.claude/settings.json) › leaves a settings.json without AgentDeck hooks untouched1 ms
  • ✓install target (~/.claude/settings.json) › uninstalls from both the current and the legacy file2 ms
  • ✓Kiro v3 global hook installer › skips hosts where Kiro has never created its config root1 ms
  • ✓Kiro v3 global hook installer › writes the measured v1 standalone schema with prefixed lifecycle endpoints1 ms
  • ✓Kiro v3 global hook installer › is idempotent, preserves an occupied path, and only removes its own file1 ms
  • ✓Kiro v3 global hook installer › provisions and repairs the Windows script without a Claude installation2 ms
  • ✓migration 7 — unbounded curl self-heal › flags a pre-fix hook set that every earlier migration passes by1 ms
  • ✓migration 7 — unbounded curl self-heal › rebuilds unbounded hooks on migrate and then leaves the file alone2 ms
  • ✓migration 7 — unbounded curl self-heal › does not flag the request-response hooks for lacking a short timeout1 ms
  • ✓uninstall wiring › the uninstall entry point actually calls the Kiro remover1 ms
  • ○the Windows hook script, executed › checks the daemon.json receiver before a fire-and-forget event and prints nothing
  • ○the Windows hook script, executed › waits past the old 2 s cut-off for a held PreToolUse and writes the decision to stdout as UTF-8
  • ○the Windows hook script, executed › writes a queued Stop directive to stdout, and nothing for an empty answer
hooks/src/__tests__/opencode-fixture-lifecycle.test.ts2/2
  • ✓OpenCode device fixture cleanup › terminates its isolated child on deadline1.1 s
  • ✓OpenCode device fixture cleanup › terminates its isolated child on parent-signal143 ms
hooks/src/__tests__/opencode-install.test.ts27/27
  • ✓opencodePluginSource contract › posts the four lifecycle events the daemon pipeline understands2 ms
  • ✓opencodePluginSource contract › carries the payload fields the daemon reads0 ms
  • ✓opencodePluginSource contract › self-disables inside managed agentdeck PTYs (AGENTDECK_PORT marker)0 ms
  • ✓opencodePluginSource contract › resolves the daemon port from the canonical daemon.json candidates0 ms
  • ✓opencodePluginSource contract › bounds every network call (peer silence is a first-class signal)0 ms
  • ✓opencodePluginSource contract › separates user prompt parts from assistant response parts by messageID role0 ms
  • ✓AgentDeckObserver event sequencing › forwards bounded shell watch evidence with matching tool IDs and errors49 ms
  • ✓AgentDeckObserver event sequencing › routes a correlated device choice through the existing native SDK transport66 ms
  • ✓AgentDeckObserver event sequencing › keeps transport uncertainty distinct from a gone native question: 'opencode_question_asked'66 ms
  • ✓AgentDeckObserver event sequencing › keeps transport uncertainty distinct from a gone native question: 'opencode_question_unavailable'63 ms
  • ✓AgentDeckObserver event sequencing › ignores an older pending-question snapshot when a new event arrives during its read104 ms
  • ✓AgentDeckObserver event sequencing › forwards current permission and question request identities64 ms
  • ✓AgentDeckObserver event sequencing › forwards legacy permission replies and header-only questions60 ms
  • ✓AgentDeckObserver event sequencing › keeps posting when every registry read is stuck awaiting OS access875 ms
  • ✓AgentDeckObserver event sequencing › posts one user_prompt_submit per user message, including after the turn settles81 ms
  • ✓AgentDeckObserver event sequencing › names the model that answered on the stop, and forgets it with the turn45 ms
  • ✓AgentDeckObserver event sequencing › still reports a genuine second turn on a new user message93 ms
  • ✓AgentDeckObserver event sequencing › reports a background task from the task tool metadata and its end from the parent's task notice53 ms
  • ✓AgentDeckObserver event sequencing › reports a Task-tool child session as the parent's subagent, never as a session54 ms
  • ✓AgentDeckObserver event sequencing › asks the server for an unseen session's parent, and treats no answer as top level52 ms
  • ✓AgentDeckObserver event sequencing › a finished child stays finished when OpenCode re-emits its message, and restarts on a new task prompt79 ms
  • ✓AgentDeckObserver event sequencing › keeps an uncached session's events in arrival order although OpenCode does not await handlers43 ms
  • ✓installOpenCodeHooksIfNeeded › writes the plugin file (creating parent dirs) and is idempotent2 ms
  • ✓installOpenCodeHooksIfNeeded › refreshes a stale or edited plugin file1 ms
  • ✓installOpenCodeHooksIfNeeded › honours the AGENTDECK_NO_OPENCODE_HOOKS opt-out0 ms
  • ✓installOpenCodeHooksIfNeeded › uninstall removes the plugin file and is idempotent1 ms
  • ✓installOpenCodeHooksIfNeeded › default path lives under the opencode plugins dir0 ms
hooks/src/__tests__/opencode-native.test.ts7/7
  • ✓native OpenCode observer › CLI setup preserves a Swift-owned observer and refuses edits; uninstall removes only verified owned files9 ms
  • ✓native OpenCode observer › bundles the canonical source and setup names without drift2 ms
  • ✓native OpenCode observer › dispose drains an unawaited idle handler and its final POST (native=false)167 ms
  • ✓native OpenCode observer › dispose drains an unawaited idle handler and its final POST (native=true)151 ms
  • ✓native OpenCode observer › dispose has an overall deadline even when a peer never settles26 ms
  • ✓native OpenCode observer › cancels prompt timers created by a handler that resumes during disposal26 ms
  • ✓native OpenCode observer › a loaded plugin follows explicit receiver edits, refuses invalid selection and never polls commands153 ms
hooks/src/__tests__/permission-request-hook.test.ts6/6
  • ✓PermissionRequest in the three co-owned hook writers › installs the same events, in the same order, from every writer5 ms
  • ✓PermissionRequest in the three co-owned hook writers › gives PermissionRequest the tool matcher in every writer, as its event matches on the tool name2 ms
  • ✓PermissionRequest in the three co-owned hook writers › is the bounded fire-and-forget form, which no writer special-cases1 ms
  • ✓PermissionRequest in the three co-owned hook writers › prints nothing even when the daemon answers with a body20 ms
  • ✓migration 13 — installs PermissionRequest into existing installs › adds AgentDeck's hook next to a user's own PermissionRequest hook, then leaves the file alone11 ms
  • ✓migration 13 — installs PermissionRequest into existing installs › adds it to an install that has no PermissionRequest slot at all7 ms
hooks/src/__tests__/statusline-relay.test.ts29/29
  • ✓Claude status-line relay snippet › relay alone: bounded fire-and-forget POST, no AGENTDECK_PORT, no wrapped command4 ms
  • ✓Claude status-line relay snippet › wraps the user command verbatim (trimmed) and unwraps it back: ~/.claude/statusline.sh0 ms
  • ✓Claude status-line relay snippet › wraps the user command verbatim (trimmed) and unwraps it back: bun x ccusage statusline --visual-burn-rate emoji && echo 'done'0 ms
  • ✓Claude status-line relay snippet › wraps the user command verbatim (trimmed) and unwraps it back: input=$(cat) MODEL=$(echo "$input" | jq -r '.model.display_name') echo "[$MODEL]"0 ms
  • ✓Claude status-line relay snippet › wraps the user command verbatim (trimmed) and unwraps it back: npx -y ccstatusline@latest 0 ms
  • ✓Claude status-line relay snippet › a foreign command is not ours1 ms
  • ✓Claude status-line relay snippet › every co-owned writer carries the same relay POST line and header2 ms
  • ✓applyStatuslineRelay policy › auto wraps a status line the user already has, keeping its other keys2 ms
  • ✓applyStatuslineRelay policy › auto installs nothing when no status line is configured, and says why1 ms
  • ✓applyStatuslineRelay policy › on installs the relay alone when no status line is configured0 ms
  • ✓applyStatuslineRelay policy › off removes an installed relay, restoring the user command, and leaves a foreign slot alone2 ms
  • ✓applyStatuslineRelay policy › a relay the user opted into earlier survives a later auto install0 ms
  • ✓applyStatuslineRelay policy › applying twice is idempotent0 ms
  • ✓applyStatuslineRelay policy › leaves a statusLine it does not understand untouched0 ms
  • ✓applyStatuslineRelay policy › picks the PowerShell-file form on win32 and the shell snippet elsewhere1 ms
  • ✓applyStatuslineRelay policy › removeStatuslineRelay restores the user command verbatim and drops a relay-only slot1 ms
  • ✓applyStatuslineRelay policy › refreshStatuslineRelay rewrites an outdated relay and nothing else0 ms
  • ✓applyStatuslineRelay policy › reads the policy from AGENTDECK_STATUSLINE0 ms
  • ✓Windows relay (PowerShell file) › invokes the script by path with the user command as base64 — nothing for sh to expand or quote0 ms
  • ✓Windows relay (PowerShell file) › round-trips multi-line and non-ASCII commands through base64: ~/.claude/statusline.sh0 ms
  • ✓Windows relay (PowerShell file) › round-trips multi-line and non-ASCII commands through base64: input=$(cat) MODEL=$(echo "$input" | jq -r '.model.display_name') echo "[$MODEL] 사용량 ✓"0 ms
  • ✓Windows relay (PowerShell file) › round-trips multi-line and non-ASCII commands through base64: npx -y ccstatusline@latest 0 ms
  • ✓Windows relay (PowerShell file) › applyStatuslineRelay on win32 wraps into the script form; refresh is a no-op; remove restores0 ms
  • ✓Windows relay (PowerShell file) › the script is bounded, UTF-8 in and out, validates its one parameter, and never fails the status line0 ms
  • ✓Windows relay (PowerShell file) › setup.ts ships the identical script1 ms
  • ○the Windows relay script, executed › POSTs the document and preserves the original status line through Git Bash
  • ○the Windows relay script, executed › POSTs the document and preserves the original status line through PowerShell stream
  • ○the Windows relay script, executed › POSTs the document and preserves the original status line through PowerShell pipeline
  • ○the Windows relay script, executed › POSTs the document and preserves the original status line through PowerShell native stream
  • ○the Windows relay script, executed › POSTs the document and preserves the original status line through PowerShell native pipeline
  • ○the Windows relay script, executed › POSTs the document and preserves the original status line through PowerShell literal input
  • ✓file-system wrappers › installHooks wraps an existing status line; uninstallHooks restores it6 ms
  • ✓file-system wrappers › installHooks adds a relay-only status line on request and keeps it on later auto installs4 ms
  • ✓file-system wrappers › migrateHooksIfNeeded refreshes an outdated relay but never installs one6 ms
  • ✓the relay snippet, executed › POSTs the stdin document to the daemon named by daemon.json and still runs the wrapped command on the same stdin69 ms
hooks/src/__tests__/windows-codex-pid.test.ts0/0
  • ○Windows Codex hook launcher identity › crosses cmd.exe and sends the actual Codex launcher PID with UTF-8 stdin
  • ○Windows Codex hook launcher identity › discovers the registry port through the bounded native HTTP health probe
  • ○Windows Codex hook launcher identity › does not label an unrelated Node launcher as Codex
  • ○Windows Codex hook launcher identity › still delivers the lifecycle event when the process query is unavailable
  • ○Windows Codex hook launcher identity › does not loop or invent a PID from cyclic process evidence
  • ○Windows observer receiver selection › Claude lifecycle handles a missing registry without changing the user output
  • ○Windows observer receiver selection › Claude lifecycle handles a malformed registry without changing the user output
  • ○Windows observer receiver selection › Claude lifecycle handles a unhealthy registry without changing the user output
  • ○Windows observer receiver selection › Claude lifecycle handles a healthy registry without changing the user output
  • ○Windows observer receiver selection › Claude lifecycle retains an explicit managed-session receiver
  • ○Windows observer receiver selection › Claude status line handles a missing registry without changing the user output
  • ○Windows observer receiver selection › Claude status line handles a malformed registry without changing the user output
  • ○Windows observer receiver selection › Claude status line handles a unhealthy registry without changing the user output
  • ○Windows observer receiver selection › Claude status line handles a healthy registry without changing the user output
  • ○Windows observer receiver selection › Codex lifecycle handles a missing registry without changing the user output
  • ○Windows observer receiver selection › Codex lifecycle handles a malformed registry without changing the user output
  • ○Windows observer receiver selection › Codex lifecycle handles a unhealthy registry without changing the user output
  • ○Windows observer receiver selection › Codex lifecycle handles a healthy registry without changing the user output
  • ○Windows observer receiver selection › Codex lifecycle retains an explicit managed-session receiver
  • ○Windows observer receiver selection › Codex notify handles a missing registry without changing the user output
  • ○Windows observer receiver selection › Codex notify handles a malformed registry without changing the user output
  • ○Windows observer receiver selection › Codex notify handles a unhealthy registry without changing the user output
  • ○Windows observer receiver selection › Codex notify handles a healthy registry without changing the user output
  • ○Windows observer receiver selection › Codex notify retains an explicit managed-session receiver
  • ○Windows observer receiver selection › Codex hold handles a missing registry without changing the user output
  • ○Windows observer receiver selection › Codex hold handles a malformed registry without changing the user output
  • ○Windows observer receiver selection › Codex hold handles a unhealthy registry without changing the user output
  • ○Windows observer receiver selection › Codex hold handles a healthy registry without changing the user output
  • ○Windows observer receiver selection › Codex hold retains an explicit managed-session receiver
  • ○Windows observer receiver selection › bounds a registry health request that never answers
shared/src/__tests__/ci-wait-lifecycle.test.ts23/23
  • ✓CI wait lifecycle › background wait survives Stop and unrelated tool completion; prompt clears explicitly9 ms
  • ✓CI wait lifecycle › foreground watch closes on its own tool id without inferring success1 ms
  • ✓CI wait lifecycle › failed launch clears background wait0 ms
  • ✓CI wait lifecycle › interrupt closes background wait0 ms
  • ✓CI wait lifecycle › session end closes background wait0 ms
  • ✓CI wait lifecycle › missing invocation identity and one-shot reads cannot create a wait0 ms
  • ✓CI wait lifecycle › duplicate hooks preserve start and expiration clears without result0 ms
  • ✓CI wait lifecycle › Hermes normalized evidence matches the exact foreground invocation1 ms
  • ✓CI wait lifecycle › Hermes background Stop retention and authoritative tool error clearing1 ms
  • ✓CI wait lifecycle › Hermes normalized intent rejects extra secret field0 ms
  • ✓CI wait lifecycle › Hermes normalized intent rejects fractional run0 ms
  • ✓CI wait lifecycle › Hermes normalized intent rejects boolean run0 ms
  • ✓CI wait lifecycle › Hermes normalized intent rejects oversized run0 ms
  • ✓CI wait lifecycle › Hermes normalized intent rejects unsafe ref0 ms
  • ✓CI wait lifecycle › Hermes normalized intent rejects unknown provider0 ms
  • ✓CI wait lifecycle › Hermes normalized intent rejects invalid repo0 ms
  • ✓CI wait lifecycle › Hermes normalized intent rejects oversized ref0 ms
  • ✓CI wait lifecycle › Hermes missing invocation id fails closed0 ms
  • ✓CI wait lifecycle › Hermes normalized mode never coerces an array into a string0 ms
  • ✓CI wait lifecycle › opencode raw hook boundaries retain background wait through Stop and clear on interrupt1 ms
  • ✓CI wait lifecycle › codex raw hook boundaries retain background wait through Stop and clear on interrupt0 ms
  • ✓CI wait lifecycle › ignores an asynchronous result from a previous visit and never merges sessions1 ms
  • ✓CI wait lifecycle › shows CI beside idle without disguising a real permission request3 ms
shared/src/__tests__/ci-wait-sync.test.ts4/4
  • ✓Node/Swift CI wait command parity › generates GitHub transport, identity and freshness policy without drift2 ms
  • ○Node/Swift CI wait command parity › executes native GitHub verdicts against Node response rules
  • ✓Node/Swift CI wait command parity › clears inactive pending phase evidence while preserving terminal verdicts1 ms
  • ○Node/Swift CI wait command parity › executes full-JSON firmware projection against the same compact evidence vectors
  • ✓Node/Swift CI wait command parity › derives the CI helper from the official GitHub SVG and preserves its transparent face6 ms
  • ✓Node/Swift CI wait command parity › keeps the native classifier generated from the common grammar and bounds2 ms
  • ○Node/Swift CI wait command parity › executes every common command vector in Swift
shared/src/__tests__/ci-wait.test.ts104/104
  • ✓CI wait command evidence › 'shared vector 0'5 ms
  • ✓CI wait command evidence › 'shared vector 1'1 ms
  • ✓CI wait command evidence › 'shared vector 2'0 ms
  • ✓CI wait command evidence › 'shared vector 3'0 ms
  • ✓CI wait command evidence › 'shared vector 4'0 ms
  • ✓CI wait command evidence › 'shared vector 5'0 ms
  • ✓CI wait command evidence › 'shared vector 6'0 ms
  • ✓CI wait command evidence › 'shared vector 7'0 ms
  • ✓CI wait command evidence › 'shared vector 8'0 ms
  • ✓CI wait command evidence › 'shared vector 9'0 ms
  • ✓CI wait command evidence › 'shared vector 10'0 ms
  • ✓CI wait command evidence › 'shared vector 11'0 ms
  • ✓CI wait command evidence › 'shared vector 12'0 ms
  • ✓CI wait command evidence › 'shared vector 13'0 ms
  • ✓CI wait command evidence › 'shared vector 14'0 ms
  • ✓CI wait command evidence › 'shared vector 15'0 ms
  • ✓CI wait command evidence › 'shared vector 16'0 ms
  • ✓CI wait command evidence › 'shared vector 17'0 ms
  • ✓CI wait command evidence › 'shared vector 18'0 ms
  • ✓CI wait command evidence › 'shared vector 19'0 ms
  • ✓CI wait command evidence › 'shared vector 20'0 ms
  • ✓CI wait command evidence › 'shared vector 21'0 ms
  • ✓CI wait command evidence › 'shared vector 22'0 ms
  • ✓CI wait command evidence › 'shared vector 23'0 ms
  • ✓CI wait command evidence › 'shared vector 24'0 ms
  • ✓CI wait command evidence › 'shared vector 25'0 ms
  • ✓CI wait command evidence › 'shared vector 26'0 ms
  • ✓CI wait command evidence › 'shared vector 27'0 ms
  • ✓CI wait command evidence › 'shared vector 28'0 ms
  • ✓CI wait command evidence › 'shared vector 29'0 ms
  • ✓CI wait command evidence › 'shared vector 30'0 ms
  • ✓CI wait command evidence › 'shared vector 31'0 ms
  • ✓CI wait command evidence › 'shared vector 32'0 ms
  • ✓CI wait command evidence › 'shared vector 33'0 ms
  • ✓CI wait command evidence › 'shared vector 34'0 ms
  • ✓CI wait command evidence › 'shared vector 35'0 ms
  • ✓CI wait command evidence › 'shared vector 36'0 ms
  • ✓CI wait command evidence › 'shared vector 37'0 ms
  • ✓CI wait command evidence › 'shared vector 38'0 ms
  • ✓CI wait command evidence › 'shared vector 39'0 ms
  • ✓CI wait command evidence › 'shared vector 40'0 ms
  • ✓CI wait command evidence › 'shared vector 41'2 ms
  • ✓CI wait command evidence › 'shared vector 42'0 ms
  • ✓CI wait command evidence › 'shared vector 43'0 ms
  • ✓CI wait command evidence › 'shared vector 44'0 ms
  • ✓CI wait command evidence › 'shared vector 45'0 ms
  • ✓CI wait command evidence › 'shared vector 46'0 ms
  • ✓CI wait command evidence › 'shared vector 47'0 ms
  • ✓CI wait command evidence › 'shared vector 48'0 ms
  • ✓CI wait command evidence › 'shared vector 49'0 ms
  • ✓CI wait command evidence › 'shared vector 50'0 ms
  • ✓CI wait command evidence › 'shared vector 51'0 ms
  • ✓CI wait command evidence › 'shared vector 52'0 ms
  • ✓CI wait command evidence › 'shared vector 53'0 ms
  • ✓CI wait command evidence › 'shared vector 54'0 ms
  • ✓CI wait command evidence › 'shared vector 55'0 ms
  • ✓CI wait command evidence › 'shared vector 56'0 ms
  • ✓CI wait command evidence › 'shared vector 57'0 ms
  • ✓CI wait command evidence › 'shared vector 58'0 ms
  • ✓CI wait command evidence › 'shared vector 59'0 ms
  • ✓CI wait command evidence › 'shared vector 60'0 ms
  • ✓CI wait command evidence › 'shared vector 61'0 ms
  • ✓CI wait command evidence › 'shared vector 62'0 ms
  • ✓CI wait command evidence › 'shared vector 63'0 ms
  • ✓CI wait command evidence › 'shared vector 64'0 ms
  • ✓CI wait command evidence › 'shared vector 65'0 ms
  • ✓CI wait command evidence › 'shared vector 66'0 ms
  • ✓CI wait command evidence › 'shared vector 67'0 ms
  • ✓CI wait command evidence › 'shared vector 68'0 ms
  • ✓CI wait command evidence › 'shared vector 69'9 ms
  • ✓CI wait command evidence › 'shared vector 70'0 ms
  • ✓CI wait command evidence › 'shared vector 71'0 ms
  • ✓CI wait command evidence › 'shared vector 72'0 ms
  • ✓CI wait command evidence › 'shared vector 73'0 ms
  • ✓CI wait command evidence › 'shared vector 74'0 ms
  • ✓CI wait command evidence › 'shared vector 75'0 ms
  • ✓CI wait command evidence › 'shared vector 76'0 ms
  • ✓CI wait command evidence › 'shared vector 77'0 ms
  • ✓CI wait command evidence › 'shared vector 78'0 ms
  • ✓CI wait command evidence › 'shared vector 79'0 ms
  • ✓CI wait command evidence › 'shared vector 80'0 ms
  • ✓CI wait command evidence › 'shared vector 81'0 ms
  • ✓CI wait command evidence › 'shared vector 82'0 ms
  • ✓CI wait command evidence › 'shared vector 83'0 ms
  • ✓CI wait command evidence › 'shared vector 84'0 ms
  • ✓CI wait command evidence › 'shared vector 85'0 ms
  • ✓CI wait command evidence › 'shared vector 86'0 ms
  • ✓CI wait command evidence › 'shared vector 87'0 ms
  • ✓CI wait command evidence › 'shared vector 88'0 ms
  • ✓CI wait command evidence › 'shared vector 89'0 ms
  • ✓CI wait command evidence › 'shared vector 90'0 ms
  • ✓CI wait command evidence › 'shared vector 91'0 ms
  • ✓CI wait command evidence › 'shared vector 92'0 ms
  • ✓CI wait command evidence › 'shared vector 93'0 ms
  • ✓CI wait command evidence › 'shared vector 94'0 ms
  • ✓CI wait command evidence › 'shared vector 95'0 ms
  • ✓CI wait command evidence › 'shared vector 96'0 ms
  • ✓CI wait command evidence › bounds UTF-16 input including surrogate pairs0 ms
  • ✓clips and unions CI spans instead of double-counting concurrent watchers1 ms
  • ✓accounts CI spans: 'overlap clipped at turn'0 ms
  • ✓accounts CI spans: 'background stays active'0 ms
  • ✓accounts CI spans: 'other turn ignored'0 ms
  • ✓accounts CI spans: 'orphan close proves no span'0 ms
  • ✓accounts CI spans: 'duplicate open does not reset beginni…'0 ms
shared/src/__tests__/claude-background-jobs-sync.test.ts3/3
  • ✓generated Claude background-job rule mirror in sync › apple/AgentDeck/Daemon/Session/ClaudeBackgroundJobRules.generated.swift matches the SSOT3 ms
  • ✓generated Claude background-job rule mirror in sync › emitter embeds the SSOT constants1 ms
  • ✓generated Claude background-job rule mirror in sync › the Swift suite replays the shared vector file (grep the test wiring)0 ms
shared/src/__tests__/claude-background-jobs.test.ts11/11
  • ✓claude background-job rule (shared vectors) › has vectors3 ms
  • ✓claude background-job rule (shared vectors) › unclaimed spare announcing itself1 ms
  • ✓claude background-job rule (shared vectors) › claimed spare compacting keeps its SessionStart0 ms
  • ✓claude background-job rule (shared vectors) › PTY host is a relay, even though its tail names the job argv0 ms
  • ✓claude background-job rule (shared vectors) › window moved to the background: job forked from the parked conversation0 ms
  • ✓claude background-job rule (shared vectors) › resume path containing spaces0 ms
  • ✓claude background-job rule (shared vectors) › fresh background job (claude --bg), no conversation it continues0 ms
  • ✓claude background-job rule (shared vectors) › terminal fork is not a background job: the original may still be open0 ms
  • ✓claude background-job rule (shared vectors) › unknown parent proves nothing0 ms
  • ✓claude background-job rule (shared vectors) › ordinary interactive window0 ms
  • ✓claude background-job rule (shared vectors) › bare --resume uuid is not overtaken by a later path argument0 ms
shared/src/__tests__/claude-permission-rules-sync.test.ts4/4
  • ✓generated Claude permission-rules mirror in sync › apple/AgentDeck/Daemon/Session/ClaudePermissionRules.generated.swift matches the SSOT3 ms
  • ✓generated Claude permission-rules mirror in sync › emitter embeds the SSOT constants3 ms
  • ✓generated Claude permission-rules mirror in sync › the Swift suite replays the shared vector file (grep the test wiring)0 ms
  • ✓generated Claude permission-rules mirror in sync › no daemon keeps a private copy of the Bash rule matcher8 ms
shared/src/__tests__/claude-permission-rules.test.ts89/89
  • ✓claude permission vectors (shared with the Swift suite) › is large enough to be a gate3 ms
  • ✓claude permission vectors (shared with the Swift suite) › no rules, default mode: an unlisted Bash call does not prove a user wait1 ms
  • ✓claude permission vectors (shared with the Swift suite) › space-star allow rule (the form the permission dialog writes) suppresses the hold0 ms
  • ✓claude permission vectors (shared with the Swift suite) › legacy colon-star spelling is an alias of the trailing space-star0 ms
  • ✓claude permission vectors (shared with the Swift suite) › legacy colon-star also keeps its raw-prefix reading (npm run test:* ⇒ npm run test:watch) — over-matching is the safe direction0 ms
  • ✓claude permission vectors (shared with the Swift suite) › trailing ' *' also matches the bare command (Bash(ls *) ⇒ ls)0 ms
  • ✓claude permission vectors (shared with the Swift suite) › the space before a trailing * is part of the rule: Bash(ls *) does not cover lsof0 ms
  • ✓claude permission vectors (shared with the Swift suite) › Bash(ls*) has no space, so it does cover lsof0 ms
  • ✓claude permission vectors (shared with the Swift suite) › a wildcard in the middle: Bash(git log * main) covers git log --oneline main0 ms
  • ✓claude permission vectors (shared with the Swift suite) › Bash(git log * main) does not cover git log main (the * needs text in its place)0 ms
  • ✓claude permission vectors (shared with the Swift suite) › Bash(git * main) covers git push origin main0 ms
  • ✓claude permission vectors (shared with the Swift suite) › a leading wildcard: Bash(* --version) covers node --version0 ms
  • ✓claude permission vectors (shared with the Swift suite) › Bash(* --version) does not cover node -v0 ms
  • ✓claude permission vectors (shared with the Swift suite) › two wildcards: Bash(* --help *) covers npm --help x but not the bare npm --help0 ms
  • ✓claude permission vectors (shared with the Swift suite) › exact rule matches only the exact command0 ms
  • ✓claude permission vectors (shared with the Swift suite) › bare tool-name allow rule covers everything0 ms
  • ✓claude permission vectors (shared with the Swift suite) › compound command: every subcommand must be covered — one uncovered segment still prompts0 ms
  • ✓claude permission vectors (shared with the Swift suite) › compound command fully covered by allow rules and the read-only set0 ms
  • ✓claude permission vectors (shared with the Swift suite) › an operator inside quotes does not split the command0 ms
  • ✓claude permission vectors (shared with the Swift suite) › acceptEdits auto-approves mkdir/cp even without a rule0 ms
  • ✓claude permission vectors (shared with the Swift suite) › default mode does NOT auto-approve mkdir/cp0 ms
  • ✓claude permission vectors (shared with the Swift suite) › built-in read-only command never prompts (no rule needed)0 ms
  • ✓claude permission vectors (shared with the Swift suite) › read-only git form never prompts0 ms
  • ✓claude permission vectors (shared with the Swift suite) › git branch with a name argument writes, so it is not read-only0 ms
  • ✓claude permission vectors (shared with the Swift suite) › a write redirect makes a read-only command prompt0 ms
  • ✓claude permission vectors (shared with the Swift suite) › a /dev/null redirect is not a write0 ms
  • ✓claude permission vectors (shared with the Swift suite) › wrappers and safe env assignments are stripped before matching0 ms
  • ✓claude permission vectors (shared with the Swift suite) › an unparseable compound (operator with nothing after it) is matched as one text and prompts0 ms
  • ✓claude permission vectors (shared with the Swift suite) › heredoc is not split; the whole text is matched against the rule0 ms
  • ✓claude permission vectors (shared with the Swift suite) › deny rule: Claude auto-denies without prompting0 ms
  • ✓claude permission vectors (shared with the Swift suite) › ask rule can still be answered automatically: no hold0 ms
  • ✓claude permission vectors (shared with the Swift suite) › unreadable settings: never hold0 ms
  • ✓claude permission vectors (shared with the Swift suite) › auto mode never holds (the classifier decides outside the settings files)0 ms
  • ✓claude permission vectors (shared with the Swift suite) › bypassPermissions never holds0 ms
  • ✓claude permission vectors (shared with the Swift suite) › dontAsk never holds0 ms
  • ✓claude permission vectors (shared with the Swift suite) › plan mode never holds0 ms
  • ✓claude permission vectors (shared with the Swift suite) › absent mode is treated as default0 ms
  • ✓claude permission vectors (shared with the Swift suite) › acceptEdits: edit-family tools never hold0 ms
  • ✓claude permission vectors (shared with the Swift suite) › default: Edit with no rule does not prove a human wait0 ms
  • ✓claude permission vectors (shared with the Swift suite) › non-Bash tool with any allow rule for it: loose match suppresses the hold0 ms
  • ✓claude permission vectors (shared with the Swift suite) › never-prompt tools never hold0 ms
  • ✓claude permission vectors (shared with the Swift suite) › MCP tools never hold (per-server trust state is invisible)0 ms
  • ✓claude permission vectors (shared with the Swift suite) › unknown future tools never hold0 ms
  • ✓claude permission vectors (shared with the Swift suite) › code-point matching: a Korean argument matches through a wildcard0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(npm run build) matches "npm run build"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(npm run build) does not match "npm run build --watch"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(npm run *) matches "npm run build"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(npm run *) matches "npm run test --watch"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(npm run *) matches "npm run"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(npm run *) does not match "npm install"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(git log * main) matches "git log --oneline main"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(git log * main) matches "git log -5 main"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(git log * main) does not match "git log main"2 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(git log * main) does not match "git push origin main"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(git * main) matches "git merge main"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(git * main) matches "git -c core.fsmonitor=x diff main"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(git * main) does not match "git log"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(* --version) matches "node --version"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(* --version) matches "bash -c 'echo hi' --version"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(* --version) does not match "node -v"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(ls *) matches "ls -la"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(ls *) matches "ls"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(ls *) does not match "lsof"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(ls*) matches "ls -la"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(ls*) matches "lsof"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(* --help *) matches "npm --help x"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(* --help *) does not match "npm --help"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(ls:*) matches "ls -la"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(ls:*) matches "ls"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(ls:*) matches "lsof"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(npm run test:*) matches "npm run test:watch"0 ms
  • ✓bashRuleMatches — documented wildcard table › Bash(*) matches "anything at all"0 ms
  • ✓bashRuleMatches — documented wildcard table › globMatch is linear on adversarial input (many wildcards, long text)2 ms
  • ✓splitCompoundCommand › splits on every documented operator1 ms
  • ✓splitCompoundCommand › keeps operators inside quotes0 ms
  • ✓splitCompoundCommand › refuses heredocs, substitutions and unbalanced quotes0 ms
  • ✓splitCompoundCommand › refuses an operator with nothing after it0 ms
  • ✓wrapper stripping and built-in sets › strips env assignments and wrappers1 ms
  • ✓wrapper stripping and built-in sets › recognises the documented read-only set and its git forms1 ms
  • ✓wrapper stripping and built-in sets › recognises the acceptEdits filesystem commands0 ms
  • ✓evaluatePermissionRules › deny outranks allow1 ms
  • ✓evaluatePermissionRules › ask outranks allow0 ms
  • ✓evaluatePermissionRules › allow covers the rest0 ms
  • ✓evaluatePermissionRules › unknown when rules are unreadable0 ms
  • ✓evaluatePermissionRules › none when nothing decides0 ms
  • ✓mode gate, signature, learn window › gates only default/acceptEdits (non-edit) calls1 ms
  • ✓mode gate, signature, learn window › signature is the first two Bash tokens0 ms
  • ✓mode gate, signature, learn window › learn window outlasts a slow tool (was 8 s, which a curl fetch exceeds)0 ms
  • ✓Claude terminal Attention boundaries › rejects delayed human-wait notifications until a fresh opening event1 ms
shared/src/__tests__/codex-approval-hold-sync.test.ts3/3
  • ✓generated Codex approval hold mirror in sync › apple/AgentDeck/Daemon/Session/CodexApprovalHoldRules.generated.swift matches the SSOT3 ms
  • ✓generated Codex approval hold mirror in sync › emitter embeds the SSOT constants1 ms
  • ✓generated Codex approval hold mirror in sync › the Swift suite replays the shared vector file (grep the test wiring)0 ms
shared/src/__tests__/codex-approval-hold.test.ts73/73
  • ✓Codex approval hold rules (shared vectors) › reviewer: automatic turn context3 ms
  • ✓Codex approval hold rules (shared vectors) › reviewer: human turn context0 ms
  • ✓Codex approval hold rules (shared vectors) › reviewer: mid-turn switch to human0 ms
  • ✓Codex approval hold rules (shared vectors) › reviewer: mid-turn switch to automatic0 ms
  • ✓Codex approval hold rules (shared vectors) › reviewer: new legacy turn must not inherit automatic review0 ms
  • ✓Codex approval hold rules (shared vectors) › reviewer: wrong turn is unknown0 ms
  • ✓Codex approval hold rules (shared vectors) › reviewer: new unknown settings must not inherit old review0 ms
  • ✓Codex approval hold rules (shared vectors) › reviewer: quoted settings are not evidence0 ms
  • ✓Codex approval hold rules (shared vectors) › reviewer: unreadable legacy record0 ms
  • ✓Codex approval hold rules (shared vectors) › reviewer: unrecognized reviewer stays distinct0 ms
  • ✓Codex approval hold rules (shared vectors) › human wait requires confirmed reviewer: user0 ms
  • ✓Codex approval hold rules (shared vectors) › human wait requires confirmed reviewer: auto_review0 ms
  • ✓Codex approval hold rules (shared vectors) › human wait requires confirmed reviewer: guardian_subagent0 ms
  • ✓Codex approval hold rules (shared vectors) › human wait requires confirmed reviewer: future_reviewer0 ms
  • ✓Codex approval hold rules (shared vectors) › human wait requires confirmed reviewer: 0 ms
  • ✓Codex approval hold rules (shared vectors) › human wait requires confirmed reviewer: null0 ms
  • ✓Codex approval hold rules (shared vectors) › classifies a canonical record prefix: {"timestamp":"2026-10-29T00:00:00Z","type":"turn_context","payload":{0 ms
  • ✓Codex approval hold rules (shared vectors) › classifies a canonical record prefix: {"type":"event_msg","payload":{"type":"thread_settings_applied",0 ms
  • ✓Codex approval hold rules (shared vectors) › classifies a canonical record prefix: {"type":"response_item","payload":{"type":"turn_context"0 ms
  • ✓Codex approval hold rules (shared vectors) › classifies a canonical record prefix: {"type":"event_msg","payload":{"type":"user_message",0 ms
  • ✓Codex approval hold rules (shared vectors) › names the header both daemons read0 ms
  • ✓Codex approval hold rules (shared vectors) › prints the allow decision Codex reads1 ms
  • ✓Codex approval hold rules (shared vectors) › prints the deny decision Codex reads0 ms
  • ✓Codex approval hold rules (shared vectors) › prints the pass decision Codex reads0 ms
  • ✓Codex approval hold rules (shared vectors) › prints the ended decision Codex reads0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: installed command, default hold0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: installed command, longest configurable hold0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: a shorter command budget caps the hold below it0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: surrounding whitespace is tolerated0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: a budget too short to be worth a stall does not hold0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: zero does not hold0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: empty does not hold0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: non-numeric does not hold0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: fractional does not hold0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: negative does not hold0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: absurdly long budget is not a number we trust0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: reviewer I/O consumes the hook budget0 ms
  • ✓Codex approval hold rules (shared vectors) › budget: too little budget remains after reviewer I/O0 ms
  • ✓Codex approval hold rules (shared vectors) › never holds a request that names no budget0 ms
  • ✓Codex approval hold rules (shared vectors) › eligibility: connected device, visible session0 ms
  • ✓Codex approval hold rules (shared vectors) › eligibility: kill switch0 ms
  • ✓Codex approval hold rules (shared vectors) › eligibility: no session id0 ms
  • ✓Codex approval hold rules (shared vectors) › eligibility: Codex background thread0 ms
  • ✓Codex approval hold rules (shared vectors) › eligibility: headless codex exec child0 ms
  • ✓Codex approval hold rules (shared vectors) › eligibility: no device connected0 ms
  • ✓Codex approval hold rules (shared vectors) › eligibility: no row shows the session0 ms
  • ✓Codex approval hold rules (shared vectors) › eligibility: a hold already open on the session0 ms
  • ✓Codex approval hold rules (shared vectors) › eligibility: kill switch wins over everything0 ms
  • ✓Codex approval hold rules (shared vectors) › press: Allow key (Stream Deck: select_option 0)0 ms
  • ✓Codex approval hold rules (shared vectors) › press: Deny key (Stream Deck: select_option 1)0 ms
  • ✓Codex approval hold rules (shared vectors) › press: any other index is not an answer0 ms
  • ✓Codex approval hold rules (shared vectors) › press: a negative index is not an answer0 ms
  • ✓Codex approval hold rules (shared vectors) › press: an index sent as a string is not an answer0 ms
  • ✓Codex approval hold rules (shared vectors) › press: select_option without an index is not an answer0 ms
  • ✓Codex approval hold rules (shared vectors) › press: respond y allows0 ms
  • ✓Codex approval hold rules (shared vectors) › press: respond yes allows, whatever its case and padding0 ms
  • ✓Codex approval hold rules (shared vectors) › press: respond n denies0 ms
  • ✓Codex approval hold rules (shared vectors) › press: respond no denies0 ms
  • ✓Codex approval hold rules (shared vectors) › press: an unknown word is not an answer0 ms
  • ✓Codex approval hold rules (shared vectors) › press: an empty word is not an answer0 ms
  • ✓Codex approval hold rules (shared vectors) › press: respond without a value is not an answer0 ms
  • ✓Codex approval hold rules (shared vectors) › press: a stop is not an answer0 ms
  • ✓Codex approval hold rules (shared vectors) › releases an open hold on codex_interrupt0 ms
  • ✓Codex approval hold rules (shared vectors) › releases an open hold on codex_session_end0 ms
  • ✓Codex approval hold rules (shared vectors) › releases an open hold on codex_stop0 ms
  • ✓Codex approval hold rules (shared vectors) › releases an open hold on codex_turn_complete0 ms
  • ✓Codex approval hold rules (shared vectors) › releases an open hold on codex_user_prompt_submit0 ms
  • ✓Codex approval hold rules (shared vectors) › leaves an open hold alone on codex_permission_request0 ms
  • ✓Codex approval hold rules (shared vectors) › leaves an open hold alone on codex_session_start0 ms
  • ✓Codex approval hold rules (shared vectors) › leaves an open hold alone on codex_subagent_start0 ms
  • ✓Codex approval hold rules (shared vectors) › leaves an open hold alone on codex_subagent_stop0 ms
  • ✓Codex approval hold rules (shared vectors) › leaves an open hold alone on codex_tool_end0 ms
  • ✓Codex approval hold rules (shared vectors) › leaves an open hold alone on codex_tool_start0 ms
shared/src/__tests__/hook-harness-sync.test.ts3/3
  • ✓generated hook harness mirror in sync › apple/AgentDeck/Daemon/Session/CodexHookHarness.generated.swift matches the SSOT3 ms
  • ✓generated hook harness mirror in sync › emitter embeds the SSOT constants1 ms
  • ✓generated hook harness mirror in sync › the Swift suite replays the shared vector file (grep the test wiring)0 ms
shared/src/__tests__/hook-harness.test.ts26/26
  • ✓routeHookHarness (shared vectors) › Codex SessionStart (codex-cli 0.160.1, captured 2026-10-11) posted to the generic /hooks/SessionStart4 ms
  • ✓routeHookHarness (shared vectors) › Codex UserPromptSubmit (captured) posted to the generic endpoint0 ms
  • ✓routeHookHarness (shared vectors) › Codex Stop (captured) posted to the generic endpoint0 ms
  • ✓routeHookHarness (shared vectors) › Codex Stop from an ephemeral run (transcript_path null) posted to the generic endpoint0 ms
  • ✓routeHookHarness (shared vectors) › Codex Stop through the Swift daemon's snake_case mapping0 ms
  • ✓routeHookHarness (shared vectors) › Codex PreToolUse (captured envelope, scrubbed tool) through the Swift mapping0 ms
  • ✓routeHookHarness (shared vectors) › the same Codex Stop on its own codex_stop endpoint is not re-routed, and fingerprints identically0 ms
  • ✓routeHookHarness (shared vectors) › Codex notify agent-turn-complete (documented shape) on the Swift /hook body0 ms
  • ✓routeHookHarness (shared vectors) › a Codex payload for an event Codex has no AgentDeck route for is dropped0 ms
  • ✓routeHookHarness (shared vectors) › a Codex payload under PreCompact is dropped, never a Claude row0 ms
  • ✓routeHookHarness (shared vectors) › Claude Code Stop (documented shape) stays as posted0 ms
  • ✓routeHookHarness (shared vectors) › Claude Code SessionStart stays as posted0 ms
  • ✓routeHookHarness (shared vectors) › claude-glm (Claude Code serving glm) stays Claude: the model is not harness evidence0 ms
  • ✓routeHookHarness (shared vectors) › a Claude payload naming an OpenAI model is still Claude: the model is not harness evidence0 ms
  • ✓routeHookHarness (shared vectors) › an OpenCode-prefixed hook is never re-routed0 ms
  • ✓routeHookHarness (shared vectors) › a Claude transcript whose file name merely contains 'rollout' is not a Codex rollout0 ms
  • ✓routeHookHarness (shared vectors) › Claude payload carrying turn_id (as MessageDisplay does) still names its transcript, so it stays Claude0 ms
  • ✓routeHookHarness (shared vectors) › a Stop continued by a blocking hook (same turn, new text) is a new instance1 ms
  • ✓routeHookHarness (shared vectors) › input steered into a running turn (same turn, new prompt) is a new instance0 ms
  • ✓routeHookHarness (shared vectors) › hashes text as FNV-1a over UTF-16 units (pinned for the Swift mirror)0 ms
  • ✓routeHookHarness (shared vectors) › a Codex Stop without turn_id has no fingerprint (two turns could collide)0 ms
  • ✓routeHookHarness (shared vectors) › a Codex tool hook without tool_use_id has no fingerprint0 ms
  • ✓routeHookHarness (shared vectors) › a hook with no thread has no fingerprint0 ms
  • ✓Codex identity evidence › reads every thread-id key Codex builds have used and strips a codex: prefix0 ms
  • ✓Codex identity evidence › never treats the model or provider as harness evidence0 ms
  • ✓Codex identity evidence › accepts a Windows rollout path0 ms
shared/src/__tests__/observed-agent-rules.test.ts6/6
  • ✓observed session ids › strips every advertised prefix, Kiro included4 ms
  • ✓observed session ids › keeps the regex and the list from disagreeing about which agents exist1 ms
  • ✓observed tool_exec suppression › covers every observed agent whose tool rows are a firehose0 ms
  • ✓generated mirrors › match this source1 ms
  • ✓generated mirrors › leaves no hand-written copy of the list anywhere in the app sources427 ms
  • ✓Codex rollout subagent metadata › accepts explicit source and thread discriminators without inferring arbitrary parents1 ms
shared/src/__tests__/opencode-question.test.ts12/12
  • ✓OpenCode device question contract › single choice preserves upstream labels3 ms
  • ✓OpenCode device question contract › Korean question0 ms
  • ✓OpenCode device question contract › header fallback0 ms
  • ✓OpenCode device question contract › multiple selection is display only0 ms
  • ✓OpenCode device question contract › multiple groups are never flattened0 ms
  • ✓OpenCode device question contract › free text has no invented choice0 ms
  • ✓OpenCode device question contract › duplicate labels are display only0 ms
  • ✓OpenCode device question contract › missing choices invalid0 ms
  • ✓OpenCode device question contract › malformed choice invalidates whole request0 ms
  • ✓OpenCode device question contract › non boolean multiple invalid0 ms
  • ✓OpenCode device question contract › oversized label rejected0 ms
  • ✓OpenCode device question contract › empty request0 ms
shared/src/__tests__/subagent-activity.test.ts5/5
  • ✓deriveSubagentActivity › pairs summarized starts and completions under their parent session4 ms
  • ✓deriveSubagentActivity › uses team completion rows only as a recent completion pulse0 ms
  • ✓deriveSubagentActivity › ignores ordinary tools and expires orphaned starts0 ms
  • ✓deriveSubagentActivity › treats a dispatch older than the parent's own turn close as drained (lost stop rows)0 ms
  • ✓deriveSubagentActivity › sorts history rows before pairing them0 ms

11 files

Pass

Managed sessions & terminal parsing

Does agentdeck claude|codex read the terminal correctly and route commands to the right PTY?

Passed
405
Failed
0
Skipped
0
Time
1.3 s
11 test files
bridge/src/__tests__/adapter.test.ts101/101
  • ✓createAdapter factory › creates ClaudeCodeAdapter for "claude-code"4 ms
  • ✓createAdapter factory › creates OpenClawAdapter for "openclaw"1 ms
  • ✓createAdapter factory › passes gatewayUrl to OpenClawAdapter0 ms
  • ✓createAdapter factory › creates CodexCliAdapter for "codex-cli"1 ms
  • ✓createAdapter factory › throws for unknown agent type1 ms
  • ✓ClaudeCodeAdapter › capabilities › reports all Claude Code capabilities as true1 ms
  • ✓ClaudeCodeAdapter › handleCommand routing › handles respond → returns true1 ms
  • ✓ClaudeCodeAdapter › handleCommand routing › handles switch_mode → returns true0 ms
  • ✓ClaudeCodeAdapter › handleCommand routing › handles interrupt → returns true1 ms
  • ✓ClaudeCodeAdapter › handleCommand routing › handles escape → returns true1 ms
  • ✓ClaudeCodeAdapter › handleCommand routing › defers select_option to bridge → returns false1 ms
  • ✓ClaudeCodeAdapter › handleCommand routing › defers navigate_option to bridge → returns false1 ms
  • ✓ClaudeCodeAdapter › handleCommand routing › defers send_prompt to bridge → returns false1 ms
  • ✓ClaudeCodeAdapter › handleCommand routing › defers voice to bridge → returns false1 ms
  • ✓ClaudeCodeAdapter › handleCommand routing › defers query_usage to bridge → returns false1 ms
  • ✓ClaudeCodeAdapter › switch_mode debounce › debounces rapid switch_mode calls (< 100ms apart)1 ms
  • ✓ClaudeCodeAdapter › lifecycle › isAlive returns false before start0 ms
  • ✓ClaudeCodeAdapter › lifecycle › getTtyPath returns undefined before start1 ms
  • ✓ClaudeCodeAdapter › lifecycle › getProjectName returns null before start1 ms
  • ✓ClaudeCodeAdapter › lifecycle › getHttpServer returns an object1 ms
  • ✓ClaudeCodeAdapter › onRawData callback › can register callback without error1 ms
  • ✓ClaudeCodeAdapter › onDiag handler › can register handler without error1 ms
  • ✓OpenClawAdapter › capabilities › reports OpenClaw capabilities correctly1 ms
  • ✓OpenClawAdapter › handleCommand routing › handles respond → returns true (RPC)1 ms
  • ✓OpenClawAdapter › handleCommand routing › handles select_option → returns true (RPC)0 ms
  • ✓OpenClawAdapter › handleCommand routing › handles navigate_option → returns true (no-op)0 ms
  • ✓OpenClawAdapter › handleCommand routing › handles send_prompt → returns false without session key0 ms
  • ✓OpenClawAdapter › handleCommand routing › handles interrupt → returns true (RPC)0 ms
  • ✓OpenClawAdapter › handleCommand routing › handles escape → returns true (RPC)0 ms
  • ✓OpenClawAdapter › handleCommand routing › defers switch_mode → returns false (not supported)0 ms
  • ✓OpenClawAdapter › handleCommand routing › defers voice to bridge → returns false0 ms
  • ✓OpenClawAdapter › handleCommand routing › defers query_usage to bridge → returns false0 ms
  • ✓OpenClawAdapter › lifecycle › isAlive returns false before start0 ms
  • ✓OpenClawAdapter › lifecycle › getTtyPath returns undefined (no PTY)0 ms
  • ✓OpenClawAdapter › lifecycle › getProjectName returns null before start0 ms
  • ✓OpenClawAdapter › lifecycle › getHttpServer returns an object0 ms
  • ✓OpenClawAdapter › lifecycle › attachTerminal is a no-op0 ms
  • ✓OpenClawAdapter › onRawData callback › can register callback without error0 ms
  • ✓OpenClawAdapter › onDiag handler › can register handler without error0 ms
  • ✓OpenClawAdapter gateway protocol › sends connect request with correct format on connect.challenge6 ms
  • ✓OpenClawAdapter gateway protocol › preserves a device grant: [ 'operator.read' ], fallback=false1 ms
  • ✓OpenClawAdapter gateway protocol › preserves a device grant: [], fallback=false1 ms
  • ✓OpenClawAdapter gateway protocol › preserves a device grant: [ 'operator.read' ], fallback=true1 ms
  • ✓OpenClawAdapter gateway protocol › preserves a device grant: [], fallback=true1 ms
  • ✓OpenClawAdapter gateway protocol › becomes alive after hello-ok response7 ms
  • ✓OpenClawAdapter gateway protocol › emits spinner_start on chat delta event2 ms
  • ✓OpenClawAdapter gateway protocol › emits idle on chat final event1 ms
  • ✓OpenClawAdapter gateway protocol › emits idle on chat aborted event1 ms
  • ✓OpenClawAdapter gateway protocol › emits idle on chat error event1 ms
  • ✓OpenClawAdapter gateway protocol › emits permission_prompt on exec.approval.requested2 ms
  • ✓OpenClawAdapter gateway protocol › sends exec.approval.resolve on respond after approval request3 ms
  • ✓OpenClawAdapter gateway protocol › sends exec.approval.resolve with deny on respond "n"6 ms
  • ✓OpenClawAdapter gateway protocol › sends chat.send on send_prompt with active session1 ms
  • ✓OpenClawAdapter gateway protocol › sends chat.abort on interrupt with active session and runId1 ms
  • ✓OpenClawAdapter gateway protocol › emits SessionEnd on shutdown event1 ms
  • ✓OpenClawAdapter gateway protocol › clears pendingApprovalId on exec.approval.resolved1 ms
  • ✓CodexCliAdapter › capabilities › reports Codex CLI capabilities correctly1 ms
  • ✓CodexCliAdapter › handleCommand routing › handles respond → returns true0 ms
  • ✓CodexCliAdapter › handleCommand routing › handles interrupt → returns true0 ms
  • ✓CodexCliAdapter › handleCommand routing › handles escape → returns true0 ms
  • ✓CodexCliAdapter › handleCommand routing › does not handle switch_mode → returns false0 ms
  • ✓CodexCliAdapter › handleCommand routing › defers select_option to bridge → returns false0 ms
  • ✓CodexCliAdapter › handleCommand routing › defers navigate_option to bridge → returns false0 ms
  • ✓CodexCliAdapter › handleCommand routing › defers send_prompt to bridge → returns false0 ms
  • ✓CodexCliAdapter › handleCommand routing › defers voice to bridge → returns false0 ms
  • ✓CodexCliAdapter › handleCommand routing › defers query_usage to bridge → returns false0 ms
  • ✓CodexCliAdapter › lifecycle › isAlive returns false before start0 ms
  • ✓CodexCliAdapter › lifecycle › getTtyPath returns undefined before start0 ms
  • ✓CodexCliAdapter › lifecycle › getProjectName returns null before start0 ms
  • ✓CodexCliAdapter › lifecycle › getHttpServer returns an object0 ms
  • ✓CodexCliAdapter › onRawData callback › can register callback without error0 ms
  • ✓CodexCliAdapter › onDiag handler › can register handler without error1 ms
  • ✓CodexCliAdapter start lifecycle › emits SessionStart and connected on start2 ms
  • ✓CodexCliAdapter start lifecycle › feeds PTY data to output parser and emits activity3 ms
  • ✓CodexCliAdapter start lifecycle › keeps real PTY approval labels and cursor detail through spinner redraws7 ms
  • ✓CodexCliAdapter start lifecycle › exports only terminal UI affordances, not parser lifecycle guesses1 ms
  • ✓MonitorAdapter › capabilities › reports monitor capabilities correctly1 ms
  • ✓MonitorAdapter › handleCommand routing › rejects respond (no PTY)0 ms
  • ✓MonitorAdapter › handleCommand routing › rejects interrupt (no PTY)0 ms
  • ✓MonitorAdapter › handleCommand routing › rejects escape (no PTY)0 ms
  • ✓MonitorAdapter › handleCommand routing › rejects switch_mode (no PTY)0 ms
  • ✓MonitorAdapter › handleCommand routing › rejects select_option (no PTY)0 ms
  • ✓MonitorAdapter › handleCommand routing › rejects send_prompt (no PTY)0 ms
  • ✓MonitorAdapter › handleCommand routing › defers voice to bridge0 ms
  • ✓MonitorAdapter › handleCommand routing › defers query_usage to bridge0 ms
  • ✓MonitorAdapter › lifecycle › isAlive always returns true0 ms
  • ✓MonitorAdapter › lifecycle › getTtyPath returns undefined (no PTY)0 ms
  • ✓MonitorAdapter › lifecycle › getProjectName returns null0 ms
  • ✓MonitorAdapter › lifecycle › getHttpServer returns an object0 ms
  • ✓MonitorAdapter › lifecycle › writeInput is a no-op (no PTY)0 ms
  • ✓MonitorAdapter › lifecycle › attachTerminal is a no-op0 ms
  • ✓MonitorAdapter › lifecycle › onRawData is a no-op0 ms
  • ✓MonitorAdapter › start and event emission › emits connected event on start0 ms
  • ✓MonitorAdapter › start and event emission › exposes hook server for external wiring0 ms
  • ✓ClaudeCodeAdapter start lifecycle › emits SessionStart and connected on start2 ms
  • ✓ClaudeCodeAdapter start lifecycle › uses claude as default command1 ms
  • ✓ClaudeCodeAdapter start lifecycle › feeds PTY data to output parser and emits activity3 ms
  • ✓ClaudeCodeAdapter start lifecycle › preserves PTY choices, mode and telemetry without inferred lifecycle events8 ms
  • ✓ClaudeCodeAdapter start lifecycle › exports terminal UI detail without exporting lifecycle or tool guesses2 ms
  • ✓ClaudeCodeAdapter start lifecycle › emits SessionEnd and disconnected on PTY exit2 ms
  • ✓ClaudeCodeAdapter start lifecycle › registers rawData callback without error1 ms
bridge/src/__tests__/codex-output-parser.test.ts22/22
  • ✓CodexOutputParser › terminal UI observation boundary › does not infer lifecycle or tools, or schedule their timers8 ms
  • ✓CodexOutputParser › terminal UI observation boundary › keeps the latest approval choices through idle and spinner redraws4 ms
  • ✓CodexOutputParser › permission prompt detection › ignores quoted prompts and approval prose in command output: The policy can approve or deny calls automatically. 0 ms
  • ✓CodexOutputParser › permission prompt detection › ignores quoted prompts and approval prose in command output: Tool output: Allow this command? Allow Deny 0 ms
  • ✓CodexOutputParser › permission prompt detection › ignores quoted prompts and approval prose in command output: console.log("Allow once Always allow Deny") 0 ms
  • ✓CodexOutputParser › permission prompt detection › ignores quoted prompts and approval prose in command output: echo "Run this command? (y)es / (n)o" 0 ms
  • ✓CodexOutputParser › permission prompt detection › ignores quoted prompts and approval prose in command output: The old prompt was [Y/n], no choice is pending. 0 ms
  • ✓CodexOutputParser › permission prompt detection › ignores quoted prompts and approval prose in command output: Example: "Would you like to run the following command?" 0 ms
  • ✓CodexOutputParser › permission prompt detection › ignores quoted prompts and approval prose in command output: echo "Press enter to confirm or esc to cancel" 0 ms
  • ✓CodexOutputParser › permission prompt detection › emits permission_prompt on Allow/Deny pattern1 ms
  • ✓CodexOutputParser › permission prompt detection › emits permission_prompt on y/n pattern1 ms
  • ✓CodexOutputParser › permission prompt detection › extracts Allow once / Always allow options1 ms
  • ✓CodexOutputParser › permission prompt detection › detects the current Codex command approval prompt as awaiting permission1 ms
  • ✓CodexOutputParser › model info detection › detects gpt model name2 ms
  • ✓CodexOutputParser › model info detection › detects o-series model1 ms
  • ✓CodexOutputParser › model info detection › does not re-emit same model0 ms
  • ✓CodexOutputParser › project name detection › detects working directory1 ms
  • ✓CodexOutputParser › project name detection › detects project from path1 ms
  • ✓CodexOutputParser › project name detection › only detects project name once0 ms
  • ✓CodexOutputParser › buffer management › truncates buffer at 8192 chars1 ms
  • ✓CodexOutputParser › buffer management › handles incomplete ANSI sequences1 ms
  • ✓CodexOutputParser › getProjectName › returns null when no project detected2 ms
bridge/src/__tests__/compact-session-labels.test.ts10/10
  • ✓compact device labels › activity reordering4 ms
  • ✓compact device labels › single0 ms
  • ✓compact device labels › empty fallback0 ms
  • ✓compact device labels › UTF8 bound0 ms
  • ✓compact device labels › duplicate IDs0 ms
  • ✓compact device labels › truncated name collisions0 ms
  • ✓compact device labels › TTGO bounds names before grouping, retaining distinct ordinals0 ms
  • ✓compact device labels › keeps the generated Swift contract synchronized65 ms
  • ✓compact device labels › numbers before the roster cap, preserving raw identity and controls12 ms
  • ✓compact device labels › keeps a metadata-heavy roster bounded and labels only within spare bytes4 ms
bridge/src/__tests__/cursor-sync.test.ts15/15
  • ✓Cursor Synchronization › terminal keyboard cursor tracking › emits cursor_update when full option redraw arrives with ❯ at new position25 ms
  • ✓Cursor Synchronization › terminal keyboard cursor tracking › triggers buffer re-parse on small non-❯ chunk during navigable state3 ms
  • ✓Cursor Synchronization › terminal keyboard cursor tracking › does not emit cursor_update when cursor position unchanged1 ms
  • ✓Cursor Synchronization › genuine idle distinction › treats "❯ \n" as genuine idle (clears navigable state)2 ms
  • ✓Cursor Synchronization › genuine idle distinction › does NOT treat "❯ Beta" as idle (cursor on option label)2 ms
  • ✓Cursor Synchronization › genuine idle distinction › does NOT treat "❯ Allow once" as idle (permission cursor move)3 ms
  • ✓Cursor Synchronization › cursor authority in StateMachine › accepts optimistic update immediately2 ms
  • ✓Cursor Synchronization › cursor authority in StateMachine › suppresses stale PTY value within 200ms of optimistic update1 ms
  • ✓Cursor Synchronization › cursor authority in StateMachine › accepts PTY value after 200ms grace period1 ms
  • ✓Cursor Synchronization › cursor authority in StateMachine › always accepts PTY when no recent optimistic update1 ms
  • ✓Cursor Synchronization › cursor authority in StateMachine › resets authority on state transition out of AWAITING1 ms
  • ✓Cursor Synchronization › cursor authority in StateMachine › default source parameter is pty1 ms
  • ✓Cursor Synchronization › select_option proportional delay › delay scales with step count1 ms
  • ✓Cursor Synchronization › option re-emission with cursorIndex › AWAITING_OPTION update triggers state_changed with options1 ms
  • ✓Cursor Synchronization › option re-emission with cursorIndex › updateCursorIndex emits snapshot with new cursor value1 ms
bridge/src/__tests__/focus-relay-samesocket.test.ts16/16
  • ✓SessionFocusRelay — same-socket reverse control (primary) › focuses via the live push socket and sends session_focus_down5 ms
  • ✓SessionFocusRelay — same-socket reverse control (primary) › routes a command down the push socket as session_command_down1 ms
  • ✓SessionFocusRelay — same-socket reverse control (primary) › ignores commands that are not in the routed set1 ms
  • ✓SessionFocusRelay — same-socket reverse control (primary) › relays only RELAYED_EVENTS from the focused session up0 ms
  • ✓SessionFocusRelay — same-socket reverse control (primary) › sends session_unfocus_down on unfocus and clears focus0 ms
  • ✓SessionFocusRelay — same-socket reverse control (primary) › drops focus when the worker push socket closes2 ms
  • ✓SessionFocusRelay — same-socket reverse control (primary) › a stale socket close does not tear down focus held by a newer socket1 ms
  • ✓SessionFocusRelay — same-socket reverse control (primary) › migrateSender is a no-op for unfocused sessions and same-socket re-registers0 ms
  • ✓SessionFocusRelay — same-socket reverse control (primary) › stamps relayed prompt_options with the session identity2 ms
  • ✓SessionFocusRelay — same-socket reverse control (primary) › does nothing when neither a push socket nor a local session exists0 ms
  • ✓SessionFocusRelay.routeCommandTo — explicit target survives a focus change (#632) › same-socket: delivers down the named session's socket after focus moved to another1 ms
  • ✓SessionFocusRelay.routeCommandTo — explicit target survives a focus change (#632) › same-socket: refuses when the named session's socket is not open1 ms
  • ✓SessionFocusRelay.routeCommandTo — explicit target survives a focus change (#632) › local: refuses rather than writing to the newly focused session's bridge1 ms
  • ✓SessionFocusRelay.routeCommandTo — explicit target survives a focus change (#632) › ignores commands outside the routed set0 ms
  • ✓local focus handshake teardown › keeps a CONNECTING socket error local on immediate clear16 ms
  • ✓local focus handshake teardown › keeps a CONNECTING socket error local on immediate replace7 ms
bridge/src/__tests__/output-parser.test.ts213/213
  • ✓OutputParser › fresh picker prefixes split across PTY chunks › detects a new picker split after cursor15 ms
  • ✓OutputParser › fresh picker prefixes split across PTY chunks › detects a new picker split before period after a newline2 ms
  • ✓OutputParser › fresh picker prefixes split across PTY chunks › detects a new picker split before closing parenthesis2 ms
  • ✓OutputParser › fresh picker prefixes split across PTY chunks › discards an unfinished prefix after newline1 ms
  • ✓OutputParser › fresh picker prefixes split across PTY chunks › discards an unfinished prefix after newline with output1 ms
  • ✓OutputParser › fresh picker prefixes split across PTY chunks › discards an unfinished prefix after user input1 ms
  • ✓OutputParser › fresh picker prefixes split across PTY chunks › discards an unfinished prefix after reset1 ms
  • ✓OutputParser › fresh picker prefixes split across PTY chunks › does not reuse an answered picker to arm later numbered output1 ms
  • ✓OutputParser › basic option parsing › parses clean numbered options with newlines2 ms
  • ✓OutputParser › basic option parsing › detects (recommended) marker1 ms
  • ✓OutputParser › basic option parsing › detects ✔ selected marker1 ms
  • ✓OutputParser › basic option parsing › handles both recommended and selected on different options1 ms
  • ✓OutputParser › basic option parsing › parses full Claude model selector with labels and middle dot1 ms
  • ✓OutputParser › ANSI-stripped options › parses concatenated text with · delimiter1 ms
  • ✓OutputParser › ANSI-stripped options › extracts version numbers from · delimited labels1 ms
  • ✓OutputParser › chunked input debounce › does NOT emit immediately on first chunk1 ms
  • ✓OutputParser › chunked input debounce › batches multiple chunks into single emission2 ms
  • ✓OutputParser › chunked input debounce › resets debounce timer when new chunk with options arrives1 ms
  • ✓OutputParser › chunked input debounce › simulates real /model flow: split across chunks1 ms
  • ✓OutputParser › model ID date rejection › does NOT parse 20251001 from model ID as option number1 ms
  • ✓OutputParser › model ID date rejection › rejects large numbers that look like dates1 ms
  • ✓OutputParser › version number rejection › does NOT parse version "4.6" followed by digit as option1 ms
  • ✓OutputParser › version number rejection › does NOT parse "6)" from "4.6)" as option 64 ms
  • ✓OutputParser › stale buffer overwrite › newer options overwrite older ones with same index1 ms
  • ✓OutputParser › permission prompts › does not reuse answered picker context for a later response list1 ms
  • ✓OutputParser › permission prompts › does not turn a short response list into Attention (working=false)1 ms
  • ✓OutputParser › permission prompts › does not turn a short response list into Attention (working=true)5 ms
  • ✓OutputParser › permission prompts › does not create a permission wait from tool output: The command was automatically approved; Always allow was already saved. 1 ms
  • ✓OutputParser › permission prompts › does not create a permission wait from tool output: Example: "Yes, allow once" or "No, deny". 4 ms
  • ✓OutputParser › permission prompts › does not create a permission wait from tool output: console.log("Continue? (y/n)") 1 ms
  • ✓OutputParser › permission prompts › does not create a permission wait from tool output: echo "(V)iew diff (A)pply (D)eny" 1 ms
  • ✓OutputParser › permission prompts › does not create a permission wait from tool output: echo "Allow? (Y)es/(N)o" 1 ms
  • ✓OutputParser › permission prompts › does not create a permission wait from tool output: The previous prompt used (y/n), but no input is required. 1 ms
  • ✓OutputParser › permission prompts › detects Yes/No/Always pattern2 ms
  • ✓OutputParser › permission prompts › keeps ALL real options when a numbered prompt contains "Yes, allow once" (no collapse to 3)1 ms
  • ✓OutputParser › permission prompts › detects (Y)es/(N)o pattern1 ms
  • ✓OutputParser › permission prompts › emits immediately with no debounce1 ms
  • ✓OutputParser › permission prompts › sets yes_no_always prompt type0 ms
  • ✓OutputParser › permission prompts › sets yes_no prompt type1 ms
  • ✓OutputParser › permission prompts › extracts the multi-line question header above yes/no/always options1 ms
  • ✓OutputParser › permission prompts › extracts the question from a box-framed permission prompt1 ms
  • ✓OutputParser › permission prompts › extracts the inline question from the (Y)es/(N)o line1 ms
  • ✓OutputParser › permission prompts › does not mistake box-drawing or footer chrome for a question1 ms
  • ✓OutputParser › permission prompts › retains permission context through user prompt echo during cooldown1 ms
  • ✓OutputParser › permission prompts › clears picker context after the input prompt returns1 ms
  • ✓OutputParser › diff prompts › detects (V)iew/(A)pply/(D)eny pattern1 ms
  • ✓OutputParser › diff prompts › detects lowercase (a)pply/(d)eny/(v)iew pattern1 ms
  • ✓OutputParser › diff prompts › emits immediately with no debounce1 ms
  • ✓OutputParser › diff prompts › retains diff context through user prompt echo during cooldown1 ms
  • ✓OutputParser › various option counts › handles 1 option1 ms
  • ✓OutputParser › various option counts › handles 2 options1 ms
  • ✓OutputParser › various option counts › handles 5+ options1 ms
  • ✓OutputParser › various option counts › marks direct-input options as freeform instead of a normal choice1 ms
  • ✓OutputParser › various option counts › handles bullet-style options1 ms
  • ✓OutputParser › option updates › emits new options when data changes after first emission1 ms
  • ✓OutputParser › spinner cancels option timer › spinner cancels pending option debounce1 ms
  • ✓OutputParser › idle vs option debounce › idle prompt is ignored when option debounce is pending1 ms
  • ✓OutputParser › interactive prompts during spinner redraws › preserves permission_prompt choices while a spinner is visible1 ms
  • ✓OutputParser › interactive prompts during spinner redraws › preserves diff_prompt choices while a spinner is visible1 ms
  • ✓OutputParser › interactive prompts during spinner redraws › preserves option_prompt choices while a spinner is visible1 ms
  • ✓OutputParser › interactive prompts during spinner redraws › parses a navigable prompt when spinner and prompt share the first chunk1 ms
  • ✓OutputParser › interactive prompts during spinner redraws › keeps a visible prompt active through spinner redraw floods2 ms
  • ✓OutputParser › interactive prompts during spinner redraws › resumes redraw suppression after the user selects the prompt1 ms
  • ✓OutputParser › interactive prompts during spinner redraws › does not arm interactive context from stale numbered prose1 ms
  • ✓OutputParser › interactive prompts during spinner redraws › only a small input prompt ends spinner suppression (large=false)1 ms
  • ✓OutputParser › interactive prompts during spinner redraws › only a small input prompt ends spinner suppression (large=true)1 ms
  • ✓OutputParser › cleanOptionLabel (via parseOptions) › deduplicates exact CamelCase matches1 ms
  • ✓OutputParser › cleanOptionLabel (via parseOptions) › preserves labels without · delimiter1 ms
  • ✓OutputParser › cleanOptionLabel (via parseOptions) › removes (recommended) from label text1 ms
  • ✓OutputParser › cleanOptionLabel (via parseOptions) › removes ✔ from label text1 ms
  • ✓OutputParser › cleanOptionLabel (via parseOptions) › extracts version from identity before middle dot1 ms
  • ✓OutputParser › metadata events › emits project_name from startup banner1 ms
  • ✓OutputParser › metadata events › emits project_name only once (caches)1 ms
  • ✓OutputParser › metadata events › parses absolute path for project_name1 ms
  • ✓OutputParser › metadata events › seedProjectName disables the scrape (resolver wins over basename)1 ms
  • ✓OutputParser › metadata events › seeded name survives reset(); scrape stays disabled1 ms
  • ✓OutputParser › metadata events › seeding 'unknown' keeps the scrape live as fallback1 ms
  • ✓OutputParser › metadata events › emits model_info with model and plan0 ms
  • ✓OutputParser › metadata events › emits model_info without plan1 ms
  • ✓OutputParser › metadata events › emits model_info only once for same model (caches)0 ms
  • ✓OutputParser › metadata events › re-emits model_info when model changes1 ms
  • ✓OutputParser › metadata events › parses ANSI-stripped model_info1 ms
  • ✓OutputParser › metadata events › detects API billing plan1 ms
  • ✓OutputParser › metadata events › emits status_line with duration and tokens1 ms
  • ✓OutputParser › metadata events › parses zero-minute status line1 ms
  • ✓OutputParser › user prompt › emits user_prompt after first idle has been seen1 ms
  • ✓OutputParser › user prompt › does NOT emit user_prompt before first idle0 ms
  • ✓OutputParser › user prompt › filters out mode banner text1 ms
  • ✓OutputParser › user prompt › filters out numbered option lines1 ms
  • ✓OutputParser › user prompt › filters out keyboard hint text1 ms
  • ✓OutputParser › user prompt › filters out "esc to interrupt" text1 ms
  • ✓OutputParser › user prompt › filters out autocomplete suggestions1 ms
  • ✓OutputParser › user prompt › filters out box-drawing decorative lines1 ms
  • ✓OutputParser › usage info › parses usage percentage1 ms
  • ✓OutputParser › usage info › parses usage cost1 ms
  • ✓OutputParser › usage info › parses session percentage with hour limit1 ms
  • ✓OutputParser › usage info › parses reset time with timezone0 ms
  • ✓OutputParser › usage info › parses time remaining1 ms
  • ✓OutputParser › terminal UI observation boundary › never emits retired lifecycle, tool or effort guesses2 ms
  • ✓OutputParser › terminal UI observation boundary › uses ✢ only to suppress suggestions during redraws1 ms
  • ✓OutputParser › terminal UI observation boundary › uses ✳ only to suppress suggestions during redraws1 ms
  • ✓OutputParser › terminal UI observation boundary › uses ✶ only to suppress suggestions during redraws1 ms
  • ✓OutputParser › terminal UI observation boundary › uses ✻ only to suppress suggestions during redraws1 ms
  • ✓OutputParser › terminal UI observation boundary › uses ✽ only to suppress suggestions during redraws1 ms
  • ✓OutputParser › terminal UI observation boundary › does not suppress suggestions for spinner glyphs embedded in long output1 ms
  • ✓OutputParser › mode detection › detects plan mode1 ms
  • ✓OutputParser › mode detection › detects accept edits mode0 ms
  • ✓OutputParser › mode detection › detects default mode after Shift+Tab1 ms
  • ✓OutputParser › mode detection › detects default mode via idle prompt after Shift+Tab1 ms
  • ✓OutputParser › mode detection › emits default mode on Shift+Tab timeout (2s)1 ms
  • ✓OutputParser › mode detection › detects ANSI-stripped plan mode text1 ms
  • ✓OutputParser › mode detection › detects ANSI-stripped accept edits text1 ms
  • ✓OutputParser › mode detection › clears pending mode switch when mode banner is detected4 ms
  • ✓OutputParser › reset › clears pending UI work and re-arms suggestions only after a new input prompt1 ms
  • ✓OutputParser › reset › clears cached project name and model name1 ms
  • ✓OutputParser › reset › allows re-detection of project name after reset1 ms
  • ✓OutputParser › reset › allows re-detection of model info after reset1 ms
  • ✓OutputParser › buffer management › truncates buffer when exceeding 8192 chars2 ms
  • ✓OutputParser › buffer management › keeps the last 4096 chars after truncation1 ms
  • ✓OutputParser › option navigation › cursor movement during option selection retains picker context1 ms
  • ✓OutputParser › option navigation › cursor movement does NOT trigger user_prompt1 ms
  • ✓OutputParser › option navigation › normal cursor movement retains picker context without a user prompt1 ms
  • ✓OutputParser › option navigation › input prompt clears picker context after option navigation1 ms
  • ✓OutputParser › option navigation › effort/hint text during navigation does not trigger events1 ms
  • ✓OutputParser › option navigation › USER_PROMPT requires space/tab after ❯ (not newline)1 ms
  • ✓OutputParser › permission reclassification › reclassifies numbered Yes/No options as permission_prompt1 ms
  • ✓OutputParser › permission reclassification › does NOT reclassify regular options as permission1 ms
  • ✓OutputParser › permission reclassification › does NOT reclassify cursor-selection UI with "Enter to confirm" as permission1 ms
  • ✓OutputParser › permission reclassification › detects cursor-selection UI even when ANSI stripping removes spaces1 ms
  • ✓OutputParser › permission reclassification › includes navigable and cursorIndex in reclassified permission_prompt1 ms
  • ✓OutputParser › permission reclassification › infers shortcuts for reclassified permission options1 ms
  • ✓OutputParser › permission reclassification › infers shortcut "a" for "don't ask again" labels1 ms
  • ✓OutputParser › permission reclassification › infers shortcut "a" for "allow all sessions" labels1 ms
  • ✓OutputParser › ghost text suggestion › detects SGR 90 (bright black) ghost text on prompt line1 ms
  • ✓OutputParser › ghost text suggestion › detects ghost text via Strategy 1 (Try "..." in clean text)1 ms
  • ✓OutputParser › ghost text suggestion › unwraps Try "..." wrapper with smart quotes1 ms
  • ✓OutputParser › ghost text suggestion › unwraps Try "..." wrapper with straight quotes1 ms
  • ✓OutputParser › ghost text suggestion › detects ghost text on first idle (❯ and suggestion in same chunk)1 ms
  • ✓OutputParser › ghost text suggestion › clears suggestion on spinner start1 ms
  • ✓OutputParser › ghost text suggestion › debounces rapid updates1 ms
  • ✓OutputParser › ghost text suggestion › ignores dim (SGR 2) text without ❯ prompt context1 ms
  • ✓OutputParser › ghost text suggestion › detects dim (SGR 2) ghost text on ❯ prompt line1 ms
  • ✓OutputParser › ghost text suggestion › detects ghost text with cursor-forward spacing (Strategy 1)1 ms
  • ✓OutputParser › ghost text suggestion › filters UI chrome fragments1 ms
  • ✓OutputParser › ghost text suggestion › filters box-drawing lines as UI chrome1 ms
  • ✓OutputParser › ghost text suggestion › filters file paths (false positive from screen redraws)1 ms
  • ✓OutputParser › ghost text suggestion › detects 256-color gray ghost text1 ms
  • ✓OutputParser › ghost text suggestion › handles multi-segment ghost text on prompt line1 ms
  • ✓OutputParser › ghost text suggestion › ignores ghost text on non-prompt lines1 ms
  • ✓OutputParser › ghost text suggestion › detects 24-bit RGB gray ghost text1 ms
  • ✓OutputParser › ghost text suggestion › ignores 24-bit RGB non-gray colors (e.g. blue prompt char)1 ms
  • ✓OutputParser › ghost text suggestion › filters out short gray text like prompt char itself1 ms
  • ✓OutputParser › ghost text suggestion › suppresses ghost text detection during spinner (processing)1 ms
  • ✓OutputParser › ghost text suggestion › rejects digit+operator fragments like diff markers "96 +"1 ms
  • ✓OutputParser › ghost text UI chrome filtering › retains a suggestion that mentions a tip label inside real content1 ms
  • ✓OutputParser › ghost text UI chrome filtering › filters out "Tip:" segments on prompt line1 ms
  • ✓OutputParser › ghost text UI chrome filtering › filters out "(ctrl+...)" shortcut hints on prompt line1 ms
  • ✓OutputParser › ghost text UI chrome filtering › filters concatenated UI chrome even in scheduleSuggestion1 ms
  • ✓OutputParser › ghost text UI chrome filtering › keeps ghost text when UI chrome is also present on the line1 ms
  • ✓OutputParser › filters out extended thinking indicators › rejects "(thought for 1s)" as ghost text via isUiChrome1 ms
  • ✓OutputParser › filters out extended thinking indicators › rejects "(thought for 1s)>" via scheduleSuggestion1 ms
  • ✓OutputParser › filters out extended thinking indicators › rejects longer thinking durations like "(thought for 15s)"1 ms
  • ✓OutputParser › filters out extended thinking indicators › rejects "(thought for 1m 30s)" multipart duration1 ms
  • ✓OutputParser › filters out extended thinking indicators › rejects "✻ Cooked for 1m 26s" sparkle indicator1 ms
  • ✓OutputParser › filters out extended thinking indicators › rejects "✻ Cooked for 5s" short duration variant1 ms
  • ✓OutputParser › filters out extended thinking indicators › rejects "Cooked for 10s" without sparkle (cross-chunk)1 ms
  • ✓OutputParser › parenthesized placeholder filtering › rejects "(no content)" via SGR 2 (dim)1 ms
  • ✓OutputParser › parenthesized placeholder filtering › rejects "(no content)" via SGR 90 (bright black)1 ms
  • ✓OutputParser › parenthesized placeholder filtering › rejects "(loading...)"1 ms
  • ✓OutputParser › parenthesized placeholder filtering › rejects "(empty)"1 ms
  • ✓OutputParser › parenthesized placeholder filtering › rejects "(waiting for response)"1 ms
  • ✓OutputParser › parenthesized placeholder filtering › allows "fix the broken (auth) module" — parens in middle1 ms
  • ✓OutputParser › parenthesized placeholder filtering › allows "(optional) refactor the code" — paren prefix with text after1 ms
  • ✓OutputParser › stacked ANSI + cross-chunk ghost text › detects ghost text with stacked ANSI escapes (gray + italic)1 ms
  • ✓OutputParser › stacked ANSI + cross-chunk ghost text › detects ghost text with combined SGR params (2;90 = dim+bright-black)1 ms
  • ✓OutputParser › stacked ANSI + cross-chunk ghost text › detects cross-chunk ghost text (❯ and gray text in separate feeds)1 ms
  • ✓OutputParser › stacked ANSI + cross-chunk ghost text › does NOT cross-chunk detect when chunk contains ⎿ output fence1 ms
  • ✓OutputParser › stacked ANSI + cross-chunk ghost text › does NOT cross-chunk detect when new chunk has \n (different line)1 ms
  • ✓OutputParser › ghost option from stale buffer › excludes stale numbered list items before actual option prompt1 ms
  • ✓OutputParser › ghost option from stale buffer › bypasses chunk size guard when ❯ cursor is present in large chunk1 ms
  • ✓OutputParser › ghost option from stale buffer › a stale markdown "1." line from chat must not overwrite the ❯-marked option1 ms
  • ✓OutputParser › ghost option from stale buffer › still works with scrambled TUI order after backward scan1 ms
  • ✓OutputParser › ghost option from stale buffer › excludes file path fragments from Read() tool in permission prompt1 ms
  • ✓OutputParser › option index ordering › returns options sorted by index even when TUI lines arrive out of order1 ms
  • ✓OutputParser › split ANSI sequence buffering › handles ANSI SGR codes split across chunks3 ms
  • ✓OutputParser › split ANSI sequence buffering › handles bare ESC at end of chunk1 ms
  • ✓OutputParser › split ANSI sequence buffering › does not buffer complete ANSI sequences1 ms
  • ✓OutputParser › large chunk guard for option detection › does NOT detect numbered items in large response chunks as options1 ms
  • ✓OutputParser › large chunk guard for option detection › still detects real options in small TUI chunks1 ms
  • ✓OutputParser › CUP-positioned options › parses options using CUP (\x1b[row;colH) instead of newlines1 ms
  • ✓OutputParser › CUP-positioned options › parses options using CUD (\x1b[B) for vertical movement1 ms
  • ✓OutputParser › trailing TUI chrome stripping › strips "Esc to cancel" from last option label1 ms
  • ✓OutputParser › trailing TUI chrome stripping › strips "Enter to confirm" from last option label1 ms
  • ✓OutputParser › trailing TUI chrome stripping › does NOT strip "Esc" when it appears within legitimate label text1 ms
  • ✓OutputParser › CJK suggestion detection › accepts ghost text containing CJK characters2 ms
  • ✓OutputParser › CJK suggestion detection › accepts ghost text that is purely CJK (no ASCII words)1 ms
  • ✓OutputParser › AskUserQuestion with separators and descriptions › handles AskUserQuestion with separator and descriptions1 ms
  • ✓OutputParser › AskUserQuestion with separators and descriptions › handles options starting from non-zero index (buffer truncation)1 ms
  • ✓OutputParser › AskUserQuestion tall prompt with oversized separator › keeps leading options a/b when a giant box-drawing rule contaminates a later option1 ms
  • ✓OutputParser › hierarchical CC prompt shapes › captures 5-option plan approval with long labels1 ms
  • ✓OutputParser › hierarchical CC prompt shapes › captures OpenClaw scope selection (numbered list)1 ms
  • ✓OutputParser › hierarchical CC prompt shapes › captures OpenClaw token-action step (short numbered list)1 ms
  • ✓OutputParser › permission scroll retains picker context (Bug 1) › scroll chunk with ❯ option text retains the navigable picker1 ms
  • ✓OutputParser › permission scroll retains picker context (Bug 1) › /model combined chunk: confirmation + idle prompt clears options1 ms
  • ✓OutputParser › permission scroll retains picker context (Bug 1) › /model separate chunks: ANSI reposition timer does not block idle1 ms
  • ✓OutputParser › permission scroll retains picker context (Bug 1) › cursor move chunk with option text retains picker context1 ms
  • ✓OutputParser › permission scroll retains picker context (Bug 1) › input prompt exits navigable picker context1 ms
  • ✓OutputParser › TUI cursor-overwrite label correction (Bug 2) › fixes contaminated permission option label using correction line1 ms
  • ✓OutputParser › TUI cursor-overwrite label correction (Bug 2) › leaves labels unchanged when no correction line is present1 ms
  • ✓OutputParser › genuine idle detection (semantic) › "❯ \n" is genuine idle — only prompt character, no label text1 ms
  • ✓OutputParser › genuine idle detection (semantic) › "❯ Beta" is NOT idle — has label text after prompt char1 ms
  • ✓OutputParser › genuine idle detection (semantic) › "❯ A" is NOT idle — single-char label still counts1 ms
  • ✓OutputParser › genuine idle detection (semantic) › ">" also treated as idle prompt character0 ms
bridge/src/__tests__/pty-manager-launch-contract.test.ts5/5
  • ✓PtyManager.spawn launch contract › runs the command through a LOGIN shell on POSIX6 ms
  • ✓PtyManager.spawn launch contract › falls back to /bin/bash when SHELL is unset1 ms
  • ✓PtyManager.spawn launch contract › uses cmd.exe switches on win32, not POSIX ones2 ms
  • ✓PtyManager.spawn launch contract › falls back to cmd.exe when COMSPEC is unset1 ms
  • ✓PtyManager.spawn launch contract › hands the command to the shell verbatim — no escaping, no re-quoting1 ms
bridge/src/__tests__/pty-manager-spawn-helper.test.ts5/5
  • ✓ensureNodePtySpawnHelperExecutable › repairs the 0644 mode shipped by node-pty 1.1.0 on macOS4 ms
  • ✓ensureNodePtySpawnHelperExecutable › leaves an already executable helper unchanged1 ms
  • ✓ensureNodePtySpawnHelperExecutable › repairs a source-built helper when no prebuild is present1 ms
  • ✓ensureNodePtySpawnHelperExecutable › is a no-op outside macOS1 ms
  • ✓ensureNodePtySpawnHelperExecutable › does not chmod a symlink in place of the package helper1 ms
bridge/src/__tests__/pty-manager-stdin.test.ts2/2
  • ✓PtyManager.attachTerminal › preserves multi-byte characters split across stdin chunk boundaries6 ms
  • ✓PtyManager.attachTerminal › forwards single-byte input unchanged1 ms
bridge/src/__tests__/remote-reverse-e2e.test.ts5/5
  • ✓same-socket reverse control (worker ↔ daemon, real sockets) › registers over a single outbound socket with explicit remoteAttach intent4 ms
  • ✓same-socket reverse control (worker ↔ daemon, real sockets) › ignores down-frames addressed to a foreign session304 ms
  • ✓same-socket reverse control (worker ↔ daemon, real sockets) › emits the focus snapshot up when the daemon focuses (session_focus_down)52 ms
  • ✓same-socket reverse control (worker ↔ daemon, real sockets) › applies a command sent down the same socket (session_command_down)52 ms
  • ✓same-socket reverse control (worker ↔ daemon, real sockets) › forwards live events up only while focused352 ms
bridge/src/__tests__/session-push-channel.test.ts11/11
  • ✓session push channel (real handler, fake sockets) › registers an ssh -L (loopback) worker as remote via the explicit remoteAttach flag9 ms
  • ✓session push channel (real handler, fake sockets) › carries the session weight into the remote sessions list1 ms
  • ✓session push channel (real handler, fake sockets) › does NOT register a plain local worker (loopback, no flag) — but still acks1 ms
  • ✓session push channel (real handler, fake sockets) › still registers a flag-less worker from a non-local IP (pre-flag back-compat)1 ms
  • ✓session push channel (real handler, fake sockets) › accepts the exact npm 1.1 managed-worker register/state shape2 ms
  • ✓session push channel (real handler, fake sockets) › worker reconnect: new socket takes over, old close cannot kill the new registration or focus2 ms
  • ✓session push channel (real handler, fake sockets) › session_event_up: only the registered sender may speak for a session1 ms
  • ✓session push channel (real handler, fake sockets) › session_push_state overlap: a pre-reconnect socket can change neither the remote registry nor the effective push-state cache2 ms
  • ✓session push channel (real handler, fake sockets) › session_push_state from a never-registered stranger socket is fully rejected1 ms
  • ✓session push channel (real handler, fake sockets) › session_push_state with no remote registration keeps the plain unguarded local path1 ms
  • ✓session push channel (real handler, fake sockets) › leaves non-push frames unconsumed0 ms

30 files

Pass

State machine & hub protocol

Do agent states transition correctly and reach every client in the documented wire shape?

Passed
576
Failed
0
Skipped
0
Time
4.0 s
30 test files
bridge/src/__tests__/awaiting-overlay.test.ts47/47
  • ✓awaiting-overlay › set then get returns the trimmed question5 ms
  • ✓awaiting-overlay › carries an optional requestId (actionable PreToolUse gate)0 ms
  • ✓awaiting-overlay › preserves a structured AskUserQuestion as a display-only option lifecycle2 ms
  • ✓awaiting-overlay › rejects malformed AskUserQuestion payloads instead of surfacing a dead prompt0 ms
  • ✓awaiting-overlay › does not let a generic permission Notification overwrite AskUserQuestion1 ms
  • ✓awaiting-overlay › returns undefined for an unknown session0 ms
  • ✓awaiting-overlay › survives a long away-wait, then expires past the generous backstop1 ms
  • ✓awaiting-overlay › re-setting refreshes the TTL (a follow-up prompt keeps the overlay alive)0 ms
  • ✓awaiting-overlay › clear removes the entry and reports whether one existed0 ms
  • ✓awaiting-overlay › caps question length at 120 chars0 ms
  • ✓awaiting-overlay › looksLikePermissionMessage › matches genuine permission prompts1 ms
  • ✓awaiting-overlay › looksLikePermissionMessage › rejects the idle ping, non-permission status text, and empty messages0 ms
  • ✓awaiting-overlay › isPermissionNotification › uses notification_type when present — only permission_prompt awaits0 ms
  • ✓awaiting-overlay › isPermissionNotification › falls back to the message regex only when notification_type is absent0 ms
  • ✓awaiting-overlay › shouldGatePreToolUse › gates in default / unknown modes (Claude may prompt)0 ms
  • ✓awaiting-overlay › shouldGatePreToolUse › never gates when Claude will not prompt or execute1 ms
  • ✓awaiting-overlay › shouldGatePreToolUse › acceptEdits auto-approves edits but still gates Bash0 ms
  • ✓awaiting-overlay › applyAwaitingOverlayToObserved › flips a matching observed session to awaiting_permission with the question1 ms
  • ✓awaiting-overlay › applyAwaitingOverlayToObserved › matches the uuid after stripping the observed:claude: / observed:codex: prefix0 ms
  • ✓awaiting-overlay › applyAwaitingOverlayToObserved › leaves sessions untouched when no overlay exists0 ms
  • ✓awaiting-overlay › applyAwaitingOverlayToObserved › propagates the requestId for actionable gates0 ms
  • ✓awaiting-overlay › applyAwaitingOverlayToObserved › renders AskUserQuestion as awaiting_option with real choices and no actionable requestId1 ms
  • ✓awaiting-overlay › transcript-recency supersession (ESC-dismissed prompt) › drops a display-only overlay once the transcript moves past it, and purges the entry1 ms
  • ✓awaiting-overlay › transcript-recency supersession (ESC-dismissed prompt) › keeps the overlay while the transcript stays frozen (genuine wait)0 ms
  • ✓awaiting-overlay › transcript-recency supersession (ESC-dismissed prompt) › holds within the jitter margin (a write at ~setAt is not a resolution)0 ms
  • ✓awaiting-overlay › transcript-recency supersession (ESC-dismissed prompt) › keeps the overlay when the session carries no transcript recency0 ms
  • ✓awaiting-overlay › transcript-recency supersession (ESC-dismissed prompt) › never drops a held device-approval gate on recency (its tool is blocked, resolve via onResolved)0 ms
  • ✓awaiting-overlay › transcript-recency supersession (ESC-dismissed prompt) › never drops AskUserQuestion on transcript mtime movement during a genuine wait0 ms
  • ✓awaiting-overlay › AskUserQuestion tool lifecycle › ignores unrelated or stale tool completions0 ms
  • ✓awaiting-overlay › AskUserQuestion tool lifecycle › clears only the matching PostToolUse/PostToolUseFailure id0 ms
  • ✓awaiting-overlay › multi-group AskUserQuestion progression › presents the first group and keeps the rest for later1 ms
  • ✓awaiting-overlay › multi-group AskUserQuestion progression › advances one group per answer and projects its question/options1 ms
  • ✓awaiting-overlay › multi-group AskUserQuestion progression › reports completion on the last group and keeps every Q→A pair1 ms
  • ✓awaiting-overlay › multi-group AskUserQuestion progression › surfaces group position to devices only when there is more than one1 ms
  • ✓awaiting-overlay › multi-group AskUserQuestion progression › skips malformed groups instead of presenting a dead prompt1 ms
  • ✓awaiting-overlay › multi-group AskUserQuestion progression › ignores advancement when no option prompt is pending0 ms
  • ✓awaiting-overlay › multi-group AskUserQuestion progression › clears every group on the matching PostToolUse0 ms
  • ✓awaiting-overlay › display-only notification flow (daemon restore contract) › permission_prompt notification → awaiting with NO requestId; next hook clears1 ms
  • ✓awaiting-overlay › display-only notification flow (daemon restore contract) › idle ping / auto-approved tool never sets the overlay (the 2026-06-27 false-attention bug)0 ms
  • ✓sticky overlays (Codex PermissionRequest) › a sticky display-only overlay survives transcript activity newer than itself0 ms
  • ✓Claude permission waits require a Notification › PermissionRequest alone never creates Attention (headless denial or automatic hook answer)0 ms
  • ✓Claude permission waits require a Notification › a real permission_prompt creates a display-only prompt, then tool progress clears it0 ms
  • ✓Claude permission waits require a Notification › neither signal replaces an AskUserQuestion interaction or a live held gate0 ms
  • ✓Claude permission waits require a Notification › does not turn arbitrary status text into a legacy permission prompt: No longer needs your permission0 ms
  • ✓Claude permission waits require a Notification › does not turn arbitrary status text into a legacy permission prompt: Not requesting permission0 ms
  • ✓Claude permission waits require a Notification › does not turn arbitrary status text into a legacy permission prompt: Output: Claude needs your permission to use Bash0 ms
  • ✓Claude permission waits require a Notification › does not turn arbitrary status text into a legacy permission prompt: permission to use was granted0 ms
bridge/src/__tests__/bridge-core-sessions.test.ts9/9
  • ✓BridgeCore sessions_list › broadcasts and clears the separate Dot snapshot without creating a session14 ms
  • ✓BridgeCore sessions_list › broadcasts both independent Desktop chats with their own state and controls21 ms
  • ✓BridgeCore sessions_list › broadcastSessionsList enriches sessions before broadcast3 ms
  • ✓BridgeCore sessions_list › delivers the final hook state within a broadcast window and shares it with feed snapshots8 ms
  • ✓BridgeCore sessions_list › preserves same-project independent Codex App chats in the canonical snapshot2 ms
  • ✓BridgeCore sessions_list › caches a connecting client's roster, so ids it shows resolve before the next broadcast67 ms
  • ✓BridgeCore sessions_list › keeps the newest-started roster when an older snapshot finishes last54 ms
  • ✓BridgeCore sessions_list › still caches an older roster when the newest build fails4 ms
  • ✓BridgeCore sessions_list › sendInitialState sends enriched sessions_list to the connecting client53 ms
bridge/src/__tests__/bridge-core.test.ts33/33
  • ✓BridgeCore Orchestration › publishes display wake without running system recovery or resetting transports18 ms
  • ✓BridgeCore Orchestration › shares a pending local-status probe and rejects a superseded completion3 ms
  • ✓BridgeCore Orchestration › retires old disk quota after a failed first poll and never restamps cache hits3 ms
  • ✓BridgeCore Orchestration › expires z.ai on a focused relay without rebuilding usage or extending capture time3 ms
  • ✓BridgeCore Orchestration › buildStateEvent › builds state_update with IDLE state9 ms
  • ✓BridgeCore Orchestration › buildStateEvent › includes cached ollamaStatus and gatewayAvailable3 ms
  • ✓BridgeCore Orchestration › buildStateEvent › computes promptType for permission options2 ms
  • ✓BridgeCore Orchestration › buildStateEvent › computes promptType yes_no_always for 3+ permission options1 ms
  • ✓BridgeCore Orchestration › usage management › updateApiUsage caches and broadcasts22 ms
  • ✓BridgeCore Orchestration › usage management › buildUsage includes API usage data2 ms
  • ✓BridgeCore Orchestration › usage management › buildUsage works without API data1 ms
  • ✓BridgeCore Orchestration › usage management › inferredBillingType propagates to StateMachine1 ms
  • ✓BridgeCore Orchestration › usage management › stale fetch results › a not-fresh result keeps the numbers but marks them stale1 ms
  • ✓BridgeCore Orchestration › usage management › stale fetch results › a not-fresh result does NOT advance lastApiFetchTime1 ms
  • ✓BridgeCore Orchestration › usage management › stale fetch results › a fresh result clears staleness again1 ms
  • ✓BridgeCore Orchestration › usage management › stale fetch results › a null result (no numbers at all) marks an existing cache stale1 ms
  • ✓BridgeCore Orchestration › usage management › stale fetch results › retires quota and the subscription in both frame types before a timer runs, then recovers3 ms
  • ✓BridgeCore Orchestration › usage management › stale fetch results › keeps API cost usage live without a subscription cache1 ms
  • ✓BridgeCore Orchestration › usage management › stale fetch results › reports freshness back to the caller1 ms
  • ✓BridgeCore Orchestration › sendInitialState › sends state_update, usage_update, connection, display_state on connect11 ms
  • ✓BridgeCore Orchestration › sendInitialState › includes timeline_history when entries exist6 ms
  • ✓BridgeCore Orchestration › sendInitialState › gives a dashboard the latest readable rows, as the Swift daemon does135 ms
  • ✓BridgeCore Orchestration › sendInitialState › keeps an untagged board on the board frame limit from its first connect22 ms
  • ✓BridgeCore Orchestration › sendInitialState › filters unreadable rows before the byte cap, not after5 ms
  • ✓BridgeCore Orchestration › state change broadcast › state_changed emits to WS clients when wired by caller3 ms
  • ✓BridgeCore Orchestration › wireTimeline › timeline entries broadcast as timeline_event54 ms
  • ✓BridgeCore Orchestration › hasClients guard › wsServer.getClientCount reflects connected clients254 ms
  • ✓BridgeCore Orchestration › hasClients guard › external client count provider extends hasClients2 ms
  • ✓BridgeCore Orchestration › voice assistant state › updateVoiceAssistantState caches and triggers state broadcast54 ms
  • ✓BridgeCore Orchestration › voice assistant state › disabled voice assistant state is not included in event1 ms
  • ✓BridgeCore Orchestration › session registry › registerSession writes to sessions.json2 ms
  • ✓BridgeCore Orchestration › session registry › deregisterSession removes from sessions.json2 ms
  • ✓BridgeCore Orchestration › broadcast coordination › broadcast sends to WS and SSE callback53 ms
bridge/src/__tests__/default-settings-drift.test.ts5/5
  • ✓config/default-settings.json › parses as an object3 ms
  • ✓config/default-settings.json › carries only keys a loader actually reads1 ms
  • ✓config/default-settings.json › states the MLX defaults that shared/src/llm-settings.ts applies0 ms
  • ✓config/default-settings.json › states the APME defaults that loadApmeConfig() applies1 ms
  • ✓config/default-settings.json › does not resurrect the removed whisper / autoTune keys1 ms
bridge/src/__tests__/docs-wire-contract.test.ts11/11
  • ✓documented LAN boundary matches the gate › daemon.md quotes exactly the fields buildPublicHealth emits3 ms
  • ✓documented LAN boundary matches the gate › the documented payload carries no credential, inventory or state2 ms
  • ✓documented LAN boundary matches the gate › GET /health is the only route an unauthorized peer reaches0 ms
  • ✓auth and wire specs stay visible in the published rail › docs/wire-compatibility.md is not in the collapsed group1 ms
  • ✓auth and wire specs stay visible in the published rail › docs/protocol.md is not in the collapsed group0 ms
  • ✓auth and wire specs stay visible in the published rail › docs/gateway-protocol.md is not in the collapsed group0 ms
  • ✓auth and wire specs stay visible in the published rail › docs/daemon.md is not in the collapsed group1 ms
  • ✓auth and wire specs stay visible in the published rail › groups them with the other surface specs1 ms
  • ✓wire compatibility contract stays bound to its subjects › is cataloged in the design system0 ms
  • ✓wire compatibility contract stays bound to its subjects › names helpers that still exist, so the id rules stay actionable1 ms
  • ✓wire compatibility contract stays bound to its subjects › quotes the retain-on-absent merge shape the rules depend on0 ms
bridge/src/__tests__/server-integration.test.ts19/19
  • ✓Server Integration › SessionStart hook → IDLE state broadcast73 ms
  • ✓Server Integration › PreToolUse responds 200 with an EMPTY body (managed sessions must not gate)15 ms
  • ✓Server Integration › non-PreToolUse hooks still ack with { received: true }12 ms
  • ✓Server Integration › full session lifecycle: SessionStart → UserPromptSubmit → Stop13 ms
  • ✓Server Integration › PreToolUse → PostToolUse cycle broadcasts tool info16 ms
  • ✓Server Integration › SessionEnd → DISCONNECTED9 ms
  • ✓Server Integration › GET /health returns valid JSON6 ms
  • ✓Server Integration › GET /usage returns data when getter is set6 ms
  • ✓Server Integration › GET /usage returns null when no getter5 ms
  • ✓Server Integration › GET /devices returns empty when no getter9 ms
  • ✓Server Integration › POST to unknown route returns 4045 ms
  • ✓Server Integration › hook endpoint responds immediately5 ms
  • ✓Server Integration › SSE client receives state_update events65 ms
  • ✓Server Integration › broadcasts to multiple WS clients8 ms
  • ✓Server Integration › WS command from client triggers callback105 ms
  • ✓Server Integration › rapid hook events do not corrupt state237 ms
  • ✓Server Integration › token counts accumulate through hook events10 ms
  • ✓Server Integration › client_register {clientType:"tui"} appears in getTuiClients until the WS closes408 ms
  • ✓Server Integration › malformed tui client_register falls back to a "terminal" identity104 ms
bridge/src/__tests__/session-aggregator.test.ts8/8
  • ✓session-aggregator › uses ownState for the current session without fetching /health5 ms
  • ✓session-aggregator › fetches sibling /health and merges state and modelName3 ms
  • ✓session-aggregator › marks the session dead when sibling /health fails with no cache1 ms
  • ✓session-aggregator › returns cached state when sibling /health fails after a previous success1 ms
  • ✓session-aggregator › clearSiblingStateCache removes cached entry0 ms
  • ✓session-aggregator › sweeps cached state for sessions that drop out of the active set1 ms
  • ✓session-aggregator › buildEnrichedSessionsList includes own session and excludes daemon8 ms
  • ✓session-aggregator › buildEnrichedSessionsList returns own session in single-session mode without /health calls0 ms
bridge/src/__tests__/session-deck-awaiting.test.ts4/4
  • ✓buildSessionDeck detail-view awaiting › renders REAL options (navigable → select_option), not hardcoded Yes/No/Always11 ms
  • ✓buildSessionDeck detail-view awaiting › non-navigable inline prompt → respond with the option shortcut1 ms
  • ✓buildSessionDeck detail-view awaiting › observed native held request uses exact permission decisions rather than invented option indices2 ms
  • ✓buildSessionDeck detail-view awaiting › awaiting but not remotely answerable (no options, no requestId): no fake action commands1 ms
bridge/src/__tests__/session-order-store.test.ts23/23
  • ✓SessionOrderStore identity › keys pins on the bare id — both observed id forms address the same pin8 ms
  • ✓SessionOrderStore identity › weight 0 clears instead of pinning (0 is the default band)1 ms
  • ✓SessionOrderStore identity › clamps out-of-range weights to the documented cross-platform range1 ms
  • ✓SessionOrderStore persistence and lifecycle › persists atomically and a fresh store re-loads it6 ms
  • ✓SessionOrderStore persistence and lifecycle › a corrupt or missing file loads as an empty store, never a throw3 ms
  • ✓SessionOrderStore persistence and lifecycle › drops pins whose session has been unseen past the TTL, keeps seen ones6 ms
  • ✓SessionOrderStore persistence and lifecycle › enforces the pin cap, evicting the least-recently-seen first186 ms
  • ✓SessionOrderStore persistence and lifecycle › noteSeen is throttled per pin — a roster every few seconds does not churn the file1 ms
  • ✓SessionOrderStore.applyTo precedence › pins an observed row that has no weight of its own1 ms
  • ✓SessionOrderStore.applyTo precedence › never overrides a weight the row already carries (managed/remote contract)1 ms
  • ✓SessionOrderStore.applyTo precedence › leaves managed and remote rows untouched even when their id is pinned1 ms
  • ✓SessionOrderStore.applyTo precedence › returns the identical object for unpinned rows0 ms
  • ✓resolveSessionOrderTarget › an exact roster id resolves to itself0 ms
  • ✓resolveSessionOrderTarget › a unique prefix (e.g. a device-truncated 31-char echo) resolves0 ms
  • ✓resolveSessionOrderTarget › an ambiguous prefix is refused with the candidates0 ms
  • ✓resolveSessionOrderTarget › an id that is not live passes through in bare form (pin waits for the id)1 ms
  • ✓resolveSessionOrderTarget › cross-form: an observed-form reference resolves against a BARE-id roster (Swift shape)0 ms
  • ✓resolveSessionOrderTarget › cross-form: a bare reference resolves against an observed-form roster, ambiguity still named0 ms
  • ✓parseSessionOrderWeight › accepts in-range integers (numbers and numeric strings from curl users)0 ms
  • ✓parseSessionOrderWeight › rejects anything the wire must never see1 ms
  • ✓pinned observed sessions through the shared deck pipeline › a pin reorders observed rows via the exact fold+sort every surface runs1 ms
  • ✓pinned observed sessions through the shared deck pipeline › distinct pins keep same-project Codex tabs from folding together2 ms
  • ✓pinned observed sessions through the shared deck pipeline › unpinned independent same-project Codex rows remain separate1 ms
bridge/src/__tests__/state-machine.test.ts81/81
  • ✓StateMachine › basic transitions › starts in DISCONNECTED4 ms
  • ✓StateMachine › basic transitions › SessionStart → IDLE1 ms
  • ✓StateMachine › basic transitions › UserPromptSubmit → PROCESSING1 ms
  • ✓StateMachine › basic transitions › Stop → IDLE from PROCESSING1 ms
  • ✓StateMachine › basic transitions › SessionEnd → DISCONNECTED from any state1 ms
  • ✓StateMachine › permission flow › permission_prompt → AWAITING_PERMISSION1 ms
  • ✓StateMachine › permission flow › user respond → PROCESSING from AWAITING_PERMISSION1 ms
  • ✓StateMachine › terminal UI authority boundary › accepts a real interaction affordance1 ms
  • ✓StateMachine › terminal UI authority boundary › ignores terminal lifecycle guesses1 ms
  • ✓StateMachine › option flow › option_prompt → AWAITING_OPTION0 ms
  • ✓StateMachine › option flow › select_option → PROCESSING from AWAITING_OPTION1 ms
  • ✓StateMachine › option flow › option_prompt carries the question into the snapshot0 ms
  • ✓StateMachine › diff flow › diff_prompt → AWAITING_DIFF1 ms
  • ✓StateMachine › diff flow › respond → PROCESSING from AWAITING_DIFF0 ms
  • ✓StateMachine › interrupt › interrupt → IDLE from PROCESSING0 ms
  • ✓StateMachine › interrupt › interrupt → IDLE from AWAITING_PERMISSION0 ms
  • ✓StateMachine › strict transitions › allows IDLE → AWAITING_PERMISSION (prompt without spinner)0 ms
  • ✓StateMachine › strict transitions › blocks invalid transition: DISCONNECTED → IDLE on a straggler Stop0 ms
  • ✓StateMachine › strict transitions › recovers DISCONNECTED → PROCESSING on a prompt from a session already underway (#545)0 ms
  • ✓StateMachine › strict transitions › allows wildcard session_end from any state0 ms
  • ✓StateMachine › stuck timeout › PROCESSING for >5min → auto-recovery to IDLE1 ms
  • ✓StateMachine › stuck timeout › AWAITING_PERMISSION persists indefinitely — a genuine wait is never auto-recovered1 ms
  • ✓StateMachine › stuck timeout › AWAITING_OPTION persists indefinitely (no wall-clock recovery)0 ms
  • ✓StateMachine › stuck timeout › AWAITING_DIFF persists indefinitely (no wall-clock recovery)0 ms
  • ✓StateMachine › stuck timeout › AWAITING leaves only on a real signal — parser spinner (OpenCode/OpenClaw adapters) → PROCESSING1 ms
  • ✓StateMachine › stuck timeout › timer resets on state change before timeout1 ms
  • ✓StateMachine › stuck timeout › no timeout in IDLE state0 ms
  • ✓StateMachine › hook exits from awaiting states › Stop from AWAITING_PERMISSION → IDLE with prompt fields cleared1 ms
  • ✓StateMachine › hook exits from awaiting states › Stop from AWAITING_OPTION → IDLE (keyboard-answered AskUserQuestion ends the turn)1 ms
  • ✓StateMachine › hook exits from awaiting states › Stop from AWAITING_DIFF → IDLE1 ms
  • ✓StateMachine › hook exits from awaiting states › UserPromptSubmit from AWAITING_PERMISSION → PROCESSING (new turn dismisses the prompt)1 ms
  • ✓StateMachine › hook exits from awaiting states › PostToolUse after the grace period dismisses AWAITING_PERMISSION → PROCESSING1 ms
  • ✓StateMachine › hook exits from awaiting states › PreToolUse after the grace period dismisses AWAITING_OPTION → PROCESSING1 ms
  • ✓StateMachine › hook exits from awaiting states › tool activity within the grace period keeps a fresh prompt awaiting1 ms
  • ✓StateMachine › hook exits from awaiting states › PreToolUse from IDLE recovers a dropped user_prompt_submit → PROCESSING0 ms
  • ✓StateMachine › hook exits from awaiting states › codex_turn_complete from AWAITING_OPTION → IDLE (notify closes a keyboard-answered prompt)0 ms
  • ✓StateMachine › hook exits from awaiting states › codex_tool_end after the grace period dismisses AWAITING_PERMISSION → PROCESSING4 ms
  • ✓StateMachine › hook exits from awaiting states › a parallel sibling finishing does not dismiss the prompt while the gated tool is in flight1 ms
  • ✓StateMachine › hook exits from awaiting states › a straggler PostToolUse landing after Stop does not reopen a finished session1 ms
  • ✓StateMachine › hook exits from awaiting states › a re-detected prompt refreshes the dismissal grace0 ms
  • ✓StateMachine › hook exits from awaiting states › the daemon hub machine never dismisses a held prompt on tool activity1 ms
  • ✓StateMachine › hook exits from awaiting states › the daemon hub machine reopens from IDLE and DISCONNECTED on a tool start1 ms
  • ✓StateMachine › hook exits from awaiting states › a straggler tool END does not reopen a finished hub session1 ms
  • ✓StateMachine › hook exits from awaiting states › tool activity re-arms the PROCESSING backstop (toolActivityRecovery=true)1 ms
  • ✓StateMachine › hook exits from awaiting states › tool activity re-arms the PROCESSING backstop (toolActivityRecovery=false)1 ms
  • ✓StateMachine › parser events › spinner_start → PROCESSING from IDLE0 ms
  • ✓StateMachine › parser events › spinner_stop → IDLE from PROCESSING0 ms
  • ✓StateMachine › parser events › idle → IDLE from PROCESSING0 ms
  • ✓StateMachine › parser events › mode_change updates permission mode0 ms
  • ✓StateMachine › snapshot › emits state_changed on transitions0 ms
  • ✓StateMachine › snapshot › includes tool info in snapshot1 ms
  • ✓StateMachine › snapshot › clears tool info on PostToolUse0 ms
  • ✓StateMachine › snapshot › includes project name and model0 ms
  • ✓StateMachine › billingType detection › defaults to unknown0 ms
  • ✓StateMachine › billingType detection › detects subscription from "Claude Max" plan0 ms
  • ✓StateMachine › billingType detection › detects subscription from "Max" (case-insensitive)0 ms
  • ✓StateMachine › billingType detection › detects api from "api.anthropic.com"0 ms
  • ✓StateMachine › billingType detection › detects api (case-insensitive)0 ms
  • ✓StateMachine › billingType detection › stays unknown for unrecognized plan0 ms
  • ✓StateMachine › billingType detection › stays unknown when plan is absent0 ms
  • ✓StateMachine › billingType detection › persists billingType across subsequent model_info without plan0 ms
  • ✓StateMachine › billingType detection › emits state_changed when billingType is set0 ms
  • ✓StateMachine › spinner_start recovery from awaiting states › spinner_start transitions from AWAITING_OPTION to PROCESSING0 ms
  • ✓StateMachine › spinner_start recovery from awaiting states › spinner_start transitions from AWAITING_PERMISSION to PROCESSING0 ms
  • ✓StateMachine › spinner_start recovery from awaiting states › spinner_start transitions from AWAITING_DIFF to PROCESSING0 ms
  • ✓StateMachine › spinner_start recovery from awaiting states › clears options and navigable state on spinner_start from AWAITING_OPTION1 ms
  • ✓StateMachine › spinner_start recovery from awaiting states › stores navigable and cursorIndex from permission_prompt0 ms
  • ✓StateMachine › spinner_start recovery from awaiting states › cursor index tracking via updateCursorIndex1 ms
  • ✓StateMachine › cursor authority (optimistic vs pty) › optimistic source updates cursor immediately0 ms
  • ✓StateMachine › cursor authority (optimistic vs pty) › suppresses stale PTY within 200ms of optimistic0 ms
  • ✓StateMachine › cursor authority (optimistic vs pty) › accepts PTY after 200ms grace period0 ms
  • ✓StateMachine › cursor authority (optimistic vs pty) › emits state_changed on optimistic update0 ms
  • ✓StateMachine › cursor authority (optimistic vs pty) › does NOT emit state_changed when stale PTY is suppressed0 ms
  • ✓StateMachine › codex_* hook events › codex_session_start → IDLE0 ms
  • ✓StateMachine › codex_* hook events › codex_user_prompt_submit → PROCESSING0 ms
  • ✓StateMachine › codex_* hook events › codex_tool_start sets currentTool from tool_name0 ms
  • ✓StateMachine › codex_* hook events › codex_tool_end clears currentTool0 ms
  • ✓StateMachine › codex_* hook events › codex_stop → IDLE from PROCESSING0 ms
  • ✓StateMachine › codex_* hook events › codex_turn_complete closes PROCESSING when codex_stop is absent0 ms
  • ✓StateMachine › codex_* hook events › codex_turn_complete remains idempotent after codex_stop1 ms
  • ✓StateMachine › codex_* hook events › full codex lifecycle preserves state transitions1 ms
bridge/src/__tests__/surface-protocol-runtime.test.ts15/15
  • ✓Surface Protocol HTTP identity › keeps a headerless request in legacy baseline mode3 ms
  • ✓Surface Protocol HTTP identity › accepts Pocket Daily and intersects away unknown capabilities3 ms
  • ✓Surface Protocol HTTP identity › fails closed on partial identity, wrong major/profile, and missing route capability1 ms
  • ✓Surface Protocol HTTP identity › rejects cross-product, cross-board, and cross-channel identities1 ms
  • ✓Surface Protocol HTTP identity › requires repeated query tuple members to match instead of overriding headers2 ms
  • ✓Surface Protocol HTTP identity › activates the same projection from headers without removing the legacy query1 ms
  • ✓Surface Protocol HTTP identity › keeps legacy partial OTA resumable and grants 206 only by capability0 ms
  • ✓Surface Protocol WebSocket negotiation › keeps Claude tool history opt-in for dashboard clients1 ms
  • ✓Surface Protocol WebSocket negotiation › selects portable-reader/v1 and returns only the capability intersection0 ms
  • ✓Surface Protocol WebSocket negotiation › keeps the checked welcome fixture derived from runtime negotiation0 ms
  • ✓Surface Protocol WebSocket negotiation › does not negotiate inbox.ws before the runtime contract exists0 ms
  • ✓Surface Protocol WebSocket negotiation › negotiates licensed learning-pack delivery for portable readers0 ms
  • ✓Surface Protocol WebSocket negotiation › negotiates automatic font-pack delivery for portable readers0 ms
  • ✓Surface Protocol WebSocket negotiation › bounds portable WebSocket traffic to welcome and liveness events0 ms
  • ✓Surface Protocol WebSocket negotiation › rejects unknown majors, profiles, and unregistered portable products1 ms
bridge/src/__tests__/tier3-integration.test.ts16/16
  • ✓mDNS crash recovery › invalidateMdnsInstance does not throw when no instance exists4 ms
  • ✓mDNS crash recovery › isNonFatalMdnsError matches recoverable mDNS multicast failures1 ms
  • ✓mDNS crash recovery › isNonFatalMdnsError does NOT match unrelated fatal errors1 ms
  • ✓Display sleep/wake broadcast › DisplayMonitor initial state is ON1 ms
  • ✓Display sleep/wake broadcast › parses macOS lock/session presence from ioreg output2 ms
  • ✓Display sleep/wake broadcast › treats an absent ScreenIsLocked key as UNLOCKED when IOConsoleUsers is visible1 ms
  • ✓Display sleep/wake broadcast › display_state event has correct shape0 ms
  • ✓Display sleep/wake broadcast › display_state broadcasts to WS clients92 ms
  • ✓Display sleep/wake broadcast › display_state broadcasts to multiple clients58 ms
  • ✓Display sleep/wake broadcast › SSE also receives display_state46 ms
  • ✓Voice transcription endpoint › returns 503 when no voice manager is set17 ms
  • ✓Voice transcription endpoint › returns 400 for empty audio data6 ms
  • ✓Voice transcription endpoint › returns transcription from voice manager6 ms
  • ✓Voice transcription endpoint › returns 500 when voice manager throws6 ms
  • ✓WsServer broadcast hooks (serial relay) › onBroadcast hook receives all broadcast events2 ms
  • ✓WsServer broadcast hooks (serial relay) › broadcast hook errors do not crash server2 ms
bridge/src/__tests__/ws-server-broadcast-actionability.test.ts10/10
  • ✓broadcastActionability (pure classifier) › flags a state_update in an AWAITING_* state as actionable2 ms
  • ✓broadcastActionability (pure classifier) › flags a state_update in IDLE/PROCESSING/DISCONNECTED as cosmetic0 ms
  • ✓broadcastActionability (pure classifier) › flags a sessions_list carrying any awaiting session as actionable0 ms
  • ✓broadcastActionability (pure classifier) › flags a sessions_list with no awaiting session as cosmetic0 ms
  • ✓broadcastActionability (pure classifier) › flags an empty sessions_list as cosmetic, not actionable0 ms
  • ✓broadcastActionability (pure classifier) › answers n/a for event types with no session-state field0 ms
  • ✓WsServer.broadcast() emits the actionability line › fires one debug() call per broadcast naming type, client count, and actionability1 ms
  • ✓WsServer.broadcast() emits the actionability line › reports cosmetic for an idle state_update on the same push site0 ms
  • ✓WsServer.broadcast() emits the actionability line › counts attempts without clients or logging and returns isolated snapshots1 ms
  • ✓WsServer.broadcast() emits the actionability line › starts a new measurement identity and zero counts for a new server3 ms
bridge/src/__tests__/ws-server-startup.test.ts5/5
  • ✓WebSocket clients admitted before daemon initialization finishes › delivers the initial connection and roster once to early and later clients50 ms
  • ✓WebSocket clients admitted before daemon initialization finishes › does not initialize an early client that already disconnected5 ms
  • ✓WebSocket clients admitted before daemon initialization finishes › does not deliver a delayed snapshot to an unauthorized peer3 ms
  • ✓WebSocket clients admitted before daemon initialization finishes › waits for an adopted ESP32 to reconnect with its credential before initializing it506 ms
  • ✓WebSocket clients admitted before daemon initialization finishes › keeps ordinary broadcasts out of the unauthenticated adoption window506 ms
shared/src/__tests__/action-fold.test.ts25/25
  • ✓agentCoordinationSummary › counts dispatch and messaging tools separately4 ms
  • ✓agentCoordinationSummary › todo bookkeeping tools are NOT dispatch0 ms
  • ✓agentCoordinationSummary › null for a plain single-agent task0 ms
  • ✓agentCoordinationSummary › OpenCode's lowercase task dispatch counts0 ms
  • ✓foldToolName › passes plain tool names through0 ms
  • ✓foldToolName › keeps only the tool segment of MCP names0 ms
  • ✓foldActionCounts › sorts by count desc and shows counts0 ms
  • ✓foldActionCounts › collapses beyond the cap into +N0 ms
  • ✓foldActionCounts › merges MCP variants that fold to the same short name0 ms
  • ✓foldActionCounts › is deterministic on ties (name order)0 ms
  • ✓foldActionCounts › singular file label0 ms
  • ✓foldActionCounts › returns null when there is nothing to say0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › has enough vectors to be a gate0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › count-desc ordering with a files suffix0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › MCP server prefix folded away0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › folded names merge their counts0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › tie-break is UTF-16 code-unit order (uppercase before lowercase), never locale order0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › collapses past ACTION_FOLD_MAX_TOOLS to +N0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › files-only line0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › singular file0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › nothing to say folds to null, never an empty string0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › zero counts and empty names are filtered out0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › dispatch + messaging counted from raw names0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › all dispatch spellings count; TaskCreate-style bookkeeping names do not exist here0 ms
  • ✓shared vector file parity (shared/action-fold-vectors.json) › todo bookkeeping is not dispatch — coordination stays null0 ms
shared/src/__tests__/format-utils.test.ts67/67
  • ✓formatDurationSec › formats sub-minute spans as seconds3 ms
  • ✓formatDurationSec › formats minute spans, dropping a zero-second remainder0 ms
  • ✓formatDurationSec › formats hour spans, dropping a zero-minute remainder0 ms
  • ✓formatDurationSec › clamps negatives to zero0 ms
  • ✓formatAntigravityPlanShort › shortens "Google AI Pro" to "AGY Pro"0 ms
  • ✓formatAntigravityPlanShort › shortens "Google AI Ultra" to "AGY Ultra"0 ms
  • ✓formatAntigravityPlanShort › strips an "Antigravity " prefix0 ms
  • ✓formatAntigravityPlanShort › returns undefined for blank/absent input0 ms
  • ✓formatAntigravityPlanShort › is idempotent on already-shortened values0 ms
  • ✓formatAntigravityPlanShort › collapses a bare "Google AI" to "AGY"0 ms
  • ✓adjustUsagePercent › returns undefined when percent is null0 ms
  • ✓adjustUsagePercent › returns undefined when percent is undefined0 ms
  • ✓adjustUsagePercent › returns percent unchanged when resetsAt is null0 ms
  • ✓adjustUsagePercent › returns percent unchanged when resetsAt is undefined0 ms
  • ✓adjustUsagePercent › returns percent unchanged when resetsAt is in the future0 ms
  • ✓adjustUsagePercent › returns 0 when resetsAt is in the past (window expired)0 ms
  • ✓adjustUsagePercent › returns 0 when resetsAt equals now (edge case)0 ms
  • ✓adjustUsagePercent › handles invalid date string gracefully (returns percent)0 ms
  • ✓adjustUsagePercent › handles empty string resetsAt (returns percent)0 ms
  • ✓adjustUsagePercent › returns percent unchanged when resetsAt is far in the past (>1h)0 ms
  • ✓adjustUsagePercent › still returns 0 just after the 1h threshold boundary0 ms
  • ✓isCodexWindowStale › returns false when resetsAt is undefined0 ms
  • ✓isCodexWindowStale › returns false for an invalid date string0 ms
  • ✓isCodexWindowStale › returns false when resetsAt is in the future0 ms
  • ✓isCodexWindowStale › returns false when resetsAt is in the past but within the grace window0 ms
  • ✓isCodexWindowStale › returns true when resetsAt is past beyond the grace window0 ms
  • ✓isCodexWindowStale › honors a custom grace0 ms
  • ✓codex snapshot freshness › codexSnapshotAgeMs › returns undefined for missing / unparseable stamps0 ms
  • ✓codex snapshot freshness › codexSnapshotAgeMs › measures age against the supplied clock0 ms
  • ✓codex snapshot freshness › codexSnapshotAgeMs › clamps a future stamp to zero rather than going negative0 ms
  • ✓codex snapshot freshness › isCodexSnapshotAged › is false when there is nothing to judge0 ms
  • ✓codex snapshot freshness › isCodexSnapshotAged › is false for a snapshot inside the threshold0 ms
  • ✓codex snapshot freshness › isCodexSnapshotAged › is false exactly at the threshold, true past it0 ms
  • ✓codex snapshot freshness › isCodexSnapshotAged › honors a custom max age0 ms
  • ✓codex snapshot freshness › formatSnapshotAge › rounds DOWN so the label never overstates freshness0 ms
  • ✓codex snapshot freshness › formatSnapshotAge › returns undefined when there is nothing to say0 ms
  • ✓codex snapshot freshness › codexUsageFootnote › says nothing for a live window with a fresh snapshot0 ms
  • ✓codex snapshot freshness › codexUsageFootnote › THE REGRESSION: a 4h-old snapshot behind a 6-day-out weekly reset is aged1 ms
  • ✓codex snapshot freshness › codexUsageFootnote › an ended window outranks age — "stale", not an age0 ms
  • ✓codex snapshot freshness › codexUsageFootnote › says nothing when there is no window at all0 ms
  • ✓codex snapshot freshness › codexUsageFootnote › says nothing for a live window with no capture stamp (legacy producer)0 ms
  • ✓formatResetTime › returns "now" when resetsAt is in the past0 ms
  • ✓formatResetTime › returns undefined for null input0 ms
  • ✓formatResetTime › returns minutes-only for < 1h remaining0 ms
  • ✓formatResetTime › returns hours and minutes for < 24h remaining0 ms
  • ✓formatResetTime › returns days and hours for >= 24h remaining0 ms
  • ✓formatResetTime › omits minutes when exactly on the hour0 ms
  • ✓formatResetTime › passes through pre-formatted strings (no T)0 ms
  • ✓codexSnapshotMatchesAccountPlan › voids a snapshot minted under a plan the account no longer holds0 ms
  • ✓codexSnapshotMatchesAccountPlan › keeps a matching snapshot, free included — free is a plan, not a synonym for void0 ms
  • ✓codexSnapshotMatchesAccountPlan › compares the same normalized form the display table is keyed by0 ms
  • ✓codexSnapshotMatchesAccountPlan › treats an unknown tier on either side as no information, never as licence to void0 ms
  • ✓isModelScopedCodexLimit › treats a NAMED limit as scoped to one model, never as the account0 ms
  • ✓isModelScopedCodexLimit › treats the unnamed families as the account, credit plans included0 ms
  • ✓isModelScopedCodexLimit › is an allow-list of the unnamed, so a future scoped family is excluded by default0 ms
  • ✓codexSnapshotOutranks › prefers a plan-matching snapshot over a NEWER mismatched one0 ms
  • ✓codexSnapshotOutranks › falls back to recency within the same match class0 ms
  • ✓codexSnapshotOutranks › keeps the incumbent on an exact tie — both scanners walk in priority order0 ms
  • ✓codexSnapshotOutranks › orders an unstamped snapshot below a stamped one of the same class0 ms
  • ✓codexSnapshotOutranks › degrades to pure recency when the account tier is unknown0 ms
  • ✓isCodexFreePlan › recognises the free tier regardless of case or padding0 ms
  • ✓isCodexFreePlan › is false for every paid tier and for an unknown one0 ms
  • ✓scopedLimitClaimsUsageKey › claims a key when a scoped cap is present3 ms
  • ✓scopedLimitClaimsUsageKey › claims nothing when there is no cap0 ms
  • ✓codexWindowsBeside › retains all Codex windows beside the scoped cap0 ms
  • ✓codexWindowsBeside › leaves Codex untouched when no cap claims a key0 ms
  • ✓codexWindowsBeside › returns empty when Codex reports nothing0 ms
shared/src/__tests__/no-side-effects.test.ts4/4
  • ✓shared is side-effect free › finds source files to check2 ms
  • ✓shared is side-effect free › has no top-level executable statements14 ms
  • ✓shared is side-effect free › performs no import-time I/O, timers, or global mutation13 ms
  • ✓shared is side-effect free › declares sideEffects: false so bundlers actually act on this0 ms
shared/src/__tests__/protocol-contract.test.ts25/25
  • ✓Protocol Contract — StateUpdateEvent › minimal state_update has required fields4 ms
  • ✓Protocol Contract — StateUpdateEvent › full state_update has all optional fields as correct types1 ms
  • ✓Protocol Contract — StateUpdateEvent › state_update serializes to valid JSON0 ms
  • ✓Protocol Contract — StateUpdateEvent › state enum values are lowercase strings1 ms
  • ✓Protocol Contract — StateUpdateEvent › promptType values match known set0 ms
  • ✓Protocol Contract — UsageEvent › has all required numeric fields1 ms
  • ✓Protocol Contract — UsageEvent › rate limit fields are present when available2 ms
  • ✓Protocol Contract — UsageEvent › tokenStatus matches known values0 ms
  • ✓Protocol Contract — SessionsListEvent › sessions have required fields1 ms
  • ✓Protocol Contract — SessionsListEvent › agentType is optional string0 ms
  • ✓Protocol Contract — ButtonStateEvent › buttons have required fields1 ms
  • ✓Protocol Contract — EncoderStateEvent › encoders have required fields1 ms
  • ✓Protocol Contract — TimelineEventMsg › entry has required fields0 ms
  • ✓Protocol Contract — ConnectionEvent › has required fields0 ms
  • ✓Protocol Contract — DisplayStateEvent › has boolean displayOn0 ms
  • ✓Protocol Contract — PluginCommand shapes › respond command has value0 ms
  • ✓Protocol Contract — PluginCommand shapes › select_option has numeric index0 ms
  • ✓Protocol Contract — PluginCommand shapes › navigate_option has direction0 ms
  • ✓Protocol Contract — PluginCommand shapes › send_prompt has text0 ms
  • ✓Protocol Contract — PluginCommand shapes › utility command has action0 ms
  • ✓Protocol Contract — PluginCommand shapes › clear_session_focus is fieldless1 ms
  • ✓Protocol Contract — BridgeEvent discriminated union › all event types in union have type field1 ms
  • ✓Protocol Contract — BridgeEvent discriminated union › SERIAL_FORWARDED_EVENTS covers expected types4 ms
  • ✓Protocol Contract — Backward Compatibility › state_update can be parsed with only required fields (old client)1 ms
  • ✓Protocol Contract — Backward Compatibility › usage_update required fields are sufficient for display0 ms
shared/src/__tests__/protocol-generated-sync.test.ts12/12
  • ✓generated protocol artifacts in sync › generated/protocol/bridge-event-schema.json matches the SSOT3 ms
  • ✓generated protocol artifacts in sync › generated/protocol/plugin-command-schema.json matches the SSOT0 ms
  • ✓generated protocol artifacts in sync › generated/protocol/gateway-frame-schema.json matches the SSOT1 ms
  • ✓generated protocol artifacts in sync › generated/protocol/BridgeEvent.swift matches the SSOT1 ms
  • ✓generated protocol artifacts in sync › generated/protocol/PluginCommand.swift matches the SSOT0 ms
  • ✓generated protocol artifacts in sync › generated/protocol/GatewayFrame.swift matches the SSOT1 ms
  • ✓generated protocol artifacts in sync › generated/protocol/BridgeEvent.kt matches the SSOT1 ms
  • ✓generated protocol artifacts in sync › generated/protocol/PluginCommand.kt matches the SSOT0 ms
  • ✓generated protocol artifacts in sync › generated/protocol/GatewayFrame.kt matches the SSOT0 ms
  • ✓generated protocol artifacts in sync › generated/protocol/AgentCommand.swift matches the SSOT0 ms
  • ✓generated protocol artifacts in sync › generated/protocol/AgentCommand.kt matches the SSOT0 ms
  • ✓generated protocol artifacts in sync › shared/src/command-builders.ts matches the SSOT0 ms
shared/src/__tests__/question-summary.test.ts8/8
  • ✓summarizeQuestionForKey › keeps the verb and the object, dropping the middle4 ms
  • ✓summarizeQuestionForKey › takes the object of the VERB it kept, not of a later pipeline stage0 ms
  • ✓summarizeQuestionForKey › drops the verb before it drops the object when both will not fit0 ms
  • ✓summarizeQuestionForKey › surfaces the target of a destructive command — the case a head cut hid0 ms
  • ✓summarizeQuestionForKey › does not mistake a flag or a quoted range for the object0 ms
  • ✓summarizeQuestionForKey › returns a fitting string untouched — the elision must buy something0 ms
  • ✓summarizeQuestionForKey › falls back to a plain head cut when there is no path-like object0 ms
  • ✓summarizeQuestionForKey › is total on empty and degenerate input0 ms
shared/src/__tests__/session-deck-usage.test.ts27/27
  • ✓buildSessionDeck list-view usage tiles › pins 5H/7D to the bottom strip and wires them to query_usage15 ms
  • ✓buildSessionDeck list-view usage tiles › leaves the upper grid and the clock-side keys entirely to sessions1 ms
  • ✓buildSessionDeck list-view usage tiles › fills the strip from the right, freeing the leftmost key for a session1 ms
  • ✓buildSessionDeck list-view usage tiles › does not reserve usage slots when showUsage is off (regression: full grid)1 ms
  • ✓buildSessionDeck list-view usage tiles › frees the usage slots (no residue) when usage is unknown1 ms
  • ✓buildSessionDeck list-view usage tiles › frees only the Claude slots when Codex-only usage is present (partial)1 ms
  • ✓buildSessionDeck list-view usage tiles › fits sessions into the 13 non-usage keys without paging1 ms
  • ✓buildSessionDeck list-view usage tiles › paginates when sessions exceed capacity, NEXT→ sits on the last free key1 ms
  • ✓buildSessionDeck list-view usage tiles › page 2 keeps the usage tiles pinned and shows the remainder1 ms
  • ✓buildSessionDeck list-view usage tiles › shows usage even with zero sessions1 ms
  • ✓buildSessionDeck list-view usage tiles › compacts the Codex pair so Plus 5H and 7D both fit the 3-key strip2 ms
  • ✓buildSessionDeck list-view usage tiles › renders only the Codex window whose datum exists1 ms
  • ✓buildSessionDeck list-view usage tiles › labels the Codex weekly window "7D" when it arrives in the primary slot (secondary null)2 ms
  • ✓buildSessionDeck list-view usage tiles › shows a credits tile when Codex reports a credit-based plan (null windows)1 ms
  • ✓buildSessionDeck list-view usage tiles › renders ∞ for an unlimited-credits Codex plan1 ms
  • ✓buildSessionDeck list-view usage tiles › replaces the Codex windows with one LUNA tile while account quota is exhausted4 ms
  • ✓buildSessionDeck list-view usage tiles › shows the purchased-credit balance in place of an exhausted Codex window4 ms
  • ✓buildSessionDeck list-view usage tiles › keeps credits and the Luna reserve as separate keys, yielding the reserve when full2 ms
  • ✓buildSessionDeck list-view usage tiles › falls back to trailing keys on a tiny deck where the strip is not placed0 ms
  • ✓buildSessionDeck list-view usage tiles › never starves the only key on a 1-key deck (usage yields to the session)0 ms
  • ✓buildSessionDeck scoped cap within the fixed usage strip › always pairs weekly and scoped readings, even with a spare key2 ms
  • ✓buildSessionDeck scoped cap within the fixed usage strip › pairs the cap with 7D and leaves 5H a whole gauge1 ms
  • ✓buildSessionDeck scoped cap within the fixed usage strip › fits five readings in three keys: 5H | 7D+cap | Codex pair1 ms
  • ✓buildSessionDeck scoped cap within the fixed usage strip › seats the cap identically whether or not it is binding3 ms
  • ✓buildSessionDeck scoped cap within the fixed usage strip › keeps an INACTIVE cap without displacing a live Codex window2 ms
  • ✓buildSessionDeck scoped cap within the fixed usage strip › draws no tile for a window the API did not report — but still draws a real 0%5 ms
  • ✓buildSessionDeck scoped cap within the fixed usage strip › shows nothing but Claude when neither Codex nor a scoped cap exists1 ms
shared/src/__tests__/session-labels.test.ts19/19
  • ✓sessionDeckLabels (#544) › leaves a lone session untagged3 ms
  • ✓sessionDeckLabels (#544) › tags two sessions of one agent in one project with their id prefix1 ms
  • ✓sessionDeckLabels (#544) › tags the same session identically in either daemon id form0 ms
  • ✓sessionDeckLabels (#544) › does not tag different agents that share a project — their creatures already differ0 ms
  • ✓sessionDeckLabels (#544) › uses the unique tail when time-ordered ids share a long prefix0 ms
  • ✓sessionDeckLabels (#544) › a short shared prefix still grows as a prefix — it reads like /status0 ms
  • ✓sessionDeckLabels (#544) › strips a Hermes type word but not a uuid that starts with hex letters0 ms
  • ✓sessionDeckLabels (#544) › never splits a surrogate pair when the name shrinks0 ms
  • ✓sessionDeckLabels (#544) › is a function of the set, not of its order — activity cannot relabel a key0 ms
  • ✓sessionDeckLabels (#544) › keeps the tag whole when the text must shrink0 ms
  • ✓D200 deck — same-project sessions are distinguishable (#544) › draws two same-project keys differently and a lone key unchanged12 ms
  • ✓D200 deck — same-project sessions are distinguishable (#544) › names the tagged session on the detail INFO tile, where the voice tile sends2 ms
  • ✓friendly labels (#544) › normalizes the same bounded hints as Swift1 ms
  • ✓friendly labels (#544) › retains identity tags for duplicate/renamed hints, and preserves solo projects0 ms
  • ✓friendly labels (#544) › retains only absent hints, clears explicit empty, and drops removed rows0 ms
  • ✓keeps session keys, INFO and VOICE bound to the same ID after friendly rename (#544/#632)1 ms
  • ✓sessionLabelText — cmux workspace / surface titles › keeps the whole title when it fits0 ms
  • ✓sessionLabelText — cmux workspace / surface titles › drops the workspace before cutting the surface (D200X receipt, #544)0 ms
  • ✓sessionLabelText — cmux workspace / surface titles › leaves a title without a separator to the ordinary cut0 ms
shared/src/__tests__/session-settings-client.test.ts3/3
  • ✓settings client request lifecycle › bounds silence, notifies the renderer, and rejects late replies11 ms
  • ✓settings client request lifecycle › rejects stale, foreign-session and wrong-target responses2 ms
  • ✓settings client request lifecycle › cancels closed/disconnected pickers and never treats undefined as DEFAULT1 ms
shared/src/__tests__/session-settings.test.ts9/9
  • ✓openClawSessionSettings (#463) › projects the row's own levels, current value and default verbatim3 ms
  • ✓openClawSessionSettings (#463) › marks a user model override, and keeps a binary provider label (on) next to its id1 ms
  • ✓openClawSessionSettings (#463) › falls back to the defaults block and the legacy option list only where the row is silent0 ms
  • ✓openClawSessionSettings (#463) › never invents a default or a level0 ms
  • ✓sessionNowSummary (#463) › builds the card only from row facts0 ms
  • ✓sessionNowSummary (#463) › mid-turn leads with the goal, since the RUNNING card already names the tool0 ms
  • ✓sessionNowSummary (#463) › is null when the row says nothing, rather than padding0 ms
  • ✓settings request policy › mirrors the canonical numeric policy into Swift without drift0 ms
  • ✓settings request policy › counts UTF16 units and permits only explicit null to clear1 ms
shared/src/__tests__/session-slot-anim.test.ts12/12
  • ✓session slot animation cycle › returns to its starting phase after one cycle (processing, active=false)8 ms
  • ✓session slot animation cycle › returns to its starting phase after one cycle (processing, active=true)2 ms
  • ✓session slot animation cycle › returns to its starting phase after one cycle (awaiting_permission, active=false)1 ms
  • ✓session slot animation cycle › returns to its starting phase after one cycle (awaiting_permission, active=true)1 ms
  • ✓session slot animation cycle › returns to its starting phase after one cycle (idle, active=false)1 ms
  • ✓session slot animation cycle › returns to its starting phase after one cycle (idle, active=true)1 ms
  • ✓session slot animation cycle › animates the processing border without an explicit start frame1 ms
  • ✓session slot animation cycle › keeps a supplied start frame as a phase offset, not a freeze1 ms
  • ✓session slot animation cycle › leaves an unfocused idle tile static — it must not be encoded as a loop0 ms
  • ✓tile identity is byte-stable › renders the same quiet slot identically every time0 ms
  • ✓tile identity is byte-stable › renders the same empty slot identically every time0 ms
  • ✓tile identity is byte-stable › emits no random-looking ids from any session-slot renderer2 ms
shared/src/__tests__/session-state-presentation.test.ts9/9
  • ✓session state presentation (DESIGN.md §2.7) › gives each wire state one tone: calm idle, cyan work, amber asks, grey offline3 ms
  • ✓session state presentation (DESIGN.md §2.7) › treats a missing state as offline and an unknown one as a live quiet session1 ms
  • ✓session state presentation (DESIGN.md §2.7) › binds colours to the Session token group, never to literals3 ms
  • ✓session state presentation (DESIGN.md §2.7) › keeps work visually distinct from brand hues and from the idle grey1 ms
  • ✓session state presentation (DESIGN.md §2.7) › stays legible as small text on water, dark popups and paper1 ms
  • ✓session state presentation (DESIGN.md §2.7) › lets only the awaiting tone animate0 ms
  • ✓session state presentation (DESIGN.md §2.7) › keeps one vocabulary that fits every surface budget1 ms
  • ✓session state presentation (DESIGN.md §2.7) › draws agent brand hues from the Brand tokens1 ms
  • ✓session state presentation (DESIGN.md §2.7) › generates the Swift, Kotlin and ESP32 mirrors from the source2 ms
shared/src/__tests__/session-utils.test.ts50/50
  • ✓OpenClaw visibility SSOT › isOpenClawSessionActive is true only when gatewayConnected3 ms
  • ✓OpenClaw visibility SSOT › hasOpenClawSession detects an emitted openclaw session0 ms
  • ✓agentTypeRank › ranks known agents stably, with Kiro after the existing agent set1 ms
  • ✓naturalLabelCompare › orders numeric chunks naturally (Agent 2 before Agent 10)13 ms
  • ✓naturalLabelCompare › treats undefined as empty string0 ms
  • ✓sortSessions › places openclaw before claude-code regardless of project1 ms
  • ✓sortSessions › sorts by project name within the same agent type0 ms
  • ✓sortSessions › sorts numbered project names naturally (#2 before #10)0 ms
  • ✓sortSessions › breaks ties on startedAt ascending (oldest first)0 ms
  • ✓sortSessions › falls back to id natural-compare when startedAt ties to the same ms0 ms
  • ✓sortSessions › does not mutate the input array0 ms
  • ✓sessionWeight › returns the weight when it is a finite number (incl. negatives and 0)0 ms
  • ✓sessionWeight › collapses missing / null / non-finite weights to 00 ms
  • ✓sessionWeight › accepts both documented bounds unchanged0 ms
  • ✓sessionWeight › clamps out-of-range values to the documented bounds0 ms
  • ✓sessionWeight › integer-truncates fractional values so all platform mirrors agree0 ms
  • ✓sanitizeWeightForWire › drops non-numbers and non-finite values to undefined (wire omits the key)1 ms
  • ✓sanitizeWeightForWire › passes in-range integers and clamps/truncates the rest0 ms
  • ✓sortSessions weight comparator safety › orders opposite-sign extreme in-range weights without overflow tricks0 ms
  • ✓sortSessions weight override › orders by weight ascending: negatives, then unweighted/0, then positives0 ms
  • ✓sortSessions weight override › treats an unweighted session the same as weight 00 ms
  • ✓sortSessions weight override › weight beats agentType — a weighted claude-code sorts before an unweighted openclaw0 ms
  • ✓sortSessions weight override › within the same weight, existing ordering (agentType → project → startedAt → id) still applies0 ms
  • ✓sortSessions weight override › maps terminal tab order onto the deck: tab N (weight N) lands in slot N0 ms
  • ✓sortSessions weight override › does not change ordering when no session has a weight (backward compatible)1 ms
  • ✓independent Codex display identities › 'independent Desktop chats in the same…'1 ms
  • ✓independent Codex display identities › 'idle top-level peers are not inferred…'1 ms
  • ✓independent Codex display identities › 'waiting controls remain owned by thei…'1 ms
  • ✓independent Codex display identities › 'shared explicit weights do not establ…'1 ms
  • ✓independent Codex display identities › 'missing project names do not merge id…'1 ms
  • ✓independent Codex display identities › 'CLI and Desktop identities both remai…'1 ms
  • ✓independent Codex display identities › 'legacy explicit member metadata is re…'1 ms
  • ✓independent Codex display identities › keeps independently pinned sessions in their explicit order0 ms
  • ✓assignDisplayNames › passes single sessions through without #N suffix1 ms
  • ✓assignDisplayNames › adds #1/#2 suffixes for duplicate (project, agentType) tuples in input order0 ms
  • ✓assignDisplayNames › numbers same project across different agentTypes independently0 ms
  • ✓assignDisplayNames › produces the same #N assignment as a deterministic sort + display pipeline1 ms
  • ✓normalizeProjectForGrouping › strips path and trailing #N suffix1 ms
  • ✓normalizeProjectForGrouping › handles empty/undefined0 ms
  • ✓projectGroupKey › exact match groups0 ms
  • ✓projectGroupKey › long multi-token stems fuse0 ms
  • ✓projectGroupKey › delimiter extension fuses ("foo…" + "foo…-1")0 ms
  • ✓projectGroupKey › short sibling projects stay separate0 ms
  • ✓projectGroupKey › stems with fewer than 2 delimiters stay separate0 ms
  • ✓groupSessionsByProject › clusters same-stem worktrees and keeps singletons flat2 ms
  • ✓groupSessionsByProject › groups duplicate sessions of the same project (#N suffixed)1 ms
  • ✓groupSessionsByProject › preserves input order within groups1 ms
  • ✓rawSessionId / sameSession › strips every observed agent prefix1 ms
  • ✓rawSessionId / sameSession › leaves managed and already-bare ids alone0 ms
  • ✓rawSessionId / sameSession › sameSession bridges the two keying forms0 ms
shared/src/__tests__/session-weight-rules.test.ts6/6
  • ✓session weight range invariants › range is symmetric around the neutral band and fits every platform integer3 ms
  • ✓session weight range invariants › sessionWeight clamps exactly to the SSOT bounds0 ms
  • ✓generated mirrors in sync › apple/AgentDeck/Model/SessionWeightRules.generated.swift matches the SSOT0 ms
  • ✓generated mirrors in sync › android/app/src/main/kotlin/dev/agentdeck/net/SessionWeightRules.generated.kt matches the SSOT0 ms
  • ✓generated mirrors in sync › emitters embed the SSOT literals (sanity on the emitters themselves)1 ms
  • ✓self-contained hand-port copies › D200HLayoutModel.swift carries the same weight-range literals1 ms
shared/src/__tests__/state-transitions.test.ts9/9
  • ✓generated mirrors in sync › apple/AgentDeck/Daemon/Core/StateTransitions.generated.swift matches the SSOT4 ms
  • ✓generated mirrors in sync › every daemon-only generated file carries the macOS guard1 ms
  • ✓generated mirrors in sync › emits a Swift case name for every state, with a rawValue only where they differ1 ms
  • ✓generated mirrors in sync › carries each transition note into the mirror2 ms
  • ✓transition table invariants › is deterministic — no two rows match the same (from, trigger, source)2 ms
  • ✓transition table invariants › leaves AWAITING_* without a wall-clock backstop1 ms
  • ✓transition table invariants › gives every AWAITING_* state a hook-driven exit1 ms
  • ✓transition table invariants › lets a live session reopen the hub after another session ended it0 ms
  • ✓transition table invariants › every row targets a real state and a known source5 ms
shared/src/__tests__/text-sanitize.test.ts5/5
  • ✓stripUnsafeText › strips ANSI CSI sequences but keeps the visible text3 ms
  • ✓stripUnsafeText › strips OSC sequences and bare ESC forms0 ms
  • ✓stripUnsafeText › strips XML-invalid control characters but keeps tab/newline0 ms
  • ✓stripUnsafeText › strips lone surrogate halves but keeps full emoji0 ms
  • ✓escSvgText › entity-escapes after stripping0 ms

57 files

Partial verification

APME evaluation

Are turns and tasks segmented, judged and scored correctly, do read-only history workers keep slow queries off real-time health and hooks, are metadata reads bounded by index plans, does the recommender rank models honestly, and can users inspect judgement evidence, distinguish attempt failures and save task-level corrections without changing AI scores?

Passed
830
Failed
0
Skipped
4
Time
13.8 s
57 test files
bridge/src/__tests__/apme-abandoned-run-reaper.test.ts12/12
  • ✓abandoned APME run reaper › finds runs with real work that the empty-shell reaper cannot see37 ms
  • ✓abandoned APME run reaper › measures staleness from last activity, not started_at12 ms
  • ✓abandoned APME run reaper › counts steps and sample events as activity, not just turns14 ms
  • ✓abandoned APME run reaper › closes turns, tasks and the run at the last activity, not now17 ms
  • ✓abandoned APME run reaper › is idempotent and drops out of the candidate list once reaped15 ms
  • ✓abandoned APME run reaper › leaves reaped runs to the normal eval queue21 ms
  • ✓abandoned APME run reaper › reports a run the collector still owns as live16 ms
  • ✓what the reaper says it found › a task whose last turn CLOSED is an idle_gap boundary, not an orphan14 ms
  • ✓what the reaper says it found › a task still holding an OPEN turn is orphaned, and that turn is closed as run_close14 ms
  • ✓what the reaper says it found › classifies each open task on its own turns, in one run16 ms
  • ✓reaped tasks keep their run's category and old verdicts are re-read on evidence › a reaped task inherits the run category it never resolved in memory17 ms
  • ✓reaped tasks keep their run's category and old verdicts are re-read on evidence › reclassifyReapedTasks moves only orphaned tasks whose every turn closed with a known signal20 ms
bridge/src/__tests__/apme-activity-history.test.ts5/5
  • ✓APME unified activity history › uses the same deterministic identity contract as the Swift mirror4 ms
  • ✓APME unified activity history › collapses exact duplicates and keeps the richer fields without summing them12 ms
  • ✓APME unified activity history › stitches a handover fragment only when native session/task and time agree0 ms
  • ✓APME unified activity history › builds one glanceable per-agent total after dedup1 ms
  • ✓APME unified activity history › reports agent work time instead of user think time between turns1 ms
bridge/src/__tests__/apme-async-probes.test.ts6/6
  • ✓APME background subprocess probes › keeps timers running and skips deterministic checks when a protected directory read times out10 ms
  • ✓APME background subprocess probes › yields while Xcode scheme discovery is pending5 ms
  • ✓APME background subprocess probes › yields during dirty-worktree detection and skips clean projects3 ms
  • ✓APME background subprocess probes › builds the judge prompt after an asynchronous bounded diff1 ms
  • ✓APME background subprocess probes › computes efficiency after the child completes3 ms
  • ✓APME background subprocess probes › does not overwrite a newer outcome while Git is pending2 ms
  • ○APME background subprocess probes › coalesces concurrent hardware snapshots without blocking timers
bridge/src/__tests__/apme-background-plan.test.ts3/3
  • ✓APME background queues avoid payload table scans › bounds the orphan and unjudged queues before touching prompt-bearing rows28 ms
  • ✓APME background queues avoid payload table scans › orders the closed-run queue from a covering index and still excludes open/empty runs13 ms
  • ✓APME background queues avoid payload table scans › reads only pending nonempty responses, ordered without sorting the full turns table12 ms
bridge/src/__tests__/apme-category-e2e.test.ts3/3
  • ✓APME category-aware turn evaluation (E2E) › conversation turn: prompt → classify → judge → turn category + composite persisted39 ms
  • ✓APME category-aware turn evaluation (E2E) › research turn: rule-based classifier picks research, judge uses research rubric axes18 ms
  • ✓APME category-aware turn evaluation (E2E) › daemon backfill pass: turns with response but no outcome get committed + null composite18 ms
bridge/src/__tests__/apme-classifier.test.ts26/26
  • ✓classify() › planning — plan mode used2 ms
  • ✓classify() › planning — short session, no file changes0 ms
  • ✓classify() › research — web searches dominant0 ms
  • ✓classify() › research — grep/glob dominant, no file changes0 ms
  • ✓classify() › coding — edit+write dominant with file changes0 ms
  • ✓classify() › debugging — tests + edits + bash0 ms
  • ✓classify() › refactoring — many edits, no new files0 ms
  • ✓classify() › review — mostly reads, minimal edits0 ms
  • ✓classify() › ops — bash dominant, few edits0 ms
  • ✓classify() › conversation — very short, no tools0 ms
  • ✓classify() › multi_agent — multiple Agent delegations0 ms
  • ✓classify() › unknown — no clear pattern0 ms
  • ✓classifyWithLlm() › uses the configured MLX pin without probing a stale download catalog32 ms
  • ✓classifyWithLlm() › prefers MLX when it answers with a valid label, never reaching Foundation Models2 ms
  • ✓classifyWithLlm() › falls through to Foundation Models when MLX is unreachable — the no-MLX-server Mac8 ms
  • ✓classifyWithLlm() › never includes a paid backend in the classifier try-order (SSOT invariant)2 ms
  • ✓classifyWithLlm() › never calls a paid backend even when the eval judge is configured to `api` (mutation check)2 ms
  • ✓classifyWithLlm() › falls back to the rule-based category when every backend answers with an out-of-vocabulary label1 ms
  • ✓classifyWithLlm() › falls through to the next backend when one answers but is unreachable, then to rules1 ms
  • ✓classifyWithLlm() › classification calls use the shared max_tokens cap and never the judge budget2 ms
  • ✓computeSignals() › counts tool calls and identifies dominant tool30 ms
  • ✓computeSignals() › detects plan mode from step payload20 ms
  • ✓computeSignals() › detects web searches14 ms
  • ✓classifyRun() › returns signals and category for a coding run17 ms
  • ✓classifyRun() › returns unknown for empty runs13 ms
  • ✓task_category schema migration › runs table has task_signals, task_category, task_category_source columns16 ms
bridge/src/__tests__/apme-claude-turn-completion.test.ts5/5
  • ✓claudeTurnCompletionSince › locates the transcript by the cwd slug first, then by scanning every project4 ms
  • ✓claudeTurnCompletionSince › an end_turn newer than the turn closes it as a recovered Stop with the final text2 ms
  • ✓claudeTurnCompletionSince › a tail still mid-turn claims nothing1 ms
  • ✓claudeTurnCompletionSince › an end_turn older than the turn belongs to a previous turn1 ms
  • ✓claudeTurnCompletionSince › a client abort is aborted, and no transcript is no evidence1 ms
bridge/src/__tests__/apme-collector.test.ts28/28
  • ✓ApmeCollector › preserves task-scoped relation identity through the collector and sample API37 ms
  • ✓ApmeCollector › openRun → ingestHook → closeRun persists a run with steps23 ms
  • ✓ApmeCollector › updateUsage and updateModel reflect in the run row14 ms
  • ✓ApmeCollector › listRuns filters by agent and orders by started_at desc23 ms
  • ✓ApmeCollector › default rubric v1 is seeded on init11 ms
  • ✓ApmeCollector › insertEval + listEvalsForRun round-trip15 ms
  • ✓ApmeCollector › excludes _empty runs from the unevaluated run queue14 ms
  • ✓ApmeCollector › scorecard view aggregates runs per model16 ms
  • ✓ApmeCollector › multi-turn cycle captures prompts and responses (wireAgentApme path)20 ms
  • ✓ApmeCollector › setLastClosedTurnResponse fills missing response on closed turn15 ms
  • ✓ApmeCollector › setTurnResponse tags efficiency_json.response_kind (text / tool_only / empty)19 ms
  • ✓ApmeCollector › no-op gracefully when store is disabled15 ms
  • ✓ApmeCollector › ignores an echoed duplicate turn_start (same prompt on a fresh empty turn)18 ms
  • ✓ApmeCollector › treats a same-prompt re-send after a response or tool use as a new turn29 ms
  • ✓ApmeCollector › an agent_error span records the failure reason in the trajectory without closing the task18 ms
  • ✓ApmeCollector › drops an agent_error span with no open task instead of inventing one14 ms
  • ✓ApmeCollector › accumulates PER-MESSAGE usage instead of stamping the last message as the total15 ms
  • ✓ApmeCollector › attributes model and provider to each turn without reassigning earlier turns14 ms
  • ✓ApmeCollector › closes the turn on an explicit turn_end and records which signal closed it11 ms
  • ✓ApmeCollector › treats a whitespace-differing prompt echo as the same turn, not a Stop loss11 ms
  • ✓ApmeCollector › never lets cost count messages the token total did not12 ms
  • ✓ApmeCollector › does not mistake an unpriced provider zero for a known-free model12 ms
  • ✓ApmeCollector › keeps a prior numeric cost but makes the aggregate unknown when a later call is unpriced13 ms
  • ✓next-prompt close reads the agent record › codex: a turn open at the next prompt takes its reply and end time from the rollout13 ms
  • ✓next-prompt close reads the agent record › codex: a turn the rollout says failed is aborted — no Stop was ever owed13 ms
  • ✓next-prompt close reads the agent record › codex: no record of the turn ending is still an unrecovered Stop loss12 ms
  • ✓a reply that arrives after the run closed › still lands on the session's last turn13 ms
  • ✓a reply that arrives after the run closed › never reaches a turn that closed long ago13 ms
bridge/src/__tests__/apme-cost-migration.test.ts1/1
  • ✓cost provenance migration › backfills legacy positive costs once, preserves unknown zero and modern partial costs on reopen49 ms
bridge/src/__tests__/apme-dashboard-html.test.ts15/15
  • ✓APME dashboard P0 user actions › copies a report without query, fragment or URL credentials7 ms
  • ✓APME dashboard P0 user actions › renders API candidates without promoting singleton, unknown or synthetic models4 ms
  • ✓APME dashboard P0 user actions › withholds comparison when the daemon has no eligible task evidence1 ms
  • ✓apmeDashboardHtml — data-quality affordances › explains an un-scored completed run instead of showing a bare header0 ms
  • ✓apmeDashboardHtml — data-quality affordances › surfaces manual reviews as a distinct, layer-filtered section0 ms
  • ✓apmeDashboardHtml — data-quality affordances › each aggregate tab has a graceful empty state (no NaN / blank grid)0 ms
  • ✓apmeDashboardHtml — data-quality affordances › active sessions are flagged as pending, not silently score-less0 ms
  • ✓apmeDashboardHtml — data-quality affordances › opens on the simple deduplicated activity view0 ms
  • ✓bundled Swift-daemon dashboard copy › matches apmeDashboardHtml() byte-for-byte (pnpm generate-apme-dashboard)1 ms
  • ✓APME P1 task review actions › accepts numeric native task links in the rendered JavaScript3 ms
  • ✓APME P1 task review actions › does not open a reused task index from a different run after daemon handover1 ms
  • ✓APME P1 task review actions › shows reasoning, done/missed, provenance, evidence limits and independent corrections, escaping stored text16 ms
  • ✓APME P1 task review actions › distinguishes open, pending/unknown, missing evidence, exclusion, disabled and actual failures1 ms
  • ✓APME P1 task review actions › does not claim success when a correction POST fails and preserves the note2 ms
  • ✓APME P1 task review actions › submits a task assessment through the actual UI handler without changing selection or the AI estimate1 ms
bridge/src/__tests__/apme-git-head.test.ts3/3
  • ✓Git HEAD at the hook boundary › reads loose refs from nested directories and observes subsequent changes7 ms
  • ✓Git HEAD at the hook boundary › resolves worktree gitdir and commondir with packed refs2 ms
  • ✓Git HEAD at the hook boundary › accepts detached SHA-256 HEAD and keeps unreadable/unborn/looping refs unknown3 ms
bridge/src/__tests__/apme-history-reader.test.ts7/7
  • ✓APME read-only history worker › matches task and communication DTOs through the packaged worker entry and sees later WAL writes175 ms
  • ✓APME read-only history worker › never migrates a read-only database or creates a missing database48 ms
  • ✓APME read-only history worker › answers a history read without Access-Control-Allow-Origin113 ms
  • ✓APME read-only history worker › keeps HTTP health responsive during a blocked history read, then returns 503 without a synchronous fallback460 ms
  • ✓APME read-only history worker › coalesces identical reads, bounds queued requests and rejects the whole stalled generation before recovering173 ms
  • ✓APME read-only history worker › rejects pending requests on crash and close, with no late response crossing to a new worker159 ms
  • ✓APME read-only history worker › does not accumulate workers while an expired native read is still retiring279 ms
bridge/src/__tests__/apme-http.test.ts20/20
  • ✓APME HTTP routes › returns 503 when APME is not initialized81 ms
  • ✓APME HTTP routes › keeps storage exceptions out of HTTP responses26 ms
  • ✓APME HTTP routes › answers without Access-Control-Allow-Origin, so another origin cannot read task history21 ms
  • ✓APME HTTP routes › serves bounded cross-task communications without tool payloads or unrelated relations50 ms
  • ✓APME HTTP routes › marks a capped communications feed partial and keeps the newest observations468 ms
  • ✓APME HTTP routes › serves the shared Swift/Node Collaboration history fixture34 ms
  • ✓APME HTTP routes › GET /apme/runs lists recent runs with evals and overall score29 ms
  • ✓APME HTTP routes › GET /apme/runs filters by agent14 ms
  • ✓APME HTTP routes › GET /apme/activity returns the stable, deduplicated activity projection17 ms
  • ✓APME HTTP routes › GET /apme/run/:id returns run detail with steps and evals17 ms
  • ✓APME HTTP routes › GET /apme/run/:id returns 404 for unknown runs12 ms
  • ✓APME HTTP routes › GET /apme/run/:id includes per-task rollup with attached evals20 ms
  • ✓APME HTTP routes › GET /apme/tasks/:id returns task detail with evals + turns20 ms
  • ✓APME HTTP routes › persists task corrections separately from AI scores across reopen, validates UTF-8 notes and reports attempts33 ms
  • ✓APME HTTP routes › closeTaskExternal with manual signal records outcome + boundary_signal=manual12 ms
  • ✓APME HTTP routes › GET /apme/scorecard returns model aggregates13 ms
  • ✓APME HTTP routes › GET /apme/rubric/current returns seeded rubric v111 ms
  • ✓APME HTTP routes › POST /apme/vibe records feedback and rejects unknown runs15 ms
  • ✓APME HTTP routes › POST /apme/recommend returns candidate list18 ms
  • ✓APME HTTP routes › unknown /apme/* path returns 40413 ms
bridge/src/__tests__/apme-idle-gap-and-title.test.ts7/7
  • ✓task title at promotion › onTaskOpened carries the title derived from the first prompt29 ms
  • ✓task title at promotion › a prompt that derives no title promotes with title=null (Task N fallback stays with the consumer)13 ms
  • ✓generic idle-gap boundary › closes the active task with idle_gap after the gap elapses post-Stop17 ms
  • ✓generic idle-gap boundary › a new prompt within the gap disarms the timer14 ms
  • ✓generic idle-gap boundary › the next prompt after an idle_gap close opens a NEW task in the same run11 ms
  • ✓generic idle-gap boundary › work board views: filter, row flag and badges share one definition22 ms
  • ✓generic idle-gap boundary › session_end within the gap wins — no double close15 ms
bridge/src/__tests__/apme-judge-detect.test.ts7/7
  • ✓detectLocalJudgeProviders › drops embedding-only Ollama models9 ms
  • ✓detectLocalJudgeProviders › reports no provider when every Ollama model is an embedder1 ms
  • ✓detectLocalJudgeProviders › keeps models from servers that report no capabilities at all1 ms
  • ✓detectLocalJudgeProviders › still detects OpenAI-compatible servers via /v1/models1 ms
  • ✓detectLocalJudgeProviders › returns nothing when no local server answers1 ms
  • ✓MLX discovery uses residency rather than downloads › offers only the resident model when another download appears first49 ms
  • ✓MLX discovery uses residency rather than downloads › does not offer an ambiguous catalog-only MLX server1 ms
bridge/src/__tests__/apme-judge-health.test.ts25/25
  • ✓judgeCoverage › excludes declined rows — refusing to grade an empty task is the judge working4 ms
  • ✓judgeCoverage › counts waiting AND aged-out against coverage — both are ungraded work0 ms
  • ✓judgeCoverage › reports null rather than 0% when there is nothing to adjudicate0 ms
  • ✓ApmeStore.judgeHealth › sorts each task into exactly one bucket27 ms
  • ✓ApmeStore.judgeHealth › splits waiting from aged out AT the drain cutoff, not merely near it14 ms
  • ✓ApmeStore.judgeHealth › counts a scored task with no summary as judged14 ms
  • ✓ApmeStore.judgeHealth › excludes judged and declined tasks from the aged-out total13 ms
  • ✓ApmeStore.judgeHealth › groups days in LOCAL time, matching the window the CLI snaps10 ms
  • ✓ApmeStore.judgeHealth › reports the aged-out total for the whole store, not the window10 ms
  • ✓ApmeStore.judgeHealth › never counts a declined task as aged out, however old it is12 ms
  • ✓ApmeStore.judgeHealth › does not re-offer a task that already has a verdict but no summary11 ms
  • ✓ApmeStore.judgeHealth › reports no rows rather than throwing when nothing closed in the window10 ms
  • ✓ApmeStore.judgeLatency › reports percentiles a single backfilled outlier cannot move13 ms
  • ✓ApmeStore.judgeLatency › places p50 and p90 by nearest rank across sizes16 ms
  • ✓ApmeStore.judgeLatency › measures task_judge rows only, not every eval layer12 ms
  • ✓ApmeStore.judgeLatency › measures the FIRST verdict when a task carries several10 ms
  • ✓ApmeStore.judgeLatency › counts a verdict that predates the close instead of dropping it silently14 ms
  • ✓ApmeStore.judgeLatency › reports nulls rather than NaN when nothing has been judged12 ms
  • ✓judge-health presentation › never rounds coverage up to 100% while anything is unjudged0 ms
  • ✓judge-health presentation › floors the demoted unit so no band is skipped1 ms
  • ✓judge-health presentation › snaps day-or-longer windows to a local midnight and leaves shorter ones alone1 ms
  • ✓ApmeStore.agentCoverage › rolls up capture and judge facts per agent23 ms
  • ✓ApmeStore.agentCoverage › a declined task whose verdict was retracted still counts under its reason10 ms
  • ✓ApmeStore.agentCoverage › windows turns and runs on their start and tasks on their close14 ms
  • ✓captureRateText › rounds DOWN, like coverage — a loss instrument never rounds toward perfect0 ms
bridge/src/__tests__/apme-judge-json-mode.test.ts8/8
  • ✓judge JSON mode › asks the MLX server for a JSON object instead of hoping for one41 ms
  • ✓judge JSON mode › asks an OpenAI-compatible server too, alongside the existing fields2 ms
  • ✓judge JSON mode › pays the same per-request ladder on every call — nothing converges, nothing is remembered9 ms
  • ✓judge JSON mode › surfaces its own status after 3 attempts, and the next call starts fresh with both fields6 ms
  • ✓judge JSON mode › one endpoint refusing the field never touches another — there is no shared memory to leak3 ms
  • ✓judge JSON mode › still compacts a context-overflow 400 and keeps JSON mode on7 ms
  • ✓judge JSON mode › recovers when a penalty refusal is followed by a context overflow3 ms
  • ✓judge JSON mode › does not read an auth or rate-limit failure as a rejected field1 ms
bridge/src/__tests__/apme-judge-probe.test.ts19/19
  • ✓probeJudgeBackend — MLX › returns unavailable when /v1/models is unreachable36 ms
  • ✓probeJudgeBackend — MLX › returns unavailable when /v1/models advertises no chat-capable model5 ms
  • ✓probeJudgeBackend — MLX › returns unavailable when chat ping fails (model not loaded)3 ms
  • ✓probeJudgeBackend — MLX › returns ready when catalog AND chat ping both succeed2 ms
  • ✓probeJudgeBackend — OpenClaw › returns unavailable when /health is unreachable1 ms
  • ✓probeJudgeBackend — OpenClaw › returns unavailable when /health is up but /models is not (gateway not initialised)1 ms
  • ✓probeJudgeBackend — OpenClaw › returns unavailable when configured model is not in /models catalog1 ms
  • ✓probeJudgeBackend — OpenClaw › returns ready when /health + /models both up and model matches1 ms
  • ✓probeJudgeBackend — Anthropic API (opt-in backend) › returns unavailable with setup guidance when no credential is present1 ms
  • ✓callJudgeWithMeta — effective backend labelling across fallback › FM happy path labels eval as foundationModels1 ms
  • ✓callJudgeWithMeta — effective backend labelling across fallback › FM→MLX fallback (fallbackToMlx=true) labels eval as mlx, not foundationModels2 ms
  • ✓callJudgeWithMeta — effective backend labelling across fallback › FM failure without fallbackToMlx propagates the error (no silent label drift)3 ms
  • ✓sanitizeForMlx — runtime fallback hygiene › strips FM endpoint and model when forcing to MLX1 ms
  • ✓sanitizeForMlx — runtime fallback hygiene › strips OpenClaw endpoint and model when forcing to MLX1 ms
  • ✓sanitizeForMlx — runtime fallback hygiene › returns the same cfg shape when already-clean MLX is passed1 ms
  • ✓sanitizeForMlx — runtime fallback hygiene › clears a custom MLX endpoint when source backend is MLX but model is overridden1 ms
  • ✓probeJudgeBackend — Foundation Models › returns unavailable when Swift daemon FM endpoint cannot be resolved50 ms
  • ✓probeJudgeBackend — Foundation Models › returns unavailable when FM endpoint responds with error body1 ms
  • ✓probeJudgeBackend — Foundation Models › returns ready when FM endpoint responds with text1 ms
bridge/src/__tests__/apme-judge-repetition-penalty.test.ts20/20
  • ✓MLX judge repetition penalty › sends the measured default when the user set nothing43 ms
  • ✓MLX judge repetition penalty › honours an explicit value2 ms
  • ✓MLX judge repetition penalty › omits the field entirely when set to 12 ms
  • ✓repetitionPenalty settings validation › drops 0.55 ms
  • ✓repetitionPenalty settings validation › drops 02 ms
  • ✓repetitionPenalty settings validation › drops -16 ms
  • ✓repetitionPenalty settings validation › drops 32 ms
  • ✓repetitionPenalty settings validation › drops high1 ms
  • ✓repetitionPenalty settings validation › drops null1 ms
  • ✓repetitionPenalty settings validation › keeps 11 ms
  • ✓repetitionPenalty settings validation › keeps 1.051 ms
  • ✓repetitionPenalty settings validation › keeps 1.51 ms
  • ✓repetitionPenalty settings validation › keeps 21 ms
  • ✓loadApmeConfig baseline › leaves repetitionPenalty unset by default so the leg default applies0 ms
  • ✓the retry ladder allows every diagnosis › recovers from penalty refusal, then JSON-mode refusal, then overflow6 ms
  • ✓the retry ladder allows every diagnosis › stops when the prompt is already at the compaction target instead of resending it3 ms
  • ✓openai-compatible leg is deliberately excluded › never sends the penalty, not even the default1 ms
  • ✓openai-compatible leg is deliberately excluded › does not send it even when the user set one explicitly2 ms
  • ✓a server that refuses repetition_penalty › drops the penalty first and keeps JSON mode2 ms
  • ✓a server that refuses repetition_penalty › costs one extra request on every call — nothing is remembered between calls4 ms
bridge/src/__tests__/apme-manual-review.test.ts2/2
  • ✓manual_review eval roundtrip › persists a manual_review eval on a task and reads it back with the layer flag intact31 ms
  • ✓manual_review eval roundtrip › manual_review evals do not contaminate the automatic-layer filters13 ms
bridge/src/__tests__/apme-observed-turn-response.test.ts11/11
  • ✓observed turn response archiving › archives the reply on the turn and as an assistant_message event35 ms
  • ✓observed turn response archiving › tags a tool-only turn so the judge skips it instead of scoring silence19 ms
  • ✓observed turn response archiving › keeps each turn's reply on its own turn across a multi-turn task18 ms
  • ✓observed turn response archiving › lands a late reply on the last closed turn without overwriting one17 ms
  • ✓observed turn response archiving › keeps the full OpenClaw final in one assistant slot (projection-first)19 ms
  • ✓observed turn response archiving › keeps the full OpenClaw final in one assistant slot (final-first)17 ms
  • ✓observed turn response archiving › retains a session-message projection when no chat final is observable14 ms
  • ✓Stop reply attribution (recordStopReply) › lands each reply on the turn its Stop closes, whatever opened that turn16 ms
  • ✓Stop reply attribution (recordStopReply) › never lands a reply a turn early when the previous turn kept none13 ms
  • ✓Stop reply attribution (recordStopReply) › with no open turn, fills the last closed turn once and never clobbers it13 ms
  • ✓Stop reply attribution (recordStopReply) › fills the empty slot an early Stop wrote when the deferred re-read finds the reply20 ms
bridge/src/__tests__/apme-openai-model-safety.test.ts1/1
  • ✓an unconfigured OpenAI-compatible judge never loads the first of multiple downloads33 ms
bridge/src/__tests__/apme-pareto.test.ts11/11
  • ✓computePareto › keeps non-dominated points and drops dominated ones6 ms
  • ✓computePareto › sorts the frontier cheapest → most expensive0 ms
  • ✓computePareto › ignores models below minSamples0 ms
  • ✓computePareto › never promotes placeholder identities or compares different categories0 ms
  • ✓computePareto › does not infer a price advantage over an unpriced model1 ms
  • ✓ApmeRecommender on the Pareto frontier › recommends only frontier models, cheapest-first under a tight budget34 ms
  • ✓ApmeRecommender on the Pareto frontier › returns null for an unpriced model and excludes it from a dollar budget16 ms
  • ✓ApmeRecommender on the Pareto frontier › filters unavailable and too-slow models before Pareto dominance14 ms
  • ✓ApmeRecommender on the Pareto frontier › keeps average cost/quality invariant when the same observations are repeated, including reopening28 ms
  • ✓ApmeRecommender on the Pareto frontier › does not recommend legacy runs without comparable task evidence14 ms
  • ✓ApmeRecommender on the Pareto frontier › normalizes the model scorecard by evaluated units, independent of repeated runs or unscored spending15 ms
bridge/src/__tests__/apme-prune.test.ts12/12
  • ✓APME retention — payload pruning (#302) › previewPrune (dry run) reports rows/bytes without changing anything28 ms
  • ✓APME retention — payload pruning (#302) › applyPrune replaces payloads only for rows strictly older than the cutoff13 ms
  • ✓APME retention — payload pruning (#302) › never touches a row whose age is unknown (ts=0)11 ms
  • ✓APME retention — payload pruning (#302) › never touches sample_events kinds other than tool, even when old21 ms
  • ✓APME retention — payload pruning (#302) › never deletes rows and never touches runs/tasks/turns/evals20 ms
  • ✓APME retention — payload pruning (#302) › is idempotent: a second apply over the same window reclaims nothing further13 ms
  • ✓APME retention — payload pruning (#302) › classifier.computeSignals treats a pruned Bash step as no signal, not a crash20 ms
  • ✓APME retention — payload pruning (#302) › a pruned tool call is read as "no content" by the judge trajectory renderer18 ms
  • ✓APME retention — payload pruning (#302) › the trajectory-churn scorer does not count two pruned calls as a duplicate24 ms
  • ✓APME retention — payload pruning (#302) › buildPrunedPayload / isPrunedPayload round-trip, and reject real content16 ms
  • ✓APME retention — payload pruning (#302) › vacuum() shrinks the on-disk file immediately, without requiring close() first32 ms
  • ✓APME retention — payload pruning (#302) › checkVacuumSpace gates on 1.1x the file size, using the injected probe13 ms
bridge/src/__tests__/apme-recommend-ordering.test.ts3/3
  • ✓cost-per-quality ordering › ranks unknown cost behind known-free and paid candidates4 ms
  • ✓cost-per-quality ordering › lets a known-free zero beat a real price0 ms
  • ✓cost-per-quality ordering › compares three-way so two unpriced keys never produce NaN1 ms
bridge/src/__tests__/apme-reference-judge.test.ts93/93
  • ✓one prompt for both judges › buildTaskJudgeInput produces exactly the prompt the live task judge sends53 ms
  • ✓one prompt for both judges › redacts each field before it is clipped, and leaves the local prompt as the live judge sent it21 ms
  • ✓one prompt for both judges › declines a task the live judge would decline, and writes nothing20 ms
  • ✓verdict schema from the rubric template › turns the seeded task_rollup template into a strict schema17 ms
  • ✓verdict schema from the rubric template › reads every seeded category rubric, so a template edit that breaks it fails here17 ms
  • ✓verdict schema from the rubric template › returns null rather than guessing when there is no template14 ms
  • ✓codex exec › reads the verdict and token usage from captured JSONL1 ms
  • ✓codex exec › reports a failed turn and skips lines that are not JSON0 ms
  • ✓codex exec › a verdict reached through a tool is not a reference verdict1 ms
  • ✓codex exec › a setting Codex ignored fails the run; the code-mode notice does not1 ms
  • ✓codex exec › keeps every isolation flag: no rollout, no user config (hooks), no tools, no web, prompt on stdin2 ms
  • ✓codex exec › reads the default model from the top level of config.toml only1 ms
  • ✓runCodexJudge against a stand-in codex binary › sends the prompt on stdin, closes it, and parses the reply41 ms
  • ✓runCodexJudge against a stand-in codex binary › kills a call that outlives its timeout and says so457 ms
  • ✓runCodexJudge against a stand-in codex binary › a timeout stops the process tree, not only the process it spawned1.6 s
  • ✓runCodexJudge against a stand-in codex binary › a tree that ignores SIGTERM gets SIGKILL after the grace1.8 s
  • ✓runCodexJudge against a stand-in codex binary › an abort stops the tree, reports interrupted, and removes the scratch directory108 ms
  • ✓runCodexJudge against a stand-in codex binary › decodes a character split across two reads321 ms
  • ✓runCodexJudge against a stand-in codex binary › a binary that cannot be spawned ends not_started18 ms
  • ✓runCodexJudge against a stand-in codex binary › a non-zero exit with no verdict says why, from the error line on stderr36 ms
  • ✓runCodexJudge against a stand-in codex binary › withholds a verdict the model reached through a tool35 ms
  • ✓binding a run to its dry run › reads --until as epoch ms or an ISO time, and refuses seconds, garbage and the future1 ms
  • ✓binding a run to its dry run › fingerprints the ordered pick list1 ms
  • ✓binding a run to its dry run › prints the --run command with the resolved time, the same arguments and the digest1 ms
  • ✓what a reference call records › records nothing for a call that was interrupted or never started: neither is about the task0 ms
  • ✓what a reference call records › records a timeout as a failed attempt, and a verdict under the local prompt's hash1 ms
  • ✓interrupting a run › turns a signal into an abort, once, and removes its handlers afterwards1 ms
  • ✓interrupting a run › removes its handlers when the run throws2 ms
  • ✓dry-run cost estimate › adds the fixed part to the prompt at the fitted per-script rates1 ms
  • ✓stderr reason › prefers the error line, falls back to the last line0 ms
  • ✓redaction before egress › removes pairing tokens and credential shapes, keeps hashes and ids a judge reads as evidence1 ms
  • ✓redaction before egress › leaves clean text unchanged0 ms
  • ✓redaction before egress › redacts git clone https://gho_ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ab@github.com/x/y0 ms
  • ✓redaction before egress › redacts GH_TOKEN=ghs_ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890 ms
  • ✓redaction before egress › redacts token github_pat_11ABCDEFG0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGH0 ms
  • ✓redaction before egress › redacts session=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.dozjgNryP4J3jVmNHl0w5N_XgL0n3I9PlFUP0THsR8U0 ms
  • ✓redaction before egress › redacts curl -H "authorization: bearer abcDEF123456ghiJKL789" https://x0 ms
  • ✓redaction before egress › redacts BEARER abcdefghijklmnop12340 ms
  • ✓redaction before egress › redacts curl -H 'Authorization: token 0123456789abcdef0123456789abcdef01234567' api0 ms
  • ✓redaction before egress › redacts Authorization: Basic dXNlcjpwYXNzd29yZA==0 ms
  • ✓redaction before egress › redacts psql postgres://admin:s3cr3t@db.internal:5432/app0 ms
  • ✓redaction before egress › redacts redis://:hunter2@cache:63790 ms
  • ✓redaction before egress › redacts HF_TOKEN=hf_abcdefghijklmnopqrstuvwxyzABCDEFGH0 ms
  • ✓redaction before egress › redacts export ANTHROPIC_AUTH_TOKEN=a4f3c2b1a9e8d7c6b5a4f3c2b1a9e8d7c.AbCdEfGhIjKlMnOp0 ms
  • ✓redaction before egress › redacts DB_PASSWORD=supersecret0 ms
  • ✓redaction before egress › redacts PGPASSWORD=correcthorse0 ms
  • ✓redaction before egress › redacts {"password": "hunter2", "user": "bob"}0 ms
  • ✓redaction before egress › redacts password: 'p@ss w0rd'0 ms
  • ✓redaction before egress › redacts client_secret=Zx8kQ2mN5pR7tV9w0 ms
  • ✓redaction before egress › redacts api_key: abc123def456ghi0 ms
  • ✓redaction before egress › redacts headers: {"X-Api-Key": "abc123def456ghi789"}0 ms
  • ✓redaction before egress › redacts mysql --password hunter2 -u root0 ms
  • ✓redaction before egress › redacts --api-key=abc123def456ghi7890 ms
  • ✓redaction before egress › redacts {"command":"curl -d '{\"password\":\"hunter2\"}' https://x"}0 ms
  • ✓redaction before egress › redacts {"command":"export SECRET_TOKEN=abc123def456 && run"}0 ms
  • ✓redaction before egress › redacts before -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEA abcdef0 ms
  • ✓redaction before egress › leaves The token expired, so pass the API key again; use bearer authentication. alone0 ms
  • ✓redaction before egress › leaves const token = getToken(); alone0 ms
  • ✓redaction before egress › leaves const apiKey = process.env.OPENAI_API_KEY; alone0 ms
  • ✓redaction before egress › leaves password: string; alone0 ms
  • ✓redaction before egress › leaves interface User { password?: string } alone0 ms
  • ✓redaction before egress › leaves max_tokens=4096 and tokens: 1500 alone0 ms
  • ✓redaction before egress › leaves TOKEN_TYPE=bearer alone0 ms
  • ✓redaction before egress › leaves SORT_KEY=createdAt alone0 ms
  • ✓redaction before egress › leaves primaryKey: "id" alone0 ms
  • ✓redaction before egress › leaves fetch(url, { credentials: 'include' }) alone0 ms
  • ✓redaction before egress › leaves ssh://git@github.com/x/y.git alone0 ms
  • ✓redaction before egress › leaves git@github.com:x/y.git alone0 ms
  • ✓redaction before egress › leaves https://example.com/a/b?x=1 alone0 ms
  • ✓redaction before egress › leaves bypass=true; compass: north alone0 ms
  • ✓redaction before egress › leaves if (password == null) return; alone0 ms
  • ✓redaction before egress › leaves token = this.token alone0 ms
  • ✓redaction before egress › leaves PASSWORD_MIN_LENGTH=8 alone0 ms
  • ✓redaction before egress › leaves --token-file ~/.tok --max-tokens 4096 alone0 ms
  • ✓sampling › a task keeps its place when the pool grows, so a dry run shows what --run sends1 ms
  • ✓sampling › skips what this judge already scored, so the next run continues1 ms
  • ✓sampling › filters by category0 ms
  • ✓sampling › sends only allow-listed projects, matched case-insensitively; a task with no project never passes the list1 ms
  • ✓sampling › filters by the local outcome band, at the task outcome thresholds1 ms
  • ✓agreement › perfect agreement1 ms
  • ✓agreement › a lenient local judge has positive bias, and bands disagree where it passes what the reference fails0 ms
  • ✓agreement › kappa is undefined when both judges put everything in one band0 ms
  • ✓agreement › spearman uses average ranks for ties and is undefined for a constant side0 ms
  • ✓agreement › bootstrap intervals are deterministic and bracket the point estimate31 ms
  • ✓agreement › empty input0 ms
  • ✓reference verdicts in the store › offers closed tasks with their latest local overall verdict, newest first15 ms
  • ✓reference verdicts in the store › stores attempts apart from evals; only successful verdicts count as scored12 ms
  • ✓reference verdicts in the store › reports count a re-scored task once, by its latest verdict, and rank disagreements by size19 ms
  • ✓reference verdicts in the store › keeps sampling designs apart: a band-targeted sample is not pooled into the uniform estimate11 ms
  • ✓reference verdicts in the store › reads the pool as it stood at untilMs: a task judged after it cannot enter12 ms
  • ✓reference verdicts in the store › a plan made at untilMs picks the same list after later activity, and names what to drop15 ms
  • ✓reference verdicts in the store › parks a task after two failed attempts in one design, and --retry-parked sends it again19 ms
  • ✓reference verdicts in the store › labels the design from the filters it was drawn under19 ms
bridge/src/__tests__/apme-rehydrate.test.ts14/14
  • ✓collector rehydration after a restart › keeps distinct CI wait spans when a collector restarts during the same turn42 ms
  • ✓collector rehydration after a restart › the next prompt continues the SAME run and task instead of opening a fresh run16 ms
  • ✓collector rehydration after a restart › re-arms the idle-gap timer for the REMAINDER of the gap, and closes the task as idle_gap13 ms
  • ✓collector rehydration after a restart › a gap that fully elapsed during the downtime closes on the next tick14 ms
  • ✓collector rehydration after a restart › an open turn is resumed with its tool counters recovered, and its late Stop closes it as `stop`13 ms
  • ✓collector rehydration after a restart › a codex turn whose rollout shows task_complete is closed as synthetic_stop with the reply15 ms
  • ✓collector rehydration after a restart › a codex turn with no completion in its rollout stays open — no evidence is not a verdict12 ms
  • ✓collector rehydration after a restart › a claude turn is never probed against a codex rollout12 ms
  • ✓collector rehydration after a restart › two open runs under one session resolve to the newest; the older stays for the reaper14 ms
  • ✓collector rehydration after a restart › a claude turn open at startup that its transcript says ended is closed at the transcript time, with its reply18 ms
  • ✓collector rehydration after a restart › a claude turn whose transcript tail is still mid-turn stays open11 ms
  • ✓collector rehydration after a restart › a codex turn whose rollout records a failure closes as aborted, not as a recovered Stop11 ms
  • ✓collector rehydration after a restart › releaseRun drops the adopted mapping so a later hook opens a fresh run12 ms
  • ✓collector rehydration after a restart › a run opened live before rehydrate is not displaced by a stale store row11 ms
bridge/src/__tests__/apme-retention-parity.test.ts1/1
  • ✓APME retention shared policy › keeps generated Node and Swift policy in sync4 ms
  • ○APME retention shared policy › matches actual Swift SQLite preview, markers, metrics and preserved records including Unicode/NUL
bridge/src/__tests__/apme-rubric-migration.test.ts3/3
  • ✓general rubric missed-axis migration › fresh install seeds the clarified prompt directly38 ms
  • ✓general rubric missed-axis migration › upgrades a byte-identical legacy prompt on reopen, appending with parentVer24 ms
  • ✓general rubric missed-axis migration › leaves a user-edited general rubric alone28 ms
bridge/src/__tests__/apme-runner.test.ts50/50
  • ✓detectLanguage › recognizes TypeScript from package.json36 ms
  • ✓detectLanguage › recognizes Swift from .xcodeproj30 ms
  • ✓detectLanguage › recognizes Kotlin from build.gradle.kts28 ms
  • ✓detectLanguage › returns null for unknown paths27 ms
  • ✓parseJudgeJson › extracts scores and reasoning from a clean JSON blob1 ms
  • ✓parseJudgeJson › rescales 0-10 axis to 0-10 ms
  • ✓parseJudgeJson › tolerates prose wrapping and code fences0 ms
  • ✓parseJudgeJson › repairs trailing commas outside strings from local judge output2 ms
  • ✓parseJudgeJson › repairs a missing opening quote on an object key without changing string evidence0 ms
  • ✓parseJudgeJson › reads the verdict when the model keeps talking past it, braces included0 ms
  • ✓parseJudgeJson › does not let a brace inside a string close the object early0 ms
  • ✓parseJudgeJson › refuses to guess which verdict is the verdict: an unstripped thinking block0 ms
  • ✓parseJudgeJson › refuses to guess which verdict is the verdict: a draft above the final answer0 ms
  • ✓parseJudgeJson › ignores a non-verdict object beside the verdict0 ms
  • ✓parseJudgeJson › stamps the API judge with the model it will actually call0 ms
  • ✓parseJudgeJson › returns null when there is no JSON at all0 ms
  • ✓parseJudgeJson › returns null when overall is missing0 ms
  • ✓effectiveJudgeModelTag › uses cfg.model for MLX when no pin is set1 ms
  • ✓effectiveJudgeModelTag › uses llm.mlx pin over cfg.model for MLX backend1 ms
  • ✓effectiveJudgeModelTag › ignores llm.mlx pin for non-MLX backends1 ms
  • ✓effectiveJudgeModelTag › foundationModels uses the Swift-parity judgeModelLabel1 ms
  • ✓callJudge foundationModels routing › returns FM text on ok response30 ms
  • ✓callJudge foundationModels routing › throws when FM reports unavailable and fallback is disabled38 ms
  • ✓callJudge foundationModels routing › falls back to MLX when fallbackToMlx is true73 ms
  • ✓callJudge foundationModels routing › caches auto-resolved FM endpoint failure and routes subsequent calls straight to MLX36 ms
  • ✓callJudge foundationModels routing › compacts and retries once when MLX reports an exact context overflow24 ms
  • ✓shouldJudge gating › never runs when sampleRate is 00 ms
  • ✓shouldJudge gating › skips clear passes when onlyWhenDisagreement is true0 ms
  • ✓shouldJudge gating › runs on failures when onlyWhenDisagreement is true0 ms
  • ✓shouldJudge gating › runs for clear passes when onlyWhenDisagreement is false0 ms
  • ✓ApmeRunner duplicate guard › does not enqueue the same run while it is already queued or running32 ms
  • ✓ApmeRunner.runOne › records deterministic failures and invokes judge with rubric prompt27 ms
  • ✓ApmeRunner.runOne › skips layer 2 on a clean pass when onlyWhenDisagreement is true14 ms
  • ✓ApmeRunner.runOne › does not notify onResult for no-op run evals10 ms
  • ✓ApmeRunner.runOne › enqueueTurn skips judge for tool_only and empty turns19 ms
  • ✓ApmeRunner.runOne › swallows judge errors without inserting partial rows17 ms
  • ✓runDeterministic (end-to-end spawn) › runs sh-based commands against the project path and reports pass85 ms
  • ✓runDeterministic (end-to-end spawn) › captures exit code 1 as tests_pass=075 ms
  • ✓runDeterministic (end-to-end spawn) › skips entirely when the worktree has no changes67 ms
  • ✓onTaskEvaluated › fires after enqueueTask resolves and carries the composite score + outcome17 ms
  • ✓onTaskEvaluated › derives outcome=fail for low composite scores12 ms
  • ✓onTaskEvaluated › preserves a manually-set outcome — judge does not overwrite `abandoned`13 ms
  • ✓buildJudgePrompt › includes rubric prompt + task + context fields0 ms
  • ✓buildJudgePrompt › collects the diff with user diff drivers disabled (--no-ext-diff)39 ms
  • ✓judgeBackendSupported › darwin supports every backend0 ms
  • ✓judgeBackendSupported › darwin-only backends (foundationModels, mlx) are unsupported elsewhere0 ms
  • ✓judgeBackendSupported › portable backends stay supported off-darwin0 ms
  • ✓judge failure backoff › a failed judge blocks immediate re-enqueue and retries after the backoff expires13 ms
  • ✓judge failure backoff › a successful judge clears the failure state and persists evals11 ms
  • ✓judge failure backoff › parks the run after JUDGE_RETRY_MAX_ATTEMPTS failures until restart10 ms
bridge/src/__tests__/apme-sample.test.ts7/7
  • ✓ApmeStore sample events › round-trips typed trajectory events into a SessionSample25 ms
  • ✓ApmeStore sample events › dedups identical (task, dedupKey) at storage time12 ms
  • ✓ApmeStore sample events › resolves a pending tool event in place (one row, not two)11 ms
  • ✓ApmeStore sample events › recomputeSampleCost sums ModelEvents into the task header11 ms
  • ✓ApmeStore sample events › local models price at $0; unknown models fall back to $0 but flag unpriced10 ms
  • ✓ApmeCollector → SessionSample (Phase 1 dual-write) › builds a typed trajectory (user → tool pending→resolved → assistant) and cost18 ms
  • ✓ApmeCollector → SessionSample (Phase 1 dual-write) › fires onSampleEvent once per inserted event (no dup double-emit)11 ms
bridge/src/__tests__/apme-scorers.test.ts6/6
  • ✓TrajectoryQualityScorer › penalizes consecutive identical tool calls (churn)4 ms
  • ✓TrajectoryQualityScorer › penalizes tool errors0 ms
  • ✓TrajectoryQualityScorer › does not apply with fewer than 2 tools0 ms
  • ✓ToolEfficiencyScorer › is the success rate of resolved tools1 ms
  • ✓runSampleScorers › runs only applicable scorers and tags layer/scorer2 ms
  • ✓runSampleScorers › returns nothing for a toolless conversation sample0 ms
bridge/src/__tests__/apme-serving-integration.test.ts59/59
  • ✓Ollama-compatible task judge persistence and recovery › leaves no score after http failure and persists on recovery143 ms
  • ✓Ollama-compatible task judge persistence and recovery › leaves no score after json failure and persists on recovery123 ms
  • ✓Ollama-compatible task judge persistence and recovery › leaves no score after timeout failure and persists on recovery114 ms
  • ✓Ollama-compatible task judge persistence and recovery › leaves no score after length failure and persists on recovery116 ms
  • ✓Ollama-compatible task judge persistence and recovery › leaves no score after empty failure and persists on recovery113 ms
  • ✓Ollama-compatible task judge persistence and recovery › coalesces duplicate in-flight task requests112 ms
  • ✓incomplete judge response › mlx rejects a response cut mid-object5 ms
  • ✓incomplete judge response › openai rejects a response cut mid-object1 ms
  • ✓incomplete judge response › mlx rejects a cut that landed after the object closed1 ms
  • ✓incomplete judge response › openai rejects a cut that landed after the object closed1 ms
  • ✓incomplete judge response › mlx rejects choices that is not an array1 ms
  • ✓incomplete judge response › openai rejects choices that is not an array1 ms
  • ✓mlx shared response contract › 'complete'1 ms
  • ✓mlx shared response contract › 'legacy without finish reason'1 ms
  • ✓mlx shared response contract › 'complete JSON at output limit'1 ms
  • ✓mlx shared response contract › 'truncated JSON'1 ms
  • ✓mlx shared response contract › 'empty'1 ms
  • ✓mlx shared response contract › 'whitespace'1 ms
  • ✓mlx shared response contract › 'missing content'1 ms
  • ✓mlx shared response contract › 'non-string content'1 ms
  • ✓mlx shared response contract › 'no choices'1 ms
  • ✓mlx shared response contract › 'choices as an object map'1 ms
  • ✓mlx shared response contract › 'choices missing'1 ms
  • ✓mlx shared response contract › 'closed object at the output limit, th…'1 ms
  • ✓mlx shared response contract › 'brace inside a string does not close …'1 ms
  • ✓mlx shared response contract › 'closed object at the output limit tha…'1 ms
  • ✓mlx shared response contract › 'a closed scratchpad above a verdict t…'1 ms
  • ✓mlx shared response contract › 'a scratchpad above the real verdict'1 ms
  • ✓openai shared response contract › 'complete'0 ms
  • ✓openai shared response contract › 'legacy without finish reason'0 ms
  • ✓openai shared response contract › 'complete JSON at output limit'1 ms
  • ✓openai shared response contract › 'truncated JSON'0 ms
  • ✓openai shared response contract › 'empty'0 ms
  • ✓openai shared response contract › 'whitespace'0 ms
  • ✓openai shared response contract › 'missing content'0 ms
  • ✓openai shared response contract › 'non-string content'0 ms
  • ✓openai shared response contract › 'no choices'0 ms
  • ✓openai shared response contract › 'choices as an object map'0 ms
  • ✓openai shared response contract › 'choices missing'0 ms
  • ✓openai shared response contract › 'closed object at the output limit, th…'0 ms
  • ✓openai shared response contract › 'brace inside a string does not close …'0 ms
  • ✓openai shared response contract › 'closed object at the output limit tha…'0 ms
  • ✓openai shared response contract › 'a closed scratchpad above a verdict t…'0 ms
  • ✓openai shared response contract › 'a scratchpad above the real verdict'0 ms
  • ✓Anthropic API response contract › 'complete'0 ms
  • ✓Anthropic API response contract › 'thinking block before the verdict is …'0 ms
  • ✓Anthropic API response contract › 'cut after the object closed'0 ms
  • ✓Anthropic API response contract › 'cut mid-object'0 ms
  • ✓Anthropic API response contract › 'refusal'0 ms
  • ✓Anthropic API response contract › 'no text blocks'0 ms
  • ✓Anthropic API response contract › 'empty content array'0 ms
  • ✓Anthropic API response contract › 'content is not an array'0 ms
  • ✓Anthropic API response contract › 'content missing entirely'0 ms
  • ✓optional OpenAI-compatible reasoning control › sends only the requested effort: undefined1 ms
  • ✓optional OpenAI-compatible reasoning control › sends only the requested effort: none0 ms
  • ✓optional OpenAI-compatible reasoning control › sends only the requested effort: high0 ms
  • ✓task judge backlog drain › skips the parked head instead of spending the tick on it114 ms
  • ✓task judge backlog drain › still feeds one task per tick9 ms
  • ✓task judge backlog drain › feeds nothing when every candidate is parked, and says so once114 ms
bridge/src/__tests__/apme-settings.test.ts20/20
  • ✓loadApmeConfig — defaults + merge behaviour › validates optional reasoning effort none4 ms
  • ✓loadApmeConfig — defaults + merge behaviour › validates optional reasoning effort high1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › validates optional reasoning effort unsupported1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › validates optional reasoning effort null0 ms
  • ✓loadApmeConfig — defaults + merge behaviour › returns full defaults when settings.json does not exist1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › returns full defaults when settings.json has no apme section1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › returns defaults on malformed JSON (must not throw)1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › merges user-set fields on top of defaults1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › keeps the Foundation Models fallback for the default backend only2 ms
  • ✓loadApmeConfig — defaults + merge behaviour › restores the default chain when judge.backend is an unknown string1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › clamps sampleRate to [0, 1]1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › falls back to mlx when judge.backend is unknown string1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › honours judge.backend="api" (opt-in Anthropic API judge) without downgrading1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › also wipes endpoint/model when falling back from unknown backend → "mlx"1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › preserves user-set endpoint/model when keeping their chosen backend1 ms
  • ✓loadApmeConfig — defaults + merge behaviour › respects explicit enabled=false (opt-out)0 ms
  • ✓loadApmeConfig — defaults + merge behaviour › clamps deterministic.timeoutSec to [5, 1800]1 ms
  • ✓loadApmeConfig — DEFAULT_APME_CONFIG sanity › default backend is local MLX with on-device Foundation Models fallback0 ms
  • ✓loadApmeConfig — DEFAULT_APME_CONFIG sanity › default sampleRate is 1.0 (judge every closed run; cost is local)0 ms
  • ✓loadApmeConfig — DEFAULT_APME_CONFIG sanity › default enabled is true (zero-config activation)0 ms
bridge/src/__tests__/apme-stop-delivery.test.ts29/29
  • ✓turns.end_source › a real Stop closes the turn and tags it `stop`32 ms
  • ✓turns.end_source › a watchdog-injected Stop is tagged `synthetic_stop`, not `stop`13 ms
  • ✓turns.end_source › a turn still open when the next prompt arrives is tagged `next_prompt`14 ms
  • ✓turns.end_source › a duplicate/late Stop cannot re-attribute an already-closed turn11 ms
  • ✓turns.end_source › `ended_at` is stamped at the Stop, not at the following prompt12 ms
  • ✓turns.end_source › a reaped turn lands in `runClose`, not `sessionEnd`, and stays out of the loss ratio12 ms
  • ✓turns.end_source › closing the run tags the open turn `session_end`, `/clear` tags it `clear`16 ms
  • ✓turns.end_source › a cancel is tagged `interrupted`, even though it arrives as a synthetic Stop10 ms
  • ✓turns.end_source › a client abort is tagged `aborted`, even though it arrives as a synthetic Stop11 ms
  • ✓turns.end_source › a cancel outranks an abort when both flags somehow arrive10 ms
  • ✓turns.end_source › a displaced turn whose transcript shows a cancel is `interrupted`, not `next_prompt`11 ms
  • ✓turns.end_source › a displaced turn whose transcript shows a client abort is `aborted`11 ms
  • ✓turns.end_source › a displaced turn the assistant never answered is `superseded`, not a lost Stop14 ms
  • ✓turns.end_source › a displaced turn that called tools is never `superseded`, whatever the transcript says13 ms
  • ✓turns.end_source › no evidence in the window still means `next_prompt` — absence is never a verdict11 ms
  • ✓turns.end_source › never reads a transcript for a non-Claude agent or a pathless hook13 ms
  • ✓turns.end_source › an unreadable transcript falls back to `next_prompt` rather than guessing12 ms
  • ✓turns.end_source › a running turn displaced by a queued message is `injected`, not a lost Stop15 ms
  • ✓turns.end_source › a turn that finished before the queued message arrived lost its Stop — `next_prompt`12 ms
  • ✓turns.end_source › the previous turn's end_turn inside the slack window does not finish this one12 ms
  • ✓turns.end_source › a typed prompt into a running turn stays `next_prompt` — it carries no envelope15 ms
  • ✓turns.end_source › a queued message displacing a turn that never ran is still `superseded`11 ms
  • ✓turns.end_source › a queued message never makes an unreadable transcript into a verdict13 ms
  • ✓turns.end_source › the response still lands on the turn when the Stop closes it first13 ms
  • ✓ApmeStore.stopDelivery › buckets each closing signal and keeps open turns in the denominator16 ms
  • ✓ApmeStore.stopDelivery › counts cancels in their own column, outside every loss bucket14 ms
  • ✓ApmeStore.stopDelivery › reports pre-instrument rows separately instead of guessing a bucket14 ms
  • ✓ApmeStore.stopDelivery › counts injected turns in their own column, outside every loss bucket12 ms
  • ✓ApmeStore.stopDelivery › windows on started_at and can filter to one agent13 ms
bridge/src/__tests__/apme-subagent-sample.test.ts4/4
  • ✓subagent census → SessionSample producer › records lifecycle evidence, preserves it through model updates, and exposes rollup + graph nodes48 ms
  • ✓subagent census → SessionSample producer › accounts for foreground CI blocking without changing Stop attribution (background=false)27 ms
  • ✓subagent census → SessionSample producer › accounts for foreground CI blocking without changing Stop attribution (background=true)20 ms
  • ✓subagent census → SessionSample producer › refuses to guess a parent task edge when no task is active15 ms
bridge/src/__tests__/apme-task-boundary.test.ts17/17
  • ✓ApmeCollector task boundaries › first UserPromptSubmit opens a task and attaches the turn24 ms
  • ✓ApmeCollector task boundaries › TodoWrite all-completed is a soft hint — does NOT close the task11 ms
  • ✓ApmeCollector task boundaries › TodoWrite all-completed does not split — later turns stay in one task12 ms
  • ✓ApmeCollector task boundaries › TodoWrite with partial completion does NOT close the task10 ms
  • ✓ApmeCollector task boundaries › next UserPromptSubmit after an explicit boundary opens a new task12 ms
  • ✓ApmeCollector task boundaries › splitRun closes the active task with boundary=clear17 ms
  • ✓ApmeCollector task boundaries › closeRun closes the active task with boundary=session_end10 ms
  • ✓ApmeCollector task boundaries › onTaskClosed fires on an explicit boundary with the task metadata10 ms
  • ✓ApmeCollector task boundaries › onTaskOpened is DEFERRED: fires on the second turn, not the first11 ms
  • ✓ApmeCollector task boundaries › onTaskOpened also promotes on a TodoWrite plan within the first turn10 ms
  • ✓ApmeCollector task boundaries › groups follow-up prompts under one header; single-turn stays headerless13 ms
  • ✓ApmeCollector task boundaries › onTaskClosed payload includes session, agent, project, and timing10 ms
  • ✓ApmeCollector task boundaries › empty task (no turns between two boundaries) is dropped11 ms
  • ✓ApmeRunner task eval › enqueueTask invokes judge with turns and persists summary + scores35 ms
  • ✓ApmeRunner task eval › skips task eval when all turns are tool_only / empty32 ms
  • ✓ApmeRunner task judge parking › a task parked after two failures is offered again once the park expires39 ms
  • ✓P1 long task judge evidence › includes initial request, final response and older validation output in a bounded prompt3 ms
bridge/src/__tests__/apme-task-gradeability.test.ts44/44
  • ✓taskGradeability › a task with no agent reply and no real tool trajectory is not gradeable4 ms
  • ✓taskGradeability › a replyless task whose tool trajectory is the agent's work is gradeable1 ms
  • ✓taskGradeability › a task whose every turn was ended by the client is not gradeable, whatever text the notice carried0 ms
  • ✓taskGradeability › an aborted turn beside a real one does not block the judge, and its notice is not the reply0 ms
  • ✓taskGradeability › a single tool-less exchange short enough to be a greeting is trivial1 ms
  • ✓taskGradeability › a task opened only by background-job notices has no request to grade, whatever work followed0 ms
  • ✓taskGradeability › honours the collector's response_kind tag over raw text0 ms
  • ✓taskGradeability › reads the reason back off notes_json and ignores judge notes1 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › has enough vectors to be a gate0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › an empty task has no agent work0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a thin replyless trajectory is not enough evidence0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › three tool calls are independently gradeable work0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a file write is independently gradeable work0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › an abort notice and aborted tools are not the agent's work0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › an aborted turn is ignored beside a thin real turn0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a real turn beside an aborted one remains gradeable0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a short tool-less greeting is not a task0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a substantial answer to a short question is gradeable0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › the shortest measured real instruction clears the prompt cap0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › even a short exchange is work when it used a tool0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › the collector response-kind tag outranks leftover raw text0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › length parity uses JavaScript UTF-16 code units0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a task opened only by background-job notices has no request to grade, whatever work followed0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a typed request beside notices keeps the task gradeable0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › the notice rule is checked before the abort rule0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a turn with no captured prompt is not a notice0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › another session's message is a request, so it stays gradeable0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › only the background-job notice is declined; a teammate's message can carry a request0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a prompt that quotes the tag further in is the user's own text0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › leading whitespace before the envelope is skipped0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › the tag matches in either case and may carry attributes0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › whitespace after the tag name opens the envelope even at the end of the prompt0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a tag name with nothing after it is not the envelope0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a longer tag name is not the envelope0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › case folding is ASCII-only: the Kelvin sign U+212A is not a k0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a leading BOM U+FEFF is JavaScript whitespace and is skipped0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a leading NEL U+0085 is not JavaScript whitespace, so the prompt does not open with the envelope0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a BOM U+FEFF after the tag name opens the envelope0 ms
  • ✓shared vector file parity (shared/task-gradeability-vectors.json) › a NEL U+0085 after the tag name does not open the envelope0 ms
  • ✓runner declines what it cannot grade › does not call the judge for a task with no reply, and stamps the reason on the row39 ms
  • ✓runner declines what it cannot grade › judges a task that has a reply, inheriting the run category when the task row has none25 ms
  • ✓judge backlog drain › offers closed unjudged tasks inside the window, never declined ones17 ms
  • ✓judge backlog drain › a task whose judge keeps failing is offered twice per process, then left alone21 ms
  • ✓retractUngradeableVerdicts › withdraws verdicts reached without the agent's work and keeps the rest27 ms
bridge/src/__tests__/apme-task-milestone.test.ts2/2
  • ✓TodoWrite-all-completed → onTaskMilestone › fires once per (task, turn) with attribution; not on partial todos54 ms
  • ✓opencodeIdleGapTaskBoundary › builds a task_boundary span with the idle_gap signal1 ms
bridge/src/__tests__/apme-task-page-and-graph.test.ts17/17
  • ✓task page › carries the run context a bare task row lacks37 ms
  • ✓task page › counts turns whose reply was never archived14 ms
  • ✓task page › pages without losing the unfiltered total19 ms
  • ✓task page › filters by native session, agent, project and open/closed state22 ms
  • ✓task page › hides bookkeeping shells the collector tagged _empty23 ms
  • ✓task page › offers facets from the whole store, not the current page17 ms
  • ✓tool payload path extraction › reads a path from the tool input, wherever the shape puts it1 ms
  • ✓tool payload path extraction › returns null rather than inventing a path1 ms
  • ✓tool payload path extraction › keys a file on its path relative to the project root0 ms
  • ✓tool payload path extraction › falls back to the path tail without claiming two paths are one file0 ms
  • ✓graph projection › projects the containment spine and the derived entity hubs20 ms
  • ✓graph projection › connects two tasks that share only a file — the cross-link no ancestor gives17 ms
  • ✓graph projection › collapses repeated calls into one weighted edge12 ms
  • ✓graph projection › draws the /clear continuation edge only when both runs are in the slice11 ms
  • ✓graph projection › prunes one-off hubs but never containment nodes14 ms
  • ✓graph projection › reports what it left out so a partial slice never reads as complete16 ms
  • ✓graph projection › attaches trajectory to turns when asked, and to the task when not16 ms
bridge/src/__tests__/apme-telemetry-envelope.test.ts33/33
  • ✓claudeHookToSpans › emits turn_start with prompt for UserPromptSubmit5 ms
  • ✓claudeHookToSpans › detects /clear and emits a task_boundary span (not turn_start)1 ms
  • ✓claudeHookToSpans › drops Claude task notification payloads from UserPromptSubmit1 ms
  • ✓claudeHookToSpans › emits tool_call for PreToolUse with gen_ai.tool.name1 ms
  • ✓claudeHookToSpans › emits tool_result for PostToolUse0 ms
  • ✓claudeHookToSpans › falls through to raw_step for unknown events (Stop, SessionEnd, …)1 ms
  • ✓claudeHookToSpans › handles legacy { prompt: ... } shape on UserPromptSubmit0 ms
  • ✓timelineEntryToSpans › translates chat_start to turn_start with detail as prompt3 ms
  • ✓timelineEntryToSpans › translates chat_response to turn_response0 ms
  • ✓timelineEntryToSpans › translates chat_end with response detail to turn_response with fallback flag0 ms
  • ✓timelineEntryToSpans › drops chat_response / chat_end with empty body0 ms
  • ✓timelineEntryToSpans › translates tool_request with first-token tool name0 ms
  • ✓timelineEntryToSpans › codex_user_prompt_submit → turn_start span17 ms
  • ✓timelineEntryToSpans › codex_user_prompt_submit with /clear → task_boundary span0 ms
  • ✓timelineEntryToSpans › codex_tool_start → tool_call span with tool name0 ms
  • ✓timelineEntryToSpans › codex_tool_end → tool_result span0 ms
  • ✓timelineEntryToSpans › codex_stop / codex_session_start / codex_turn_complete → raw_step1 ms
  • ✓timelineEntryToSpans › translates tool_exec the same as tool_request (legacy + Codex paths)0 ms
  • ✓timelineEntryToSpans › translates tool_resolved to a tool_result span0 ms
  • ✓ApmeCollector.ingestSpan dispatch › turn_start span opens a turn and records the prompt40 ms
  • ✓ApmeCollector.ingestSpan dispatch › turn_response span persists the response on the active turn20 ms
  • ✓ApmeCollector.ingestSpan dispatch › tool_call span increments tool_calls on the active turn27 ms
  • ✓ApmeCollector.ingestSpan dispatch › chat_end fallback does not clobber a prior closed turn response27 ms
  • ✓ApmeCollector.ingestSpan dispatch › Codex timeline path opens turn and counts tools (timelineEntryToSpans)25 ms
  • ✓ApmeCollector.ingestSpan dispatch › task_boundary span with signal=clear splits the run22 ms
  • ✓ApmeCollector.ingestSpan dispatch › task_boundary span with signal=manual closes the active task20 ms
  • ✓ApmeCollector.ingestSpan dispatch › task_boundary span with signal=idle_gap closes the active task20 ms
  • ✓ApmeCollector.ingestSpan dispatch › task_boundary span with signal=todo_complete is a soft hint — does NOT close the task17 ms
  • ✓ApmeCollector.ingestSpan dispatch › task_boundary span with an unknown signal is dropped (no task close, no throw)22 ms
  • ✓ApmeCollector.ingestSpan dispatch › raw_step span inserts a steps row without lifecycle effects22 ms
  • ✓ApmeCollector.ingestSpan dispatch › session_meta span updates the model id on the run35 ms
  • ✓ApmeCollector.ingestSpan dispatch › timeline adapter feeds the same dispatch path correctly38 ms
  • ✓eval-schema constants › exports a stable schema version string0 ms
bridge/src/__tests__/apme-turn-identity.test.ts4/4
  • ✓updateModel stamps the turn, not just the run › the active turn carries the model and its normalized provider42 ms
  • ✓updateModel stamps the turn, not just the run › a model learned at session_end, after the last turn closed, lands on that turn16 ms
  • ✓updateModel stamps the turn, not just the run › a provider the producer names is the endpoint, ahead of the model id's maker24 ms
  • ✓readModelFromTranscript › skips the <synthetic> model Claude Code stamps on client abort notices1 ms
bridge/src/__tests__/apme-work-board-plan.test.ts4/4
  • ✓Work board page query plan › keeps both generated index sets in sync with the canonical SQL18 ms
  • ✓Work board page query plan › keeps Work board metadata probes out of prompt/response rows and temporary sorts12 ms
  • ✓Work board page query plan › serves the per-task tool count from a (task_id, kind) covering index, never from the kind index10 ms
  • ✓Work board page query plan › keeps the prune index — the fix is an additional index, not the removal of the #302 one10 ms
bridge/src/__tests__/fm-helper-arch.test.ts10/10
  • ✓machoMatchesArch › accepts a thin binary matching the requested arch2 ms
  • ✓machoMatchesArch › rejects a thin binary built for the other CPU0 ms
  • ✓machoMatchesArch › accepts a fat binary that carries a native slice0 ms
  • ✓machoMatchesArch › rejects a fat binary with no native slice0 ms
  • ✓machoMatchesArch › rejects non-Mach-O and truncated input0 ms
  • ✓machoMatchesArch › rejects a truncated fat header instead of over-reading0 ms
  • ✓machoMatchesArch › rejects unknown architectures outright0 ms
  • ✓npm tarball determinism › never ships a baked helper binary1 ms
  • ✓npm tarball determinism › allows only canonical license preparation, never machine-dependent builds, before pack0 ms
  • ✓npm tarball determinism › ships the helper source and build script for on-demand compilation0 ms
bridge/src/__tests__/fm-helper-build.test.ts6/6
  • ✓fm-helper build invariants › declares a non-empty NSMicrophoneUsageDescription3 ms
  • ✓fm-helper build invariants › declares a non-empty NSSpeechRecognitionUsageDescription0 ms
  • ✓fm-helper build invariants › embeds the plist into the __TEXT segment at link time1 ms
  • ✓fm-helper build invariants › ad-hoc signs with the identifier the plist declares0 ms
  • ✓fm-helper build invariants › exposes instruction-less eval sessions and the native output limit1 ms
  • ✓fm-helper build invariants › disclaims TCC responsibility by re-executing in place before serving1 ms
  • ○fm-helper build invariants › ships a binary carrying the usage strings
  • ○fm-helper build invariants › produces a signed binary macOS can prompt for
bridge/src/__tests__/fm-helper-speech-worker.test.ts3/3
  • ✓speech worker isolation and recovery › synthesizes while a model request is still blocked10 ms
  • ✓speech worker isolation and recovery › kills only a stuck speech worker and ignores its late exit after replacement6 ms
  • ✓speech worker isolation and recovery › stops and rejects both workers on daemon shutdown1 ms
bridge/src/__tests__/ollama-residency.test.ts9/9
  • ✓separates installed models from verified zero resident models without changing legacy fields40 ms
  • ✓CPU-only and embedding models in ps are resident even at zero GPU bytes1 ms
  • ✓failed or malformed ps never means unloaded: null1 ms
  • ✓failed or malformed ps never means unloaded: {}1 ms
  • ✓failed or malformed ps never means unloaded: {"models":[{"unknown":true}]}1 ms
  • ✓a failed catalog does not hide CPU residency or claim an installed inventory1 ms
  • ✓MLX only explicit resident metadata establishes residency1 ms
  • ✓MLX only explicit resident metadata establishes residency1 ms
  • ✓MLX only explicit resident metadata establishes residency1 ms
bridge/src/__tests__/review-runner.test.ts21/21
  • ✓review browser opening › keeps review with spaces.html as a file URL argument without a command interpreter6 ms
  • ✓review browser opening › keeps review&echo injected.html as a file URL argument without a command interpreter1 ms
  • ✓review browser opening › keeps review%PATH%.html as a file URL argument without a command interpreter1 ms
  • ✓review browser opening › keeps review$(echo injected).html as a file URL argument without a command interpreter1 ms
  • ✓review browser opening › keeps review`echo injected`.html as a file URL argument without a command interpreter1 ms
  • ✓review browser opening › keeps review"quoted".html as a file URL argument without a command interpreter1 ms
  • ✓renderReviewHtml › is self-contained (no external asset URLs) and shows risk + findings1 ms
  • ✓renderReviewHtml › escapes HTML in judge-provided text (no injection)0 ms
  • ✓renderReviewHtml › empty findings renders a calm "nothing worth flagging" note, not an empty grid0 ms
  • ✓judgeTierNote — honest capability labelling › flags on-device models as basic screening0 ms
  • ✓judgeTierNote — honest capability labelling › flags local MLX depth as model-size dependent0 ms
  • ✓judgeTierNote — honest capability labelling › does not append a caveat for frontier backends0 ms
  • ✓renderJudgeGuidanceHtml — no-judge setup flow › ranks API → OpenRouter → OpenClaw → local → Apple, and states the local model minimum1 ms
  • ✓renderJudgeGuidanceHtml — no-judge setup flow › reassures that not using REVIEW is a supported choice (no background nagging)0 ms
  • ✓renderJudgeGuidanceHtml — no-judge setup flow › surfaces the current backend + reason so the user knows what failed0 ms
  • ✓openAIChatUrl — endpoint normalization (Ollama / OpenRouter / LM Studio) › bare host → /v1/chat/completions0 ms
  • ✓openAIChatUrl — endpoint normalization (Ollama / OpenRouter / LM Studio) › base with /v1 → appends chat/completions0 ms
  • ✓openAIChatUrl — endpoint normalization (Ollama / OpenRouter / LM Studio) › already-full URL is preserved0 ms
  • ✓openAIChatUrl — endpoint normalization (Ollama / OpenRouter / LM Studio) › trailing slash tolerated0 ms
  • ✓renderJudgeGuidanceHtml — detected local providers › surfaces detected servers with a ready-to-paste openai config1 ms
  • ✓renderJudgeGuidanceHtml — detected local providers › omits the detected block when nothing is running0 ms
scripts/__tests__/apme-serving-evidence.test.ts12/12
  • ✓private replay evidence boundaries › preserves interrupted attempts instead of silently rerunning them7 ms
  • ✓private replay evidence boundaries › requires an explicit fixture root1 ms
  • ✓private replay evidence boundaries › rejects unsafe profile/case "../live"0 ms
  • ✓private replay evidence boundaries › rejects unsafe profile/case "/tmp/escape"0 ms
  • ✓private replay evidence boundaries › rejects unsafe profile/case ".."0 ms
  • ✓private replay evidence boundaries › rejects unsafe profile/case "."0 ms
  • ✓private replay evidence boundaries › rejects unsafe profile/case "settings"0 ms
  • ✓private replay evidence boundaries › rejects unsafe profile/case "a/b"0 ms
  • ✓private replay evidence boundaries › rejects unsafe profile/case "a\\b"0 ms
  • ✓private replay evidence boundaries › rejects unsafe profile/case ""0 ms
  • ✓private replay evidence boundaries › rejects live data directories, descendants and symlink aliases2 ms
  • ✓private replay evidence boundaries › rejects output symlinks and accepts an isolated profile1 ms
shared/src/__tests__/apme-classifier-rules-sync.test.ts6/6
  • ✓generated mirror in sync › apple/AgentDeck/Daemon/Apme/ApmeClassifierRules.generated.swift matches the SSOT3 ms
  • ✓generated mirror in sync › the Swift mirror carries every label the TS union declares1 ms
  • ✓generated mirror in sync › neither side ever offers a paid backend in the classifier try-order2 ms
  • ✓generated mirror in sync › `rules` is always the last entry — it is a give-up, not a network call0 ms
  • ✓generated mirror in sync › the output cap stays far below the eval judge budget (a different call, a different purpose)1 ms
  • ✓generated mirror in sync › normalizeClassifierLabel and the Swift mirror agree on exact + partial match1 ms
shared/src/__tests__/apme-display-rules-sync.test.ts36/36
  • ✓APME comparison eligibility › keeps {"model":"real-model","category":"coding","samples":3,"eligible":true} consistent3 ms
  • ✓APME comparison eligibility › keeps {"model":"real-model","category":"coding","samples":1,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"real-model","category":"coding","samples":2,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"unknown","category":"planning","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":" UNKNOWN ","category":"planning","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"mixed","category":"coding","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"<synthetic>","category":"review","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"<synthetic:smoke>","category":"review","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"agentdeck-fixture","category":"coding","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"delivery-mirror","category":"coding","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"gateway-injected","category":"coding","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"default","category":"coding","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"","category":"coding","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"unknown","category":"coding","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"real-model","category":null,"samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"real-model","category":"_empty","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"real-model","category":"unknown","samples":20,"eligible":false} consistent0 ms
  • ✓APME comparison eligibility › keeps {"model":"real-model","category":"","samples":20,"eligible":false} consistent0 ms
  • ✓generated APME display-rule mirrors in sync › apple/AgentDeck/Daemon/Apme/TaskTitleRules.generated.swift matches the SSOT0 ms
  • ✓generated APME display-rule mirrors in sync › apple/AgentDeck/Daemon/Apme/ActionFoldRules.generated.swift matches the SSOT0 ms
  • ✓generated APME display-rule mirrors in sync › apple/AgentDeck/Daemon/Apme/TaskGradeabilityRules.generated.swift matches the SSOT0 ms
  • ✓generated APME display-rule mirrors in sync › apple/AgentDeck/Daemon/Apme/ApmeComparisonRules.generated.swift matches the SSOT0 ms
  • ✓generated APME display-rule mirrors in sync › apple/AgentDeck/Daemon/Apme/ApmeScorecardSQL.generated.swift matches the SSOT0 ms
  • ✓generated APME display-rule mirrors in sync › apple/AgentDeck/Daemon/Apme/ApmeReviewRules.generated.swift matches the SSOT0 ms
  • ✓generated APME display-rule mirrors in sync › emitters embed the SSOT constants (sanity on the emitters themselves)1 ms
  • ✓generated APME display-rule mirrors in sync › the Swift suite replays all shared vector files (grep the test wiring)1 ms
  • ✓Swift daemon still mirrors the hand-pinned APME constants › idle-gap boundary matches AGENT_IDLE_GAP_MS (Swift keeps seconds)1 ms
  • ✓Swift daemon still mirrors the hand-pinned APME constants › attention window and red band match the eval-schema SSOT1 ms
  • ✓APME bounded evidence selection › preserves intent, final result and validation {"count":0,"cap":10,"preferred":[],"expected":[]}1 ms
  • ✓APME bounded evidence selection › preserves intent, final result and validation {"count":5,"cap":10,"preferred":[],"expected":[0,1,2,3,4]}0 ms
  • ✓APME bounded evidence selection › preserves intent, final result and validation {"count":20,"cap":5,"preferred":[],"expected":[0,16,17,18,19]}0 ms
  • ✓APME bounded evidence selection › preserves intent, final result and validation {"count":20,"cap":5,"preferred":[3,5],"expected":[0,3,5,18,19]}0 ms
  • ✓APME bounded evidence selection › preserves intent, final result and validation {"count":20,"cap":3,"preferred":[2,3,5,5,999,-1],"expected":[0,5,19]}0 ms
  • ✓APME bounded evidence selection › preserves intent, final result and validation {"count":20,"cap":0,"preferred":[5],"expected":[]}0 ms
  • ✓APME bounded evidence selection › keeps both ends of long Unicode evidence within the same code-point cap2 ms
  • ✓APME final archived response selection › retains the last real reply even with more than the turn budget of empty tail turns1 ms
shared/src/__tests__/harness-queued-message.test.ts4/4
  • ✓harnessQueuedMessageTag › names the envelope that opens a queued prompt2 ms
  • ✓harnessQueuedMessageTag › skips leading whitespace and reports the tag in its canonical case0 ms
  • ✓harnessQueuedMessageTag › a prompt a person typed is not one0 ms
  • ✓harnessQueuedMessageTag › isHarnessQueuedMessage answers the same question as a boolean0 ms
shared/src/__tests__/llm-settings.test.ts16/16
  • ✓llm-settings › returns defaults when settings.json is missing4 ms
  • ✓llm-settings › reads llm.mlx pin from settings.json1 ms
  • ✓llm-settings › treats "qwen3-30b" and "default" as placeholders (unpinned)2 ms
  • ✓llm-settings › falls back to apme.judge.model when llm.mlx is absent0 ms
  • ✓llm-settings › strips /chat/completions suffix from legacy endpoints1 ms
  • ✓llm-settings › prefers llm.mlx over apme.judge when both set0 ms
  • ✓llm-settings › resolveMlxModel: refuses to invent a model8 ms
  • ✓llm-settings › pickMlxModel requires a singleton catalog and matching pin2 ms
  • ✓llm-settings › never inherits openai credentials routing into MLX2 ms
  • ✓llm-settings › never inherits api credentials routing into MLX0 ms
  • ✓llm-settings › never inherits foundationModels credentials routing into MLX0 ms
  • ✓llm-settings › never inherits openclaw credentials routing into MLX0 ms
  • ✓llm-settings › an explicit default MLX endpoint is not overridden by a legacy custom endpoint1 ms
  • ✓llm-settings › does not redirect an invalid explicit endpoint to a running loopback server1 ms
  • ✓llm-settings › mlxChatUrl reflects endpoint setting1 ms
  • ✓llm-settings › caches result for TTL window1 ms
shared/src/__tests__/mlx-safety.test.ts19/19
  • ✓MLX operational safety › download catalog cannot pick a model4 ms
  • ✓MLX operational safety › pin does not establish residency in a multi-model catalog0 ms
  • ✓MLX operational safety › resident model outranks catalog order0 ms
  • ✓MLX operational safety › pin cannot switch resident model0 ms
  • ✓MLX operational safety › explicitly unloaded is not catalog-only0 ms
  • ✓MLX operational safety › legacy single-model server0 ms
  • ✓MLX operational safety › legacy mismatch0 ms
  • ✓MLX operational safety › no hardcoded model fallback0 ms
  • ✓MLX operational safety › duplicate names are one model0 ms
  • ✓MLX operational safety › vision-only model is not silently replaced0 ms
  • ✓MLX operational safety › keeps the generated Swift policy synchronized0 ms
  • ✓MLX operational safety › canonicalizes base, v1 and chat URLs to one admission key1 ms
  • ✓MLX operational safety › refuses a pinned model mismatch before any inference34 ms
  • ✓MLX operational safety › does not interpret healthy as recovered after OOM1 ms
  • ✓MLX operational safety › refuses external in-flight requests and queued generation0 ms
  • ✓MLX operational safety › holds admission until response body completion, including aliases4 ms
  • ✓MLX operational safety › quarantines timed out generation across callers without sending another POST1 ms
  • ✓MLX operational safety › allows field-rejection retries but quarantines 5003 ms
  • ✓MLX operational safety › catalog-only multi-model servers never receive an auto-selected model3 ms
shared/src/__tests__/mlx-server-guard.test.ts1/1
  • ✓operator server guard rejects replacement and exits on allocator failure100 ms
shared/src/__tests__/model-provider.test.ts9/9
  • ✓modelProvider › names the provider behind every id shape the wire actually carries4 ms
  • ✓modelProvider › answers unknown rather than guessing — the polarity is the point1 ms
  • ✓normalizeModelProvider › normalizes the provider field before falling back to the model id1 ms
  • ✓offHarnessProvider › badges the real case: Claude Code answering from z.ai0 ms
  • ✓offHarnessProvider › says nothing when the harness is where it belongs1 ms
  • ✓offHarnessProvider › never turns two unknowns into a claim0 ms
  • ✓offHarnessProvider › leaves multi-provider harnesses alone1 ms
  • ✓generated mirrors › are in sync with this source3 ms
  • ✓generated mirrors › carry every provider, so no mirror can silently drop one1 ms
shared/src/__tests__/pricing.test.ts11/11
  • ✓isLocalModel › accepts the judge tag the runner emits for Foundation Models3 ms
  • ✓isLocalModel › accepts the bare Foundation Models spellings0 ms
  • ✓isLocalModel › accepts raw ids as a local server advertises them0 ms
  • ✓isLocalModel › accepts the explicit local prefixes0 ms
  • ✓isLocalModel › does not claim hosted models are local0 ms
  • ✓local models cost nothing and say so › prices local judge tags at $00 ms
  • ✓local models cost nothing and say so › reports them as priced, not as unpriced1 ms
  • ✓local models cost nothing and say so › groups them under the local provider0 ms
  • ✓normalizeModelId › strips hosted provider prefixes0 ms
  • ✓normalizeModelId › keeps the org segment of a local id0 ms
  • ✓normalizeModelId › still prices a hosted model after normalization0 ms

25 files

Pass

OpenClaw Gateway

Does the Gateway proxy stay subscribed, attribute runs and approvals, and report its health truthfully?

Passed
348
Failed
0
Skipped
0
Time
709 ms
25 test files
bridge/src/__tests__/gateway-health.test.ts3/3
  • ✓resolveGatewayHealth (shared vectors) › reads every measured payload shape the same way the Swift daemon does5 ms
  • ✓resolveGatewayHealth (shared vectors) › never claims an error from a frame that did not say1 ms
  • ✓resolveGatewayHealth (shared vectors) › keeps the caller on its previous value when the frame is unreadable0 ms
bridge/src/__tests__/gateway-parity-fixtures.test.ts56/56
  • ✓Gateway parity fixtures › fixture set is non-empty2 ms
  • ✓Gateway parity fixtures › 'auth-pairing-required-error.json' carries a valid frame discriminator1 ms
  • ✓Gateway parity fixtures › 'chat-delta.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'chat-final.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'connect-challenge.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'connect-hello-ok-device-token.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'connect-ok.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'exec-approval-requested.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'health-event.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'logs-tail-response.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'models-list-response.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'plugin-approval-removed.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'plugin-approval-requested.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'plugin-approval-resolved.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'rpc-error.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'session-message-assistant-text.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'session-message-assistant-toolcall.js…' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'session-message-user.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'session-tool-result.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'session-tool-start.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'sessions-changed.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'tick.json' carries a valid frame discriminator0 ms
  • ✓Gateway parity fixtures › 'auth-pairing-required-error.json' conforms to its frame shape1 ms
  • ✓Gateway parity fixtures › 'chat-delta.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'chat-final.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'connect-challenge.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'connect-hello-ok-device-token.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'connect-ok.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'exec-approval-requested.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'health-event.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'logs-tail-response.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'models-list-response.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'plugin-approval-removed.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'plugin-approval-requested.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'plugin-approval-resolved.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'rpc-error.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'session-message-assistant-text.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'session-message-assistant-toolcall.js…' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'session-message-user.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'session-tool-result.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'session-tool-start.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'sessions-changed.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › 'tick.json' conforms to its frame shape0 ms
  • ✓Gateway parity fixtures › the chat frame is assistant-only — it carries no prompt and no tools2 ms
  • ✓Gateway parity fixtures › chat final still yields a turn_response once the adapter fills `response`4 ms
  • ✓Gateway parity fixtures › session.message(user) yields the turn_start nothing else can provide1 ms
  • ✓Gateway parity fixtures › a session.message is stamped from the message, not from delivery time0 ms
  • ✓Gateway parity fixtures › session.message(assistant text) yields per-turn model/provider/usage + response1 ms
  • ✓Gateway parity fixtures › toolCall blocks in an assistant message are not counted as tools0 ms
  • ✓Gateway parity fixtures › session.tool start/result pair into tool_call / tool_result on one call id1 ms
  • ✓Gateway parity fixtures › the session.tool facts live under `data`, never at the top level1 ms
  • ✓Gateway parity fixtures › an unrecognized tool phase stays pending rather than inventing a completion0 ms
  • ✓Gateway parity fixtures › exec.approval.requested parses into an answerable prompt1 ms
  • ✓Gateway parity fixtures › plugin.approval.requested parses into an answerable prompt, title as the headline1 ms
  • ✓Gateway parity fixtures › plugin.approval.resolved reports the decision, sharing execApprovalAllows's polarity0 ms
  • ✓Gateway parity fixtures › plugin.approval.removed carries only an id — no decision, never a resolve0 ms
bridge/src/__tests__/gateway-probe-verdict.test.ts6/6
  • ✓checkGatewayHealth verdict › reports healthy only when doctor actually exited 011 ms
  • ✓checkGatewayHealth verdict › reports broken on a real non-zero exit2 ms
  • ✓checkGatewayHealth verdict › reports unknown, not healthy, when openclaw is not on PATH1 ms
  • ✓checkGatewayHealth verdict › reports unknown, not broken, when doctor is killed at the timeout1 ms
  • ✓checkGatewayHealth verdict › reports unknown when the spawn fails some other way1 ms
  • ✓checkGatewayHealth verdict › never reports an error alongside an unknown verdict2 ms
bridge/src/__tests__/openclaw-adapter-catalog.test.ts7/7
  • ✓OpenClawAdapter catalog fetch › reads models.list over the socket first and emits the joined keys plus the default model10 ms
  • ✓OpenClawAdapter catalog fetch › a Gateway that advertised its methods without models.list is not asked; the CLI answers instead2 ms
  • ✓OpenClawAdapter catalog fetch › a fetch that started before the link dropped emits nothing, even if it resolves after a reconnect1 ms
  • ✓OpenClawAdapter catalog fetch › a stale FAILURE schedules no retry on the new link either1 ms
  • ✓OpenClawAdapter catalog fetch › shutdown mid-fetch: a CLI fallback that resolves after shutdown emits nothing2 ms
  • ✓OpenClawAdapter catalog fetch › climbs the retry ladder while both sources fail, then emits and resets on the first success5 ms
  • ✓OpenClawAdapter catalog fetch › stops retrying once the adapter is no longer alive1 ms
bridge/src/__tests__/openclaw-approval-flow.test.ts29/29
  • ✓the user can see what they are approving › puts the real command on the timeline row and the prompt10 ms
  • ✓the user can see what they are approving › exposes the prompt for the session row1 ms
  • ✓the user can actually resolve it › sends a decision the Gateway accepts — never the bare "allow"3 ms
  • ✓the user can actually resolve it › maps each option index to its own decision1 ms
  • ✓the user can actually resolve it › resolves a shortcut `respond` press too1 ms
  • ✓the user can actually resolve it › drops a press whose question echo names a different approval2 ms
  • ✓the user can actually resolve it › accepts a truncated echo — small surfaces cut the question0 ms
  • ✓the user can actually resolve it › keeps the prompt on screen when the resolve fails2 ms
  • ✓the prompt goes away when the approval does › labels a real allow as approved (not denied)1 ms
  • ✓the prompt goes away when the approval does › a deny ends the turn rather than resuming it0 ms
  • ✓the prompt goes away when the approval does › closes the approval when the run is cancelled under it3 ms
  • ✓the prompt goes away when the approval does › closes the approval when the turn errors out1 ms
  • ✓the prompt goes away when the approval does › adopts an approval that was already waiting when the adapter connected1 ms
  • ✓the prompt goes away when the approval does › adopts the OLDEST waiting approval — that is the one blocking the agent1 ms
  • ✓the prompt goes away when the approval does › a resolution for a different approval does not clear the pending one0 ms
  • ✓a non-decision is not a denial › a real deny stays denied0 ms
  • ✓a non-decision is not a denial › every abandonment reason lands in `abandoned`, and names itself in raw1 ms
  • ✓a non-decision is not a denial › names WHICH OpenClaw session asked, falling back to the tracked one1 ms
  • ✓a non-decision is not a denial › does not overwrite a sessionKey the request carried itself0 ms
  • ✓an approval the Gateway has already dropped comes off the deck › abandons the prompt when the resolve says the approval is gone2 ms
  • ✓an approval the Gateway has already dropped comes off the deck › keeps the prompt when the resolve merely failed to get through2 ms
  • ✓an approval the Gateway has already dropped comes off the deck › abandons a prompt the Gateway no longer lists1 ms
  • ✓an approval the Gateway has already dropped comes off the deck › keeps a prompt that is still pending0 ms
  • ✓an approval the Gateway has already dropped comes off the deck › reads a boxed { approvals: [...] } answer too0 ms
  • ✓an approval the Gateway has already dropped comes off the deck › a failed or unreadable list answer changes nothing1 ms
  • ✓an approval the Gateway has already dropped comes off the deck › does not ask a socket that is not open0 ms
  • ✓only live exec approvals need attention › does not replace a live request with a delayed expired event1 ms
  • ✓only live exec approvals need attention › skips expired catch-up rows and adopts the oldest live request0 ms
  • ✓only live exec approvals need attention › closes attention on successful RPC even when the resolved push is lost0 ms
bridge/src/__tests__/openclaw-chat-error.test.ts6/6
  • ✓OpenClaw chat error → timeline row › keeps the provider sentence as the row label and puts the turn context in detail7 ms
  • ✓OpenClaw chat error → timeline row › flags an errored gateway-initiated turn automated, like every other close row0 ms
  • ✓OpenClaw chat error → timeline row › describes a message-less error frame instead of writing the word "unknown"0 ms
  • ✓OpenClaw chat error → APME lifecycle › records the failure and re-arms the idle-gap timer so the task can still close2 ms
  • ✓OpenClaw chat error → APME lifecycle › opens no run for a key whose frames record nothing2 ms
  • ✓OpenClaw chat error → APME lifecycle › scopes the run — and the idle-gap timer — per Gateway session key2 ms
bridge/src/__tests__/openclaw-empty-run.test.ts5/5
  • ✓OpenClaw APME run opening › an assistant message alone opens no run for its session key10 ms
  • ✓OpenClaw APME run opening › the user message that starts the turn is what opens it, and later assistant messages then land5 ms
  • ✓OpenClaw APME run opening › a tool span opens a run — it inserts a step row with no turn open1 ms
  • ✓OpenClaw APME run opening › the connection-scoped fallback run is opened by the same rule, not at connect1 ms
  • ✓ApmeCollector.spanCanOpenRun › is true exactly for the kinds whose ingestSpan branch reaches ingestHook1 ms
bridge/src/__tests__/openclaw-gateway-stability.test.ts10/10
  • ✓GatewayFlapTracker › is quiet below the threshold and trips exactly at it3 ms
  • ✓GatewayFlapTracker › forgets flaps older than the window, so one deliberate restart an hour never accumulates0 ms
  • ✓GatewayFlapTracker › matches the measured storm: eleven disconnects inside ninety minutes trip within the first four0 ms
  • ✓diagnoseGatewayLog › returns null on a clean tail — a storm without a reason is reported as exactly that1 ms
  • ✓diagnoseGatewayLog › prefers a structural cause over the routine restart it produced, whichever is newer0 ms
  • ✓diagnoseGatewayLog › ranks restart-loop above migration above config above SIGTERM0 ms
  • ✓diagnoseGatewayLog › carries the most recent line of the winning kind0 ms
  • ✓formatGatewayInstability › fits a timeline row and names the cause0 ms
  • ✓formatGatewayInstability › says so when the log had no reason0 ms
  • ✓formatGatewayInstability › describes every kind0 ms
bridge/src/__tests__/openclaw-gateway-wedge.test.ts3/3
  • ✓OpenClaw adapter without autoReconnect › reports exit when the Gateway closes the socket before the handshake26 ms
  • ✓OpenClaw adapter without autoReconnect › does not report exit when it reconnects by itself153 ms
  • ✓BridgeCore Gateway probe › calls onAvailable on every tick the port stays open, not only on the rising edge55 ms
bridge/src/__tests__/openclaw-hook.test.ts12/12
  • ✓openclaw-hook → telemetry spans › OPENCLAW_IDLE_GAP_MS is conservative (60–180 s) so multi-turn collab stays together3 ms
  • ✓openclaw-hook → telemetry spans › chat.send produces exactly one turn_start span carrying the prompt text1 ms
  • ✓openclaw-hook → telemetry spans › chat.final with a response + tools yields turn_response + per-tool tool_result spans2 ms
  • ✓openclaw-hook → telemetry spans › chat.delta emits no spans — deltas are streaming chunks, not eval signals1 ms
  • ✓openclaw-hook → telemetry spans › chat.aborted emits a manual task_boundary so the user gesture closes the task immediately0 ms
  • ✓openclaw-hook → telemetry spans › chat.error emits an agent_error span — and NOT a task_boundary, the agent may retry0 ms
  • ✓openclaw-hook → telemetry spans › idle-gap task_boundary span carries boundary_signal=idle_gap0 ms
  • ✓openclaw-hook → telemetry spans › agent_error carries the turn context the Gateway frame omits0 ms
  • ✓openclaw-hook → telemetry spans › agent_error falls back to a describable label when the frame carries no message0 ms
  • ✓openclaw-hook → telemetry spans › omits detail entirely when it would only repeat the label0 ms
  • ✓openclaw-hook → telemetry spans › label is byte-equal to the projected row raw, so the two never render twice0 ms
  • ✓openclaw-hook → telemetry spans › all emitted spans propagate traceId for run correlation0 ms
bridge/src/__tests__/openclaw-model-catalog.test.ts8/8
  • ✓catalogFromModelsList › reads the parity fixture the way the Swift adapter does4 ms
  • ✓catalogFromModelsList › joins provider/id into the CLI key form, then falls back through id and provider/name; title/id for the name1 ms
  • ✓catalogFromModelsList › a missing or unavailable model is not available; non-string tags are ignored0 ms
  • ✓catalogFromModelsList › answers null for a payload without a usable list — not an empty catalog0 ms
  • ✓explicitDefaultModelName › an explicit payload key wins and resolves to the display name0 ms
  • ✓explicitDefaultModelName › otherwise only a default tag counts — never catalog order0 ms
  • ✓parseModelRole › maps tags like the CLI parser and the Swift adapter0 ms
  • ✓catalogRetryDelayMs › climbs the ladder and then holds at the last rung forever1 ms
bridge/src/__tests__/openclaw-personal-activity.test.ts7/7
  • ✓personal voice activity on the real adapter › accepts a string assistant body and ignores malformed blocks without losing the answer11 ms
  • ✓personal voice activity on the real adapter › shows work before any delta and closes a final-only response1 ms
  • ✓personal voice activity on the real adapter › does not let a cron final hide the voice model thinking interval1 ms
  • ✓personal voice activity on the real adapter › keeps a second voice request visible when the first finishes1 ms
  • ✓personal voice activity on the real adapter › clears activity on refusal and on the voice deadline5 ms
  • ✓personal voice activity on the real adapter › preserves a permission prompt while voice work is pending1 ms
  • ✓personal voice activity on the real adapter › handles a final that arrives before the acknowledgement0 ms
bridge/src/__tests__/openclaw-plugin-approval-flow.test.ts37/37
  • ✓the user can see what they are approving › puts the plugin title on the timeline row and the prompt, labeled [Plugin]8 ms
  • ✓the user can see what they are approving › exposes the prompt for the session row1 ms
  • ✓the user can actually resolve it › sends a decision to plugin.approval.resolve, never exec.approval.resolve2 ms
  • ✓the user can actually resolve it › maps each option index to its own decision1 ms
  • ✓the user can actually resolve it › resolves a shortcut `respond` press too1 ms
  • ✓the user can actually resolve it › drops a press whose question echo names a different approval2 ms
  • ✓the user can actually resolve it › accepts the echo a device that renders the question actually sends — the [Plugin]-prefixed form0 ms
  • ✓the user can actually resolve it › accepts a truncated prefixed echo — small surfaces cut the question0 ms
  • ✓the user can actually resolve it › keeps the prompt on screen when the resolve fails1 ms
  • ✓the prompt goes away when the approval does › labels a real allow as approved (plugin)0 ms
  • ✓the prompt goes away when the approval does › a deny does not resume0 ms
  • ✓the prompt goes away when the approval does › a resolution for a different approval does not clear the pending one0 ms
  • ✓the prompt goes away when the approval does › adopts a plugin approval that was already waiting when the adapter connected1 ms
  • ✓the prompt goes away when the approval does › adopts BOTH kinds independently on connect — neither adoption clobbers the other1 ms
  • ✓exec and plugin approvals coexist without dropping either › presents the OLDER of the two — the plugin one, when it arrived first0 ms
  • ✓exec and plugin approvals coexist without dropping either › resolving the shown one surfaces the queued one automatically — nothing is lost0 ms
  • ✓exec and plugin approvals coexist without dropping either › resolving the shown one keeps the row in awaiting_permission for the survivor1 ms
  • ✓exec and plugin approvals coexist without dropping either › an expiring approval does not idle the row while the other kind is live1 ms
  • ✓exec and plugin approvals coexist without dropping either › with nothing left pending, a resolution still settles the activity state0 ms
  • ✓exec and plugin approvals coexist without dropping either › a second plugin approval closes the one it supersedes instead of dropping it0 ms
  • ✓exec and plugin approvals coexist without dropping either › a failing exec catch-up does not skip the plugin catch-up1 ms
  • ✓exec and plugin approvals coexist without dropping either › a press routes to the ACTIVE prompt's own resolve method, never the other kind's1 ms
  • ✓plugin.approval.removed — real wire protocol, no .d.ts declaration › abandons the pending prompt named by the removed id1 ms
  • ✓plugin.approval.removed — real wire protocol, no .d.ts declaration › never resolves — removed carries no decision, so it cannot approve/deny1 ms
  • ✓plugin.approval.removed — real wire protocol, no .d.ts declaration › ignores a removed for a different id0 ms
  • ✓plugin.approval.removed — real wire protocol, no .d.ts declaration › makes no claim about an unreadable payload0 ms
  • ✓turn-scoping asymmetry from exec › a turn abort does NOT abandon a pending plugin approval1 ms
  • ✓turn-scoping asymmetry from exec › a turn error does NOT abandon a pending plugin approval1 ms
  • ✓turn-scoping asymmetry from exec › gateway disconnect DOES abandon a pending plugin approval0 ms
  • ✓an approval the Gateway has already dropped comes off the deck › abandons the prompt when the resolve says the approval is gone2 ms
  • ✓an approval the Gateway has already dropped comes off the deck › keeps the prompt when the resolve merely failed to get through2 ms
  • ✓an approval the Gateway has already dropped comes off the deck › abandons a prompt the Gateway no longer lists1 ms
  • ✓an approval the Gateway has already dropped comes off the deck › keeps a prompt that is still pending0 ms
  • ✓an approval the Gateway has already dropped comes off the deck › a failed or unreadable list answer changes nothing1 ms
  • ✓only live plugin approvals need attention › does not replace a live request with a delayed expired event1 ms
  • ✓only live plugin approvals need attention › skips expired catch-up rows and adopts the oldest live request0 ms
  • ✓only live plugin approvals need attention › closes attention on successful RPC even when the resolved push is lost1 ms
bridge/src/__tests__/openclaw-session-settings.test.ts6/6
  • ✓OpenClawAdapter session settings › reads the targeted session row (not the main session) plus the models.list catalog9 ms
  • ✓OpenClawAdapter session settings › patches the same session key, and null clears the override1 ms
  • ✓OpenClawAdapter session settings › refuses instead of guessing when the targeted session is not listed3 ms
  • ✓OpenClaw setting conversation binding › captures query target before awaits and refuses a stale picker write1 ms
  • ✓OpenClaw setting conversation binding › post-write readback remains on the patched conversation after a chat changes the active key1 ms
  • ✓OpenClaw setting conversation binding › refuses malformed keys and values even for direct adapter callers2 ms
bridge/src/__tests__/openclaw-session.test.ts15/15
  • ✓injectOpenClawSession › does NOT inject when the Gateway is reachable but not authenticated (regression: phantom trace)3 ms
  • ✓injectOpenClawSession › injects a minimal session when authenticated (CLI bridge shape)1 ms
  • ✓injectOpenClawSession › carries daemon-hub extras (state/projectName/modelName/controlMode) when provided0 ms
  • ✓injectOpenClawSession › carries the pending approval so decks render real, pressable options1 ms
  • ✓injectOpenClawSession › leaves the prompt fields off when nothing is pending0 ms
  • ✓injectOpenClawSession › is idempotent — does not duplicate an already-present openclaw session0 ms
  • ✓injectOpenClawSession › returns the original array reference when not injecting (no needless copy)0 ms
  • ✓injectOpenClawSession — the approval carries its context › puts the reason approval was demanded at the head of questionDetail0 ms
  • ✓injectOpenClawSession — the approval carries its context › names WHICH OpenClaw session asked0 ms
  • ✓injectOpenClawSession — the approval carries its context › leaves the question itself untouched — detail is additive0 ms
  • ✓injectOpenClawSession — the approval carries its context › emits no questionDetail when the Gateway sent nothing to say0 ms
  • ✓injectOpenClawSession — the approval carries its context › carries nothing when there is no approval at all0 ms
  • ✓injectOpenClawSession — plugin approvals are labeled distinctly from exec › prefixes the plugin question with [Plugin], never the exec one0 ms
  • ✓injectOpenClawSession — plugin approvals are labeled distinctly from exec › still carries options and liveAnswerable for a plugin approval0 ms
  • ✓injectOpenClawSession — plugin approvals are labeled distinctly from exec › carries the plugin approval detail too0 ms
bridge/src/__tests__/openclaw-steering-key.test.ts5/5
  • ✓OpenClaw steering key › targets the newest conversation at connect, not the newest eval run6 ms
  • ✓OpenClaw steering key › a cron tick between two presses does not take the next prompt or the stop2 ms
  • ✓OpenClaw steering key › the user talking in a dashboard chat moves the deck there0 ms
  • ✓OpenClaw steering key › a LINE group answering other people never takes the deck0 ms
  • ✓OpenClaw steering key › a page of eval runs with no conversation falls back to the Gateway main key, not an eval run0 ms
bridge/src/__tests__/session-settings-command.test.ts6/6
  • ✓actual daemon settings command boundary › correlates query and explicit-null write without replacing the concrete target7 ms
  • ✓actual daemon settings command boundary › rejects missing and malformed values rather than clearing an override3 ms
  • ✓actual daemon settings command boundary › rejects unknown keys and missing targets before any Gateway IO1 ms
  • ✓actual daemon settings command boundary › does not dispatch an uncorrelated request and keeps unsupported writes explicit0 ms
  • ✓actual daemon settings command boundary › echoes the refused target and timeout request without falling through to a write1 ms
  • ✓actual daemon settings command boundary › returns a large catalog only to its requesting socket, never unrelated peers or broadcast hooks92 ms
scripts/__tests__/gateway-setup-status.test.ts2/2
  • ✓Gateway setup status › keeps Apple and Android generated decisions in sync38 ms
  • ✓Gateway setup status › does not request setup for transport progress or timeouts1 ms
shared/src/__tests__/gateway-live-activity.test.ts10/10
  • ✓Gateway live activity › replays captured 2026.9.6 frames: work starts before tools, one prompt/tool/answer5 ms
  • ✓Gateway live activity › keeps parallel runs busy, ignores lastRunId, and handles explicit settled snapshot0 ms
  • ✓Gateway live activity › deduplicates tool streams, silences successful polling, retains errors and late results1 ms
  • ✓Gateway live activity › folds every tool call of a run into one row, updated in place3 ms
  • ✓Gateway live activity › retains failure and result evidence after a long run, and discloses omitted details4 ms
  • ✓Gateway live activity › retains both outputs when two successful tools are folded0 ms
  • ✓Gateway live activity › labels a folded row by its calls0 ms
  • ✓Gateway live activity › retains dispatched prompt and attributes a pending user message to its run0 ms
  • ✓Gateway live activity › does not treat unknown events or historical assistant messages as work0 ms
  • ✓Gateway live activity › keeps the generated Swift constants and reducer template in sync1 ms
shared/src/__tests__/openclaw-approval-rules-sync.test.ts6/6
  • ✓generated mirror in sync › both adapters use the shared scope resolver on their actual connect path5 ms
  • ✓generated mirror in sync › apple/AgentDeck/Daemon/Gateway/OpenClawApprovalRules.generated.swift matches the SSOT1 ms
  • ✓generated mirror in sync › the Swift mirror carries every decision the TS union declares1 ms
  • ✓generated mirror in sync › neither side ever offers the plain "allow" the Gateway rejects1 ms
  • ✓generated mirror in sync › both suites replay the same "is this approval gone?" vectors1 ms
  • ✓generated mirror in sync › the Swift mirror reads the nested request, not flat fields0 ms
shared/src/__tests__/openclaw-approval.test.ts38/38
  • ✓parseExecApprovalRequest › reads the command out of the nested request4 ms
  • ✓parseExecApprovalRequest › never renders `ask` as if it were the question0 ms
  • ✓parseExecApprovalRequest › carries cwd and warning as supporting detail0 ms
  • ✓parseExecApprovalRequest › offers exactly the decisions the request allows1 ms
  • ✓parseExecApprovalRequest › drops allow-always when the policy withholds it0 ms
  • ✓parseExecApprovalRequest › honors unavailableDecisions on top of the allowed set0 ms
  • ✓parseExecApprovalRequest › always keeps a deny — a prompt you can only accept is not a prompt0 ms
  • ✓parseExecApprovalRequest › still produces an answerable prompt when no command was reported0 ms
  • ✓parseExecApprovalRequest › falls back to flat fields if a Gateway ever inlines them0 ms
  • ✓parseExecApprovalRequest › falls back to argv when only that is present0 ms
  • ✓parseExecApprovalRequest › returns null only when there is no usable id0 ms
  • ✓parseExecApprovalRequest › carries the expiry so a stale prompt can be swept0 ms
  • ✓answering › maps an option index to the decision that option carries0 ms
  • ✓answering › refuses an out-of-range index instead of guessing0 ms
  • ✓answering › accepts shortcuts, decision names, and the y/n/a spellings1 ms
  • ✓answering › never turns an unrecognized press into an approval0 ms
  • ✓answering › refuses "always" when the request forbids allow-always0 ms
  • ✓answering › classifies which decisions let the command run0 ms
  • ✓parseExecApprovalRequest — detail is most-decisive-first › leads with WHY approval was demanded, not with the cwd0 ms
  • ✓parseExecApprovalRequest — detail is most-decisive-first › still carries every part — this is a reorder, not a drop2 ms
  • ✓parseExecApprovalRequest — detail is most-decisive-first › degrades to whatever the Gateway did send0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › covers both directions0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › legacy message — the one this fleet actually produced (2026-09-09 23:40:37)0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › legacy message — older gateway spelling0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › structured reason under INVALID_REQUEST0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › structured code on its own0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › already resolved — another operator answered first0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › already resolved by message alone0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › ambiguous id prefix — the approval EXISTS, the id was short0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › transport failure — we do not know anything about the approval0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › RPC timeout — silence is not an answer0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › a decision the request forbids — the approval is still pending0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › empty error object claims nothing0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › details that is not an object cannot carry a reason0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › reads a real Error with the fields the adapter attaches0 ms
  • ✓isApprovalGoneError — vectors shared with the Swift suite › claims nothing about what it cannot read0 ms
  • ✓Gateway approval observation scopes › can observe approvals created by another Gateway connection0 ms
  • ✓Gateway approval observation scopes › retains an existing restricted device grant without adding privileges1 ms
shared/src/__tests__/openclaw-plugin-approval-rules-sync.test.ts6/6
  • ✓generated mirror in sync › apple/AgentDeck/Daemon/Gateway/OpenClawPluginApprovalRules.generated.swift matches the SSOT4 ms
  • ✓generated mirror in sync › the default severity mirrors PLUGIN_APPROVAL_DEFAULT_SEVERITY, not a re-guessed literal1 ms
  • ✓generated mirror in sync › reuses ExecApprovalDecision rather than redeclaring the decision vocabulary1 ms
  • ✓generated mirror in sync › the Swift mirror reads the nested request, not flat fields0 ms
  • ✓generated mirror in sync › the Swift mirror has no unavailableDecisions subtraction — that axis does not exist on this surface0 ms
  • ✓generated mirror in sync › carries a defensive reader for plugin.approval.removed, undeclared in any .d.ts0 ms
shared/src/__tests__/openclaw-plugin-approval.test.ts24/24
  • ✓parsePluginApprovalRequest › reads the title as the headline, not a generic fallback3 ms
  • ✓parsePluginApprovalRequest › carries the description as the lead supporting line0 ms
  • ✓parsePluginApprovalRequest › defaults severity to "warning" when the Gateway omitted it — matching buildPluginApprovalRequestMessage0 ms
  • ✓parsePluginApprovalRequest › honors an explicit severity0 ms
  • ✓parsePluginApprovalRequest › offers exactly the decisions the request allows1 ms
  • ✓parsePluginApprovalRequest › narrows to an explicit allowedDecisions list — no unavailableDecisions subtraction exists on this surface0 ms
  • ✓parsePluginApprovalRequest › always keeps a deny — a prompt you can only accept is not a prompt0 ms
  • ✓parsePluginApprovalRequest › never offers the plain "allow" the Gateway rejects, even if the Gateway sent it1 ms
  • ✓parsePluginApprovalRequest › falls back to the full default set when allowedDecisions is empty/absent0 ms
  • ✓parsePluginApprovalRequest › still produces an answerable prompt when no title/description was reported1 ms
  • ✓parsePluginApprovalRequest › falls back to flat fields if a Gateway ever inlines them0 ms
  • ✓parsePluginApprovalRequest › returns null only when there is no usable id0 ms
  • ✓parsePluginApprovalRequest › carries the expiry so a stale prompt can be swept0 ms
  • ✓parsePluginApprovalRequest › carries which session asked0 ms
  • ✓parsePluginApprovalRequest › summarizes scope as a display-only supporting line0 ms
  • ✓answering › maps an option index to the decision that option carries0 ms
  • ✓answering › refuses an out-of-range index instead of guessing0 ms
  • ✓answering › accepts shortcuts, decision names, and the y/n/a spellings1 ms
  • ✓answering › never turns an unrecognized press into an approval0 ms
  • ✓answering › refuses "always" when the request forbids allow-always0 ms
  • ✓answering › classifies which decisions let the plugin action proceed0 ms
  • ✓parsePluginApprovalRemoved › reads the id out of the {id} payload the embedded broker emits0 ms
  • ✓parsePluginApprovalRemoved › makes no claim about a payload it cannot read0 ms
  • ✓isApprovalGoneError — shared with the exec module › is the same predicate exec uses1 ms
shared/src/__tests__/openclaw-session-key-sync.test.ts3/3
  • ✓generated OpenClaw session-key rule mirror in sync › apple/AgentDeck/Daemon/Gateway/OpenClawSessionKeyRules.generated.swift matches the SSOT2 ms
  • ✓generated OpenClaw session-key rule mirror in sync › emitter embeds every conversation pattern0 ms
  • ✓generated OpenClaw session-key rule mirror in sync › the Swift suite replays the shared vector file (grep the test wiring)0 ms
shared/src/__tests__/openclaw-session-key.test.ts38/38
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:main3 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:voice0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:dashboard:3f2a9c1e-1111-2222-3333-4444555566660 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:line:group:u0123456789abcdef0123456789abcdef0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:telegram:dm:123456780 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:ops:main0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:main:heartbeat0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:dashboard:3f2a9c1e-1111-2222-3333-444455556666:heartbeat0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:cron:0b6f4c2a-7d1e-4e8a-9a51-2f7c3d9e1b400 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:eval-zai-glm-5.3-coding-t07__r20 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:preflight-openrouter-deepseek-deepseek-v4-pro0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:model-upgrade-20260904-glm530 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:explicit:semantic-judge-probe0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:agentdeck-probe40 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:diag-ox-tools-202609210 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies main0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies (empty)0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:telegram:channel:-1001230 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:slack:thread:C01:1700000000.10 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:home (main agent:main:home)0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies global (main global)0 ms
  • ✓OpenClaw session-key rule (shared vectors) › classifies agent:main:home0 ms
  • ✓OpenClaw session-key rule (shared vectors) › pick: an eval run updated last, main is still the target0 ms
  • ✓OpenClaw session-key rule (shared vectors) › pick: the newest conversation wins0 ms
  • ✓OpenClaw session-key rule (shared vectors) › pick: no conversation key known: previous most-recent behaviour0 ms
  • ✓OpenClaw session-key rule (shared vectors) › pick: empty list0 ms
  • ✓OpenClaw session-key rule (shared vectors) › pick: a paged list holding only eval runs: the Gateway's main key0 ms
  • ✓OpenClaw session-key rule (shared vectors) › pick: a group active more recently than main is not the target0 ms
  • ✓OpenClaw session-key rule (shared vectors) › next: a cron tick does not take the deck0 ms
  • ✓OpenClaw session-key rule (shared vectors) › next: a heartbeat does not take the deck0 ms
  • ✓OpenClaw session-key rule (shared vectors) › next: the user talking in the dashboard does0 ms
  • ✓OpenClaw session-key rule (shared vectors) › next: nothing known yet: any key beats none0 ms
  • ✓OpenClaw session-key rule (shared vectors) › next: a later conversation replaces that fallback0 ms
  • ✓OpenClaw session-key rule (shared vectors) › next: an event without a key changes nothing0 ms
  • ✓OpenClaw session-key rule (shared vectors) › next: a group chat does not take the deck0 ms
  • ✓OpenClaw session-key rule (shared vectors) › next: nothing steered yet but main known: a cron tick yields to main0 ms
  • ✓OpenClaw session-key rule (shared vectors) › next: a renamed main key takes the deck0 ms
  • ✓OpenClaw session-key rule (shared vectors) › reads the main key from hello-ok, and nothing from a malformed frame1 ms

97 files

Partial verification

Devices & display surfaces

Do ESP32, Pixoo, Timebox, iDotMatrix, ADB and mDNS paths discover, flash and render correctly, including bounded serial opens and cleanup of late descriptors?

Passed
1,244
Failed
0
Skipped
8
Time
51.1 s
97 test files
bridge/src/__tests__/adb-async.test.ts6/6
  • ✓adb probe stays off the event loop (#327) › adb-reverse.ts never spawns synchronously2 ms
  • ✓adb probe stays off the event loop (#327) › the adb module activates without a synchronous probe0 ms
  • ✓parseAdbDeviceLines › collects every ready device; usbOnly is the only network filter1 ms
  • ✓parseAdbDeviceLines › usbOnly drops network transports but keeps the emulator0 ms
  • ✓parseAdbDeviceLines › tolerates a header-only or empty listing0 ms
  • ✓cached adb device count serves request handlers › reads zero before any refresh and the cached list after one1 ms
bridge/src/__tests__/adb-reverse-ownership.test.ts13/13
  • ✓ADB reverse endpoint ownership › classifies a list without inferring an OS user9 ms
  • ✓ADB reverse endpoint ownership › classifies a list without inferring an OS user1 ms
  • ✓ADB reverse endpoint ownership › classifies a list without inferring an OS user1 ms
  • ✓ADB reverse endpoint ownership › classifies a list without inferring an OS user1 ms
  • ✓ADB reverse endpoint ownership › classifies a list without inferring an OS user1 ms
  • ✓ADB reverse endpoint ownership › classifies a list without inferring an OS user1 ms
  • ✓ADB reverse endpoint ownership › creates only an absent mapping and uses atomic no-rebind protection3 ms
  • ✓ADB reverse endpoint ownership › reuses an exact target without replacing it1 ms
  • ✓ADB reverse endpoint ownership › preserves a competing target and warns once while it remains unchanged5 ms
  • ✓ADB reverse endpoint ownership › refuses unknown or failed probes instead of treating them as empty1 ms
  • ✓ADB reverse endpoint ownership › never retries a refused no-rebind as an unconditional replacement2 ms
  • ✓ADB reverse endpoint ownership › does not install a tunnel after polling was stopped during a pending probe10 ms
  • ✓ADB reverse endpoint ownership › does not remove any mapping at shutdown because ADB cannot conditionally remove an owned target1 ms
bridge/src/__tests__/adb-transport.test.ts4/4
  • ✓isNetworkAdbTransport › flags adb-over-TCP serials (adb connect <ip>:<port>)5 ms
  • ✓isNetworkAdbTransport › flags wireless-debugging mDNS instance names0 ms
  • ✓isNetworkAdbTransport › passes USB serials through0 ms
  • ✓isNetworkAdbTransport › does not flag the local emulator0 ms
bridge/src/__tests__/ble-sync-circuit-breaker.test.ts3/3
  • ✓SIGABRT circuit breaker › halts after the threshold of consecutive SIGABRT kills, naming the device3 ms
  • ✓SIGABRT circuit breaker › keeps reporting the halt on further exits instead of silently re-arming0 ms
  • ✓SIGABRT circuit breaker › resets on any non-SIGABRT exit so a powered-off panel never trips it1 ms
bridge/src/__tests__/ble-sync-squelch.test.ts5/5
  • ✓createSyncCycleSquelch › logs the first two occurrences of a cycle, then suppresses identical repeats7 ms
  • ✓createSyncCycleSquelch › emits an hourly summary with the repeat count while suppressing2 ms
  • ✓createSyncCycleSquelch › flushes and logs immediately when a different exit appears1 ms
  • ✓createSyncCycleSquelch › treats 1x vs 2x captures of the same retry error as the same cycle1 ms
  • ✓createSyncCycleSquelch › treats an exit after a long healthy run as a fresh incident1 ms
bridge/src/__tests__/ble-sync-status.test.ts14/14
  • ✓parseStatusLine › parses an AGENTDECK_STATUS line5 ms
  • ✓parseStatusLine › rejects a non-status line and malformed JSON1 ms
  • ✓createBleLinkTracker › reports "sync not started" before anything is spawned1 ms
  • ✓createBleLinkTracker › reports no device when nothing is configured0 ms
  • ✓createBleLinkTracker › goes connected on a streaming status line — the regression this fixes1 ms
  • ✓createBleLinkTracker › distinguishes host-display pause from a dead link0 ms
  • ✓createBleLinkTracker › keeps hasFrame sticky across a disconnect and surfaces the error0 ms
  • ✓createBleLinkTracker › clears a stale error once the client recovers0 ms
  • ✓createBleLinkTracker › reports the backoff window after an exit, then falls back to connecting3 ms
  • ✓createBleLinkTracker › surfaces a missing BLE runtime instead of an unexplained disconnect0 ms
  • ✓createBleLinkTracker › a respawn clears the connected flag until the child reports again0 ms
  • ✓mergeBleLinkSnapshots › is connected only when every panel is1 ms
  • ✓mergeBleLinkSnapshots › reports no-device state when there are no trackers yet0 ms
  • ✓mergeBleLinkSnapshots › takes the newest push time across panels0 ms
bridge/src/__tests__/ble-worker-absent-panel.test.ts1/1
  • ✓BLE sync clients with an absent panel › runs the Python absent-panel suite4.5 s
bridge/src/__tests__/calendar.test.ts89/89
  • ✓parseCalendarSettings › accepts a single url or a list, rejects everything else4 ms
  • ✓ICS parsing › unfolds continuation lines0 ms
  • ✓ICS parsing › parses date, local, and UTC instants19 ms
  • ✓ICS parsing › parses VEVENTs with summary escaping and TZID params2 ms
  • ✓occursOn (recurrence) › non-recurring: literal date only1 ms
  • ✓occursOn (recurrence) › DAILY with INTERVAL and UNTIL7 ms
  • ✓occursOn (recurrence) › WEEKLY honors BYDAY2 ms
  • ✓occursOn (recurrence) › DAILY COUNT exhausts1 ms
  • ✓occursOn (recurrence) › MONTHLY and YEARLY match the start day4 ms
  • ✓occursOn (recurrence) › EXDATE removes an instance4 ms
  • ✓buildTodayEvents › keeps only what is left of today, all-day first, capped and sorted2 ms
  • ✓buildTodayEvents › an in-progress event survives the past filter via its end time1 ms
  • ✓buildTodayEvents › RECURRENCE-ID override replaces the master instance5 ms
  • ✓buildTodayEvents › trims titles to the UTF-8 byte budget1 ms
  • ✓CalendarProvider › fetches, caches, and re-filters cached parses against the current clock35 ms
  • ✓CalendarProvider › resolves undefined when unconfigured or on a cold failure1 ms
  • ✓shared calendar contract › reports content-free omissions: 'unknown-zone'0 ms
  • ✓shared calendar contract › reports content-free omissions: 'unsupported-daily-setpos'0 ms
  • ✓shared calendar contract › reports content-free omissions: 'invalid-date'0 ms
  • ✓shared calendar contract › reports content-free omissions: 'unsupported-empty-rule'0 ms
  • ✓shared calendar contract › keeps generated policy and wire bounds current2 ms
  • ✓shared calendar contract › 'cross-zone'1 ms
  • ✓shared calendar contract › 'wall-DST-07'1 ms
  • ✓shared calendar contract › 'wall-DST-08'1 ms
  • ✓shared calendar contract › 'wall-DST-09'1 ms
  • ✓shared calendar contract › 'utc-recurrence'1 ms
  • ✓shared calendar contract › 'gap-count-08'1 ms
  • ✓shared calendar contract › 'gap-count-09'1 ms
  • ✓shared calendar contract › 'gap-count-10'1 ms
  • ✓shared calendar contract › 'explicit-gap'1 ms
  • ✓shared calendar contract › 'overlap-first'1 ms
  • ✓shared calendar contract › 'floating'1 ms
  • ✓shared calendar contract › 'all-day-exclusive-03'1 ms
  • ✓shared calendar contract › 'all-day-exclusive-04'1 ms
  • ✓shared calendar contract › 'overnight-already-ended'1 ms
  • ✓shared calendar contract › 'overnight-ongoing'1 ms
  • ✓shared calendar contract › 'moved-04'1 ms
  • ✓shared calendar contract › 'moved-05'2 ms
  • ✓shared calendar contract › 'cancelled-override'1 ms
  • ✓shared calendar contract › 'absolute-exdate'2 ms
  • ✓shared calendar contract › 'monthly-count-skips-feb'1 ms
  • ✓shared calendar contract › 'monthly-ordinal'5 ms
  • ✓shared calendar contract › 'monthly-negative'2 ms
  • ✓shared calendar contract › 'weekly-interval'1 ms
  • ✓shared calendar contract › 'until-absolute'1 ms
  • ✓shared calendar contract › 'yearly-leap'5 ms
  • ✓shared calendar contract › 'unicode-unfold'1 ms
  • ✓shared calendar contract › 'nested-alarm'1 ms
  • ✓shared calendar contract › 'unknown-zone'1 ms
  • ✓shared calendar contract › 'unsupported-rule'0 ms
  • ✓shared calendar contract › 'invalid-date'0 ms
  • ✓shared calendar contract › 'same-day-end-filter'0 ms
  • ✓shared calendar contract › 'sorting-cap'1 ms
  • ✓shared calendar contract › 'recurring-explicit-gap-start'1 ms
  • ✓shared calendar contract › 'recurring-after-gap-start'1 ms
  • ✓shared calendar contract › 'exact-end-exclusive'1 ms
  • ✓shared calendar contract › 'escaped-backslash'1 ms
  • ✓shared calendar contract › 'duplicate-rrule-key'0 ms
  • ✓shared calendar contract › 'unsupported-yearly-byday'0 ms
  • ✓shared calendar contract › 'utf8-budget'1 ms
  • ✓shared calendar contract › 'until-inclusive-instant'2 ms
  • ✓shared calendar contract › 'exdate-must-match-time'3 ms
  • ✓shared calendar contract › 'weekly-wall-dst'1 ms
  • ✓shared calendar contract › 'windows-korea'1 ms
  • ✓shared calendar contract › 'windows-pacific-dst'1 ms
  • ✓shared calendar contract › 'windows-pacific-winter'1 ms
  • ✓shared calendar contract › 'week-boundary-SU-20261108'0 ms
  • ✓shared calendar contract › 'week-boundary-SU-20261115'1 ms
  • ✓shared calendar contract › 'week-boundary-MO-20261108'1 ms
  • ✓shared calendar contract › 'week-boundary-MO-20261115'1 ms
  • ✓shared calendar contract › 'monthly-first-last-weekday-20261102'1 ms
  • ✓shared calendar contract › 'monthly-first-last-weekday-20261103'1 ms
  • ✓shared calendar contract › 'monthly-first-last-weekday-20261130'4 ms
  • ✓shared calendar contract › 'monthly-set-intersection'1 ms
  • ✓shared calendar contract › 'unknown-zone'0 ms
  • ✓shared calendar contract › 'unsupported-daily-setpos'0 ms
  • ✓shared calendar contract › 'invalid-date'0 ms
  • ✓shared calendar contract › 'unsupported-empty-rule'0 ms
  • ○shared calendar contract › executes the actual Swift parser on every shared vector
  • ✓calendar cache contract › 'fresh-refilter-stale-expiry-disable'5 ms
  • ✓calendar cache contract › 'source-switch-failure-never-borrows-c…'3 ms
  • ✓calendar cache contract › 'clock-rollback-is-not-fresh'1 ms
  • ✓calendar cache contract › 'future-events-survive-stale-with-orig…'3 ms
  • ✓calendar cache contract › never publishes a revoked in-flight result or borrows another source job1 ms
  • ✓validates the same explicit source URL scope2 ms
  • ✓calendar network bounds › keeps concurrent sources isolated even when a cancelled transport returns late2 ms
  • ✓calendar network bounds › bounds silent requests with an abort deadline6 ms
  • ✓calendar network bounds › refuses oversized and malformed successful replies without logging secret-bearing errors2 ms
  • ✓content-free calendar diagnostics › reports skipped entries without another network request and clears them on disconnect1 ms
  • ✓normalizes subscription sources before fetching without changing private paths or queries3 ms
bridge/src/__tests__/card-feed.test.ts50/50
  • ✓classifySessionCard › permission gate → live with the long-poll TTL3 ms
  • ✓classifySessionCard › awaiting prompt without requestId → live with the awaiting backstop TTL0 ms
  • ✓classifySessionCard › idle/processing sessions → info without expiry1 ms
  • ✓buildCardFeed › derives one card per session with cardId session:<id>1 ms
  • ✓buildCardFeed › module cards (M7) follow the session projections and carry no session body1 ms
  • ✓buildCardFeed › builds a module-only feed for an offline-first Pocket reader0 ms
  • ✓buildCardFeed › pull cadence hint: idle roster → idle interval, active roster → active interval0 ms
  • ✓pull OTA Feed bootstrap › replaces a full deck with a cache-preserving OTA bootstrap envelope1 ms
  • ✓pull OTA Feed bootstrap › leaves ordinary and already-conditional feeds untouched1 ms
  • ✓applyOutboxDecisions › dismiss is always acknowledged, never dispatched1 ms
  • ✓applyOutboxDecisions › permission_decision applies only while the gate is still pending2 ms
  • ✓applyOutboxDecisions › permission_decision without requestId/decision is rejected0 ms
  • ✓applyOutboxDecisions › select_option routes session-scoped when the session is still awaiting0 ms
  • ✓applyOutboxDecisions › select_option expires when the prompt question changed0 ms
  • ✓applyOutboxDecisions › select_option expires when the session is no longer awaiting0 ms
  • ✓applyOutboxDecisions › unknown session → unknown_card0 ms
  • ✓applyOutboxDecisions › respond routes through session_command with the value0 ms
  • ✓applyOutboxDecisions › send_prompt queues via session_command for any alive session0 ms
  • ✓applyOutboxDecisions › malformed decisions are rejected without dispatch, order preserved0 ms
  • ✓applyOutboxDecisions › empty/absent decisions array → ok with no results0 ms
  • ✓applyOutboxDecisions › deduplicates a response-loss retry even when its computed age changed1 ms
  • ✓FeedPullTracker › normalizes v4-mapped and loopback client addresses0 ms
  • ✓FeedPullTracker › first pull carries no interval; the second measures it against the advertised cadence1 ms
  • ✓FeedPullTracker › a gap far off the advertised cadence is not counted as honoured0 ms
  • ✓FeedPullTracker › compares against the cadence advertised on the PREVIOUS pull, not the current one0 ms
  • ✓FeedPullTracker › learns the board from an outbox push and keeps it for later anonymous pulls0 ms
  • ✓FeedPullTracker › retains non-secret Surface product identity for card-feed diagnostics2 ms
  • ✓FeedPullTracker › tracks clients independently and reports the median observed interval1 ms
  • ✓FeedPullTracker › bounds its history ring, newest first0 ms
  • ✓FeedPullTracker › formats the pull line with the drift verdict0 ms
  • ✓conditional pull (deckSig) › stamps a deckSig and short-circuits to unchanged on a matching echo0 ms
  • ✓conditional pull (deckSig) › a ticking elapsedSec does not defeat the signature0 ms
  • ✓conditional pull (deckSig) › an idle roster stays signature-stable across a long clock advance (the idle-night case)0 ms
  • ✓conditional pull (deckSig) › a real content change still breaks the match even when elapsedSec moves0 ms
  • ✓conditional pull (deckSig) › expiresAt churn does not defeat the signature (live cards re-stamp every build)0 ms
  • ✓conditional pull (deckSig) › content change breaks the match0 ms
  • ✓conditional pull (deckSig) › glance is covered by the signature0 ms
  • ✓glance builders › trimUtf8Bytes trims on rune boundaries by byte budget0 ms
  • ✓glance builders › buildGlanceUsage derives Claude and Codex rows with integer percents1 ms
  • ✓glance builders › buildGlanceUsage emits no row for a provider with no numbers0 ms
  • ✓glance builders › buildGlanceUsage adds the z.ai row after Codex and fits all three providers0 ms
  • ✓glance builders › buildGlanceUsage keeps the list compact when only z.ai is live0 ms
  • ✓glance builders › buildGlanceWrapup ranks attention first and folds overflow0 ms
  • ✓glance builders › buildGlance returns undefined when there is nothing to say0 ms
  • ✓glance builders › projects portable-reader weather to exactly the fields firmware renders1 ms
  • ✓glance builders › projects a compact five-day outlook only when the reader negotiated it1 ms
  • ✓pull telemetry › keeps omitted telemetry absent rather than inventing a zero-percent battery0 ms
  • ✓pull telemetry › parsePullTelemetry keeps in-range values and drops garbage0 ms
  • ✓pull telemetry › tracker records telemetry and unchanged counts per client0 ms
  • ✓pull telemetry › formats unchanged pulls and telemetry into the log line0 ms
bridge/src/__tests__/card-modules.test.ts17/17
  • ✓module card ids › round-trips module:<id>:<key>, including keys that contain colons4 ms
  • ✓module card ids › rejects session card ids and malformed ones0 ms
  • ✓sealModuleCard — the ≤4-choice rule as a clamp › binds at most three choices, because slot 1 is the device Later2 ms
  • ✓sealModuleCard — the ≤4-choice rule as a clamp › drops choices missing an id or a label rather than shipping a blank button0 ms
  • ✓sealModuleCard — the ≤4-choice rule as a clamp › caps context lines and omits empty collections entirely0 ms
  • ✓sealModuleCard — the ≤4-choice rule as a clamp › trims text to a UTF-8 byte budget on a code-point boundary1 ms
  • ✓sealModuleCard — the ≤4-choice rule as a clamp › bounds stable choice ids for fixed firmware outbox buffers0 ms
  • ✓sealModuleCard — the ≤4-choice rule as a clamp › stamps the card id and keeps the class/expiry the module asked for2 ms
  • ✓buildModuleCards › a module that throws is skipped, the rest of the feed survives0 ms
  • ✓THREAD module › produces nothing when there is no live session0 ms
  • ✓THREAD module › leads with how many threads need the user1 ms
  • ✓THREAD module › checkpoints an idle session with its last milestone0 ms
  • ✓THREAD module › says what did not fit instead of implying the list is complete0 ms
  • ✓card_choice routing › routes a choice to the authoring module with the card key3 ms
  • ✓card_choice routing › is terminal — never retryable — for unknown, read-only, or id-less cards0 ms
  • ✓card_choice routing › a throwing module reports error rather than taking the batch down0 ms
  • ✓card_choice routing › reaches the module through the outbox path, without touching session state1 ms
bridge/src/__tests__/dashboard-provider-vectors.test.ts13/13
  • ✓dashboard provider vectors (shared with the Swift suite) › the frozen pre-mechanism baseline is exactly the vocabulary minus z.ai6 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › legacy save (no seen key) + z.ai confirmed → z.ai joins exactly once1 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › the join is once — a second read with z.ai still confirmed adds nothing0 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › a deliberate later hide wins — z.ai stays hidden despite being confirmed0 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › pre-mechanism absence is a deliberate choice: legacy save without claude never auto-adds claude0 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › unconfirmed providers never join — confirmation is the gate, not vocabulary membership0 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › initialize seeds the discovered set; a later-confirmed z.ai joins0 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › initialize cannot overwrite a saved choice (initialize-once unchanged)0 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › after initialize, a confirmed z.ai joins the saved list once0 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › a MANUAL save saw the full menu — nothing auto-joins afterwards, not even a newly confirmed provider0 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › an explicit empty list is a saved choice, not uninitialized0 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › the empty saved choice still admits a never-offered confirmed provider0 ms
  • ✓dashboard provider vectors (shared with the Swift suite) › null providers with no update stays null — initialize-once waits for a client0 ms
bridge/src/__tests__/dashboard-providers.test.ts4/4
  • ✓stable dashboard provider membership › initializes once and preserves the list through a cold read and absent telemetry6 ms
  • ✓stable dashboard provider membership › explicit hiding survives re-registration and preserves unrelated settings2 ms
  • ✓stable dashboard provider membership › rejects invalid membership without overwriting saved choices2 ms
  • ✓stable dashboard provider membership › deduplicates and keeps stable order1 ms
bridge/src/__tests__/desk-awareness.test.ts5/5
  • ✓desk awareness › prioritizes real waiting over recent results and ignores dead sessions4 ms
  • ✓desk awareness › does not mistake idle, missing sessions, or abandoned work for completion1 ms
  • ✓desk awareness › retains explicit results for 90 seconds, rejects future timestamps0 ms
  • ✓desk awareness › keeps rendering deterministic and states distinct at 11 pixels11 ms
  • ✓desk awareness › keeps rendering deterministic and states distinct at 32 pixels46 ms
bridge/src/__tests__/device-discovery.test.ts2/2
  • ✓Pixoo discovery — config-reply classification › accepts a real GetAllConf reply2 ms
  • ✓Pixoo discovery — config-reply classification › rejects a non-Pixoo HTTP/JSON response0 ms
bridge/src/__tests__/device-photo.test.ts13/13
  • ✓DevicePhotoCollector › assembles frames into a JPEG file and reports the target session5 ms
  • ✓DevicePhotoCollector › ignores binary frames with no open capture1 ms
  • ✓DevicePhotoCollector › keeps captures separate per connection1 ms
  • ✓DevicePhotoCollector › returns null for a cancelled or empty capture0 ms
  • ✓DevicePhotoCollector › drops a capture whose byte count disagrees with the board claim0 ms
  • ✓DevicePhotoCollector › drops an oversized capture instead of writing a truncated JPEG3 ms
  • ✓DevicePhotoCollector › reaps captures whose photo_end never arrived1 ms
  • ✓DevicePhotoCollector › abandon drops the open capture for a dead socket0 ms
  • ✓prunePhotoDir › keeps only the newest N photos2 ms
  • ✓prunePhotoDir › is silent on a missing directory1 ms
  • ✓photo file names › keeps a hostile board id inside the photo directory1 ms
  • ✓photo file names › falls back to esp32 when nothing usable is left1 ms
  • ✓photo file names › keeps ordinary board ids unchanged1 ms
bridge/src/__tests__/display-dim.test.ts4/4
  • ✓display dim settings › defaults to enabled full-off when settings are missing5 ms
  • ✓display dim settings › normalizes minimum-brightness settings0 ms
  • ✓display dim settings › embeds the resolved dim instruction in display_state events1 ms
  • ✓display dim settings › stamps host-local HH:MM, zero-padded, on every build1 ms
bridge/src/__tests__/display-monitor.test.ts6/6
  • ✓asynchronous display fallback probes › rechecks a briefly retained lock during wake without treating it as unlocked11 ms
  • ✓asynchronous display fallback probes › refreshes presence immediately on CG wake without waiting for a silent power probe2 ms
  • ✓asynchronous display fallback probes › publishes rapid CG edges once and ignores stdout/exit from a stopped helper2 ms
  • ✓asynchronous display fallback probes › leaves timers free while probes are pending, then applies presence and no-match results4 ms
  • ✓asynchronous display fallback probes › bounds a silent child and retains the last known state on timeout or probe errors10 ms
  • ✓asynchronous display fallback probes › ignores completions from a previous lifecycle after stop and restart1 ms
bridge/src/__tests__/esp32-flash-lease.test.ts11/11
  • ✓clampLeaseSeconds › clamps to the documented window3 ms
  • ✓clampLeaseSeconds › never lets junk become an unbounded suspension0 ms
  • ✓readLease › reports an active lease1 ms
  • ✓readLease › an expired lease reads as NO lease — expiry is enforced here, not by a timer1 ms
  • ✓readLease › is evaluated against the caller's clock, not the write time1 ms
  • ✓readLease › fails OPEN on a corrupt lease1 ms
  • ✓readLease › fails open on a lease with no usable expiry1 ms
  • ✓readLease › is absent when no lease was ever written0 ms
  • ✓lease persistence › is a FILE, so it outlives the process that wrote it2 ms
  • ✓lease persistence › clearLease is idempotent1 ms
  • ✓lease persistence › honours AGENTDECK_DATA_DIR0 ms
bridge/src/__tests__/esp32-flash-transport.test.ts8/8
  • ✓optional dependency › reports absence rather than throwing MODULE_NOT_FOUND2 ms
  • ✓optional dependency › lists no candidates when serialport is missing — never a crash1 ms
  • ✓optional dependency › open() names the missing module instead of failing obscurely2 ms
  • ✓port enumeration › keeps USB serial candidates and prefers the callout node1 ms
  • ✓port enumeration › drops Bluetooth and debug nodes0 ms
  • ✓port enumeration › accepts the Linux node names too0 ms
  • ✓setSignals › writes BOTH lines on every call, whichever one was named1 ms
  • ✓setSignals › is a no-op on a closed port rather than an error1 ms
bridge/src/__tests__/esp32-flash.test.ts25/25
  • ✓resolveFlashBoard › accepts the canonical id, the pio env, and every alias4 ms
  • ✓resolveFlashBoard › offers boards the BROWSER does not — USB is the only path for some1 ms
  • ✓resolveFlashBoard › names the alternatives when a target is unknown5 ms
  • ✓firmwareVersionFromCheckout › reads FIRMWARE_VERSION out of config.h0 ms
  • ✓firmwareVersionFromCheckout › returns undefined rather than guessing when the constant is absent0 ms
  • ✓classifyHolders › separates AgentDeck processes from everyone else2 ms
  • ✓classifyHolders › treats an unknown holder as foreign1 ms
  • ✓pickFirmwareTag › prefers the checkout version when that release is published0 ms
  • ✓pickFirmwareTag › falls back to the newest release in the bump-before-tag window0 ms
  • ✓pickFirmwareTag › falls back when there is no checkout at all (installed from npm)0 ms
  • ✓pickFirmwareTag › refuses rather than inventing a tag0 ms
  • ✓pickFirmwareTag › reports WHICH rule it used0 ms
  • ✓parseLsofHolders › pairs each command with its pid and ignores the fd lines0 ms
  • ✓parseLsofHolders › handles several holders0 ms
  • ✓parseLsofHolders › reads empty output as no holders0 ms
  • ✓SERIAL_PROBE_UNAVAILABLE › names TC001, whose CH340 TX is broken in hardware0 ms
  • ✓SERIAL_PROBE_UNAVAILABLE › does not excuse any other board0 ms
  • ✓resolveFirmware › serves a cache hit without touching the network6 ms
  • ✓resolveFirmware › RE-VERIFIES the cache, because a cache key proves provenance and not integrity3 ms
  • ✓resolveFirmware › refuses a manifest whose hash does not describe its file1 ms
  • ✓resolveFirmware › takes the tag from a checkout config.h when none is given1 ms
  • ✓resolveFirmware › an explicit --firmware bypasses the manifest and SAYS it is unverified1 ms
  • ✓resolveFirmware › explains a release that publishes no merged image for the board3 ms
  • ✓resolveFirmware › --offline fails rather than reaching the network for a tag1 ms
  • ✓resolveFirmware › respects AGENTDECK_DATA_DIR for the cache0 ms
bridge/src/__tests__/esp32-heap-fields.test.ts3/3
  • ✓ESP32 heap fields reach both device registries › carries every heap field over serial and over WiFi5 ms
  • ✓ESP32 heap fields reach both device registries › keeps an explicit zero failure count, which absent firmware cannot send1 ms
  • ✓ESP32 heap fields reach both device registries › keeps an explicit zero reserve, which says the board asked for one and carved none1 ms
bridge/src/__tests__/esp32-orientation.test.ts5/5
  • ✓esp32 orientation › accepts only the three layouts3 ms
  • ✓esp32 orientation › carries the legacy bool for explicit sides but not for auto1 ms
  • ✓esp32 orientation › prefers the live serial link over WiFi5 ms
  • ✓esp32 orientation › falls back to WiFi when serial is absent or the write fails0 ms
  • ✓esp32 orientation › surfaces an unreachable board instead of reporting success1 ms
bridge/src/__tests__/esp32-ota-stage-key.test.ts13/13
  • ✓pull-OTA staging › resolves an IP target to the board the advert is keyed on7 ms
  • ✓pull-OTA staging › keeps an unknown target verbatim rather than inventing a board1 ms
  • ✓pull-OTA staging › adverts an IP-targeted stage to the board that pulls the feed3 ms
  • ✓pull-OTA staging › reports pullSeen=false when no feed pull has ever been observed1 ms
  • ✓pull-OTA staging › reports pullSeen=true once that board has actually pulled the feed1 ms
  • ✓pull-OTA staging › resolves a target through the feed tracker when the board has slept out of the WS roster1 ms
  • ✓pull-OTA staging › isolates X3 and X4 stages by the complete product tuple3 ms
  • ✓pull-OTA staging › acknowledges an SD-installed staged image by its embedded client version2 ms
  • ✓pull-OTA staging › refreshes a rebuilt-in-place image before accepting a version acknowledgement2 ms
  • ✓pull-OTA staging › rejects cross-product and cross-channel stages before persisting2 ms
  • ✓pull-OTA staging › serves pull OTA as bounded, contiguous resume segments2 ms
  • ✓pull-OTA staging › honors the bounded cooperative Surface binary segment limit1 ms
  • ✓pull-OTA staging › redirects dual-homed OTA traffic to the device-side Wi-Fi interface once1 ms
bridge/src/__tests__/esp32-serial-lifecycle.test.ts4/4
  • ✓serial discovery lifetime fencing › discards an in-flight open and never opens its next candidate after lease6 ms
  • ✓serial discovery lifetime fencing › discards an in-flight open and never opens its next candidate after stop1 ms
  • ✓serial discovery lifetime fencing › discards an in-flight open and never opens its next candidate after restart1 ms
  • ✓serial discovery lifetime fencing › checks a lease created while discovery is pending, even without an in-process generation change0 ms
bridge/src/__tests__/esp32-serial-node.test.ts117/117
  • ✓CI waiting evidence projection › serializes the same pending/terminal evidence as the full waitingOn policy7 ms
  • ✓background task compact transport › preserves explicit zero and bounded counts without manufacturing a count3 ms
  • ✓SERIAL_FORWARDED_EVENTS › includes all display events0 ms
  • ✓SERIAL_FORWARDED_EVENTS › includes timeline events (unique to serial)0 ms
  • ✓SERIAL_FORWARDED_EVENTS › does NOT include plugin-only events1 ms
  • ✓SERIAL_FORWARDED_EVENTS › required serial events are present0 ms
  • ✓ESP32 port detection patterns › matches CH340 ports (86 Box)1 ms
  • ✓ESP32 port detection patterns › matches native USB JTAG ports (IPS 3.5", Round AMOLED)0 ms
  • ✓ESP32 port detection patterns › matches Linux serial ports0 ms
  • ✓ESP32 port detection patterns › excludes Bluetooth and WLAN0 ms
  • ✓ESP32 port detection patterns › excludes non-ESP32 ports0 ms
  • ✓ESP32 serial USB vendor gate › maps each callout device to its nearest USB vendor1 ms
  • ✓ESP32 serial USB vendor gate › allows the ESP32 serial bridges and an unresolved vendor1 ms
  • ✓ESP32 serial USB vendor gate › rejects a CDC port the name patterns accept but whose vendor is not an ESP32 bridge0 ms
  • ✓ESP32 serial USB vendor gate › returns an empty map for empty or unrelated output0 ms
  • ✓handleSerialLine (source) › parses device_info message and updates deviceInfo2 ms
  • ✓handleSerialLine (source) › carries the allocation-failure counter, including an explicit zero2 ms
  • ✓handleSerialLine (source) › carries the board-reported WiFi RSSI and drops implausible values1 ms
  • ✓handleSerialLine (source) › carries the WiFi credential id only as a string1 ms
  • ✓handleSerialLine (source) › keeps the credential id off /devices and out of the device cache1 ms
  • ✓handleSerialLine (source) › skips debug lines (non-JSON)2 ms
  • ✓handleSerialLine (source) › retains numeric e-ink completion events without painted content4 ms
  • ✓handleSerialLine (source) › retains numeric heap-failure lines and nothing appended to them1 ms
  • ✓handleSerialLine (source) › retains numeric internal-reserve lines and nothing appended to them1 ms
  • ✓handleSerialLine (source) › retains hosted software-reset evidence without logging subsequent private lines1 ms
  • ✓handleSerialLine (source) › records allowed voice stages under normal serial ownership0 ms
  • ✓handleSerialLine (source) › does not misclassify the normal I2C register probe as a panic2 ms
  • ✓handleSerialLine (source) › retains a content-free voice milestone: [WakeVoice] detected score=2421 ms
  • ✓handleSerialLine (source) › retains a content-free voice milestone: [WakeVoice] capture end samples=42912 queued=10 ms
  • ✓handleSerialLine (source) › retains a content-free voice milestone: [Voice] HTTP upload attempt 1: 85824 bytes, internal heap 84 KB0 ms
  • ✓handleSerialLine (source) › retains a content-free voice milestone: [Voice] HTTP upload 85824 bytes -> 200 (attempt 1)0 ms
  • ✓handleSerialLine (source) › retains a content-free voice milestone: [Voice] HTTP upload 85824 bytes -> -2 (attempt 1)0 ms
  • ✓handleSerialLine (source) › retains a content-free voice milestone: [VoicePerf] uploadMs=198 minInternalKB=59 pressureWaits=20 ms
  • ✓handleSerialLine (source) › retains a content-free voice milestone: [Speaker] played 28132/28132 bytes (0.9s), 0 frames dropped0 ms
  • ✓handleSerialLine (source) › retains a content-free voice milestone: [VoiceFeedback] state=waiting captureElapsedMs=00 ms
  • ✓handleSerialLine (source) › retains a content-free voice milestone: [VoiceEndpoint] complete elapsedMs=2422 quietMs=1217 rms=99 threshold=2090 ms
  • ✓handleSerialLine (source) › does not log unapproved voice content: [Voice] upload peer=192.168.68.100:91200 ms
  • ✓handleSerialLine (source) › does not log unapproved voice content: [WakeVoice] capture wake target=private-session noise=88 threshold=2090 ms
  • ✓handleSerialLine (source) › does not log unapproved voice content: [VoiceFeedback] state=waiting captureElapsedMs=0 secret text0 ms
  • ✓handleSerialLine (source) › does not log unapproved voice content: [Voice] transcript: private speech0 ms
  • ✓handleSerialLine (source) › does not log unapproved voice content: {"type":"voice_result","text":"private speech"}0 ms
  • ✓handleSerialLine (source) › does not log unapproved voice content: [Voice] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0 ms
  • ✓handleSerialLine (source) › opens a panic capture window on crash markers and captures the dump1 ms
  • ✓handleSerialLine (source) › closes the panic window after expiry and caps captured lines0 ms
  • ✓handleSerialLine (source) › recovers from malformed JSON1 ms
  • ✓handleSerialLine (source) › ignores JSON without type field0 ms
  • ✓handleSerialLine (source) › does not mark deviceInfo present for non-identifying messages1 ms
  • ✓budgetTimelineEntries › keeps the newest entries under the byte budget, in chronological order1 ms
  • ✓budgetTimelineEntries › passes small histories through untouched1 ms
  • ✓serial I/O error classification › treats nonblocking backpressure as retryable0 ms
  • ✓serial I/O error classification › does not retry terminal serial errors0 ms
  • ✓prepareForSerial (source) › strips agentCapabilities from state_update0 ms
  • ✓prepareForSerial (source) › strips billingType and remoteUrl from state_update0 ms
  • ✓prepareForSerial (source) › preserves essential state_update fields1 ms
  • ✓prepareForSerial (source) › strips bulky state_update fields before device_info arrives1 ms
  • ✓prepareForSerial (source) › trims sessions_list to firmware fields and string sizes1 ms
  • ✓prepareForSerial (source) › preserves a deliverable permission identity and explicitly disables truncated or revoked compact controls2 ms
  • ✓prepareForSerial (source) › fits crowded native permission rosters without losing the shown request identities6 ms
  • ✓prepareForSerial (source) › forwards per-session D1 mosaic fields (tool/elapsed/awaiting prompt) and trims oversized strings1 ms
  • ✓prepareForSerial (source) › round-robins sessions_list by agent type so non-Claude agents survive the cap1 ms
  • ✓prepareForSerial (source) › roundRobinByAgentType keeps every present agent type and is a no-op under the cap1 ms
  • ✓prepareForSerial (source) › strips legacy usage fields from usage_update1 ms
  • ✓prepareForSerial (source) › preserves Codex window freshness for firmware-side hiding0 ms
  • ✓prepareForSerial (source) › forwards z.ai windowMinutes so serial boards label windows by length, not "P"/"S"0 ms
  • ✓prepareForSerial (source) › passes through other events unchanged0 ms
  • ✓prepareForSerial (source) › caps timeline raw by UTF-8 BYTES on a code-point boundary (한글-safe)1 ms
  • ✓prepareForSerial (source) › forwards daemon-computed lastEvent* fields byte-capped, omitted when absent1 ms
  • ✓prepareForSerial (source) › caps timeline_history to the firmware ring (64) AND the line-buffer byte budget1 ms
  • ✓Claude tool rows on the serial path › drops a live tool row and still sends every other timeline row0 ms
  • ✓Claude tool rows on the serial path › ships a history frame with tool rows exactly as it ships one without them1 ms
  • ✓Claude tool rows on the serial path › seeds a connecting board with the newest rows it may show0 ms
  • ✓query_session_timeline over serial › answers the board on its own line, under the id the board asked with2 ms
  • ✓query_session_timeline over serial › sends nothing for a session with no rows to answer with0 ms
  • ✓WiFi provision protocol › provision message has all required fields0 ms
  • ✓WiFi provision protocol › auto-provisions first-setup boards and refreshes IPS10 endpoint while online0 ms
  • ✓WiFi provision protocol › decides on what the board said over this connection, not the device cache0 ms
  • ✓WiFi provision protocol › leaves a parked board alone when it already holds these credentials0 ms
  • ✓WiFi provision protocol › re-arms the pairing token on boards the WiFi gate skips0 ms
  • ✓WiFi provision protocol › costs one write per board per token, not one per device_info frame0 ms
  • ✓WiFi provision protocol › never writes a credential to an unidentified or empty peer0 ms
  • ✓serial provisioning fan-out over the live connection list › sends WiFi credentials only to a board that identified here and holds other ones1 ms
  • ✓serial provisioning fan-out over the live connection list › arms the token only on a board that identified on this connection0 ms
  • ✓serial provisioning fan-out over the live connection list › sends the legacy re-arm only to identified firmware that reports no credential id1 ms
  • ✓serial buffer management › line splitting handles multiple lines in one chunk0 ms
  • ✓serial buffer management › handles partial message across chunks0 ms
  • ✓serial buffer management › truncates buffer when exceeding 8KB limit0 ms
  • ✓foreign port detection › flags a port that opened but never sent valid JSON0 ms
  • ✓foreign port detection › does NOT flag a connection that ever read a valid AgentDeck message0 ms
  • ✓foreign port detection › does NOT flag a connection that already identified its board0 ms
  • ✓foreign port denylist threshold › denylists a port only after repeated failed probes0 ms
  • ✓foreign port denylist threshold › treats an elapsed cooldown as no longer denylisted0 ms
  • ✓half-open identified CDC recovery › flags an identified CDC port that has never read since (re)connect0 ms
  • ✓half-open identified CDC recovery › does NOT flag while the read pipe is alive0 ms
  • ✓half-open identified CDC recovery › does NOT flag inside the grace window after connect0 ms
  • ✓half-open identified CDC recovery › does NOT flag an unidentified CDC port — that is the foreign path0 ms
  • ✓half-open identified CDC recovery › does NOT flag a UART (non-CDC) port — handled by the read-timeout branch0 ms
  • ✓serial keepalive ack contract › contains the quoted "keepalive" substring the firmware strstr-matches0 ms
  • ✓serial keepalive ack contract › is the exact frame the deployed firmware acks0 ms
  • ✓half-open identified UART recovery › flags an identified UART whose RX died mid-connection0 ms
  • ✓half-open identified UART recovery › does NOT flag while reads are current0 ms
  • ✓half-open identified UART recovery › does NOT flag below the silence timeout (one lost device_info is not death)0 ms
  • ✓half-open identified UART recovery › does NOT flag a never-read UART — that is the initial-read/foreign path0 ms
  • ✓half-open identified UART recovery › does NOT flag an unidentified UART0 ms
  • ✓half-open identified UART recovery › does NOT flag a CDC port — handled by isHalfOpenIdentifiedCdc/CDC clauses0 ms
  • ✓device-info re-identify gating › retries a brand-new (unseeded) connection that has not yet identified0 ms
  • ✓device-info re-identify gating › retries a CACHE-SEEDED connection (stale deviceInfo, not yet fresh) — the trmnl_75 bug0 ms
  • ✓device-info re-identify gating › STOPS once a live device_info has landed on this connection0 ms
  • ✓device-info re-identify gating › stops after the request budget is exhausted0 ms
  • ✓device-info re-identify gating › paces requests — no retry inside the retry interval0 ms
  • ✓device-info re-identify gating › does not retry a disconnected connection0 ms
  • ✓serial/WiFi display-path dedup › does not suppress WiFi for a cache-seeded CDC port with no inbound traffic0 ms
  • ✓serial/WiFi display-path dedup › suppresses WiFi only while a live device_info connection has recent inbound traffic0 ms
  • ✓serialOpenFailureBackoffMs › ramps 10→20→40→80→160→300s and reaches the 5-min block at the 6th failure0 ms
  • ✓serialOpenFailureBackoffMs › never exceeds the 5-min block for any transient failCount6 ms
  • ✓serialOpenFailureBackoffMs › uses the flat 5-min block for EACCES (permanent) failures0 ms
  • ✓sanitizeRssiDbm › keeps a plausible dBm reading, rounded0 ms
  • ✓sanitizeRssiDbm › treats absent, zero, positive and non-numeric values as no reading0 ms
bridge/src/__tests__/esp32-serial-open.test.ts4/4
  • ✓serial driver open deadline › allows a healthy driver to finish beyond the quick probe deadline9 ms
  • ✓serial driver open deadline › times out a silent driver, blocks duplicate opens, and closes its late descriptor5 ms
  • ✓serial driver open deadline › also rejects a late completion when the timer has not run yet1 ms
  • ✓serial driver open deadline › returns prompt driver errors and releases the pending slot1 ms
bridge/src/__tests__/esp32-serial-vendors-process.test.ts1/1
  • ✓kills a real stalled child and can recover after close/backoff3.1 s
bridge/src/__tests__/esp32-serial-vendors.test.ts15/15
  • ✓macOS USB registry discovery › shares a pending read and caches an unchanged, reordered candidate set12 ms
  • ✓macOS USB registry discovery › refreshes on changed candidates, after unplug/replug, and at the bounded cache age2 ms
  • ✓macOS USB registry discovery › does not run ioreg for no candidates or on Linux/Windows2 ms
  • ✓macOS USB registry discovery › keeps a timed-out, SIGKILL-resistant child single-flight even beyond every retry delay10 ms
  • ✓macOS USB registry discovery › backs off globally through topology changes, caps retries, and resets after success3 ms
  • ✓macOS USB registry discovery › ignores late successful output and waits for both close and the failure backoff1 ms
  • ✓macOS USB registry discovery › retains known vendors for unchanged ports when a refresh fails6 ms
  • ✓macOS USB registry discovery › does not resurrect a timed-out cached result after unplug/replug of the same path1 ms
  • ✓macOS USB registry discovery › discards a successful read if candidates changed while it was running1 ms
  • ✓macOS USB registry discovery › rejects a late callback even before a delayed timeout callback runs1 ms
  • ✓macOS USB registry discovery › recovers from spawn error without a live child1 ms
  • ✓macOS USB registry discovery › recovers from throw without a live child1 ms
  • ✓macOS USB registry discovery › retains the slot when sending SIGKILL throws1 ms
  • ✓macOS USB registry discovery › runs ioreg directly with the bounded 8 MiB budget for a real-size registry4 ms
  • ✓production serial poll wiring › does not stack ioreg across polls or serial stop/start after its deadline9 ms
bridge/src/__tests__/esp32-suspend-sweep.test.ts7/7
  • ✓sweepAndSuspendDaemons › suspends every answering daemon and reports the ports to resume5 ms
  • ✓sweepAndSuspendDaemons › the incident shape: timeout against an AgentDeck listener REFUSES, not "nothing to suspend"1 ms
  • ✓sweepAndSuspendDaemons › ECONNREFUSED is the one silence that means absent — proceeds1 ms
  • ✓sweepAndSuspendDaemons › silence from a NON-AgentDeck listener is not a serial threat1 ms
  • ✓sweepAndSuspendDaemons › a daemon that answers HTTP 404 refuses only when /health says it is a daemon1 ms
  • ✓sweepAndSuspendDaemons › an unobservable listener (lsof failed) is treated as absent, not refused0 ms
  • ✓scanTcpListener (live loopback) › names its listener and observes its release82 ms
bridge/src/__tests__/esp32-transport-dedup.test.ts7/7
  • ✓isWifiTransportRedundant › dedups when the same board id is live on serial (both report matching IP)3 ms
  • ✓isWifiTransportRedundant › dedups by board id alone when serial reports no IP (radio parked / pre-DHCP)0 ms
  • ✓isWifiTransportRedundant › dedups when the WiFi side has no IP but the board id matches serial0 ms
  • ✓isWifiTransportRedundant › does NOT dedup a WiFi-only board with no serial presence (86box: USB power-only)0 ms
  • ✓isWifiTransportRedundant › does NOT dedup two distinct physical units of the same model on different IPs0 ms
  • ✓isWifiTransportRedundant › never dedups an unresolved/unknown board identity0 ms
  • ✓isWifiTransportRedundant › returns false when nothing is live on serial (WiFi is the only path)0 ms
bridge/src/__tests__/esp32-wifi-cred.test.ts5/5
  • ✓wifiCredId › replays every credential-id vector5 ms
  • ✓wifiCredId › is lowercase hex of the shared length0 ms
  • ✓buildWifiProvision › carries the id of its own credentials and token1 ms
  • ✓buildWifiProvision › derives the id from the token it carries0 ms
  • ✓buildWifiProvision › omits the key when there is no id to offer1 ms
bridge/src/__tests__/esp32-wifi-ota-reconnect.test.ts5/5
  • ✓WiFi OTA reconnect-follow › completes a transfer across a mid-flight WS disconnect by resending on the reconnected socket59 ms
  • ✓WiFi OTA reconnect-follow › fails fast when the board drops mid-OTA and never reconnects453 ms
  • ✓WiFi OTA reconnect-follow › a clean transfer (no disconnect) completes with zero reconnect-resends1 ms
  • ✓aborts an in-flight owner and ignores its late ACK before a fresh transfer2 ms
  • ✓refuses a post-wake ACK whose wall deadline passed before its timer2 ms
bridge/src/__tests__/esp32-wifi-ota-serial-wake.test.ts4/4
  • ✓WiFi OTA to a board parked on USB serial › releases only that board, waits for it on WiFi, transfers, then reopens the port510 ms
  • ✓WiFi OTA to a board parked on USB serial › reports that the board never joined WiFi and reopens its port504 ms
  • ✓WiFi OTA to a board parked on USB serial › leaves serial alone when the board is already live on WiFi2 ms
  • ✓WiFi OTA to a board parked on USB serial › keeps the original error when the board is on neither transport1 ms
bridge/src/__tests__/esp32-wifi-setup.test.ts98/98
  • ✓who may read or change the WiFi credentials › a loopback caller with the token as a bearer3 ms
  • ✓who may read or change the WiFi credentials › never a LAN address, even one holding the token0 ms
  • ✓who may read or change the WiFi credentials › never this machine without the token0 ms
  • ✓who may read or change the WiFi credentials › is refused in the routes' own shape1 ms
  • ✓GET /esp32/wifi › reports nothing configured as such1 ms
  • ✓GET /esp32/wifi › serves the SSID and never the password2 ms
  • ✓GET /esp32/wifi › a daemon without the serial channel lists no boards0 ms
  • ✓POST /esp32/wifi › saves, then sends to the serial boards as an operator request2 ms
  • ✓POST /esp32/wifi › keeps autoProvision false when asked, and still sends this once0 ms
  • ✓POST /esp32/wifi › a daemon without the serial channel saves and sends nothing1 ms
  • ✓POST /esp32/wifi › refuses {"ssid":"","password":"correct horse battery staple"} with 400 ssid-missing and saves nothing0 ms
  • ✓POST /esp32/wifi › refuses {"password":"correct horse battery staple"} with 400 ssid-missing and saves nothing0 ms
  • ✓POST /esp32/wifi › refuses {"ssid":"abcdefghijklmnopqrstuvwxyz0123456","password":"correct horse battery staple"} with 400 ssid-too-long and saves nothing0 ms
  • ✓POST /esp32/wifi › refuses {"ssid":"DeskNet","password":"seven77"} with 400 password-too-short and saves nothing0 ms
  • ✓POST /esp32/wifi › refuses {"ssid":"DeskNet"} with 400 password-too-short and saves nothing0 ms
  • ✓POST /esp32/wifi › refuses {"ssid":"DeskNet","password":"gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg"} with 400 password-too-long and saves nothing0 ms
  • ✓POST /esp32/wifi › refuses {"ssid":"DeskNet","password":"pass\nword1"} with 400 control-character and saves nothing0 ms
  • ✓POST /esp32/wifi › refuses {"ssid":"DeskNet","password":"correct horse battery staple","autoProvision":"yes"} with 400 invalid-body and saves nothing0 ms
  • ✓POST /esp32/wifi › refuses ["DeskNet","correct horse battery staple"] with 400 invalid-body and saves nothing0 ms
  • ✓POST /esp32/wifi › refuses "ssid" with 400 invalid-body and saves nothing0 ms
  • ✓POST /esp32/wifi › refuses null with 400 invalid-body and saves nothing0 ms
  • ✓POST /esp32/wifi › a failed save sends nothing0 ms
  • ✓serial layer behind the routes › an operator request reaches a connection that already had a provision and old firmware2 ms
  • ✓serial layer behind the routes › a send stamps the connection and forgets the answer to the previous one1 ms
  • ✓serial layer behind the routes › records the board's ack as it said it, cleaned1 ms
  • ✓serial layer behind the routes › an ack that arrives while a later provision is owed one answers the earlier provision1 ms
  • ✓serial layer behind the routes › an ack naming an earlier provision is not shown as the latest one's result0 ms
  • ✓serial layer behind the routes › logs connected only for a board that says it joined (ESP32WifiSetupTests: the same lines)0 ms
  • ✓serial layer behind the routes › an ack owed past the shared timeout is presumed lost when the next provision is written0 ms
  • ✓serial layer behind the routes › a row says whether the board holds the configured credentials, never the id1 ms
  • ✓serial layer behind the routes › lists only live connections1 ms
  • ✓the POST body reader › reads an oversized body to its end, keeping none of it, so the refusal is an answer6 ms
  • ✓the POST body reader › drops a request that runs past the drain bound2 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › names the id of its credentials under its token0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › GET: nothing configured1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › GET: configured: the SSID and never the password; boards judged against the configured id0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › GET: a daemon without the serial channel lists no boards and asks for none0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: saved, then sent to the serial boards as an operator request1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: autoProvision false is kept, and this request still sends0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: a daemon without the serial channel saves and sends nothing0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: a missing SSID is an empty one1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: a short password0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: a non-string password is a missing one0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: a control character0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: autoProvision must be a boolean1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: an array is not a request0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: a string is not a request0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: null is not a request0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › POST: a failed save sends nothing0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › gate: IPv4 loopback with the token0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › gate: IPv6 loopback with the token0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › gate: mapped IPv4 loopback with the token0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › gate: a LAN address holding the token0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › gate: a mapped LAN address holding the token0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › gate: loopback without a token0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › gate: loopback with an empty bearer0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › gate: loopback with a wrong token0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › gate: loopback with the token but no scheme0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › refuses in one shape0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › row: a board holding the configured credentials0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › row: a board holding other credentials, sent a provision and answering it0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › row: firmware that predates the id cannot tell0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › row: nothing configured to compare cannot tell0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › row: no device_info on this connection0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: no body is an empty object1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: an object1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: UTF-8 text is kept as it is1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: an escaped surrogate pair is one character1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: a bare string is JSON: apply refuses it, not the parser0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: a key named twice is not a body: the parsers keep different ones1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: an escaped spelling names the same key1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: nor twice in a nested object1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: the same key in two objects is two keys1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: brackets, commas and escaped quotes inside a string are text0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: 4096 bytes is the limit7 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: 4097 bytes is over it13 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: not JSON0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: whitespace alone is not JSON0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: a comma before a closing brace is not JSON0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: nor before a closing bracket3 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: a byte-order mark is not JSON1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: a byte that is never UTF-81 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: a sequence cut short1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: an overlong encoding1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: a surrogate encoded as UTF-81 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: an escaped half of a surrogate pair1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › body: or a key holding one1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: a join1 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: saved for when it leaves USB, without an address0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: firmware that predates joined: its success may be either, its ip an earlier join's0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: only a JSON boolean says joined: not the number 10 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: nor the string true0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: a failure, control characters stripped0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: anything but a literal true is a failure0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: a long reason is clipped to 80 characters0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: the number 1 is not true0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: a clip never splits a surrogate pair0 ms
  • ✓the route contract both daemons answer (shared/esp32-wifi-setup-vectors.json) › ack: a pair that fits is kept0 ms
bridge/src/__tests__/font-pack.test.ts4/4
  • ✓Surface font pack › loads the bundled licensed cpfont and verifies both digests35 ms
  • ✓Surface font pack › rejects a payload changed after the manifest was authored31 ms
  • ✓Surface font pack › keeps the Node and signed Apple resources byte-identical42 ms
  • ✓Surface font pack › serves only the exact id and advertised version31 ms
bridge/src/__tests__/glance-frame-parity.test.ts1/1
  • ✓Glance common rasterizer parity › keeps generated geometry, raster rules, layout units, icons and fonts in sync246 ms
  • ○Glance common rasterizer parity › matches real Swift SVG, 1bpp bytes, signature, orientation and PNG pixels
bridge/src/__tests__/glance-frame.test.ts11/11
  • ✓wmoIconKey › maps WMO code groups to icon keys5 ms
  • ✓renderGlanceFrameSvg › lays out the content and escapes markup3 ms
  • ✓renderGlanceFrameSvg › renders an honest empty state when there is nothing to show0 ms
  • ✓renderGlanceFrameSvg › ellipsizes long work lines before the hard column clip1 ms
  • ✓packMono › packs MSB-first with 1 = white0 ms
  • ✓packMono › pads row tails to byte boundaries0 ms
  • ✓packMono › dithers mid-gray into a stable ordered pattern0 ms
  • ✓renderGlanceFrame › produces the exact framebuffer size with a stable sig for stable input99 ms
  • ✓renderGlanceFrame › rotates X3 into physical space with the device GfxRenderer Portrait mapping1 ms
  • ✓renderGlanceFrame › sig ignores the clock stamp but tracks content — a clock tick must not void the conditional180 ms
  • ✓renderGlanceFrame › landscape preset fills the X4 framebuffer74 ms
bridge/src/__tests__/idotmatrix-daemon-sync.test.ts4/4
  • ✓iDotMatrix supervisor with a panel it has not reached › restarts the client when the configured address changes21 ms
  • ✓iDotMatrix supervisor with a panel it has not reached › does not respawn from the exit of the client it replaced3 ms
  • ✓iDotMatrix supervisor with a panel it has not reached › leaves a connected client on the config it started with3 ms
  • ✓iDotMatrix supervisor with a panel it has not reached › stops the client once its device is removed, but not on unreadable settings2 ms
bridge/src/__tests__/idotmatrix-data-dir.test.ts3/3
  • ✓device settings active data directory › keeps both device families and unrelated fields in the selected profile9 ms
  • ✓device settings active data directory › resolves the profile per operation without retaining the previous module-load path2 ms
  • ✓device settings active data directory › uses the canonical default directory when no override is present1 ms
bridge/src/__tests__/idotmatrix-settings.test.ts6/6
  • ✓iDotMatrix extra name prefixes › keeps the configured prefixes4 ms
  • ✓iDotMatrix extra name prefixes › drops blanks and non-strings instead of passing them to the scanner0 ms
  • ✓iDotMatrix extra name prefixes › treats a missing or malformed key as no extra prefixes0 ms
  • ✓iDotMatrix devices read strictly › reads a missing settings file as nothing configured2 ms
  • ✓iDotMatrix devices read strictly › returns the configured devices, and none when the key is absent1 ms
  • ✓iDotMatrix devices read strictly › returns null for a file it cannot parse, such as one caught mid-write1 ms
bridge/src/__tests__/ips10-collaboration.test.ts8/8
  • ✓IPS10 additive collaboration census › preserves explicit zero and a parent idle with active children6 ms
  • ✓IPS10 additive collaboration census › leaves every other board and unidentified connection unchanged1 ms
  • ✓IPS10 additive collaboration census › does not invent a census from absent or malformed evidence1 ms
  • ✓IPS10 additive collaboration census › drops only the enhancement when the conservative frame budget is exceeded17 ms
  • ✓IPS10 stable card roster › keeps every awaiting session, fills with the newest, and orders by id1 ms
  • ✓IPS10 stable card roster › adds the coordination census and the roster total for IPS10 only3 ms
  • ✓IPS10 quota transport fidelity › preserves a missing 5h slot, actual window lengths, Luna (fleet-wide), and all subscription dates1 ms
  • ✓IPS10 quota transport fidelity › forwards the purchased-credit balance so boards can show it once a window is exhausted0 ms
bridge/src/__tests__/ips10-roster.test.ts3/3
  • ✓IPS10 rotating roster › visits all 1000 sessions, retains attention, and never grows the frame541 ms
  • ✓IPS10 rotating roster › rotates real projected IDs and excludes dead sessions9 ms
  • ✓IPS10 rotating roster › keeps the generated Swift kernel synchronized39 ms
  • ○IPS10 rotating roster › keeps the generated Swift kernel behaviorally equivalent
bridge/src/__tests__/learning-pack.test.ts5/5
  • ✓Surface learning pack › loads the bundled licensed PDLP and verifies both digest layers8 ms
  • ✓Surface learning pack › rejects a payload changed after the manifest was authored4 ms
  • ✓Surface learning pack › rejects an unapproved content licence before serving bytes1 ms
  • ✓Surface learning pack › keeps the Node package and signed Apple bundle resources byte-identical3.0 s
  • ✓Surface learning pack › serves only the exact id and advertised version2 ms
bridge/src/__tests__/matrix-expression.test.ts23/23
  • ✓expressive BLE matrices › treats Dot as an idle presentation peer until a real report changes the common face and stage11 ms
  • ✓expressive BLE matrices › keeps a working owner permanently visible with fleet counts5 ms
  • ✓expressive BLE matrices › cycles work and jobs without dressing an idle session as their owner, and retains partial counts1 ms
  • ✓expressive BLE matrices › visits every actual owner even when category and owner counts share a factor1 ms
  • ✓expressive BLE matrices › preempts jobs with approval, preserves concurrent failure, then clears both immediately1 ms
  • ✓expressive BLE matrices › does not call CI waiting or child agents background jobs, or hold old completion over work1 ms
  • ✓expressive BLE matrices › earns a six-second entrance only for a new live session, independent of polls and order1 ms
  • ✓expressive BLE matrices › never hides waiting or errors behind a new creature or a response2 ms
  • ✓expressive BLE matrices › holds a reply on stage briefly, retains its count for 90s, and distinguishes unknown and idle1 ms
  • ✓expressive BLE matrices › keeps the asked agent listening until its reply, and a task close is not a conversation3 ms
  • ✓expressive BLE matrices › matches rows to roster sessions across id forms (observed prefix, OpenClaw Gateway presence)1 ms
  • ✓expressive BLE matrices › rotates only the live attention owners and clears attention immediately1 ms
  • ✓expressive BLE matrices › does not keep a historical conversation over a new turn, closed turn or missing roster1 ms
  • ✓expressive BLE matrices › upserts one session without retracting another result at the same timestamp1 ms
  • ✓expressive BLE matrices › unknown agent identities are neutral, and face expressions survive 4-bit packing1 ms
  • ✓expressive BLE matrices › gives every Timebox face its own 4-bit signature in every frame15 ms
  • ✓expressive BLE matrices › keeps speaking mouth shapes distinct at both phases of a 1.5 s BLE poll1 ms
  • ✓expressive BLE matrices › nods on a message, keeps accents visible after packing, and keeps the bottom row clear211 ms
  • ✓expressive BLE matrices › selects the face from more of the desk than the 32x32 kind2 ms
  • ✓expressive BLE matrices › lets live work replace a result smile after the response window0 ms
  • ✓expressive BLE matrices › keeps the face independent of population count, including delegated children129 ms
  • ✓expressive BLE matrices › routes live Node endpoint frames through the same event state (preview does not replay entrances)30 ms
  • ✓expressive BLE matrices › has no generated policy or pixel drift876 ms
  • ○expressive BLE matrices › executes the Swift engine and matches Node state and every output pixel
bridge/src/__tests__/mdns-discover.test.ts5/5
  • ✓discoverDaemons › returns a reachable daemon, preferring the /health pairingToken over TXT18 ms
  • ✓discoverDaemons › filters out daemons that do not advertise sameSocketControl (e.g. Swift App Store)11 ms
  • ✓discoverDaemons › drops link-local and loopback addresses11 ms
  • ✓discoverDaemons › excludes candidates whose /health is not a daemon11 ms
  • ✓discoverDaemons › falls back to the TXT ip when no usable addresses are present11 ms
bridge/src/__tests__/mdns-hostname.test.ts4/4
  • ✓mDNS service hostname › never publishes A/AAAA records under the macOS system hostname9 ms
  • ✓mDNS service hostname › identifies which daemon it is without naming the account2 ms
  • ✓mDNS service hostname › never puts a pairing token in the multicast TXT record (issue #145)1 ms
  • ✓mDNS service hostname › keeps the service hostname stable across recovery re-publishes2 ms
bridge/src/__tests__/mdns-routable-records.test.ts7/7
  • ✓isRoutableIpv4 › rejects the addresses no LAN peer can reach3 ms
  • ✓isRoutableIpv4 › keeps ordinary LAN addresses, including private ranges0 ms
  • ✓advertisedIpv4Addresses › drops link-local while keeping every real interface address1 ms
  • ✓published A records › filters the unroutable A record out of what is announced10 ms
  • ✓published A records › leaves non-A records untouched1 ms
  • ✓published A records › republishes when an address appears on a non-default interface4 ms
  • ✓published A records › does not republish for a link-local address flapping1 ms
bridge/src/__tests__/peripheral-mapping.test.ts10/10
  • ✓parsePeripheralMappings › keeps valid entries and drops malformed ones5 ms
  • ✓parsePeripheralMappings › returns empty when the block is absent or not an array0 ms
  • ✓resolvePeripheralAction › matches a tag case-insensitively and honors the project filter1 ms
  • ✓resolvePeripheralAction › without a project filter targets the session that needs a human0 ms
  • ✓resolvePeripheralAction › matches IR codes too0 ms
  • ✓resolvePeripheralAction › returns undefined for an unmapped tag or an empty roster0 ms
  • ✓resolvePeripheralAction › does not cross kinds (an nfc uid never matches an ir event)0 ms
  • ✓commandForAction › approve prefers a held gate and falls back to the live prompt0 ms
  • ✓commandForAction › deny mirrors approve0 ms
  • ✓commandForAction › maps focus / review / stop to existing daemon commands0 ms
bridge/src/__tests__/pixoo-autodiscover-default.test.ts5/5
  • ✓pixooAutoDiscoverFrom › is OFF when the setting is absent3 ms
  • ✓pixooAutoDiscoverFrom › is OFF for anything that is not an explicit true1 ms
  • ✓pixooAutoDiscoverFrom › is ON only when explicitly opted in0 ms
  • ✓discoverPixoo cloud opt-out › queries the Divoom cloud by default1 ms
  • ✓discoverPixoo cloud opt-out › never touches the cloud when cloud is false3 ms
bridge/src/__tests__/pixoo-baked.test.ts39/39
  • ✓common fixed Pixoo baked core › keeps policy and bundled fixed pixel source current and self-contained148 ms
  • ✓common fixed Pixoo baked core › 'claude-code-processing' has bounded frames, motion and a closed palindrome652 ms
  • ✓common fixed Pixoo baked core › 'claude-code-idle' has bounded frames, motion and a closed palindrome483 ms
  • ✓common fixed Pixoo baked core › 'claude-code-awaiting_permission' has bounded frames, motion and a closed palindrome517 ms
  • ✓common fixed Pixoo baked core › 'codex-cli-processing' has bounded frames, motion and a closed palindrome535 ms
  • ✓common fixed Pixoo baked core › 'codex-cli-idle' has bounded frames, motion and a closed palindrome424 ms
  • ✓common fixed Pixoo baked core › 'codex-cli-awaiting_permission' has bounded frames, motion and a closed palindrome479 ms
  • ✓common fixed Pixoo baked core › 'codex-app-processing' has bounded frames, motion and a closed palindrome602 ms
  • ✓common fixed Pixoo baked core › 'codex-app-idle' has bounded frames, motion and a closed palindrome505 ms
  • ✓common fixed Pixoo baked core › 'codex-app-awaiting_permission' has bounded frames, motion and a closed palindrome710 ms
  • ✓common fixed Pixoo baked core › 'opencode-processing' has bounded frames, motion and a closed palindrome706 ms
  • ✓common fixed Pixoo baked core › 'opencode-idle' has bounded frames, motion and a closed palindrome608 ms
  • ✓common fixed Pixoo baked core › 'opencode-awaiting_permission' has bounded frames, motion and a closed palindrome711 ms
  • ✓common fixed Pixoo baked core › 'antigravity-processing' has bounded frames, motion and a closed palindrome638 ms
  • ✓common fixed Pixoo baked core › 'antigravity-idle' has bounded frames, motion and a closed palindrome646 ms
  • ✓common fixed Pixoo baked core › 'antigravity-awaiting_permission' has bounded frames, motion and a closed palindrome431 ms
  • ✓common fixed Pixoo baked core › 'kiro-cli-processing' has bounded frames, motion and a closed palindrome601 ms
  • ✓common fixed Pixoo baked core › 'kiro-cli-idle' has bounded frames, motion and a closed palindrome572 ms
  • ✓common fixed Pixoo baked core › 'kiro-cli-awaiting_permission' has bounded frames, motion and a closed palindrome479 ms
  • ✓common fixed Pixoo baked core › 'kiro-ide-processing' has bounded frames, motion and a closed palindrome589 ms
  • ✓common fixed Pixoo baked core › 'kiro-ide-idle' has bounded frames, motion and a closed palindrome470 ms
  • ✓common fixed Pixoo baked core › 'kiro-ide-awaiting_permission' has bounded frames, motion and a closed palindrome443 ms
  • ✓common fixed Pixoo baked core › 'hermes-processing' has bounded frames, motion and a closed palindrome448 ms
  • ✓common fixed Pixoo baked core › 'hermes-idle' has bounded frames, motion and a closed palindrome773 ms
  • ✓common fixed Pixoo baked core › 'hermes-awaiting_permission' has bounded frames, motion and a closed palindrome727 ms
  • ✓common fixed Pixoo baked core › 'openclaw-processing' has bounded frames, motion and a closed palindrome747 ms
  • ✓common fixed Pixoo baked core › 'openclaw-idle' has bounded frames, motion and a closed palindrome726 ms
  • ✓common fixed Pixoo baked core › 'openclaw-awaiting_permission' has bounded frames, motion and a closed palindrome673 ms
  • ✓common fixed Pixoo baked core › 'unknown-processing' has bounded frames, motion and a closed palindrome666 ms
  • ✓common fixed Pixoo baked core › 'unknown-idle' has bounded frames, motion and a closed palindrome746 ms
  • ✓common fixed Pixoo baked core › 'unknown-awaiting_permission' has bounded frames, motion and a closed palindrome735 ms
  • ✓common fixed Pixoo baked core › 'crowd' has bounded frames, motion and a closed palindrome1.1 s
  • ✓common fixed Pixoo baked core › 'idle-single' has bounded frames, motion and a closed palindrome35 ms
  • ✓common fixed Pixoo baked core › 'no-sessions' has bounded frames, motion and a closed palindrome639 ms
  • ✓common fixed Pixoo baked core › 'ci-unicode' has bounded frames, motion and a closed palindrome670 ms
  • ✓common fixed Pixoo baked core › 'subagent-background-and-stale-usage' has bounded frames, motion and a closed palindrome674 ms
  • ✓common fixed Pixoo baked core › 'timeline-subagent' has bounded frames, motion and a closed palindrome623 ms
  • ✓common fixed Pixoo baked core › matches the original canonical renderer with a fresh seeded simulation1.5 s
  • ✓common fixed Pixoo baked core › caches at most one loop and protects the cache from mutable overlays525 ms
  • ○common fixed Pixoo baked core › compares every RGB byte with the actual Swift/JavaScriptCore renderer
bridge/src/__tests__/pixoo-configuration-client.test.ts1/1
  • ✓uses the active owner and never writes the inactive profile on stale or unsupported responses75 ms
bridge/src/__tests__/pixoo-configuration-reload.test.ts2/2
  • ✓hot-reloads without waking a dimmed display or creating duplicate stream timers12 ms
  • ✓previews the configured Tide panel scene instead of a different aquarium194 ms
bridge/src/__tests__/pixoo-creature-sync.test.ts24/24
  • ✓pixoo creature sync — independent Codex identities › draws one creature per independent Codex thread even in the same project4 ms
  • ✓pixoo creature sync — independent Codex identities › keeps separate projects as separate clouds0 ms
  • ✓pixoo creature sync — independent Codex identities › preserves each independent same-project session state1 ms
  • ✓pixoo creature sync — independent Codex identities › does NOT fold Claude Code — several octopuses on one project is deliberate0 ms
  • ✓pixoo creature sync — independent Codex identities › ignores dead sessions0 ms
  • ✓pixoo creature sync — per-type bands › clusters each agent type into its own X band1 ms
  • ✓pixoo creature sync — per-type bands › stratifies types vertically so a mixed tank stays readable0 ms
  • ✓pixoo creature sync — per-type bands › shrinks creatures as a band fills up0 ms
  • ✓pixoo creature sync — the `_primary` fallback › synthesizes a creature before the first sessions list arrives0 ms
  • ✓pixoo creature sync — the `_primary` fallback › draws an empty tank once an empty list is known0 ms
  • ✓pixoo creature sync — the `_primary` fallback › does not synthesize a creature for a non-creature agent0 ms
  • ✓pixoo creature sync — the `_primary` fallback › does not stamp the stateEvent onto a real session0 ms
  • ✓pixoo creature sync — unknown agent types › draws no creature for an agent type it has never heard of0 ms
  • ✓pixoo creature sync — unknown agent types › does not let an unknown agent become a Claude octopus alongside real ones0 ms
  • ✓pixoo creature sync — unknown agent types › gives every known agent type its own creature1 ms
  • ✓pixoo creature sync — Usage HUD safe area floor › keeps normal ground depth (0.80) when no usage HUD is active0 ms
  • ✓pixoo creature sync — Usage HUD safe area floor › clamps idle creatures to 0.72 when a single-provider HUD is active0 ms
  • ✓pixoo creature sync — Usage HUD safe area floor › clamps idle creatures to 0.65 when a dual-provider HUD is active0 ms
  • ✓pixoo creature sync — Usage HUD safe area floor › does not alter upper/mid-water processing creatures when HUD is active0 ms
  • ✓CI micro cue › alternates a separate CI glyph and preserves permission priority5 ms
  • ✓CI micro cue › never assigns another session's CI helper to the dominant tiny beacon1 ms
  • ✓CI micro cue › keeps crowded same-project helpers tied to actual session IDs, stops outcomes and clears null46 ms
  • ✓CI micro cue › renders an unrecognized future CI phase without crashing the matrix frame6 ms
  • ✓CI micro cue › keeps queued-to-running phase continuous and hides inactive non-results20 ms
bridge/src/__tests__/pixoo-dot-preview.test.ts4/4
  • ✓Pixoo preview carries the actual Dot report › shows working and completed, then removes unlinked Dot (standard)172 ms
  • ✓Pixoo preview carries the actual Dot report › shows working and completed, then removes unlinked Dot (micro)78 ms
  • ✓Pixoo preview carries the actual Dot report › uses the renderer-owned habitat projection exactly once76 ms
  • ✓Pixoo preview carries the actual Dot report › streams the same Dot overlay and removes stale activity73 ms
bridge/src/__tests__/pixoo-font.test.ts1/1
  • ✓Pixoo 3×5 font › keeps N diagonal and visibly distinct from M3 ms
bridge/src/__tests__/pixoo-motion.test.ts10/10
  • ✓Pixoo simulation clock › integrates the ticks that elapsed, not one tick per render call5 ms
  • ✓Pixoo simulation clock › caps a long gap so a wake from sleep cannot flush the scene0 ms
  • ✓Pixoo simulation clock › treats a clock that went backwards as a fresh start0 ms
  • ✓Pixoo SendHttpGif upload shape › sends one request per frame with a shared PicID and per-frame PicOffset6 ms
  • ✓Pixoo SendHttpGif upload shape › keeps the single-frame command identical to the proven path1 ms
  • ✓Pixoo baked device loop › is a closed palindrome over the unique frames1 ms
  • ✓Pixoo baked device loop › renders real motion inside the loop and plays it back in real time62 ms
  • ✓Pixoo loop push policy › stays single-frame unless a device opts in0 ms
  • ✓Pixoo loop push policy › uploads a loop rarely and lets the device play it in between0 ms
  • ✓Pixoo subagent activity › keeps a running fan-out through a burst of Claude tool rows1 ms
bridge/src/__tests__/pixoo-sprites.test.ts19/19
  • ✓getOctopusPaletteForSession › keeps the first additional session near the original terracotta tone4 ms
  • ✓getOctopusPaletteForSession › darkens later sessions while preserving channel ordering1 ms
  • ✓getOctopusPaletteForSession › clamps very large session indices to the darkest supported tone0 ms
  • ✓creatureCellSize › is monotonic non-decreasing across a zoom sweep (cols=24, 32px)12 ms
  • ✓creatureCellSize › is monotonic non-decreasing across a zoom sweep (cols=14, 32px)11 ms
  • ✓creatureCellSize › is monotonic non-decreasing across a zoom sweep (cols=12, 32px)6 ms
  • ✓creatureCellSize › is monotonic non-decreasing across a zoom sweep (cols=8, 32px)8 ms
  • ✓creatureCellSize › is monotonic non-decreasing across a zoom sweep (cols=24, 64px)6 ms
  • ✓creatureCellSize › is monotonic non-decreasing across a zoom sweep (cols=14, 64px)6 ms
  • ✓creatureCellSize › is monotonic non-decreasing across a zoom sweep (cols=12, 64px)12 ms
  • ✓creatureCellSize › is monotonic non-decreasing across a zoom sweep (cols=8, 64px)10 ms
  • ✓creatureCellSize › is stable for sub-0.25 zoom jitter around a value (no flicker)1 ms
  • ✓creatureCellSize › never returns less than 10 ms
  • ✓Codex cloud low-detail grids › keeps the MD cloud as one rounded body instead of separated dangling lobes2 ms
  • ✓Codex cloud low-detail grids › keeps the LOD cloud rounded for iDotMatrix-wide shots0 ms
  • ✓quantizeCameraPixels › snaps the center onto the device-pixel grid0 ms
  • ✓quantizeCameraPixels › is idempotent0 ms
  • ✓quantizeCameraPixels › preserves zoom and width0 ms
  • ✓quantizeCameraPixels › defaults width to 64 and tolerates degenerate scale0 ms
bridge/src/__tests__/pixoo-tide.test.ts27/27
  • ✓tide loop › fits one device upload35 ms
  • ✓tide loop › is deterministic (a renderer output is identity)16 ms
  • ✓tide loop › closes: the step from the last frame back to the first is no bigger than any other step93 ms
  • ✓tide loop › tick wraps modulo the loop5 ms
  • ✓tide marks › shows the loudest first and counts what does not fit1 ms
  • ✓tide marks › draws an unknown agentType as nothing, never as another agent0 ms
  • ✓tide marks › ignores dead sessions and keeps independent same-project Codex rows0 ms
  • ✓tide marks › stands the state event in for one session only while sessions were never received1 ms
  • ✓tide marks › keeps the OpenClaw mark for a gateway session1 ms
  • ✓tide marks › different states look different (amber ring vs sweep vs rest)9 ms
  • ✓tide keeps the usage HUD independent of the scene › changing only a usage percentage changes HUD rows and nothing above them7 ms
  • ✓tide keeps the usage HUD independent of the scene › gives the scene the whole panel when there is no usage4 ms
  • ✓tide upload policy › is selected per device and never falls back to single frames1 ms
  • ✓tide upload policy › uploads first, then only verifies while nothing visible changed1 ms
  • ✓tide upload policy › lets a flapping scene buy at most one upload per floor0 ms
  • ✓tide upload policy › treats a usage-only change as slow-moving1 ms
  • ✓tide upload policy › backs off after a failed upload instead of retrying every tick0 ms
  • ✓tide upload policy › keeps the loop short enough to ingest quickly0 ms
  • ✓tide frame digests (shared with the Swift daemon) › renders the pinned frames82 ms
  • ✓tide signature › sees a z.ai row and the Codex subscription date, which the strip draws too1 ms
  • ✓tide signature › ignores a session the panel cannot show and a usage-only difference in the scene part0 ms
  • ✓tide signature › changes when a shown mark changes state0 ms
  • ✓Tide companion owns space above the usage HUD › reserves one independent Dot slot without claiming an extra session1 ms
  • ✓Tide companion owns space above the usage HUD › preserves every bottom HUD byte with 1, 2 and 3 providers, and closes the loop542 ms
  • ✓Tide companion owns space above the usage HUD › draws a readable DOT caption and an attention punctuation cue6 ms
  • ✓Tide companion owns space above the usage HUD › matches the Swift DotPreview frame digests9 ms
  • ✓Tide companion owns space above the usage HUD › treats a Dot report/expiry as a scene change, not a five-minute HUD update1 ms
bridge/src/__tests__/pixoo-upload.test.ts5/5
  • ✓Pixoo bounded upload transport › accepts only explicit success acknowledgements, not unknown or error replies12 ms
  • ✓Pixoo bounded upload transport › aborts the first failed frame and resynchronizes the next PicID299 ms
  • ✓Pixoo bounded upload transport › requires a successful counter reset before wrapping to PicID one2.0 s
  • ✓Pixoo bounded upload transport › never invents PicID zero from an unreadable reply5 ms
  • ✓Pixoo bounded upload transport › does not send later frames after dim/cancellation and rejects excess frame packs7 ms
bridge/src/__tests__/pixoo-usage-rails.test.ts9/9
  • ✓iDotMatrix 32×32 telemetry rails › draws GLM credits independently and retracts stale or removed windows10 ms
  • ✓iDotMatrix 32×32 telemetry rails › spends no row on a provider that reports nothing3 ms
  • ✓iDotMatrix 32×32 telemetry rails › reads a windowless free-tier Codex block as no Codex rows1 ms
  • ✓iDotMatrix 32×32 telemetry rails › still fills all four rows when both providers report both windows1 ms
  • ✓iDotMatrix 32×32 telemetry rails › gives the panel back entirely when no provider reports usage1 ms
  • ✓iDotMatrix 32×32 telemetry rails › keeps a stale (ended) Codex window off the rails, not on a blank row1 ms
  • ✓Pixoo64 usage HUD bands › shows all three providers simultaneously and reserves a band for a seven-day-only Claude sample19 ms
  • ✓Pixoo64 usage HUD bands › drops the Codex band for a windowless free-tier block, and the lone Claude band slides down26 ms
  • ✓Pixoo64 usage HUD bands › draws no HUD at all when neither provider reports usage5 ms
bridge/src/__tests__/pocket-autonomy-parity.test.ts1/1
  • ✓Pocket native parity › generates policy without drift and replays Node golden vectors120 ms
  • ○Pocket native parity › executes the real Swift engine with identical cards, feedback, state and restart results
bridge/src/__tests__/pocket-autonomy.test.ts9/9
  • ✓AutonomousPocketEngine › cold-start explores a preference quest and the strongest available signal9 ms
  • ✓AutonomousPocketEngine › learns from choices and stops repeating the cold-start survey2 ms
  • ✓AutonomousPocketEngine › treats a retried outbox answer as idempotent1 ms
  • ✓AutonomousPocketEngine › treats Later as a neutral read-state and does not return the same card1 ms
  • ✓AutonomousPocketEngine › lets a read-only pulse be marked Done through the reserved Later action1 ms
  • ✓AutonomousPocketEngine › persists only aggregate learning state and opaque fingerprints3 ms
  • ✓AutonomousPocketEngine › counts delivered cards with no response as weak negative evidence after a day1 ms
  • ✓AutonomousPocketEngine › routes only stable Pocket choices2 ms
  • ✓parsePocketAutonomyConfig › defaults on absent settings and clamps explicit bounds0 ms
bridge/src/__tests__/python-ble-runtime.test.ts32/32
  • ✓optional Python BLE runtime › resolves packaged scripts from the bridge package and keeps the venv in the data directory6 ms
  • ✓optional Python BLE runtime › reports missing npm assets instead of silently disabling BLE2 ms
  • ✓optional Python BLE runtime › creates and marks a persistent environment on first explicit setup8 ms
  • ✓optional Python BLE runtime › accepts a compatible legacy checkout venv without modifying it3 ms
  • ✓optional Python BLE runtime › rejects an incompatible override before any BLE command can use it3 ms
  • ✓optional Python BLE runtime › managed interpreter › probes cryptography 50.0.0 (ready: false)35 ms
  • ✓optional Python BLE runtime › managed interpreter › probes cryptography 50.0.1 (ready: false)30 ms
  • ✓optional Python BLE runtime › managed interpreter › probes cryptography 50.0.2rc1 (ready: false)35 ms
  • ✓optional Python BLE runtime › managed interpreter › probes cryptography 50.0.2 (ready: true)31 ms
  • ✓optional Python BLE runtime › managed interpreter › probes cryptography 50.0.2.post1 (ready: true)29 ms
  • ✓optional Python BLE runtime › managed interpreter › probes cryptography 50.1 (ready: true)30 ms
  • ✓optional Python BLE runtime › legacy interpreter › probes cryptography 50.0.0 (ready: false)31 ms
  • ✓optional Python BLE runtime › legacy interpreter › probes cryptography 50.0.1 (ready: false)31 ms
  • ✓optional Python BLE runtime › legacy interpreter › probes cryptography 50.0.2rc1 (ready: false)30 ms
  • ✓optional Python BLE runtime › legacy interpreter › probes cryptography 50.0.2 (ready: true)49 ms
  • ✓optional Python BLE runtime › legacy interpreter › probes cryptography 50.0.2.post1 (ready: true)53 ms
  • ✓optional Python BLE runtime › legacy interpreter › probes cryptography 50.1 (ready: true)36 ms
  • ✓optional Python BLE runtime › override interpreter › probes cryptography 50.0.0 (ready: false)36 ms
  • ✓optional Python BLE runtime › override interpreter › probes cryptography 50.0.1 (ready: false)42 ms
  • ✓optional Python BLE runtime › override interpreter › probes cryptography 50.0.2rc1 (ready: false)40 ms
  • ✓optional Python BLE runtime › override interpreter › probes cryptography 50.0.2 (ready: true)45 ms
  • ✓optional Python BLE runtime › override interpreter › probes cryptography 50.0.2.post1 (ready: true)33 ms
  • ✓optional Python BLE runtime › override interpreter › probes cryptography 50.1 (ready: true)36 ms
  • ✓optional Python BLE runtime › rejects incompatible legacy and managed environments even with a matching marker6 ms
  • ✓optional Python BLE runtime › installs changed managed requirements even when imports and a legacy environment still work6 ms
  • ✓optional Python BLE runtime › keeps a failed managed upgrade unready instead of blessing imports or falling back to legacy5 ms
  • ✓optional Python BLE runtime › reinstalls for an old unversioned marker even if it already claims the current requirements digest5 ms
  • ✓bridge npm BLE assets › publishes every Python client and the dependency manifest1 ms
  • ✓Rosetta interpreter guard (darwin/arm64) › refuses an x86_64-only legacy venv on an arm64 Mac with a rebuild hint9 ms
  • ✓Rosetta interpreter guard (darwin/arm64) › accepts a universal binary carrying an arm64 slice, and anything on non-arm64 hosts7 ms
  • ✓Rosetta interpreter guard (darwin/arm64) › makes no claim about an unrecognized binary (scripts, ELF, truncated files)3 ms
  • ✓Rosetta interpreter guard (darwin/arm64) › rebuilds a Rosetta venv with the native Homebrew interpreter probed first4 ms
bridge/src/__tests__/timebox-ble.test.ts14/14
  • ✓Timebox device identity › uses the BLE address as the device id3 ms
  • ✓micro layout (Timebox 11×11) › returns a size²·3 RGB buffer4 ms
  • ✓micro layout (Timebox 11×11) › draws a bright dominant creature for a processing session3 ms
  • ✓micro layout (Timebox 11×11) › degrades parent-linked subagents to fixed perimeter companions2 ms
  • ✓micro layout (Timebox 11×11) › shows the device-native standby tide when no session exists1 ms
  • ✓micro layout (Timebox 11×11) › provides a static dark farewell badge for a stopped daemon1 ms
  • ✓micro layout (Timebox 11×11) › does not mistake a live empty roster for daemon offline1 ms
  • ✓micro layout (Timebox 11×11) › keeps gateway errors on a red perimeter rail without tinting identity1 ms
  • ✓micro layout (Timebox 11×11) › maps claude-code to its shaded official mark and product color1 ms
  • ✓micro layout (Timebox 11×11) › maps codex-cli to its shaded official mark and product color1 ms
  • ✓micro layout (Timebox 11×11) › maps opencode to its shaded official mark and product color1 ms
  • ✓micro layout (Timebox 11×11) › maps openclaw to its shaded official mark and product color1 ms
  • ✓micro layout (Timebox 11×11) › preserves OpenCode negative space and OpenClaw original area-sampled eye highlights1 ms
  • ✓micro layout (Timebox 11×11) › renders the generated Antigravity mark as a multicolor open arc1 ms
bridge/src/__tests__/weather-config.test.ts6/6
  • ✓weather CLI configuration › rounds coordinates to the shared coarse-location boundary2 ms
  • ✓weather CLI configuration › rejects malformed and out-of-range coordinates1 ms
  • ✓weather CLI configuration › validates IANA time zones15 ms
  • ✓weather CLI configuration › uses the host time zone and does not retain a stale place label1 ms
  • ✓weather CLI configuration › retains only an explicit custom-provider boundary when changing location1 ms
  • ✓weather CLI configuration › renders configured and unconfigured status without exposing a custom API key1 ms
bridge/src/__tests__/weather.test.ts14/14
  • ✓parseWeatherSettings › accepts lat/lon + optional place3 ms
  • ✓parseWeatherSettings › rejects missing, malformed, or out-of-range config0 ms
  • ✓parseWeatherSettings › keeps an explicit paid/custom Open-Meteo boundary opt-in1 ms
  • ✓wmoSummary › maps representative WMO codes to short words1 ms
  • ✓findTodayRainWindow › finds the first remaining contiguous window ≥ the floor with its peak1 ms
  • ✓findTodayRainWindow › single qualifying hour → no endHm0 ms
  • ✓findTodayRainWindow › no qualifying hour today (tomorrow does not count) → undefined0 ms
  • ✓toGlanceWeather › rounds temps, maps codes, and carries tomorrow + rain window1 ms
  • ✓MET Norway normalization › builds seven-day offline data and precipitation cues without inventing probability66 ms
  • ✓WeatherProvider › unconfigured → undefined without fetching1 ms
  • ✓WeatherProvider › fetches once, then serves from cache inside the window1 ms
  • ✓WeatherProvider › serves the stale cache on fetch failure, up to the stale-serve bound1 ms
  • ✓WeatherProvider › failure with no cache → undefined (never throws)0 ms
  • ✓WeatherProvider › keeps a future-bearing seven-day snapshot through a long provider outage16 ms
bridge/src/__tests__/wifi-config.test.ts3/3
  • ✓wifi-config follows the data dir › saves and loads under AGENTDECK_DATA_DIR10 ms
  • ✓wifi-config follows the data dir › never loads the ~/.agentdeck copy under an override, and says once where it is3 ms
  • ✓wifi-config follows the data dir › uses ~/.agentdeck when no override is set2 ms
  • ○wifi-config follows the data dir › passes hostile SSIDs as one Keychain argument without a shell
  • ○wifi-config follows the data dir › detects a non-default interface using argument arrays
scripts/__tests__/dashboard-providers-sync.test.ts1/1
  • ✓native validators and provider menus follow the daemon vocabulary36 ms
scripts/__tests__/esp32-internal-reserve.test.ts9/9
  • ✓ESP32 internal RAM reserve › registers its pool at the lowest priority only, without the bit malloc() asks for6 ms
  • ✓ESP32 internal RAM reserve › reads the pool apart by a capability no allocation asks for155 ms
  • ✓ESP32 internal RAM reserve › leaves the pool out of every internal heap figure the firmware reads323 ms
  • ✓ESP32 internal RAM reserve › sends the pool fields by the rule protocol.ts states4 ms
  • ✓ESP32 internal RAM reserve › is built only into PSRAM boards whose config asks for it1 ms
  • ✓ESP32 internal RAM reserve › carves the pool only out of memory that is not already the pool0 ms
  • ✓ESP32 internal RAM reserve › is the only code that adds a heap region or restarts minimum tracking211 ms
  • ✓ESP32 internal RAM reserve › never stops minimum tracking, which would zero the pool low-water mark106 ms
  • ✓ESP32 internal RAM reserve › is carved at the top of setup(), before Serial or anything else allocates108 ms
scripts/__tests__/esp32-radio-off.test.ts2/2
  • ✓ESP32 firmware radio-off › stops mDNS inside radioOff() before the radio goes off3 ms
  • ✓ESP32 firmware radio-off › turns the radio off nowhere else139 ms
scripts/__tests__/esp32-serial-probe.test.ts3/3
  • ✓ESP32 serial identity probe › retains split JSON and ignores boot noise without calling unbounded flush90 ms
  • ✓ESP32 serial identity probe › bounds stuck open, read and close, then identifies the next board1.6 s
  • ✓ESP32 serial identity probe › does not turn malformed identity into a flash target1.6 s
scripts/__tests__/esp32-webserver-security.test.ts2/2
  • ✓executes the transformed SDK auth, Digest path, boundary and portal route policies496 ms
  • ✓compiles only a build-local copy and rejects changed SDK bytes before returning an object42 ms
scripts/__tests__/esp32-wifi-cred-id.test.ts2/2
  • ✓ESP32 firmware credential id › removes it before every WebSocket copy of device_info5 ms
  • ✓ESP32 firmware credential id › is built into no frame but the two device_info producers103 ms
scripts/__tests__/fetch-flash-firmware.test.ts8/8
  • ✓firmwareVersionFromConfig › reads the constant3 ms
  • ✓firmwareVersionFromConfig › returns undefined rather than a guess0 ms
  • ✓resolveTag › an explicit --tag wins outright, without probing anything1 ms
  • ✓resolveTag › prefers the checkout version when that release exists0 ms
  • ✓resolveTag › falls back to the newest release when the checkout version has no tag yet0 ms
  • ✓resolveTag › falls back when the checkout has no version at all (installed, not cloned)0 ms
  • ✓resolveTag › refuses rather than deploying an unnamed firmware1 ms
  • ✓resolveTag › reports WHICH rule it used — a silently chosen tag is unauditable0 ms
scripts/__tests__/firmware-manifest.test.ts9/9
  • ✓firmware manifest › describes every board in the SSOT8 ms
  • ✓firmware manifest › points every consumer at one file and one offset4 ms
  • ✓firmware manifest › computes hashes from the artifacts, not from the SSOT5 ms
  • ✓firmware manifest › fails the release when a board ships nothing4 ms
  • ✓firmware manifest › carries the web-flash evidence, not just a flag3 ms
  • ✓release notes tail › tells people to write the merged image at 0x0, not the app at 0x1000016 ms
  • ✓release notes tail › lists every board that built4 ms
  • ✓release notes tail › marks a board browser-flashable only when the SSOT says so2 ms
  • ✓merged image self-check › parses the fields esptool image-info prints1 ms
scripts/__tests__/hermes-mermaid-2d.test.ts3/3
  • ✓Hermes 2D mermaid generator › has every generated output in sync with the generator252 ms
  • ✓Hermes 2D mermaid generator › keeps the official Nous girl paths as the head, unmodified1 ms
  • ✓Hermes 2D mermaid generator › places a tail below the bust instead of a floating head0 ms
scripts/__tests__/preview-mirror-sync.test.ts1/1
  • ✓preview mirror pins › every SYNC-HASH pin matches its origin file302 ms
scripts/__tests__/surface-protocol-manifest.test.ts6/6
  • ✓Surface Protocol integration manifest › validates schemas/surface-protocol/v1/fixtures/pocket-daily-reader.json9 ms
  • ✓Surface Protocol integration manifest › validates schemas/surface-protocol/v1/fixtures/bitfocus-companion.json1 ms
  • ✓Surface Protocol integration manifest › keeps product identity separate from board and update channel2 ms
  • ✓Surface Protocol integration manifest › rejects duplicate capabilities instead of hiding a malformed declaration1 ms
  • ✓Surface Protocol integration manifest › requires evidence for Verified Compatible and Official claims1 ms
  • ✓Surface Protocol integration manifest › does not allow an independently owned project to claim Official1 ms
scripts/__tests__/surface-protocol-portable-reader.test.ts15/15
  • ✓Surface Protocol portable-reader/v1 Card Feed › validates the weather-seven-day fixture9 ms
  • ✓Surface Protocol portable-reader/v1 Card Feed › validates the unchanged fixture0 ms
  • ✓Surface Protocol portable-reader/v1 Card Feed › validates the unchanged-learning-pack fixture0 ms
  • ✓Surface Protocol portable-reader/v1 Card Feed › carries a full seven-day future horizon with provider attribution and bounded cues4 ms
  • ✓Surface Protocol portable-reader/v1 Card Feed › rejects an eighth forecast day1 ms
  • ✓Surface Protocol portable-reader/v1 Card Feed › rejects a cue without an expiry boundary0 ms
  • ✓Surface Protocol portable-reader/v1 Card Feed › rejects conditional responses that try to replace cached content2 ms
  • ✓Surface Protocol portable-reader/v1 Card Feed › requires the complete OTA tuple even on an unchanged feed0 ms
  • ✓Surface Protocol portable-reader/v1 Card Feed › bounds the licensed learning-pack advert on an unchanged feed1 ms
  • ✓Surface Protocol portable-reader/v1 Card Feed › allows an additive optional weather field for tolerant v1 clients0 ms
  • ✓Surface Protocol portable-reader/v1 Outbox › validates the bounded request and ordered terminal response fixtures2 ms
  • ✓Surface Protocol portable-reader/v1 Outbox › requires action correlation fields without forbidding additive metadata0 ms
  • ✓Surface Protocol portable-reader/v1 Outbox › bounds a wake-cycle batch and recognizes only v1 terminal statuses1 ms
  • ✓Surface Protocol negotiation fixtures › validates the bounded portable welcome without advertising Inbox1 ms
  • ✓Surface Protocol negotiation fixtures › keeps public fixtures free of credentials and authorization material1 ms
scripts/__tests__/web-flasher-flash-path.test.ts27/27
  • ✓renders unknown locale keys as text while preserving authored translation markup3 ms
  • ✓md5 (browser flasher) › matches node:crypto for empty1 ms
  • ✓md5 (browser flasher) › matches node:crypto for abc0 ms
  • ✓md5 (browser flasher) › matches node:crypto for sentence0 ms
  • ✓md5 (browser flasher) › matches node:crypto for 55 bytes0 ms
  • ✓md5 (browser flasher) › matches node:crypto for 56 bytes0 ms
  • ✓md5 (browser flasher) › matches node:crypto for 64 bytes0 ms
  • ✓md5 (browser flasher) › matches node:crypto for 119 bytes0 ms
  • ✓md5 (browser flasher) › matches node:crypto for 120 bytes0 ms
  • ✓md5 (browser flasher) › matches node:crypto for 600 KB79 ms
  • ✓esp32PreflightVerdict › passes when chip and flash both agree2 ms
  • ✓esp32PreflightVerdict › refuses an S3 image on a classic ESP32 — the brick this guard exists for0 ms
  • ✓esp32PreflightVerdict › refuses a 16MB-header image on an 8MB part0 ms
  • ✓esp32PreflightVerdict › ALLOWS a smaller declaration than the part reports — TRMNL 7.5" is 16MB physical, 8MB declared0 ms
  • ✓esp32PreflightVerdict › treats an unreadable flash size as its own answer, not as a failure0 ms
  • ✓esp32PreflightVerdict › refuses when nothing answered at all0 ms
  • ✓esp32PreflightVerdict › surface polarity › browser refuses a board it does not offer0 ms
  • ✓esp32PreflightVerdict › surface polarity › CLI writes the same board — USB is its only update path0 ms
  • ✓esp32PreflightVerdict › surface polarity › the CLI still applies the hardware guards to an unoffered board0 ms
  • ✓esp32PreflightVerdict › image geometry › passes when the image agrees with the board spec0 ms
  • ✓esp32PreflightVerdict › image geometry › refuses a 16MB image for a board this build calls 4MB, even on an 8MB part0 ms
  • ✓esp32PreflightVerdict › image geometry › refuses the CONSERVATIVE direction too — this is not the directional size rule0 ms
  • ✓esp32PreflightVerdict › image geometry › is the ONLY size check when the flash id is unreadable0 ms
  • ✓esp32PreflightVerdict › image geometry › refuses an image built for a different chip family0 ms
  • ✓esp32PreflightVerdict › image geometry › omitting it does not weaken the other guards0 ms
  • ✓esp32PreflightVerdict › the erase refusal is still reachable — stubless boards exist, on the CLI0 ms
  • ✓esp32PreflightVerdict › every board the browser offers accepts its own declared identity0 ms
shared/src/__tests__/background-work-presentation.test.ts4/4
  • ✓background work device projection › keeps malformed/unknown separate from explicit completion and bounded counts3 ms
  • ✓background work device projection › shows standby work quietly and never above active work0 ms
  • ✓background work device projection › retains by session id across reordering and clears only on an explicit zero or disconnect2 ms
  • ✓background work device projection › keeps generated Kotlin, C++ and Swift policies synchronized42 ms
shared/src/__tests__/collaboration-presentation.test.ts2/2
  • ✓preserves parent state while distinguishing outstanding work from idle2 ms
  • ✓keeps firmware and macOS on the same census labels and phase rule1 ms
shared/src/__tests__/connection-status.test.ts1/1
  • ✓native connection recovery labels › keeps Swift and Kotlin labels generated from the canonical vocabulary3 ms
shared/src/__tests__/creature-layout.test.ts30/30
  • ✓creature-layout bands › returns nothing for a count of zero or less4 ms
  • ✓creature-layout bands › 'hermes' keeps every slot inside its X band9 ms
  • ✓creature-layout bands › 'octopus' keeps every slot inside its X band9 ms
  • ✓creature-layout bands › 'cloud' keeps every slot inside its X band7 ms
  • ✓creature-layout bands › 'opencode' keeps every slot inside its X band5 ms
  • ✓creature-layout bands › 'antigravity' keeps every slot inside its X band4 ms
  • ✓creature-layout bands › 'hermes' emits exactly `count` slots3 ms
  • ✓creature-layout bands › 'octopus' emits exactly `count` slots1 ms
  • ✓creature-layout bands › 'cloud' emits exactly `count` slots4 ms
  • ✓creature-layout bands › 'opencode' emits exactly `count` slots1 ms
  • ✓creature-layout bands › 'antigravity' emits exactly `count` slots1 ms
  • ✓creature-layout bands › 'hermes' stays on one row up to its limit, then wraps1 ms
  • ✓creature-layout bands › 'octopus' stays on one row up to its limit, then wraps0 ms
  • ✓creature-layout bands › 'cloud' stays on one row up to its limit, then wraps0 ms
  • ✓creature-layout bands › 'opencode' stays on one row up to its limit, then wraps0 ms
  • ✓creature-layout bands › 'antigravity' stays on one row up to its limit, then wraps0 ms
  • ✓creature-layout bands › anchors each band at a distinct X center, so types read as clusters1 ms
  • ✓crowd shrink › never grows the scale as a band fills up4 ms
  • ✓crowd shrink › honors the 0.40 hard floor even when a band is packed5 ms
  • ✓crowd shrink › shrinks a crowded row enough to cap neighbor overlap at ~half a body0 ms
  • ✓crowd shrink › gives a lone creature the band-native full scale0 ms
  • ✓crowd shrink › centers a lone creature in its band0 ms
  • ✓spreadFloorResidents (shared vectors) › already apart: nobody moves1 ms
  • ✓spreadFloorResidents (shared vectors) › two overlapping idle octopuses (live 2026-09-27) push apart, the left one stays0 ms
  • ✓spreadFloorResidents (shared vectors) › input order is preserved in the output0 ms
  • ✓spreadFloorResidents (shared vectors) › a crowd at the right edge is pulled back left of the crayfish line0 ms
  • ✓spreadFloorResidents (shared vectors) › a band too small spaces them evenly0 ms
  • ✓spreadFloorResidents (shared vectors) › left edge clamp0 ms
  • ✓spreadFloorResidents (shared vectors) › empty0 ms
  • ✓spreadFloorResidents (shared vectors) › keeps floor residents inside the band left of the crayfish clear line1 ms
shared/src/__tests__/d200h-free-space.test.ts8/8
  • ✓usage free-space expansion › uncompacts into keys the roster leaves free — six windows, six keys13 ms
  • ✓usage free-space expansion › keeps every session key — expansion only takes keys the roster cannot use15 ms
  • ✓usage free-space expansion › keeps all providers and the cap in three keys (Claude weekly: undefined)3 ms
  • ✓usage free-space expansion › keeps all providers and the cap in three keys (Claude weekly: 64)4 ms
  • ✓usage free-space expansion › no spare (roster fills the grid) — usage stays the compacted strip4 ms
  • ✓folded z.ai key (5H + MCP on one key, press cycles the view) › folds z.ai before Claude and makes that key cycle3 ms
  • ✓folded z.ai key (5H + MCP on one key, press cycles the view) › shows only the selected z.ai reading in 5H and MCP modes7 ms
  • ✓folded z.ai key (5H + MCP on one key, press cycles the view) › keeps one z.ai window per key, with no cycle, when there is room1 ms
shared/src/__tests__/d200h-layout.test.ts38/38
  • ✓usage tiles — usageKnown tri-state › renders Luna Reserve as a large moon tile with remaining percentage2 ms
  • ✓usage tiles — usageKnown tri-state › renders a percent when the quota is known1 ms
  • ✓usage tiles — usageKnown tri-state › renders a muted "—" instead of a confident 0% when unknown0 ms
  • ✓usage tiles — usageKnown tri-state › defaults to known (percent) when the flag is omitted0 ms
  • ✓usage tiles — usageKnown tri-state › wide slot shows "—" for both columns when unknown0 ms
  • ✓usage tiles — usageKnown tri-state › wide slot shows percents when known0 ms
  • ✓usage tiles — usageKnown tri-state › compact pair preserves both window labels and values in one key1 ms
  • ✓usage tiles — usageKnown tri-state › parseState infers usageKnown=false when no percent fields are present0 ms
  • ✓usage tiles — usageKnown tri-state › parseState infers usageKnown=true when a percent is present0 ms
  • ✓usage tiles — usageKnown tri-state › parseState honors an explicit usageKnown=false even with a coerced 0 percent0 ms
  • ✓buildSessionDeck — daemon offline › renders one deck-spanning OFFLINE card for a disconnected daemon3 ms
  • ✓buildSessionDeck — daemon offline › makes EVERY key launch the companion app while offline2 ms
  • ✓buildSessionDeck — daemon offline › does not show OFFLINE / launch when the daemon is connected1 ms
  • ✓buildSessionDeck — daemon offline › shows the session list (not OFFLINE) when state is disconnected but sessions exist3 ms
  • ✓buildSessionDeck — selected session isolation › does not render another agent model while selected-session focus is pending2 ms
  • ✓buildSessionDeck — per-model scoped caps › surfaces the worst ACTIVE scoped cap with the critical ramp2 ms
  • ✓buildSessionDeck — per-model scoped caps › renders an INACTIVE scoped cap muted (informational cyan), never the ramp1 ms
  • ✓buildSessionDeck — per-model scoped caps › parseState carries scopedLimits through0 ms
  • ✓usage tiles — Codex snapshot freshness › prints the countdown, undimmed, for a fresh snapshot1 ms
  • ✓usage tiles — Codex snapshot freshness › THE REGRESSION: an aged snapshot keeps its % but is dimmed and dated1 ms
  • ✓usage tiles — Codex snapshot freshness › an ended window still reads "stale", not an age1 ms
  • ✓usage tiles — Codex snapshot freshness › a legacy producer (no capturedAt) renders exactly as before1 ms
  • ✓usage tiles — scoped caps and the three-key strip budget › emits at most ONE scoped tile, however many caps arrive1 ms
  • ✓usage tiles — scoped caps and the three-key strip budget › compacts provider pairs so scoped and Codex limits all remain visible1 ms
  • ✓usage tiles — scoped caps and the three-key strip budget › sanitizes and truncates the API label before it reaches SVG text1 ms
  • ✓usage tiles — scoped caps and the three-key strip budget › renders no scoped tile when there are none1 ms
  • ✓usage tiles — z.ai provider windows › renders a lone z.ai plan with a text identity and a length-derived 30D label1 ms
  • ✓usage tiles — z.ai provider windows › compacts all three providers into pair tiles — six windows, nothing dropped1 ms
  • ✓usage tiles — z.ai provider windows › emits no z.ai tiles for a windowless (retired or payg) block1 ms
  • ✓VOICE tile — hold-to-talk contract › renders approval and receipt states only for the dictated recipient2 ms
  • ✓VOICE tile — hold-to-talk contract › tells the user to hold, not to tap0 ms
  • ✓VOICE tile — hold-to-talk contract › reads as listening while the daemon captures0 ms
  • ✓VOICE tile — hold-to-talk contract › still declares the wire commands the layout is responsible for1 ms
  • ✓VOICE tile — hold-to-talk contract › goes inert only while transcribing0 ms
  • ✓Dot pinned integration key › reserves first position across pages and keeps existing sessions intact13 ms
  • ✓Dot pinned integration key › keeps sessions and NEXT reachable with Dot and usage on three keys8 ms
  • ✓Dot pinned integration key › does not hide the only reachable session on a sparse two-key grid1 ms
  • ✓never renders stale or future reports as working and keeps rendering deterministic0 ms
shared/src/__tests__/d200h-observed.test.ts18/18
  • ✓D200H observed session detail › idle: user-authored VOICE is the only input — no fake prompts, inert STOP12 ms
  • ✓D200H observed session detail › idle while recording: the VOICE tile flips to a stop toggle1 ms
  • ✓D200H observed session detail › processing: soft STOP is the only action; no queued task or REVIEW mid-turn2 ms
  • ✓D200H observed session detail › processing: last review verdict stays visible as an inert badge1 ms
  • ✓D200H observed session detail › processing + stopRequested: STOP replaced by STOPPING tile, no queue presets1 ms
  • ✓D200H observed session detail › awaiting + requestId: exactly ALLOW/DENY permission_decision cells2 ms
  • ✓D200H observed session detail › awaiting WITHOUT requestId: answer-in-terminal only, never fabricated Allow/Deny1 ms
  • ✓D200H observed session detail › AskUserQuestion options are visible but inert without a live-answer host1 ms
  • ✓D200H observed session detail › liveAnswerable turns the same options into select_option presses1 ms
  • ✓D200H observed session detail › codex observed idle: readouts only — steering stays inert (notify-only hooks)1 ms
  • ✓D200H observed session detail › codex observed processing: nothing actionable — REVIEW waits for turn end1 ms
  • ✓D200H observed session detail › opencode observed idle: explicit voice input without canned tasks1 ms
  • ✓D200H observed session detail › opencode observed permission gate: ALLOW/DENY carry the ocperm requestId1 ms
  • ✓D200H observed session detail › managed idle has explicit input without unsolicited tasks or interrupt1 ms
  • ✓D200H observed detail INFO readout (#463) › shows the row's own model, effort and mode words verbatim1 ms
  • ✓D200H observed detail INFO readout (#463) › never borrows the daemon-global mode for an observed row that reports none1 ms
  • ✓D200H observed NOW card (#463) › idle replaces the bare OBSERVED card with what the row says the agent is doing1 ms
  • ✓D200H observed NOW card (#463) › keeps OBSERVED when the row carries nothing to say0 ms
shared/src/__tests__/d200h-openclaw-approval.test.ts8/8
  • ✓D200H — OpenClaw exec approval › renders the real command and its decisions, not the global idle state7 ms
  • ✓D200H — OpenClaw exec approval › every decision is a pressable select_option carrying its own index3 ms
  • ✓D200H — OpenClaw exec approval › keeps the relayed event authoritative when IT is the one with the prompt1 ms
  • ✓D200H — OpenClaw exec approval › an idle gateway row still reads as idle1 ms
  • ✓D200H — the approval says what it is › renders the command on the hero cell, not only in the press echo1 ms
  • ✓D200H — the approval says what it is › renders WHY approval was demanded — the head of questionDetail1 ms
  • ✓D200H — the approval says what it is › still echoes the question on a press (the answer path is unchanged)1 ms
  • ✓D200H — the approval says what it is › an idle row draws no prompt text — this is not a permanent header1 ms
shared/src/__tests__/d200h-setting-picker.test.ts4/4
  • ✓D200H agent-native setting picker › OpenClaw idle leads with MODEL and THINKING tiles that open the picker7 ms
  • ✓D200H agent-native setting picker › shows LOADING until the agent answers, then DEFAULT + every offered level2 ms
  • ✓D200H agent-native setting picker › disables choices while saving and shows mutation refusals with offered values retained1 ms
  • ✓D200H agent-native setting picker › surfaces the agent's refusal and never offers a value it did not list0 ms
shared/src/__tests__/d200h-ulanzi-qa.test.ts13/13
  • ✓buildSessionDeck — one cell per key › a position listed twice still gets its session, not a later empty cell9 ms
  • ✓buildSessionDeck — one cell per key › the detail view does not shift when a position is duplicated3 ms
  • ✓buildSessionDeck — caller-held list order (DeckView.sessionOrder) › without an order, keeps the global sortSessions order (other surfaces rely on it)1 ms
  • ✓buildSessionDeck — caller-held list order (DeckView.sessionOrder) › with an order, a newer session appends instead of jumping ahead by agent kind1 ms
  • ✓buildSessionDeck — caller-held list order (DeckView.sessionOrder) › an explicit weight still outranks the caller order1 ms
  • ✓buildSessionDeck — caller-held list order (DeckView.sessionOrder) › a session the caller has not placed yet follows the placed ones1 ms
  • ✓buildSessionDeck — the detail view names its session on BACK › BACK carries the session name instead of the generic "sessions"3 ms
  • ✓buildSessionDeck — the detail view names its session on BACK › two sessions of one project keep their distinguishing tag on BACK1 ms
  • ✓buildSessionDeck — a usage provider with no data takes no key › a windowless Codex block with only a limit id draws no "CODEX —" tile2 ms
  • ✓buildSessionDeck — a usage provider with no data takes no key › a credits object with no balance is no reading either1 ms
  • ✓buildSessionDeck — a usage provider with no data takes no key › a real balance still draws the credits readout1 ms
  • ✓buildSessionDeck — keys without a session › a list key with no session shows the OPEN SLOT card, not a blank tile1 ms
  • ✓buildSessionDeck — keys without a session › with no sessions, keys past the three status cards are OPEN SLOT too1 ms
shared/src/__tests__/device-controller.test.ts4/4
  • ✓device controller delivery and mirrors › keeps notify-only, unknown and dead observed sessions free of input controls3 ms
  • ✓device controller delivery and mirrors › keeps the Swift preview contract generated from the same key and delivery rules1 ms
  • ✓device controller delivery and mirrors › requires real options and delivery, or a native held permission request1 ms
  • ✓device controller delivery and mirrors › uses readable fixed-size decision text, bounded lines and visible truncation4 ms
shared/src/__tests__/esp32-boards.test.ts16/16
  • ✓ESP32 board SSOT › agrees with platformio.ini, the spec sheet, cli.ts and docs/esp32.md14 ms
  • ✓ESP32 board SSOT › keeps the release matrix generated, not hand-maintained1 ms
  • ✓ESP32 board SSOT › generates the Swift serial vendor gate from the shared board policy3 ms
  • ✓ESP32 board SSOT › keeps the Swift Surface product allow-list on the board SSOT5 ms
  • ✓ESP32 board SSOT › never claims a browser-flashable board without evidence2 ms
  • ✓ESP32 board SSOT › puts every board on esptool's bootloader-offset table1 ms
  • ✓ESP32 board SSOT › resolves every documented alias to exactly one board2 ms
  • ✓ESP32 board SSOT › keeps ids unique0 ms
  • ✓esp32ChipFamilyOf › classifies ESP32-S3 (QFN56) (revision v0.2)0 ms
  • ✓esp32ChipFamilyOf › classifies ESP32-D0WD (revision 1)0 ms
  • ✓esp32ChipFamilyOf › classifies ESP32-D0WDQ6 (revision 1)0 ms
  • ✓esp32ChipFamilyOf › does not let the classic case swallow the variants0 ms
  • ✓flash guards › treats an all-ones or all-zeros flash id as no answer0 ms
  • ✓flash guards › is directional: under-declaring flash is safe, over-declaring is not1 ms
  • ✓flash guards › resolves a legacy wire id a deployed board still reports1 ms
  • ✓flash guards › returns unknown rather than a verdict when the size could not be read0 ms
shared/src/__tests__/esp32-wifi-provision-sync.test.ts5/5
  • ✓generated ESP32 WiFi provision mirrors in sync › apple/AgentDeck/Daemon/Modules/ESP32WifiProvisionRules.generated.swift matches the SSOT3 ms
  • ✓generated ESP32 WiFi provision mirrors in sync › esp32/src/net/wifi_cred_id.generated.h matches the SSOT0 ms
  • ✓generated ESP32 WiFi provision mirrors in sync › emitters embed the SSOT constants1 ms
  • ✓generated ESP32 WiFi provision mirrors in sync › the Swift suite replays the shared vector file (grep the test wiring)0 ms
  • ✓generated ESP32 WiFi provision mirrors in sync › both firmware device_info builders report the stored id1 ms
shared/src/__tests__/esp32-wifi-provision.test.ts79/79
  • ✓ESP32 WiFi provision rules (shared vectors) › names the id the way both HMAC implementations compute it3 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › id inputs: ascii credentials0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › id inputs: a rotated token gives a different id for the same credentials0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › id inputs: a changed password gives a different id0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › id inputs: non-ASCII SSID and password are UTF-80 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › id inputs: the separator keeps the SSID/password boundary (ab|c)0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › id inputs: the separator keeps the SSID/password boundary (a|bc)0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › id inputs: 64-hex PSK and a 32-byte SSID0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › id inputs: no token: no id0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › id inputs: no SSID: no id0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › id inputs: no password: no id0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › the separator keeps the SSID/password boundary1 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: no live connection1 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: no board has identified on this tty0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: identity is checked before the credential id0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: one provision per connection, even when the id differs0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: Node re-sends to an IPS10 whose radio is up0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: IPS10 firmware without wifiRadioParked is treated as radio-up (Node rule since 2026-07-07)0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: the Swift daemon never refreshes an IPS10 this way0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: a parked IPS10 is not refreshed; its id decides0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: a joined board is left alone even when its id differs0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: a parked generic board reads unconfigured but holds these credentials0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: a board persisting older credentials reads configured and still gets the new ones0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: new firmware with no stored id0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: ids compare exactly (no case folding)0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: new firmware, but this daemon has no id to offer: configured0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: new firmware, but this daemon has no id to offer: unconfigured0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: an empty expected id is no id0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: firmware that predates the id: configured0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: firmware that predates the id: unconfigured0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: a null wifiCredId is no information0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: absent WiFi fields read as not configured0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: an operator request is not stopped by the provision already sent on this connection0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: an operator request does not re-send credentials the board already holds0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: an operator request leaves a joined board alone0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: an operator request reaches old firmware that reports saved credentials0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: an operator request with no id to offer0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: an operator request still needs a board that identified here0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: manual false is an automatic decision0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: an operator request never makes the IPS10 endpoint refresh0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: nor repeats one already sent on this connection0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › decision: an operator request leaves a board that joined since the last provision alone0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › every reason the decision can give is pinned by a vector2 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: ordinary credentials0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: no SSID0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: a 32-byte SSID0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: a 33-byte SSID0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: SSID length is UTF-8 bytes: 10 Hangul syllables and 2 letters are 320 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: SSID length is UTF-8 bytes: 11 Hangul syllables are 330 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: no password (the firmware refuses an open network)0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: a 7-byte password0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: an 8-byte password0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: password length is UTF-8 bytes: 3 kanji are 90 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: password length is UTF-8 bytes: 2 kanji are 60 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: two emoji are 8 bytes (4 UTF-16 units)0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: a 63-byte passphrase0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: 64 hex digits are a raw key0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: 64 characters that are not hex0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: 65 hex digits0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: NUL in the password0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: a newline in the SSID0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: a tab in the password0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: DEL in the password0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › credentials: a control character is reported before a length0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › an ack is owed for the shared timeout0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: one provision, one answer1 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: an answer that comes while a later provision is owed one is the earlier one's0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: three provisions in a row0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: an answer owed past the timeout was lost0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: at the timeout it is still owed0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: an answer nothing was owed for is the latest0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: each answered provision starts the count again0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: a provision still owed when the next is written0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: an id-carrying answer to the latest provision settles everything owed0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: an id-carrying answer to an earlier provision leaves the latest owed0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: an answer naming another provision leaves the only one owed0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: old firmware names no provision, so the count decides0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › ack ledger: a provision with no id falls back to the count0 ms
  • ✓ESP32 WiFi provision rules (shared vectors) › every credential problem is pinned by a vector1 ms
shared/src/__tests__/idotmatrix-identity.test.ts12/12
  • ✓BLE UUID normalization › expands the short advertisement forms onto the Bluetooth base UUID2 ms
  • ✓BLE UUID normalization › left-pads a short form that dropped its leading zeroes0 ms
  • ✓BLE UUID normalization › leaves an unrelated 128-bit UUID alone0 ms
  • ✓iDotMatrix discovery predicate › matches the iDotMatrix and iPixel name families case-insensitively0 ms
  • ✓iDotMatrix discovery predicate › does not match unrelated peripherals0 ms
  • ✓iDotMatrix discovery predicate › accepts a user-configured prefix for the next rebrand0 ms
  • ✓iDotMatrix discovery predicate › identifies an unnamed peripheral by its advertised service UUID0 ms
  • ✓iDotMatrix discovery predicate › still identifies a named panel that keeps the service out of its advertisement0 ms
  • ✓iDotMatrix discovery predicate › rejects a peripheral with neither signal0 ms
  • ✓generated mirrors in sync › apple/AgentDeck/Daemon/Modules/IDotMatrixIdentity.generated.swift matches the SSOT0 ms
  • ✓generated mirrors in sync › bridge/src/idotmatrix/identity_generated.py matches the SSOT0 ms
  • ✓generated mirrors in sync › emitters embed the SSOT literals (sanity on the emitters themselves)1 ms
shared/src/__tests__/mdns-identity.test.ts7/7
  • ✓sanitizeMdnsLabel › keeps a hostname greppable and collision-free6 ms
  • ✓sanitizeMdnsLabel › bounds the label so the whole instance name stays inside DNS-SD limits1 ms
  • ✓mdnsUserTag › is stable, short, and never the account name1 ms
  • ✓mdnsUserTag › separates two accounts on one machine1 ms
  • ✓buildMdnsInstanceName › names host, user and port — the three ways two daemons can differ0 ms
  • ✓buildMdnsInstanceName › degrades to the old shape rather than emitting a malformed name0 ms
  • ✓generated Swift mirror › matches this source1 ms
shared/src/__tests__/terrarium-rules.test.ts7/7
  • ✓terrarium rules invariants › floor-rest clear anchor stays left of the crayfish claws3 ms
  • ✓terrarium rules invariants › CI companion motion and footprint fit the visible session surface1 ms
  • ✓terrarium rules invariants › identity phase uses deterministic unsigned FNV-1a over UTF-82 ms
  • ✓terrarium rules invariants › rest strips sit above the crayfish, below mid-water0 ms
  • ✓generated mirrors in sync › apple/AgentDeck/Terrarium/TerrariumRules.generated.swift matches the SSOT1 ms
  • ✓generated mirrors in sync › android/app/src/main/kotlin/dev/agentdeck/terrarium/TerrariumRules.generated.kt matches the SSOT1 ms
  • ✓generated mirrors in sync › esp32/src/ui/terrarium/terrarium_rules_generated.h matches the SSOT1 ms

6 files

Pass

Voice

Are push-to-talk, transcription and spoken replies routed to the right session and device?

Passed
111
Failed
0
Skipped
0
Time
189 ms
6 test files
bridge/src/__tests__/device-transcription.test.ts20/20
  • ✓device speech backend › preserves Apple as the default7 ms
  • ✓device speech backend › runs only the explicitly configured local executable with bounded argument-based IO2 ms
  • ✓device speech backend › refuses missing executable/model configuration2 ms
  • ✓device speech backend › propagates local errors and rejects empty speech without falling back1 ms
  • ✓warm local speech server › uploads locally with a deadline and never follows redirects31 ms
  • ✓warm local speech server › refuses https://127.0.0.1/inference before sending audio1 ms
  • ✓warm local speech server › refuses http://example.com/inference before sending audio1 ms
  • ✓warm local speech server › refuses http://127.0.0.1/other before sending audio1 ms
  • ✓warm local speech server › refuses http://user@127.0.0.1/inference before sending audio1 ms
  • ✓warm local speech server › falls back to configured CLI on unreachable1 ms
  • ✓warm local speech server › falls back to configured CLI on timeout0 ms
  • ✓warm local speech server › falls back to configured CLI on bad response2 ms
  • ✓warm local speech server › does not retry genuinely empty speech1 ms
  • ✓speech-presence gate › rejects silence before recognition or any CLI fallback1 ms
  • ✓speech-presence gate › passes the unchanged recording after positive VAD evidence2 ms
  • ✓speech-presence gate › fails closed for an invalid VAD response: 1 ms
  • ✓speech-presence gate › fails closed for an invalid VAD response: model missing0 ms
  • ✓speech-presence gate › fails closed for an invalid VAD response: Detected 1 speech segments:0 ms
  • ✓speech-presence gate › fails closed for an invalid VAD response: Detected 1 speech segments: Speech segment 0: start = 10.00, end = 1.000 ms
  • ✓speech-presence gate › does not bypass a failed or incomplete VAD setup1 ms
bridge/src/__tests__/device-voice-reply.test.ts35/35
  • ✓speakableReply › replaces fenced code with a spoken marker instead of reciting it3 ms
  • ✓speakableReply › strips markdown scaffolding and URLs that read as noise0 ms
  • ✓speakableReply › returns empty when nothing speakable survives0 ms
  • ✓speakableReply › cuts at a sentence boundary when the cap lands mid-sentence0 ms
  • ✓speakableReply › hard-caps when no sentence boundary is near the cap0 ms
  • ✓pcmFromWav › walks chunks rather than assuming the data starts at byte 441 ms
  • ✓pcmFromWav › rejects non-RIFF and truncated input0 ms
  • ✓pcmFromWav › clamps a data chunk that claims more bytes than the file holds0 ms
  • ✓pcmFrames › splits into fixed frames with a short tail0 ms
  • ✓DeviceVoiceReplyRouter › only arms boards that advertise an amplifier1 ms
  • ✓DeviceVoiceReplyRouter › does not arm without a session id0 ms
  • ✓DeviceVoiceReplyRouter › matches only the session that was dictated to0 ms
  • ✓DeviceVoiceReplyRouter › expires an arming once the window closes, so a stale answer stays silent0 ms
  • ✓DeviceVoiceReplyRouter › keeps an arming across a transport blip, and refuses to stream while down1 ms
  • ✓DeviceVoiceReplyRouter › streams begin, paced PCM frames, then end1 ms
  • ✓DeviceVoiceReplyRouter › consumes the arming so one dictation yields one spoken reply0 ms
  • ✓DeviceVoiceReplyRouter › stops mid-stream when the board disconnects and sends no end frame0 ms
  • ✓DeviceVoiceReplyRouter › refuses a WAV it cannot parse rather than streaming garbage0 ms
  • ✓DeviceVoiceReplyRouter › disarm removes a target without streaming0 ms
  • ✓session-id keying across the two forms › matches a bare-uuid completion against a prefixed arming0 ms
  • ✓session-id keying across the two forms › matches in the other direction too0 ms
  • ✓session-id keying across the two forms › normalizes the claude prefix0 ms
  • ✓session-id keying across the two forms › normalizes the codex prefix0 ms
  • ✓session-id keying across the two forms › normalizes the codex-app prefix0 ms
  • ✓session-id keying across the two forms › normalizes the opencode prefix0 ms
  • ✓session-id keying across the two forms › normalizes the antigravity prefix0 ms
  • ✓session-id keying across the two forms › still keeps different sessions apart0 ms
  • ✓long-running turns › keeps an arming alive while the session is still working0 ms
  • ✓long-running turns › still expires a session that went quiet0 ms
  • ✓long-running turns › refresh accepts either id form and ignores an empty list0 ms
  • ✓following the board across transports › streams to the board's current transport when the armed one is gone0 ms
  • ✓following the board across transports › gives up when the board is not reachable at all0 ms
  • ✓following the board across transports › prefers the armed transport while it is still open0 ms
  • ✓HTTP reply target after synthesis › moves a pull notification to the live connection after reconnect0 ms
  • ✓HTTP reply target after synthesis › upgrades a metadata-only connection to a pull-capable transport0 ms
bridge/src/__tests__/device-voice.test.ts18/18
  • ✓dropSilentInterleave › drops a digitally silent odd slot (ips10 duplex shape)4 ms
  • ✓dropSilentInterleave › drops a digitally silent even slot (flipped alignment)1 ms
  • ✓dropSilentInterleave › passes true mono audio through untouched0 ms
  • ✓dropSilentInterleave › still collapses when the stuffed slot carries rare glitch spikes1 ms
  • ✓dropSilentInterleave › passes silence and tiny buffers through untouched0 ms
  • ✓normalizePcm › boosts a quiet capture toward the target peak1 ms
  • ✓normalizePcm › caps the gain so near-silence does not become full-scale noise0 ms
  • ✓normalizePcm › leaves already-loud audio untouched0 ms
  • ✓normalizePcm › leaves pure silence untouched0 ms
  • ✓normalizePcm › clamps instead of wrapping at the int16 edge1 ms
  • ✓buildWav › wraps PCM in a canonical 16-bit mono header1 ms
  • ✓DeviceVoiceCollector › assembles frames into a WAV and reports the target session2 ms
  • ✓DeviceVoiceCollector › ignores binary frames with no open utterance0 ms
  • ✓DeviceVoiceCollector › keeps utterances separate per connection1 ms
  • ✓DeviceVoiceCollector › returns null for a cancelled or empty utterance0 ms
  • ✓DeviceVoiceCollector › caps a runaway utterance instead of buffering without bound67 ms
  • ✓DeviceVoiceCollector › reports device-side and in-flight PCM loss before transcription3 ms
  • ✓DeviceVoiceCollector › abandons and sweeps stale utterances0 ms
bridge/src/__tests__/personal-voice-turn.test.ts15/15
  • ✓personal voice turn › passes an explicit voice-only thinking override without changing the session key6 ms
  • ✓personal voice turn › allows a dedicated voice conversation on the same personal agent1 ms
  • ✓personal voice turn › removes the local recognizer spelling of the wake word0 ms
  • ✓personal voice turn › routes to the personal conversation and ignores other runs/cron replies1 ms
  • ✓personal voice turn › retains a completion that precedes the send acknowledgement0 ms
  • ✓personal voice turn › uses only matching delta text when final has no text0 ms
  • ✓personal voice turn › cleans listeners on refusal and never substitutes a different conversation2 ms
  • ✓personal voice turn › bounds peer silence and handles aborted requests4 ms
  • ✓personal speech readiness › waits for a closed explicit summary and speaks it before the final details1 ms
  • ✓personal speech readiness › does not treat an acknowledgement, an unfinished paragraph or a code block as a ready summary0 ms
  • ✓personal speech readiness › keeps full-reply consumers waiting for the final0 ms
  • ✓personal speech readiness › recovers an empty final only from a late snapshot of the same run1 ms
  • ✓personal speech readiness › rejects an unrecoverable empty final promptly instead of silently succeeding1 ms
  • ✓personal speech readiness › preserves a final received before acknowledgement even when a late delta follows0 ms
  • ✓personal speech readiness › does not hide an abort that arrives before acknowledgement1 ms
shared/src/__tests__/voice-ptt.test.ts8/8
  • ✓Stream Deck VOICE hold lifecycle › maps key-down plus a real hold to begin then end4 ms
  • ✓Stream Deck VOICE hold lifecycle › cancels a key-clack tap shorter than the minimum hold0 ms
  • ✓Stream Deck VOICE hold lifecycle › cancels a held key that disappears during a page or profile switch0 ms
  • ✓Stream Deck VOICE hold lifecycle › ignores lifecycle events from another action instance0 ms
  • ✓Stream Deck VOICE hold lifecycle › maps terminal PTT actions to daemon wire commands0 ms
  • ✓cancelActive — releases that can never arrive › cancels the open hold without knowing which key owns it0 ms
  • ✓cancelActive — releases that can never arrive › is a no-op when nothing is held, so a stray socket close sends nothing0 ms
  • ✓cancelActive — releases that can never arrive › does not fire twice for one hold0 ms
shared/src/__tests__/voice-reply-digest.test.ts15/15
  • ✓spokenDigest parity cases › first sentence only, not the whole paragraph3 ms
  • ✓spokenDigest parity cases › explicit summary label wins over the opening sentence0 ms
  • ✓spokenDigest parity cases › bare summary label takes the line after it0 ms
  • ✓spokenDigest parity cases › a heading-only first line is skipped for the prose under it0 ms
  • ✓spokenDigest parity cases › code fences never get recited0 ms
  • ✓spokenDigest parity cases › a version number does not end the sentence0 ms
  • ✓spokenDigest parity cases › nothing speakable stays empty0 ms
  • ✓spokenDigest › reads one sentence out of a long answer, not the whole thing0 ms
  • ✓spokenDigest › keeps a summary line even when it is the last thing in the reply0 ms
  • ✓spokenDigest › does not treat prose that merely opens with a label word as a summary1 ms
  • ✓spokenDigest › cuts an over-long single sentence on a word boundary1 ms
  • ✓spokenDigest › honours full: true for callers that opted back in0 ms
  • ✓spokenDigest › stays empty when there is nothing to say0 ms
  • ✓speakableReply › keeps the whole readable answer0 ms
  • ✓speakableReply › caps at the monologue ceiling0 ms

44 files

Pass

Stream Deck & Ulanzi plugins

Do the deck plugins connect, recover, lay out keys and encoders, and dispatch host controls per platform?

Passed
496
Failed
0
Skipped
0
Time
12.4 s
44 test files
plugin-ulanzi/src/__tests__/anim-schedule.test.ts11/11
  • ✓D200H animation schedule › spans exactly one animation cycle2 ms
  • ✓D200H animation schedule › steps evenly and monotonically through the cycle1 ms
  • ✓D200H animation schedule › keeps the dash step small enough to read as motion, not as a jump0 ms
  • ✓D200H animation schedule › paces the loop at the Stream Deck tick so both surfaces share a tempo0 ms
  • ✓D200H animation schedule › gives each key its own phase without breaking the loop1 ms
  • ✓D200H animation schedule › is deterministic per key so a tile keeps encoding to the same bytes0 ms
  • ✓D200H animation schedule › identifies a rotated loop by its OWN first frame, not by deck 01 ms
  • ✓D200H animation schedule › starts each key at the frame its phase offset names1 ms
  • ✓D200H animation schedule › separates neighbouring keys by a visible fraction of the cycle0 ms
  • ✓D200H animation schedule › spreads a full deck across the cycle instead of clustering0 ms
  • ✓D200H animation schedule › probes a frame that a moving tile cannot match by accident2 ms
plugin-ulanzi/src/__tests__/daemon-client.test.ts2/2
  • ✓does not open a socket after a pending discovery has been stopped3 ms
  • ✓registers the Ulanzi surface after health discovery and bounds the handshake6 ms
plugin-ulanzi/src/__tests__/daemon-discovery.test.ts13/13
  • ✓Ulanzi daemon discovery across process namespaces › finds the canonical hub without a Windows registry5 ms
  • ✓Ulanzi daemon discovery across process namespaces › uses a registry port even when its PID belongs to Linux0 ms
  • ✓Ulanzi daemon discovery across process namespaces › falls back after a stale registry and ignores invalid port values1 ms
  • ✓Ulanzi daemon discovery across process namespaces › does not escape an explicit development data directory1 ms
  • ✓bounded loopback health probe › accepts only a healthy, locally accessible daemon24 ms
  • ✓bounded loopback health probe › rejects an invalid, incomplete, or unauthorized health response 03 ms
  • ✓bounded loopback health probe › rejects an invalid, incomplete, or unauthorized health response 11 ms
  • ✓bounded loopback health probe › rejects an invalid, incomplete, or unauthorized health response 21 ms
  • ✓bounded loopback health probe › rejects an invalid, incomplete, or unauthorized health response 31 ms
  • ✓bounded loopback health probe › rejects an invalid, incomplete, or unauthorized health response 41 ms
  • ✓bounded loopback health probe › rejects an invalid, incomplete, or unauthorized health response 51 ms
  • ✓bounded loopback health probe › rejects an invalid, incomplete, or unauthorized health response 61 ms
  • ✓bounded loopback health probe › rejects HTTP errors and bounds silent peers26 ms
plugin-ulanzi/src/__tests__/daemon-transport.test.ts2/2
  • ✓connects through native health and WS despite a foreign registry PID, then exchanges frames121 ms
  • ✓rediscovers a changed registry port and registers again after a real socket drop1.1 s
plugin-ulanzi/src/__tests__/deck-settings-integration.test.ts2/2
  • ✓14-key D200H production transport/controller simulation › paginates catalogs over the real wire, keeps later-page refusals visible and ignores closed requests476 ms
  • ✓14-key D200H production transport/controller simulation › invalidates and renders observed NOW changes using only the canonical roster row5 ms
plugin-ulanzi/src/__tests__/deck-signature.test.ts15/15
  • ✓D200H deckSignature — every render-affecting change must be visible › invalidates NOW and readout changes even without a state transition3 ms
  • ✓D200H deckSignature — every render-affecting change must be visible › is stable when nothing changed0 ms
  • ✓D200H deckSignature — every render-affecting change must be visible › changes when a multi-question prompt advances to the next question0 ms
  • ✓D200H deckSignature — every render-affecting change must be visible › changes when only the question text moves0 ms
  • ✓D200H deckSignature — every render-affecting change must be visible › changes when only the option labels move0 ms
  • ✓D200H deckSignature — every render-affecting change must be visible › changes when only the group index moves0 ms
  • ✓D200H deckSignature — every render-affecting change must be visible › changes when answerability flips (dead-button regression)0 ms
  • ✓D200H deckSignature — every render-affecting change must be visible › changes when the prompt shape flips to multi-select0 ms
  • ✓D200H deckSignature — every render-affecting change must be visible › changes on review badge transitions0 ms
  • ✓D200H deckSignature — every render-affecting change must be visible › changes on usage-only updates (quota gauges ride a separate event)1 ms
  • ✓local weekly preference and quota-only repaint › invalidates for every weekly view and changed key placement0 ms
  • ✓local weekly preference and quota-only repaint › redraws Fable-only percent, binding and reset changes0 ms
  • ✓invalidates the deck when Dot appears, stops, ages or clears0 ms
  • ✓invalidates every name-only change that changes the actual shared deck pixels14 ms
  • ✓repaints a scoped peer receipt even when capture stays idle and clears it on disconnect1 ms
plugin-ulanzi/src/__tests__/device-support.test.ts2/2
  • ✓Ulanzi device support contract › offers the existing 14-key action on both D200H and D200X4 ms
  • ✓Ulanzi device support contract › does not claim D200X encoder support before an encoder action exists1 ms
plugin-ulanzi/src/__tests__/dot-expiry.test.ts3/3
  • ✓Dot static-key activity lease › repaints expired work without another daemon frame or changed payload8 ms
  • ✓Dot static-key activity lease › does not renew report age when the same cached frame is rendered again1 ms
  • ✓Dot static-key activity lease › cancels expiry after completion or disconnect1 ms
plugin-ulanzi/src/__tests__/font-resources.test.ts1/1
  • ✓portable controller fonts › stages the canonical Korean face and license and renders distinct Korean decisions312 ms
plugin-ulanzi/src/__tests__/key-lifecycle.test.ts14/14
  • ✓KeyRegistry — which Studio contexts lay out › a key on an inactive page does not take a position6 ms
  • ✓KeyRegistry — which Studio contexts lay out › never lists a position twice, even when Studio never sends setactive8 ms
  • ✓KeyRegistry — which Studio contexts lay out › a setactive race cannot reintroduce a duplicate position0 ms
  • ✓KeyRegistry — which Studio contexts lay out › a press on a context that lost its key brings it back (Studio sent no setactive)0 ms
  • ✓Replace and clear repaint the key › replace with add(new) before clear(old): the new context gets an image2 ms
  • ✓Replace and clear repaint the key › replace with clear(old) before add(new): the new context gets an image1 ms
  • ✓Replace and clear repaint the key › clear changes the layout and, after invalidation, repaints every remaining key1 ms
  • ✓Replace and clear repaint the key › an inactive context is not pushed, and repaints when it comes back0 ms
  • ✓StickySessionOrder — a session keeps the slot it first took › seeds the first roster in sortSessions order, then appends newcomers2 ms
  • ✓StickySessionOrder — a session keeps the slot it first took › sessions that arrive together are seeded in the global order0 ms
  • ✓StickySessionOrder — a session keeps the slot it first took › a session that blinks out of one roster returns to its slot0 ms
  • ✓StickySessionOrder — a session keeps the slot it first took › an explicit weight still wins in the layout1 ms
  • ✓StateStore — a duplicated sessions_list row is one session › keeps the last copy of a duplicated id, in first-seen position0 ms
  • ✓StateStore — a duplicated sessions_list row is one session › the deck draws a duplicated session once1 ms
plugin-ulanzi/src/__tests__/manifest-localization.test.ts7/7
  • ✓ulanzi manifest ↔ localization alignment › declares exactly one dynamic action4 ms
  • ✓ulanzi manifest ↔ localization alignment › ships a 144px plugin icon and a 196px category icon2 ms
  • ✓ulanzi manifest ↔ localization alignment › en.json repeats the manifest text verbatim1 ms
  • ✓ulanzi manifest ↔ localization alignment › zh_CN.json Actions is index-aligned with the manifest1 ms
  • ✓ulanzi manifest ↔ localization alignment › zh_HK.json Actions is index-aligned with the manifest1 ms
  • ✓ulanzi manifest ↔ localization alignment › ja_JP.json Actions is index-aligned with the manifest1 ms
  • ✓ulanzi manifest ↔ localization alignment › ko_KR.json Actions is index-aligned with the manifest0 ms
plugin-ulanzi/src/__tests__/property-inspector.test.ts15/15
  • ✓ulanzi property inspector › is declared by the manifest and present on disk2 ms
  • ✓ulanzi property inspector › loads the SDK Property Inspector libraries that the package ships1 ms
  • ✓ulanzi property inspector › opens the H5 tutorial through the SDK, at a path the package contains0 ms
  • ✓ulanzi property inspector › is self-contained — no remote asset can leave either surface half-drawn1 ms
  • ✓ulanzi property inspector › keeps English in the markup, not only in the language files0 ms
  • ✓ulanzi property inspector › resolves every data-localize key against every shipped language22 ms
  • ✓ulanzi property inspector › resolves every runtime string lookup against every shipped language9 ms
  • ✓ulanzi property inspector › keeps every language key-aligned with canonical en20 ms
  • ✓ulanzi property inspector › preserves the {port} placeholder the script substitutes2 ms
  • ✓ulanzi property inspector › reads the daemon only through routes that carry no secret0 ms
  • ✓ulanzi property inspector — QA 1.8.1 › step 2 trusts the session count over the state word2 ms
  • ✓ulanzi property inspector — QA 1.8.1 › hints at the hooks only when the daemon definitely found none1 ms
  • ✓ulanzi property inspector — QA 1.8.1 › opens the guide and the tutorial fallback through Studio, not a webview link0 ms
  • ✓ulanzi property inspector — QA 1.8.1 › gives each platform its own command, notes and troubleshooting2 ms
  • ✓ulanzi property inspector — QA 1.8.1 › describes the keys the deck actually draws0 ms
plugin-ulanzi/src/__tests__/raster-init.test.ts2/2
  • ✓raster initialization and failure caching › a failed load is retried by the next call instead of staying blank117 ms
  • ✓raster initialization and failure caching › a failing SVG is re-rasterized on every call, never served from the cache11 ms
plugin-ulanzi/src/__tests__/raster-recovery.test.ts4/4
  • ✓RasterRecovery › a clean pass schedules nothing4 ms
  • ✓RasterRecovery › a failed pass repaints after a delay, reloading WASM if it never loaded1 ms
  • ✓RasterRecovery › does not reload WASM that is already loaded (per-SVG failure)1 ms
  • ✓RasterRecovery › coalesces failures while a retry is pending, backs off, and resets after a clean pass2 ms
plugin-ulanzi/src/__tests__/reconnect-supervisor.test.ts8/8
  • ✓ReconnectSupervisor › connects once on start and reports the first open without firing onReconnect5 ms
  • ✓ReconnectSupervisor › reconnects with backoff after a drop and fires onReconnect on re-open1 ms
  • ✓ReconnectSupervisor › ignores the spurious close emitted while a connect is in flight0 ms
  • ✓ReconnectSupervisor › retries via connect-timeout when an attempt neither opens nor closes0 ms
  • ✓ReconnectSupervisor › escalates the backoff ladder across consecutive failed attempts0 ms
  • ✓ReconnectSupervisor › forces a fresh connect on wake even when the socket looked open (half-open)1 ms
  • ✓ReconnectSupervisor › reconnects immediately on wake while disconnected (backoff reset)0 ms
  • ✓ReconnectSupervisor › stop() halts the watchdog so wake no longer reconnects0 ms
plugin-ulanzi/src/__tests__/setting-picker-state.test.ts3/3
  • ✓Ulanzi picker response projection › returns a refused later-page mutation to the visible error page without closing4 ms
  • ✓Ulanzi picker response projection › closes a matching successful mutation and resets its page0 ms
  • ✓Ulanzi picker response projection › keeps query answers open and leaves unaccepted or other-session responses alone1 ms
plugin-ulanzi/src/__tests__/state-store.test.ts12/12
  • ✓D200H StateStore session isolation › does not revive a focused session quota after a weekly-only account snapshot5 ms
  • ✓D200H StateStore session isolation › keeps daemon transport separate from an empty disconnected aggregate state1 ms
  • ✓D200H StateStore session isolation › does not use the global OpenClaw model while Claude focus is pending1 ms
  • ✓D200H StateStore session isolation › ignores unscoped and foreign prompt options for the selected session0 ms
  • ✓D200H StateStore session isolation › applies prompt options only to their correlated session0 ms
  • ✓D200H StateStore — observed rows are not shadowed by the focus reply › keeps the live question and options when the focus reply lands0 ms
  • ✓D200H StateStore — observed rows are not shadowed by the focus reply › lets the roster row win even over a snapshot stored before the row arrived0 ms
  • ✓D200H StateStore — observed rows are not shadowed by the focus reply › still lets a managed session's live state override its roster row0 ms
  • ✓D200H settings transport › renders bounded silence instead of keeping LOADING forever12 ms
  • ✓D200H settings transport › matches mutations, retains refusal text, and rejects late focus replies2 ms
  • ✓clears Dot integration on legacy snapshots and reconnect instead of retaining another daemon0 ms
  • ✓retains missing names and clears them explicitly without changing identity (#544)0 ms
plugin-ulanzi/src/__tests__/studio-endpoint.test.ts3/3
  • ✓Studio endpoint across reconnects (#730) › the bare SDK connect loses the launch port on reconnect (the defect)4 ms
  • ✓Studio endpoint across reconnects (#730) › the retained endpoint dials the launch port on every connect0 ms
  • ✓Studio endpoint across reconnects (#730) › reads argv without consuming it and falls back to SDK defaults0 ms
plugin/src/__tests__/bridge-client.test.ts8/8
  • ✓BridgeClient — port provider › removes the 5h tile when a weekly-only usage snapshot arrives over WebSocket185 ms
  • ✓BridgeClient — port provider › counts a real pong as activity and clears a stale connection106 ms
  • ✓BridgeClient — port provider › retries an in-flight connection without leaving the old generation stuck52 ms
  • ✓BridgeClient — port provider › does not reconnect after an explicit disconnect1.3 s
  • ✓BridgeClient — port provider › bounds a silent handshake and advances to another daemon candidate1.3 s
  • ✓BridgeClient — port provider › skips connect when provider returns null51 ms
  • ✓BridgeClient — port provider › connects once provider returns a live port1.3 s
  • ✓BridgeClient — port provider › rebinds to a new port when provider value changes2.1 s
plugin/src/__tests__/connection-integration.test.ts6/6
  • ✓ConnectionManager Integration — Real WebSocket › client connects and receives broadcast events223 ms
  • ✓ConnectionManager Integration — Real WebSocket › multiple clients receive same broadcast206 ms
  • ✓ConnectionManager Integration — Real WebSocket › client sends command to server152 ms
  • ✓ConnectionManager Integration — Real WebSocket › handles rapid connect/disconnect without crashes409 ms
  • ✓ConnectionManager Integration — Real WebSocket › server detects client disconnect252 ms
  • ✓ConnectionManager Integration — Real WebSocket › bridge → gateway priority: second server takes over on disconnect407 ms
plugin/src/__tests__/connection-manager.test.ts26/26
  • ✓ConnectionManager › starts disconnected4 ms
  • ✓ConnectionManager › start() begins bridge connection to daemon3 ms
  • ✓ConnectionManager › start() installs a port provider so daemon.json is re-read every attempt1 ms
  • ✓ConnectionManager › emits connected when bridge connects2 ms
  • ✓ConnectionManager › emits disconnected when bridge disconnects1 ms
  • ✓ConnectionManager › forwards state_update from bridge1 ms
  • ✓ConnectionManager › send() delegates to bridge5 ms
  • ✓ConnectionManager › send() drops command when not connected0 ms
  • ✓ConnectionManager › getBridgePort returns bridge port0 ms
  • ✓ConnectionManager › getConnectionSnapshot exposes connection and discovery state1 ms
  • ✓ConnectionManager › retryNow probes daemon discovery and reconnects immediately when disconnected1 ms
  • ✓ConnectionManager › switchToOpenClaw() › sends switch_agent command to bridge1 ms
  • ✓ConnectionManager › switchToClaude() › sends switch_agent command to bridge1 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › tries the socket when a daemon PID probe is permission denied2 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › skips a daemon whose PID is confirmed absent1 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › rejects malformed daemon identity {"port":9120,"pid":0} before probing1 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › rejects malformed daemon identity {"port":9120,"pid":-1} before probing0 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › rejects malformed daemon identity {"port":9120,"pid":"1234"} before probing0 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › rejects malformed daemon identity {"port":65536,"pid":1234} before probing0 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › rejects malformed daemon identity {"port":0,"pid":1234} before probing1 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › rejects malformed daemon identity {"port":"9120","pid":1234} before probing0 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › prefers the CLI daemon when it is healthy0 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › falls through to the Swift daemon after the CLI port fails1 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › falls through after an initial handshake failure without a prior connection1 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › reports the daemon as found even when every candidate has failed1 ms
  • ✓ConnectionManager › findDaemonPort() candidate fallthrough › reports missing when no daemon.json exists0 ms
plugin/src/__tests__/connection-status-pi.test.ts11/11
  • ✓buildConnectionStatusPayload — snapshot -> PI payload mapping › never probed yet: unknown status, no path, no port, no probe time3 ms
  • ✓buildConnectionStatusPayload — snapshot -> PI payload mapping › daemon.json not found: missing status, plain-words path, still no port0 ms
  • ✓buildConnectionStatusPayload — snapshot -> PI payload mapping › daemon found but not yet connected: shows the DISCOVERED port and resolved path0 ms
  • ✓buildConnectionStatusPayload — snapshot -> PI payload mapping › connected: shows the LIVE bridge port, not the (possibly stale) discovery candidate0 ms
  • ✓buildConnectionStatusPayload — snapshot -> PI payload mapping › carries lastRetryAt through untouched, including null0 ms
  • ✓buildConnectionStatusPayload — snapshot -> PI payload mapping › a zero/negative port never renders as a real port0 ms
  • ✓inbound PI message recognition › isRetryNowMessage matches only the retryNow event0 ms
  • ✓inbound PI message recognition › isRequestConnectionStatusMessage matches only the requestConnectionStatus event0 ms
  • ✓retry round-trip: PI message -> ConnectionManager.retryNow() -> payload › before any daemon.json exists: payload reports "not found"1 ms
  • ✓retry round-trip: PI message -> ConnectionManager.retryNow() -> payload › a retryNow message from the PI drives discovery, and the rebuilt payload reflects the new answer1 ms
  • ✓retry round-trip: PI message -> ConnectionManager.retryNow() -> payload › a non-retry message must not be treated as a retry0 ms
plugin/src/__tests__/deck-settings-integration.test.ts6/6
  • ✓classic production keypad controller + loopback settings peer › paginates both catalogs, shows stale-target refusal, retries, and ignores replies after BACK527 ms
  • ✓classic production keypad controller + loopback settings peer › renders row-specific observed readouts and repaints NOW after roster-only updates3 ms
  • ✓xl production keypad controller + loopback settings peer › paginates both catalogs, shows stale-target refusal, retries, and ignores replies after BACK479 ms
  • ✓xl production keypad controller + loopback settings peer › renders row-specific observed readouts and repaints NOW after roster-only updates1 ms
  • ✓sdplus production keypad controller + loopback settings peer › paginates both catalogs, shows stale-target refusal, retries, and ignores replies after BACK445 ms
  • ✓sdplus production keypad controller + loopback settings peer › renders row-specific observed readouts and repaints NOW after roster-only updates1 ms
plugin/src/__tests__/deck-usage-modes.test.ts8/8
  • ✓weekly key display modes › cycles three views on the same SD key without moving or changing another deck6 ms
  • ✓weekly key display modes › retains the preference across quota disappearance, stale snapshots and return1 ms
  • ✓weekly key display modes › D200H shares the weekly key with 0 sessions and cycles locally8 ms
  • ✓weekly key display modes › D200H shares the weekly key with 13 sessions and cycles locally15 ms
  • ✓weekly key display modes › D200H keeps a scoped-only reading when weekly data is absent1 ms
  • ✓SD+ independent subscription pages › offers both Claude overviews on either dial without hiding 7D-only selection2 ms
  • ✓SD+ independent subscription pages › restores duplicate manual choices and leaves the peer alone after every selection1 ms
  • ✓SD+ independent subscription pages › makes Antigravity a confirmed plan page, never a credit or percentage gauge1 ms
plugin/src/__tests__/device-profile.test.ts3/3
  • ✓Stream Deck device profiles › maps every documented Elgato DeviceType without conflating families4 ms
  • ✓Stream Deck device profiles › uses the larger text profile only for original 72px keys0 ms
  • ✓Stream Deck device profiles › does not coerce missing or malformed device types to Stream Deck1 ms
plugin/src/__tests__/encoder-offline-policy.test.ts3/3
  • ✓renderOfflineTouchStrip — all-or-nothing 800px slice contract › every slice is a 200x100 canvas carrying the shared banner content3 ms
  • ✓renderOfflineTouchStrip — all-or-nothing 800px slice contract › slices 0..3 offset the same banner by -index*200 (E0..E3 align into one strip)0 ms
  • ✓renderOfflineTouchStrip — all-or-nothing 800px slice contract › uses a per-slice gradient id so the four panels are independent SVGs1 ms
plugin/src/__tests__/focused-detail-state.test.ts6/6
  • ✓FocusedDetailState › does not carry an OpenClaw GLM model into a focused Claude session4 ms
  • ✓FocusedDetailState › drops late options from another session and unscoped legacy options1 ms
  • ✓FocusedDetailState › accepts options correlated to the selected session0 ms
  • ✓FocusedDetailState › keeps an observed session's live prompt when the focus reply lands0 ms
  • ✓FocusedDetailState › still lets a managed session's live state replace its detail snapshot0 ms
  • ✓binds one-time approval to the displayed request and drops cross-question and superseded presses1 ms
plugin/src/__tests__/launcher-target.test.ts16/16
  • ✓launcher: runTarget fallback chain › opens a desktop app for an app: target9 ms
  • ✓launcher: runTarget fallback chain › opens a browser tab for a url: target1 ms
  • ✓launcher: runTarget fallback chain › stops at the first step that succeeds0 ms
  • ✓launcher: runTarget fallback chain › falls through to the URL when the app is not installed1 ms
  • ✓launcher: runTarget fallback chain › rejects when every step fails, so the dial can showAlert3 ms
  • ✓launcher: runTarget fallback chain › rejects an unrecognized scheme rather than guessing1 ms
  • ✓launcher: runTarget fallback chain › rejects an empty target0 ms
  • ✓launcher: runTarget fallback chain › tolerates whitespace around chain steps0 ms
  • ✓launcher: shipped defaults › every default target parses into runnable steps1 ms
  • ✓launcher: shipped defaults › falls back to a URL for both agents that have a desktop app0 ms
  • ✓launcher: entry list and rolling › lists every agent in a stable order1 ms
  • ✓launcher: entry list and rolling › honours a per-agent override from the Property Inspector0 ms
  • ✓launcher: entry list and rolling › ignores a blank override rather than launching nothing0 ms
  • ✓launcher: entry list and rolling › wraps the rolling index in both directions0 ms
  • ✓launcher: entry list and rolling › never returns a negative or out-of-range index1 ms
  • ✓launcher: entry list and rolling › returns 0 for an empty list instead of NaN0 ms
plugin/src/__tests__/manifest-platform.test.ts5/5
  • ✓Stream Deck Marketplace platform contract › ships installable entries for both maintained desktop platforms3 ms
  • ✓Stream Deck Marketplace platform contract › mirrors the plugin package version as X.Y.Z.01 ms
  • ✓bundled profile selection contract › installs and initially selects every bundled profile for first-time users2 ms
  • ✓bundled profile selection contract › does not programmatically switch profiles after connecting0 ms
  • ✓action naming contract › names no action or action state after a provider1 ms
plugin/src/__tests__/per-action-view-state.test.ts4/4
  • ✓PerActionViewState › rotates one action without changing another action6 ms
  • ✓PerActionViewState › restores a persisted view for each action0 ms
  • ✓PerActionViewState › falls back when a dynamic scoped view disappears0 ms
  • ✓PerActionViewState › wraps in both directions3 ms
plugin/src/__tests__/renderer-snapshots.test.ts43/43
  • ✓utility-renderer snapshots › renderUtilityGeneric with icon5 ms
  • ✓utility-renderer snapshots › renderUtilityGeneric muted (text-only value)0 ms
  • ✓launcher-renderer snapshots › renderLauncher first entry0 ms
  • ✓launcher-renderer snapshots › renderLauncher last entry0 ms
  • ✓launcher-renderer snapshots › renderLauncherEmpty0 ms
  • ✓usage-dial-renderer snapshots › renderUsageSession0 ms
  • ✓usage-gauge snapshots › renderUsageGauge Claude 5h (green ramp, low usage)1 ms
  • ✓usage-gauge snapshots › renderUsageGauge Claude 7d0 ms
  • ✓usage-gauge snapshots › renderUsageGauge Codex 5h uses the blue brand logo + green ramp1 ms
  • ✓usage-gauge snapshots › renderUsageGauge Codex 7d0 ms
  • ✓usage-gauge snapshots › renderUsageGauge critical (>=90 used → red ramp)0 ms
  • ✓usage-gauge snapshots › renderUsageGauge full-bleed fill (no narrow 60px tank rect)0 ms
  • ✓usage-gauge snapshots › renderUsageGauge unknown draws a dim tile + dash, no fill0 ms
  • ✓usage-encoder level-fill (SD+ 200x100) snapshots › both-view Claude shows both windows + terracotta brand logo1 ms
  • ✓usage-encoder level-fill (SD+ 200x100) snapshots › both-view Codex uses the blue brand logo + severity ramp0 ms
  • ✓usage-encoder level-fill (SD+ 200x100) snapshots › single 5h view enlarges the 5H window across the LCD0 ms
  • ✓usage-encoder level-fill (SD+ 200x100) snapshots › single 7d view enlarges the 7D window across the LCD0 ms
  • ✓usage-encoder level-fill (SD+ 200x100) snapshots › note suppresses the gauges (No Codex usage)0 ms
  • ✓usage-encoder level-fill (SD+ 200x100) snapshots › Waiting note before the first usage payload0 ms
  • ✓usage-encoder level-fill (SD+ 200x100) snapshots › a single unknown window draws a dash panel, the other a real fill0 ms
  • ✓session-slot-renderer snapshots › keeps key text clear of its badges and inside the key5 ms
  • ✓session-slot-renderer snapshots › keeps wide words within the key without breaking neighboring words2 ms
  • ✓session-slot-renderer snapshots › disconnected hero is icon-rich1 ms
  • ✓session-slot-renderer snapshots › disconnected non-center slot is empty0 ms
  • ✓session-slot-renderer snapshots › disconnected cluster quadrant tl0 ms
  • ✓session-slot-renderer snapshots › disconnected cluster quadrant tr0 ms
  • ✓session-slot-renderer snapshots › disconnected cluster quadrant bl0 ms
  • ✓session-slot-renderer snapshots › disconnected cluster quadrant br0 ms
  • ✓session-slot-renderer snapshots › connected no-session card is icon-rich0 ms
  • ✓session-slot-renderer snapshots › active idle session uses orbiting focus border0 ms
  • ✓session-slot-renderer snapshots › stale session dims the render and shows a STALE badge0 ms
  • ✓session-slot-renderer snapshots › wraps names with larger typography on original Stream Deck keys1 ms
  • ✓display-tile snapshots › renderStatusReadout MODEL is flat (no raised bezel, no glyph)1 ms
  • ✓display-tile snapshots › renderStatusReadout READY (label only)0 ms
  • ✓display-tile snapshots › renderStatusReadout AWAITING0 ms
  • ✓display-tile snapshots › renderStatusReadout HUB READY (no-session hub state)0 ms
  • ✓display-tile snapshots › renderSessionReadout keeps name/model/state, flat & non-interactive1 ms
  • ✓display-tile snapshots › renderSessionReadout shows the agent's own mode word, never the literal default (#463)0 ms
  • ✓display-tile snapshots › renderSessionReadout openclaw hides model, shows STANDBY0 ms
  • ✓agent-logos snapshots › claude-code watermark0 ms
  • ✓agent-logos snapshots › openclaw watermark0 ms
  • ✓agent-logos snapshots › antigravity icon uses the full-color mark1 ms
  • ✓agent-logos snapshots › CLAUDE_LOGO_PATH is defined0 ms
plugin/src/__tests__/session-slot-manager.test.ts77/77
  • ✓SessionSlotManager same-project labels (#544) › tags session keys that share project and agent, and leaves a lone one as-is14 ms
  • ✓SessionSlotManager detail layout › keeps detail focus on its session when an independent same-project thread appears3 ms
  • ✓SessionSlotManager detail layout › exits detail view when the focused session is gone with no fold successor1 ms
  • ✓SessionSlotManager detail layout › assigns separate slots to independent same-project Codex threads2 ms
  • ✓SessionSlotManager detail layout › renders connected no-session list as status cards instead of text-only empty buttons1 ms
  • ✓SessionSlotManager detail layout › renders the OpenClaw exec approval from the row when the relay says idle2 ms
  • ✓SessionSlotManager detail layout › shows an OpenClaw approval as display-only when it is not deliverable1 ms
  • ✓SessionSlotManager detail layout › puts processing tool info before OpenClaw presets1 ms
  • ✓SessionSlotManager detail layout › keeps a processing status tile even before tool metadata arrives1 ms
  • ✓SessionSlotManager detail layout › aliases the model name on detail MODEL surfaces (status card + OpenClaw preset)1 ms
  • ✓SessionSlotManager detail layout › renders the MODEL tile exactly once in Claude PROCESSING detail (no duplicate)1 ms
  • ✓SessionSlotManager detail layout › does not duplicate MODEL on OpenClaw idle (preset + status card)1 ms
  • ✓SessionSlotManager detail layout › does not render a READY/idle tile while a Claude session is PROCESSING1 ms
  • ✓SessionSlotManager detail layout › keeps observed Claude PROCESSING free of queued task buttons1 ms
  • ✓SessionSlotManager detail layout › observed AskUserQuestion: options are inert without liveAnswerable, pressable with it2 ms
  • ✓SessionSlotManager detail layout › renders no MODEL tile for observed Codex PROCESSING on every Stream Deck layout2 ms
  • ✓SessionSlotManager detail layout › never renders MODEL as a key for any observed session state2 ms
  • ✓SessionSlotManager detail layout › does not render a STANDBY/idle tile while an OpenClaw session is PROCESSING1 ms
  • ✓SessionSlotManager detail layout › uses actual parser options and reserves MORE only when awaiting overflow exists1 ms
  • ✓SessionSlotManager detail layout › resets option paging when the question changes, not just when awaiting ends1 ms
  • ✓SessionSlotManager detail layout › makes observed options pressable exactly when the daemon says they are answerable1 ms
  • ✓SD+ keypad relocation (Phase 2) › AWAITING permission renders selectable option buttons + ESC on the SD+ keypad1 ms
  • ✓SD+ keypad relocation (Phase 2) › keeps canned and suggested prompts off every keypad family1 ms
  • ✓SessionSlotManager list-view usage tiles › pins Claude 5H/7D to the last two keys of a classic Stream Deck (no Codex)1 ms
  • ✓SessionSlotManager list-view usage tiles › reserves 4 keys (Claude 5h/7d + Codex 5h/7d), left-aligned, when both agents report quota1 ms
  • ✓SessionSlotManager list-view usage tiles › hides Codex tiles when only Claude reports quota (reserve 2, not 4)1 ms
  • ✓SessionSlotManager list-view usage tiles › hides Claude tiles when only Codex reports quota (reserve 2 Codex tiles)1 ms
  • ✓SessionSlotManager list-view usage tiles › replaces the Codex 5h/7d keys with one LUNA gauge while account quota is exhausted2 ms
  • ✓SessionSlotManager list-view usage tiles › seats the purchased-credit balance ahead of the Luna reserve once a Codex window is exhausted7 ms
  • ✓SessionSlotManager list-view usage tiles › does NOT reserve usage on Stream Deck+ (encoder carries usage)1 ms
  • ✓SessionSlotManager list-view usage tiles › does NOT reserve usage on the Stream Deck + XL (6 dials carry usage)3 ms
  • ✓SessionSlotManager list-view usage tiles › pins usage to the last keys of the Stream Deck XL (no encoder, 32 keys)1 ms
  • ✓SessionSlotManager list-view usage tiles › isPlusFamily covers both dial-bearing families but not the plain XL0 ms
  • ✓SessionSlotManager list-view usage tiles › reserves NO usage keys when no quota was fed (hide-if-absent)1 ms
  • ✓SessionSlotManager list-view usage tiles › drops Claude tiles when its quota goes stale (hide-if-absent on stale)1 ms
  • ✓SessionSlotManager list-view usage tiles › fits 13 sessions on a classic deck without paging (15 keys − 2 usage)1 ms
  • ✓SessionSlotManager list-view usage tiles › paginates over capacity: NEXT→ at slot 12, usage at 13/141 ms
  • ✓SessionSlotManager list-view usage tiles › repositions NEXT→ ahead of a 4-key usage block when paginating1 ms
  • ✓SessionSlotManager list-view usage tiles › pressing a usage tile resolves to refresh-usage0 ms
  • ✓SessionSlotManager list-view usage tiles › shows usage tiles even with zero sessions0 ms
  • ✓VOICE hold-to-talk key › renders VOICE after the CC idle presets and maps its press to voice-ptt-begin1 ms
  • ✓VOICE hold-to-talk key › keeps evaluation outside the primary controller keys0 ms
  • ✓VOICE hold-to-talk key › shows scoped held/refused receipts independently of capture and clears them for a new capture1 ms
  • ✓VOICE hold-to-talk key › restyles the VOICE key from daemon voice_state transitions1 ms
  • ✓VOICE hold-to-talk key › offers user-authored VOICE on observed Claude idle (terminal-injection delivery)1 ms
  • ✓SessionSlotManager detail cache ownership › does not carry the previous session model into the next detail view0 ms
  • ✓SessionSlotManager detail cache ownership › seeds the detail readout from the session row rather than blanking it0 ms
  • ✓SessionSlotManager detail cache ownership › drops the cached model when re-entering a session that has none0 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › uses the entire Classic bottom row for Claude, weekly Codex and z.ai without MORE1 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › folds z.ai onto one key instead of paging when that makes the row fit1 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › keeps one z.ai window per key when the row has room0 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › pages only when the row still overflows after folding, and recovers when the usage set shrinks1 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › shares the weekly key with Fable even when there is spare capacity1 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › shows Claude 5H, 7D, active Fable, and Codex weekly together on 3 reserved keys1 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › seats five readings canonically across the whole bottom row1 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › keeps both Codex windows beside active Fable across four keys1 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › seats an inactive cap where the active one sat — ramp changes, position does not2 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › reserves no key for a Claude window the API did not report1 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › drops the scoped cap along with the Claude gauges when usage goes stale0 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › shows Claude 5H, 7D, Fable, and a lone 30-day Codex window together across 3 reserved keys1 ms
  • ✓SessionSlotManager scoped cap vs the Codex usage keys › shows the scoped cap for a Codex-less, Claude-only user too1 ms
  • ✓OpenClaw setting picker (#463) › times out a silent daemon and ignores its late answer4 ms
  • ✓OpenClaw setting picker (#463) › keeps a refused mutation visible and closes only after matching success1 ms
  • ✓OpenClaw setting picker (#463) › idle shows only native MODEL · GATEWAY · THINKING, and THINKING opens the picker0 ms
  • ✓OpenClaw setting picker (#463) › pages the agent's own levels, marks current/default, and sends ids verbatim (null = default)1 ms
  • ✓OpenClaw setting picker (#463) › shows the agent's refusal instead of a value, and the THINKING subtitle follows the agent0 ms
  • ✓OpenClaw setting picker (#463) › a picker never survives a session switch0 ms
  • ✓Observed NOW card (#463) › idle shows the row's activity, subagent fan-out and context in place of OBSERVED0 ms
  • ✓Observed NOW card (#463) › mid-turn adds the goal next to the running tool1 ms
  • ✓Dot integration first-key reservation › prepends Dot without changing Hermes/OpenClaw order and clears on an absent snapshot1 ms
  • ✓Dot integration first-key reservation › pins Dot on every page without losing a session to pagination3 ms
  • ✓pages observed OpenCode choices without repeating the first page1 ms
  • ✓offers OpenCode one-time permission only with a live native response channel1 ms
  • ✓refreshes friendly labels without changing deck targets (#544/#632)1 ms
  • ✓observed question page controls › exposes a reachable NEXT button for every original option on 8 keys1 ms
  • ✓observed question page controls › exposes a reachable NEXT button for every original option on 6 keys1 ms
  • ✓keeps observed question pages across unrelated relay updates and resets on a new prompt1 ms
plugin/src/__tests__/streamdeck-profiles-sync.test.ts7/7
  • ✓bundled Stream Deck profiles in sync › agentdeck-sd.streamDeckProfile matches the SSOT8 ms
  • ✓bundled Stream Deck profiles in sync › agentdeck-sdmini.streamDeckProfile matches the SSOT1 ms
  • ✓bundled Stream Deck profiles in sync › agentdeck-sdplus.streamDeckProfile matches the SSOT1 ms
  • ✓bundled Stream Deck profiles in sync › agentdeck-sdxl.streamDeckProfile matches the SSOT2 ms
  • ✓bundled Stream Deck profiles in sync › agentdeck-sdplusxl.streamDeckProfile matches the SSOT2 ms
  • ✓bundled Stream Deck profiles in sync › names every placed action exactly as the plugin manifest does1 ms
  • ✓bundled Stream Deck profiles in sync › covers exactly the five shipped device families1 ms
plugin/src/__tests__/system-dispatch.test.ts6/6
  • ✓system: selectBackend platform mapping › maps win32 to the windows backend3 ms
  • ✓system: selectBackend platform mapping › maps darwin to the mac backend0 ms
  • ✓system: selectBackend platform mapping › falls back to the mac backend on platforms the Stream Deck app does not exist on0 ms
  • ✓system: setOutputVolume debounce › coalesces rapid rotation — only the final value commits8 ms
  • ✓system: setOutputVolume debounce › commits again after the debounce window settles1 ms
  • ✓system: setOutputVolume debounce › swallows backend failures — a bad tick must not become an unhandled rejection1 ms
plugin/src/__tests__/system-win32-open.test.ts5/5
  • ✓win32: openUrl via rundll32 › passes the URL as a single argv to rundll32, never through cmd5 ms
  • ✓win32: openUrl via rundll32 › rejects when rundll32 fails so callers can fall back2 ms
  • ✓win32: openApp via Start Apps lookup › passes an exact Start-menu name through the environment, not PowerShell source2 ms
  • ✓win32: openApp via Start Apps lookup › rejects a missing Start-menu app so the |url: fallback chain can take over1 ms
  • ✓win32: openAgentDeckAppOrGitHub › goes straight to the project page — there is no Windows desktop app0 ms
plugin/src/__tests__/system-win32-volume.test.ts14/14
  • ✓win32 volume coprocess › spawns powershell with -EncodedCommand carrying the ReadLine server script8 ms
  • ✓win32 volume coprocess › waits for READY before writing, then GET resolves from an OK line2 ms
  • ✓win32 volume coprocess › SET and MUTE use the wire format and parse the post-state echo1 ms
  • ✓win32 volume coprocess › an ERR line rejects only that request; the child keeps serving2 ms
  • ✓win32 volume coprocess › serializes: the second request is not written until the first resolves1 ms
  • ✓win32 volume coprocess › coalesces queued SETs while the child hangs — only the final value is written1 ms
  • ✓win32 volume coprocess › kills a hung child on the first-request timeout and respawns lazily3 ms
  • ✓win32 volume coprocess › breaker: three never-served children (incl. hung-killed-by-timeout) flip unsupported2 ms
  • ✓win32 volume coprocess › a served child dying is NOT a strike, and resets the count14 ms
  • ✓win32 volume coprocess › a spawn 'error' without 'exit' (ENOENT) still rejects and counts a strike2 ms
  • ✓win32 volume coprocess › a zombie child's late buffered stdout cannot resolve the new child's request3 ms
  • ✓win32 volume coprocess › a child exit rejects the in-flight and all queued requests1 ms
  • ✓win32 volume coprocess › a stream 'error' event is absorbed — an unlistened stream error would crash the process1 ms
  • ✓win32 volume coprocess › dispose writes EXIT and kills the child1 ms
plugin/src/__tests__/usage-encoder.test.ts43/43
  • ✓buildClaudeUsageEncoder › maps the top-level 5h/7d quota to two known tanks4 ms
  • ✓buildClaudeUsageEncoder › shows "Waiting…" before the first payload0 ms
  • ✓buildClaudeUsageEncoder › shows "No usage data" when data arrived but the quota is absent0 ms
  • ✓buildClaudeUsageEncoder › treats stale data as unknown (suppresses the tanks)0 ms
  • ✓buildCodexUsageEncoder › maps codexRateLimits primary→5h, secondary→7d1 ms
  • ✓buildCodexUsageEncoder › falls back to a muted note when Codex reports no rate limits0 ms
  • ✓buildCodexUsageEncoder › shows "Waiting…" before the first payload0 ms
  • ✓buildCodexUsageEncoder › renders only the windows Codex actually reports (partial)1 ms
  • ✓buildCodexUsageEncoder — single live window › shows the subscription tier and its next renewal0 ms
  • ✓buildCodexUsageEncoder — single live window › leaves the countdown to the gauge instead of restating it on the card0 ms
  • ✓buildCodexUsageEncoder — single live window › picks the ChatGPT subscription by name, never by position0 ms
  • ✓buildCodexUsageEncoder — single live window › drops the renewal line when the subscription has no boundary0 ms
  • ✓buildCodexUsageEncoder — single live window › falls back to the bare plan tier when no subscription is reported0 ms
  • ✓buildCodexUsageEncoder — single live window › falls back to the absolute reset instant when even the tier is unknown0 ms
  • ✓buildCodexUsageEncoder — single live window › adds no card at all when the stale window leaves nothing knowable0 ms
  • ✓buildCodexUsageEncoder — single live window › adds no side card while both windows are live0 ms
  • ✓buildCodexUsageEncoder — snapshot freshness › says nothing extra for a fresh snapshot0 ms
  • ✓buildCodexUsageEncoder — snapshot freshness › THE REGRESSION: an aged snapshot is dated, and the percent survives0 ms
  • ✓buildCodexUsageEncoder — snapshot freshness › renders the age into the LCD even though the side card owns the reset slot1 ms
  • ✓buildCodexUsageEncoder — snapshot freshness › a legacy producer (no capturedAt) is unchanged0 ms
  • ✓renderUsageEncoderBoth — single live window › keeps the lone weekly gauge in its canonical right column, side card on the left0 ms
  • ✓renderUsageEncoderBoth — single live window › keeps the gauge printing its own countdown, like E2 does0 ms
  • ✓renderUsageEncoderBoth — single live window › keeps a lone 5h gauge in the left column instead0 ms
  • ✓renderUsageEncoderBoth — single live window › renders the side card smaller than the gauge percentage0 ms
  • ✓renderUsageEncoderBoth — single live window › still renders two gauges when both windows are live0 ms
  • ✓renderUsageEncoderBoth — single live window › keeps the Codex identity while showing Luna in the wide SD+ layout0 ms
  • ✓Codex purchased credits on the SD+ encoder › replaces the exhausted gauge with the remaining balance1 ms
  • ✓Codex purchased credits on the SD+ encoder › shows credits and the Luna reserve side by side in the wide view, credits alone when zoomed1 ms
  • ✓Codex purchased credits on the SD+ encoder › shows nothing new while the plan still has room or the balance is zero0 ms
  • ✓availableUsageViews › drops the zoom stop for a window the provider no longer reports0 ms
  • ✓availableUsageViews › keeps every stop while both windows are live0 ms
  • ✓availableUsageViews › leaves only the gauge and session stops when no window exists0 ms
  • ✓buildZaiUsageEncoder › maps the wire block to tanks; the MCP window labels by quantity0 ms
  • ✓buildZaiUsageEncoder › windowless blocks render as notes, never as gauges0 ms
  • ✓provider pages and the auto selection › restores manual selections across plugin restarts and retains automatic mode0 ms
  • ✓provider pages and the auto selection › lets either dial claim every provider and allows duplicate providers without moving the peer1 ms
  • ✓provider pages and the auto selection › keeps manual choices through data loss and restores them after a restart0 ms
  • ✓provider pages and the auto selection › does not replace a pinned Claude page with Codex when Claude usage turns stale0 ms
  • ✓provider pages and the auto selection › lists every provider that currently has a page0 ms
  • ✓provider pages and the auto selection › auto-picks activity without considering the other dial0 ms
  • ✓provider pages and the auto selection › releases finished and removed sessions from auto-provider ranking0 ms
  • ✓provider pages and the auto selection › buildProviderUsageEncoder dispatches per provider0 ms
  • ✓provider pages and the auto selection › modelProviderToUsageProvider maps only the three usage providers0 ms
plugin/src/__tests__/usage-scoped.test.ts13/13
  • ✓sanitizeScopedLabel › drops control chars / newlines and collapses whitespace3 ms
  • ✓sanitizeScopedLabel › is null/undefined safe0 ms
  • ✓splitResetTwoLine › splits a two-unit countdown at the first boundary1 ms
  • ✓splitResetTwoLine › leaves a single-unit string on one line0 ms
  • ✓pickWorstScopedLimit › returns the worst-sorted [0] (store keeps active-first, percent-desc)0 ms
  • ✓pickWorstScopedLimit › returns undefined when the snapshot is stale (a stale number reads as live)0 ms
  • ✓pickWorstScopedLimit › returns undefined when there are no scoped limits0 ms
  • ✓scoped gauge treatment — active vs inactive › an ACTIVE cap at 98% wears the critical red ramp1 ms
  • ✓scoped gauge treatment — active vs inactive › an INACTIVE cap at 98% wears the calm informational cyan, NOT red1 ms
  • ✓scoped gauge treatment — active vs inactive › the triple view mutes an inactive worst-scoped panel (no red from a 99% inactive cap)1 ms
  • ✓scoped gauge treatment — active vs inactive › renders the unknown tile when there is no scoped cap0 ms
  • ✓scoped label on the compact gauge › sanitizes, uppercases and truncates the model label0 ms
  • ✓scoped store merge — omitted key clears › an update that omits scopedLimits clears a prior set (no phantom latch)2 ms
plugin/src/__tests__/usage-severity.test.ts7/7
  • ✓identical quota severity on Stream Deck and Ulanzi › 69% #52D988 uses the shared color on both keypads4 ms
  • ✓identical quota severity on Stream Deck and Ulanzi › 70% #FFA93D uses the shared color on both keypads0 ms
  • ✓identical quota severity on Stream Deck and Ulanzi › 82% #FFA93D uses the shared color on both keypads0 ms
  • ✓identical quota severity on Stream Deck and Ulanzi › 89% #FFA93D uses the shared color on both keypads0 ms
  • ✓identical quota severity on Stream Deck and Ulanzi › 90% #FF6B6B uses the shared color on both keypads0 ms
  • ✓identical quota severity on Stream Deck and Ulanzi › 100% #FF6B6B uses the shared color on both keypads0 ms
  • ✓identical quota severity on Stream Deck and Ulanzi › colors 18% remaining from 82% consumed on both keypads and the encoder1 ms
scripts/__tests__/plugin-deployment.test.ts26/26
  • ✓plugin deployment identity › distinguishes Marketplace directories, missing installs, wrong and correct source links5 ms
  • ✓plugin deployment identity › keeps startup identity when disk bytes are rebuilt4 ms
  • ✓plugin deployment identity › requires matching bytes, path, fresh startup and a live process1 ms
  • ✓waits for asynchronous SDK stop before allowing a restart and refuses a stuck runtime3 ms
  • ✓plugin deployment process probes › reports a process absent only when the operating system returns ESRCH3 ms
  • ✓plugin deployment process probes › does not mistake EPERM for a stopped process1 ms
  • ✓plugin deployment process probes › does not mistake EIO for a stopped process0 ms
  • ✓plugin deployment process probes › does not mistake UNKNOWN for a stopped process0 ms
  • ✓plugin deployment process probes › rejects invalid pid 0 without probing the OS1 ms
  • ✓plugin deployment process probes › rejects invalid pid -1 without probing the OS1 ms
  • ✓plugin deployment process probes › rejects invalid pid 1.5 without probing the OS0 ms
  • ✓plugin deployment process probes › rejects invalid pid NaN without probing the OS0 ms
  • ✓plugin deployment process probes › rejects invalid pid Infinity without probing the OS0 ms
  • ✓plugin deployment stop handover › waits for a 75-second asynchronous stop after sending exactly one stop request1 ms
  • ✓plugin deployment stop handover › bounds an acknowledged stop that never exits without sending duplicate stop requests1 ms
  • ✓plugin deployment stop handover › skips the stop command and wait when the previous process is already gone0 ms
  • ✓plugin deployment stop handover › refuses an unknown process state before sending a stop request1 ms
  • ✓plugin deployment stop handover › does not turn a later unknown process state into permission to restart1 ms
  • ✓plugin deployment stop handover › rejects invalid stop identities before invoking commands or probes1 ms
  • ✓plugin deployment stop handover › accepts exit at the deadline and never waits beyond a partial final interval1 ms
  • ✓plugin deployment startup handover › waits for a fresh matching live receipt arriving after 75 seconds1 ms
  • ✓plugin deployment startup handover › rejects stale, different and dead receipts until a matching live runtime starts1 ms
  • ✓plugin deployment startup handover › waits for a replacement PID even when the previous process advertises a fresh matching receipt0 ms
  • ✓plugin deployment startup handover › does not accept or silently retry an unreadable process behind a matching receipt0 ms
  • ✓plugin deployment startup handover › fails at the bounded deadline if startup never produces a fresh receipt2 ms
  • ✓plugin deployment startup handover › accepts a matching receipt on the final deadline probe without oversleeping1 ms
shared/src/__tests__/brand-assets-contract.test.ts13/13
  • ✓canonical agent brand assets › keeps the Claude compatibility export on the Claude Code robot mark3 ms
  • ✓canonical agent brand assets › claudecode.svg is the geometry used by shared renderers0 ms
  • ✓canonical agent brand assets › codex.svg is the geometry used by shared renderers0 ms
  • ✓canonical agent brand assets › openclaw.svg is the geometry used by shared renderers0 ms
  • ✓canonical agent brand assets › opencode.svg is the geometry used by shared renderers0 ms
  • ✓canonical agent brand assets › antigravity.svg is the geometry used by shared renderers0 ms
  • ✓canonical agent brand assets › kiro.svg is the geometry used by shared renderers0 ms
  • ✓canonical agent brand assets › zai.svg is the geometry used by shared renderers0 ms
  • ✓canonical agent brand assets › mirrors every canonical path on Android and Apple vector surfaces3 ms
  • ✓canonical agent brand assets › mirrors the z.ai provider mark on its two vector consumers1 ms
  • ✓canonical agent brand assets › generates constrained-device masks directly from canonical SVG files1 ms
  • ✓canonical agent brand assets › records the upstream source and trademark holder for every agent mark1 ms
  • ✓canonical agent brand assets › does not retain alternate logo-source dumps1 ms
shared/src/__tests__/brand-features.test.ts12/12
  • ✓source-grounded creature feature semantics › pins all canonical SVG bytes and generated Blender material selectors5 ms
  • ✓source-grounded creature feature semantics › claudecode fills are independent of background and OpenCode is a true hole9 ms
  • ✓source-grounded creature feature semantics › codex fills are independent of background and OpenCode is a true hole5 ms
  • ✓source-grounded creature feature semantics › openclaw fills are independent of background and OpenCode is a true hole5 ms
  • ✓source-grounded creature feature semantics › opencode fills are independent of background and OpenCode is a true hole4 ms
  • ✓compact feature masks stay cropped, bounded and source-grounded across 64/24/9/8 pixel surfaces61 ms
  • ✓actual deck creature SVGs paint literal features over both backgrounds and preserve OpenCode alpha25 ms
  • ✓large paper creatures honor black eyes while compact ink-body logos retain legibility1 ms
  • ✓OpenCode selector is the contained smaller rectangle, not an outer fill40 ms
  • ✓unknown creature identity never borrows another agent mark0 ms
  • ✓OpenClaw feature colors come from the pinned original color reference, not inferred white1 ms
  • ✓native vector/color/monochrome mirrors retain exact source feature contours3 ms
shared/src/__tests__/hermes-brand.test.ts1/1
  • ✓Hermes upstream brand fidelity › preserves all upstream paths, including face negative space5 ms
shared/src/__tests__/svg-renderers/model-alias.test.ts8/8
  • ✓aliasModelName › shortens claude family-major-minor3 ms
  • ✓aliasModelName › drops trailing date suffix on claude releases0 ms
  • ✓aliasModelName › passes gpt and unknown strings through unchanged0 ms
  • ✓formatModelEffort › returns aliased model when no effort to show0 ms
  • ✓formatModelEffort › shows every reported level — which one is the default is per agent and model (#463)0 ms
  • ✓formatModelEffort › appends effort when it fits0 ms
  • ✓formatModelEffort › truncates aliased model name to fit budget with effort suffix0 ms
  • ✓formatModelEffort › returns empty string for missing model0 ms

6 files

Partial verification

Terminal dashboard

Does the TUI dashboard render sessions and the terrarium stably?

Passed
109
Failed
0
Skipped
1
Time
1.6 s
6 test files
bridge/src/__tests__/tui-dashboard.test.ts16/16
  • ✓TUI dashboard models › renders Codex Plus 5h and 7d limits in the wide layout19 ms
  • ✓TUI dashboard models › renders Codex Plus 5h and 7d limits in the standard layout4 ms
  • ✓TUI dashboard models › renders Codex Plus 5h and 7d limits in the narrow layout3 ms
  • ✓TUI dashboard models › renders a Codex Pro weekly-only primary window without a phantom 5h row in the wide layout3 ms
  • ✓TUI dashboard models › renders a Codex Pro weekly-only primary window without a phantom 5h row in the standard layout2 ms
  • ✓TUI dashboard models › renders a Codex Pro weekly-only primary window without a phantom 5h row in the narrow layout2 ms
  • ✓TUI dashboard models › stores modelCatalog from state_update1 ms
  • ✓TUI dashboard models › renders OAuth catalog and Ollama models in wide layout2 ms
  • ✓TUI dashboard models › renders disconnected OAuth state2 ms
  • ✓TUI dashboard models › renders downstream module health compactly3 ms
  • ✓TUI dashboard models › renders Stream Deck, WiFi-only ESP32, and TUI dashboard downstream rows3 ms
  • ✓TUI dashboard models › shows current session summary and control hints2 ms
  • ✓TUI dashboard models › renders agent list secondary line as model dash compact state2 ms
  • ✓TUI dashboard models › renders sibling models in session bridge mode and omits uptime label2 ms
  • ✓TUI dashboard models › renders help overlay when helpVisible is on1 ms
  • ✓TUI dashboard models › shows numbered session badges13 ms
bridge/src/__tests__/tui-hud-entries.test.ts16/16
  • ✓buildHudEntries — primary anchoring › promotes the matching-port sibling to primary instead of appending a duplicate17 ms
  • ✓buildHudEntries — primary anchoring › patches the anchored sibling with the primary's live fields (matches macOS / Android)1 ms
  • ✓buildHudEntries — primary anchoring › uses the primary's projectName for the #N suffix grouping after anchoring1 ms
  • ✓buildHudEntries — primary anchoring › preserves the deterministic #N order when primary anchors a sibling slot1 ms
  • ✓buildHudEntries — primary anchoring › appends a synthetic primary when no sibling shares its agentType0 ms
  • ✓buildHudEntries — primary anchoring › skips the synthetic primary when a sibling shares agentType but no port match (duplicate guard)0 ms
  • ✓buildHudEntries — primary anchoring › never appends primary when agentType is daemon or openclaw0 ms
  • ✓buildHudEntries — virtual OpenClaw › inserts a virtual OpenClaw row when gateway is available and sessions has none0 ms
  • ✓buildHudEntries — virtual OpenClaw › does not insert a virtual row when sessions already contains an openclaw entry0 ms
  • ✓buildHudEntries — hotkey eligibility (sibling-only) › primary and virtual rows do not consume hotkey slots0 ms
  • ✓formatTaskEvalSuffix — task_end badge for each outcome class › renders ✓ for success0 ms
  • ✓formatTaskEvalSuffix — task_end badge for each outcome class › renders ✗ for fail0 ms
  • ✓formatTaskEvalSuffix — task_end badge for each outcome class › renders △ for partial0 ms
  • ✓formatTaskEvalSuffix — task_end badge for each outcome class › renders ⊘ for abandoned (manual cancel)0 ms
  • ✓formatTaskEvalSuffix — task_end badge for each outcome class › renders ? as score placeholder when judge has not produced a number yet0 ms
  • ✓formatTaskEvalSuffix — task_end badge for each outcome class › returns empty string while the eval is still pending (outcome undefined)0 ms
bridge/src/__tests__/tui-model.test.ts23/23
  • ✓roster cards › carries the observed session axes (#463) and a CI wait as the focus line6 ms
  • ✓roster cards › does not invent a CI wait the agent is not blocked on0 ms
  • ✓roster cards › puts the question first for a session that needs you0 ms
  • ✓roster cards › treats an over-100% context reading as unknown, not full12 ms
  • ✓roster cards › keeps urgent and working rows explicit in a summarized roster and names what it hid2 ms
  • ✓usage groups › orders providers like every other surface and names plan tiers2 ms
  • ✓usage groups › shows credits only once a plan window is exhausted1 ms
  • ✓usage groups › dims an aged Codex snapshot and says how old it is0 ms
  • ✓usage groups › greys stale Claude windows and surfaces a rejected z.ai key0 ms
  • ✓activity follow › matches an observed roster id to the bare timeline id1 ms
  • ✓activity follow › follows OpenClaw by agent when its roster key differs from its run key0 ms
  • ✓terminal width › counts Hangul, CJK and emoji as two cells and marks as zero1 ms
  • ✓terminal width › keeps every row exactly 160 cells with Korean content65 ms
  • ✓terminal width › keeps every row exactly 120 cells with Korean content32 ms
  • ✓terminal width › keeps every row exactly 100 cells with Korean content31 ms
  • ✓terminal width › keeps every row exactly 72 cells with Korean content43 ms
  • ✓aquarium residents › gives Antigravity, Kiro and Hermes their own creature and an unknown agent none21 ms
  • ✓Dot as an ordinary read-only roster peer › uses the roster, preserves session counts and grants no switch hotkey4 ms
  • ✓Dot as an ordinary read-only roster peer › ages activity and removes the peer when the transport disconnects0 ms
  • ✓roster order follows who needs the operator › puts waiting first, then working, and keeps hotkeys in the stable order1 ms
  • ✓roster order follows who needs the operator › captions groups, opens on the request and gives its question a dedicated line when rows are short13 ms
  • ✓roster order follows who needs the operator › does not print a task title and its identical first prompt as two rows1 ms
  • ✓roster order follows who needs the operator › keeps the first prompt folded after closure metadata arrives, but preserves a distinct judged title1 ms
bridge/src/__tests__/tui-renderer-snapshots.test.ts30/30
  • ✓blockGauge snapshots › 0% — all empty, green5 ms
  • ✓blockGauge snapshots › 50% — half filled, green0 ms
  • ✓blockGauge snapshots › 75% — yellow threshold0 ms
  • ✓blockGauge snapshots › 95% — red threshold0 ms
  • ✓blockGauge snapshots › 100% — all filled, red0 ms
  • ✓blockGauge snapshots › renders negative as unknown with an empty neutral gauge0 ms
  • ✓blockGauge snapshots › clamps above 1000 ms
  • ✓resetTimeStr › returns empty for undefined1 ms
  • ✓resetTimeStr › returns ↻now for past time0 ms
  • ✓resetTimeStr › formats minutes0 ms
  • ✓resetTimeStr › formats hours and minutes0 ms
  • ✓resetTimeStr › formats days and hours0 ms
  • ✓formatUptime › seconds0 ms
  • ✓formatUptime › minutes0 ms
  • ✓formatUptime › hours and minutes0 ms
  • ✓formatTokens › below 1000 unchanged0 ms
  • ✓formatTokens › 1k-10k with decimal0 ms
  • ✓formatTokens › 10k+ rounded0 ms
  • ✓activityDensityBar › empty timestamps — all dim0 ms
  • ✓activityDensityBar › recent burst — bright right side0 ms
  • ✓activityDensityBar › spread timestamps — distributed density0 ms
  • ✓getLayout › wide for 120+ cols0 ms
  • ✓getLayout › standard for 80-119 cols0 ms
  • ✓getLayout › narrow for <80 cols0 ms
  • ✓shouldShowTerrarium › true for adequate size0 ms
  • ✓shouldShowTerrarium › false for too narrow0 ms
  • ✓shouldShowTerrarium › false for too short0 ms
  • ✓spinner › returns braille characters at different frames2 ms
  • ✓spinner › spinner cycles through 10 frames0 ms
  • ✓non-UTF-8 terminal fallback › uses ASCII spinner frames when no UTF-8 locale is advertised22 ms
bridge/src/__tests__/tui-terrarium-snapshots.test.ts20/20
  • ✓TUI terrarium snapshots › initTerrarium creates context with expected structure5 ms
  • ✓TUI terrarium snapshots › setOctopi configures octopus instances1 ms
  • ✓TUI terrarium snapshots › draws an octopus for Claude and for nobody else1 ms
  • ✓TUI terrarium snapshots › setCrayfish configures crayfish state0 ms
  • ✓TUI terrarium snapshots › setJellyfish configures jellyfish instances1 ms
  • ✓TUI terrarium snapshots › renderTerrariumFrame empty terrarium (small)6 ms
  • ✓TUI terrarium snapshots › renderTerrariumFrame empty terrarium (large)3 ms
  • ✓TUI terrarium snapshots › renderTerrariumFrame with idle octopus3 ms
  • ✓TUI terrarium snapshots › renderTerrariumFrame with processing octopus2 ms
  • ✓TUI terrarium snapshots › renderTerrariumFrame with routing crayfish3 ms
  • ✓TUI terrarium snapshots › renderTerrariumFrame with sick crayfish2 ms
  • ✓TUI terrarium snapshots › renderTerrariumFrame with OpenCode hollow ring3 ms
  • ✓TUI terrarium snapshots › renderTerrariumFrame too small returns empty0 ms
  • ✓TUI terrarium snapshots › updateTerrarium advances bubble positions0 ms
  • ✓canonical colored terminal creatures › retains all existing terminal footprints at each scale11 ms
  • ✓canonical colored terminal creatures › keeps the OpenCode centre transparent instead of erasing water behind it1 ms
  • ✓canonical colored terminal creatures › fills the original Codex marking and does not blink its geometry away10 ms
  • ✓canonical colored terminal creatures › renders bounded lines after multi-color cells and restores each water-row background15 ms
  • ✓native canonical cell data is generated by the real TUI sampler105 ms
  • ✓bounds Swift type checking to one typed frame per initializer12 ms
  • ○executes the native TUI samples against Node colors, coverage and footprints
scripts/__tests__/tui-demo-frame.test.ts4/4
  • ✓public TUI canonical color frames › consumes RGB payloads atomically and preserves both half colors and background restoration3 ms
  • ✓public TUI canonical color frames › keeps intensity/reset separate from RGB channel values0 ms
  • ✓public TUI canonical color frames › preserves actual OpenCode colored-cell output without filling its canonical hole27 ms
  • ✓generated canonical TUI reset labels are finite for every synthetic agent/state1.1 s

25 files

Pass

Release & repository policy

Do versions, release notes, runtime support, palette ratchets and the verification tiers hold?

Passed
323
Failed
0
Skipped
0
Time
17.5 s
25 test files
scripts/__tests__/android-install.test.ts6/6
  • ✓Android release script safe update › preserves the installed app and data after version downgrade66 ms
  • ✓Android release script safe update › preserves the installed app and data after storage exhaustion52 ms
  • ✓Android release script safe update › preserves the installed app and data after signing mismatch54 ms
  • ✓Android release script safe update › preserves the installed app and data after transport failure50 ms
  • ✓Android release script safe update › preserves the installed app and data after misleading output53 ms
  • ✓Android release script safe update › completes an in-place update without deleting existing data57 ms
scripts/__tests__/android-runtime-audit.test.ts10/10
  • ✓Android runtime inventory and advisory audit › deduplicates coordinates across both variants while retaining distinct selected versions17 ms
  • ✓Android runtime inventory and advisory audit › refuses missing/empty variants, unresolved versions and malformed module identities2 ms
  • ✓Android runtime inventory and advisory audit › drains only the paginated query and correlates results back to their original coordinates28 ms
  • ✓Android runtime inventory and advisory audit › keeps positional correspondence when the inventory crosses a batch boundary1 ms
  • ✓Android runtime inventory and advisory audit › fails on missing results, unexpected schemas, bad advisory records and network/HTTP errors4 ms
  • ✓Android runtime inventory and advisory audit › refuses looping or excessive pagination rather than reporting a partial clean scan5 ms
  • ✓Android runtime inventory and advisory audit › bounds response bytes and the total query budget9 ms
  • ✓Android runtime inventory and advisory audit › requires the positive control but excludes its known vulnerabilities from product findings2 ms
  • ✓Android runtime inventory and advisory audit › blocks every unreviewed product advisory match and retains the affected variants1 ms
  • ✓Android runtime inventory and advisory audit › replaces an old pass with explicit error evidence if runtime resolution fails1.7 s
scripts/__tests__/app-icons.test.ts5/5
  • ✓AgentDeck app icon exports › keeps a transparent master large enough for the Store export, with recorded edit provenance12 ms
  • ✓AgentDeck app icon exports › matches every active export to the master and platform alpha policy7.1 s
  • ✓AgentDeck app icon exports › averages colour by coverage without bleeding invisible RGB into transparent edges1 ms
  • ✓AgentDeck app icon exports › uses exact area weights at fractional reduction ratios and refuses enlargement2 ms
  • ✓AgentDeck app icon exports › covers every configured Apple app icon slot and Android launcher density1 ms
scripts/__tests__/apple-dot-build.test.ts10/10
  • ✓Dot artifact boundary (macos) › accepts a Store app and rejects a mislabeled preview binary78 ms
  • ✓Dot artifact boundary (macos) › checks the Debug dylib as well as the launcher35 ms
  • ✓Dot artifact boundary (macos) › rejects a leaked MCP resource36 ms
  • ✓Dot artifact boundary (macos) › requires positive preview evidence and refuses it for Store submission96 ms
  • ✓Dot artifact boundary (macos) › refuses an absent or unexpanded build identity61 ms
  • ✓Dot artifact boundary (ios) › accepts a Store app and rejects a mislabeled preview binary57 ms
  • ✓Dot artifact boundary (ios) › checks the Debug dylib as well as the launcher33 ms
  • ✓Dot artifact boundary (ios) › rejects a leaked MCP resource31 ms
  • ✓Dot artifact boundary (ios) › requires positive preview evidence and refuses it for Store submission86 ms
  • ✓Dot artifact boundary (ios) › refuses an absent or unexpanded build identity61 ms
scripts/__tests__/apple-release-upload.test.ts5/5
  • ✓Apple release upload selection › uploads only the freshly verified iOS artifact (stale outputs: false)48 ms
  • ✓Apple release upload selection › uploads only the freshly verified iOS artifact (stale outputs: true)47 ms
  • ✓Apple release upload selection › uploads only the freshly verified macOS artifact (stale outputs: false)49 ms
  • ✓Apple release upload selection › uploads only the freshly verified macOS artifact (stale outputs: true)47 ms
  • ✓Apple release upload selection › uploads both current verified artifacts for --all71 ms
scripts/__tests__/aquarium-showcase-story.test.ts4/4
  • ✓isolated public intro showcase › keeps one observed Hermes and one of each other agent without a duplicate primary identity9 ms
  • ✓isolated public intro showcase › shows CI only on its waiting owner, preserves invocation identity and explicitly clears results2 ms
  • ✓isolated public intro showcase › replays only fictional history with integer wire timestamps and a clean loop reset1 ms
  • ✓isolated public intro showcase › serves canonical connection/snapshot/pong on an isolated loopback listener and releases it151 ms
scripts/__tests__/asc-certificates.test.ts113/113
  • ✓2.1.0 store scope › allows iOS prepare/submit for listed versions only3 ms
  • ✓2.1.0 store scope › the 2.0.0 MAC_OS listing file carries the same What's New as the prepared copy2 ms
  • ✓2.1.0 store scope › the 2.0.0 IOS listing file carries the same What's New as the prepared copy1 ms
  • ✓2.1.0 store scope › the 2.1.0 MAC_OS listing file carries the same What's New as the prepared copy1 ms
  • ✓2.1.0 store scope › the 2.1.0 IOS listing file carries the same What's New as the prepared copy1 ms
  • ✓2.1.0 store scope › the 2.2.0 MAC_OS listing file carries the same What's New as the prepared copy1 ms
  • ✓2.1.0 store scope › the 2.2.0 IOS listing file carries the same What's New as the prepared copy3 ms
  • ✓bounded macOS ASC release › extracts only current macOS EN/KO/JA and the marked macOS reviewer field2 ms
  • ✓bounded macOS ASC release › rejects target 1.9.1/9301 before API calls0 ms
  • ✓bounded macOS ASC release › rejects target 1.9.2/9201 before API calls0 ms
  • ✓bounded macOS ASC release › rejects target 1.9.2/0 before API calls0 ms
  • ✓bounded macOS ASC release › rejects target 1.9.2/9301; echo secret before API calls0 ms
  • ✓bounded macOS ASC release › creates a new macOS version with allow-listed released metadata and current copy, then submits idempotently12 ms
  • ✓bounded macOS ASC release › refuses unsafe new-version build before any mutation1 ms
  • ✓bounded macOS ASC release › refuses unsafe new-version newer before any mutation0 ms
  • ✓bounded macOS ASC release › refuses unsafe new-version active before any mutation0 ms
  • ✓bounded macOS ASC release › refuses unsafe new-version contact before any mutation0 ms
  • ✓bounded macOS ASC release › refuses unsafe new-version locale before any mutation0 ms
  • ✓bounded macOS ASC release › refuses unsafe new-version copyright before any mutation0 ms
  • ✓bounded macOS ASC release › does not duplicate creation after a lost response at /v1/appStoreVersions3 ms
  • ✓bounded macOS ASC release › does not duplicate creation after a lost response at /v1/appStoreVersionLocalizations4 ms
  • ✓bounded macOS ASC release › does not duplicate creation after a lost response at /v1/appStoreReviewDetails2 ms
  • ✓bounded macOS ASC release › fills only missing required fields in a partially inherited draft without replacing existing text3 ms
  • ✓bounded macOS ASC release › does not call a new version prepared when inherited media are missing2 ms
  • ✓bounded macOS ASC release › does not call a new version prepared when inherited media are incomplete3 ms
  • ✓bounded macOS ASC release › rechecks inherited media after creating the review item before submit3 ms
  • ✓bounded macOS ASC release › does not interpret an unreadable build linkage as an empty draft1 ms
  • ✓bounded macOS ASC release › does not allow legacy 9201 replacement for a new version1 ms
  • ✓bounded macOS ASC release › prepares only approved fields and exact build, then performs no writes on repeat2 ms
  • ✓bounded macOS ASC release › refuses unsafe processing before prepare mutation0 ms
  • ✓bounded macOS ASC release › refuses unsafe expired before prepare mutation0 ms
  • ✓bounded macOS ASC release › refuses unsafe platform before prepare mutation0 ms
  • ✓bounded macOS ASC release › refuses unsafe version before prepare mutation0 ms
  • ✓bounded macOS ASC release › refuses unsafe locale before prepare mutation0 ms
  • ✓bounded macOS ASC release › refuses unsafe attached before prepare mutation0 ms
  • ✓bounded macOS ASC release › does not replace a different candidate attached during preparation1 ms
  • ✓bounded macOS ASC release › refuses submit until exact metadata/build/release-type readback matches0 ms
  • ✓bounded macOS ASC release › creates the exact version item, submits, and recognizes a repeat without mutations2 ms
  • ✓bounded macOS ASC release › resumes only an exact ready draft without creating another submission or item2 ms
  • ✓bounded macOS ASC release › refuses metadata drift at the final readback before submitting1 ms
  • ✓bounded macOS ASC release › refuses existing empty drafts without changing or canceling them1 ms
  • ✓bounded macOS ASC release › refuses existing foreign drafts without changing or canceling them0 ms
  • ✓bounded macOS ASC release › refuses existing multiple drafts without changing or canceling them0 ms
  • ✓bounded macOS ASC release › refuses existing canceling drafts without changing or canceling them0 ms
  • ✓bounded macOS ASC release › does not repeat draft creation after an unknown POST outcome, even on another invocation1 ms
  • ✓bounded macOS ASC release › reconciles a lost response at /v1/reviewSubmissionItems without repeating its mutation1 ms
  • ✓bounded macOS ASC release › reconciles a lost response at /v1/reviewSubmissions/submission-new without repeating its mutation1 ms
  • ✓bounded macOS ASC release › stops on permission denial without swallowing it or trying another write1 ms
  • ✓bounded macOS ASC release › never follows pagination to another host or collection0 ms
  • ✓bounded macOS ASC release › bounds HTTP calls and never includes a private response body in errors27 ms
  • ✓bounded macOS ASC release › passes workflow inputs only as environment-backed quoted arguments and serializes dispatches0 ms
  • ✓bounded macOS ASC release › retries transient read failures within a fixed budget and stops once the read succeeds2 ms
  • ✓bounded macOS ASC release › never retries a failed POST mutation1 ms
  • ✓bounded macOS ASC release › never retries a failed PATCH mutation1 ms
  • ✓bounded macOS ASC release › never retries a failed DELETE mutation1 ms
  • ✓bounded macOS ASC release › caps or refuses retries for GET HTTP 401 without exposing response bodies1 ms
  • ✓bounded macOS ASC release › caps or refuses retries for GET HTTP 403 without exposing response bodies1 ms
  • ✓bounded macOS ASC release › caps or refuses retries for GET HTTP 422 without exposing response bodies1 ms
  • ✓bounded macOS ASC release › caps or refuses retries for GET HTTP 500 without exposing response bodies1 ms
  • ✓version state lag after the review item is added › waits a bounded time for READY_FOR_REVIEW, then submits1 ms
  • ✓version state lag after the review item is added › resumes from a draft whose version has not turned READY yet3 ms
  • ✓explicit pending macOS build replacement › cancels only the named review, confirms removal, attaches the verified build and prepares idempotently13 ms
  • ✓explicit pending macOS build replacement › refuses unsafe previous-build before canceling the old review3 ms
  • ✓explicit pending macOS build replacement › refuses unsafe submission-id before canceling the old review3 ms
  • ✓explicit pending macOS build replacement › refuses unsafe build-processing before canceling the old review2 ms
  • ✓explicit pending macOS build replacement › refuses unsafe build-expired before canceling the old review2 ms
  • ✓explicit pending macOS build replacement › refuses unsafe media before canceling the old review2 ms
  • ✓explicit pending macOS build replacement › refuses unsafe foreign-item before canceling the old review2 ms
  • ✓explicit pending macOS build replacement › refuses unsafe extra-item before canceling the old review2 ms
  • ✓explicit pending macOS build replacement › refuses unsafe foreign-active before canceling the old review3 ms
  • ✓explicit pending macOS build replacement › refuses unsafe released before canceling the old review3 ms
  • ✓explicit pending macOS build replacement › refuses unsafe association before canceling the old review4 ms
  • ✓explicit pending macOS build replacement › reconciles a lost cancel response without repeating its mutation8 ms
  • ✓explicit pending macOS build replacement › reconciles a lost attach response without repeating its mutation3 ms
  • ✓explicit pending macOS build replacement › bounds pending cancellation and resumes from a confirmed complete old submission9 ms
  • ✓explicit pending macOS build replacement › does not repeat cancellation when its lost response has no confirmed effect3 ms
  • ✓explicit pending macOS build replacement › refuses a different build attached during cancellation3 ms
  • ✓superseding a pending macOS version with a newer one › cancels the named review, renumbers that version onto the new build and prepares idempotently6 ms
  • ✓superseding a pending macOS version with a newer one › refuses unsafe older-target before canceling the old review2 ms
  • ✓superseding a pending macOS version with a newer one › refuses unsafe same-version before canceling the old review1 ms
  • ✓superseding a pending macOS version with a newer one › refuses unsafe wrong-previous before canceling the old review2 ms
  • ✓superseding a pending macOS version with a newer one › refuses unsafe previous-build before canceling the old review3 ms
  • ✓superseding a pending macOS version with a newer one › refuses unsafe submission-id before canceling the old review1 ms
  • ✓superseding a pending macOS version with a newer one › refuses unsafe build-processing before canceling the old review1 ms
  • ✓superseding a pending macOS version with a newer one › refuses unsafe foreign-item before canceling the old review3 ms
  • ✓superseding a pending macOS version with a newer one › refuses unsafe foreign-active before canceling the old review2 ms
  • ✓superseding a pending macOS version with a newer one › refuses unsafe second-draft before canceling the old review2 ms
  • ✓superseding a pending macOS version with a newer one › refuses unsafe association before canceling the old review3 ms
  • ✓superseding a pending macOS version with a newer one › reconciles a lost cancel response without repeating its mutation3 ms
  • ✓superseding a pending macOS version with a newer one › reconciles a lost renumber response without repeating its mutation3 ms
  • ✓superseding a pending macOS version with a newer one › bounds pending cancellation and resumes once the old review is complete5 ms
  • ✓superseding a pending macOS version with a newer one › stops after a refused renumbering and leaves the canceled version untouched2 ms
  • ✓uploaded macOS candidate provenance › permits a bounded descendant changing only delivery scripts while retaining the original binary provenance2 ms
  • ✓uploaded macOS candidate provenance › refuses behind delivery source comparisons0 ms
  • ✓uploaded macOS candidate provenance › refuses merge-base delivery source comparisons0 ms
  • ✓uploaded macOS candidate provenance › refuses truncated-commits delivery source comparisons0 ms
  • ✓uploaded macOS candidate provenance › refuses truncated-files delivery source comparisons0 ms
  • ✓uploaded macOS candidate provenance › refuses renamed delivery source comparisons0 ms
  • ✓uploaded macOS candidate provenance › requires the independently verified iOS export and successful iOS upload for IOS1 ms
  • ✓uploaded macOS candidate provenance › accepts only the source, version, build and successful upload artifact from the exact CI run attempt1 ms
  • ✓uploaded macOS candidate provenance › refuses invalid source provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid repository provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid workflow provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid run provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid build provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid skipped-upload provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid unverified provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid artifact-version provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid artifact-source provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid expired provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid digest provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid incomplete-jobs provenance0 ms
  • ✓uploaded macOS candidate provenance › refuses invalid incomplete-artifacts provenance0 ms
scripts/__tests__/asc-release-media.test.ts14/14
  • ✓bounded Store media delivery › rejects foreign destinations, credentials, unsafe headers and incomplete/overlapping byte ranges7 ms
  • ✓bounded Store media delivery › validates exact platform, version and all local hashes before mutations21 ms
  • ✓bounded Store media delivery › pins the current Mac Work media without enabling a 2.1.1 iOS media operation5 ms
  • ✓bounded Store media delivery › pins the 2.2.0 iOS set with Watch screenshots and no Watch preview slot891 ms
  • ✓bounded Store media delivery › refuses a Watch preview in a non-legacy selection10 ms
  • ✓bounded Store media delivery › refuses a submitted draft or another app before any write22 ms
  • ✓bounded Store media delivery › uploads exact bytes without API authorization and reconciles repeated delivery without new reservations19 ms
  • ✓bounded Store media delivery › removes an inherited Mac preview when the selected version supplies screenshots only13 ms
  • ✓bounded Store media delivery › never calls processing media ready or retries an ambiguous reservation POST66 ms
  • ✓bounded Store media delivery › uses POST upload instructions when Apple omits them from subsequent GET responses13 ms
  • ✓bounded Store media delivery › reconciles an exact uncommitted draft reservation once without duplicating completed media24 ms
  • ✓bounded Store media delivery › uses fresh scoped collection state when individual completed-screenshot reads are unavailable19 ms
  • ✓bounded Store media delivery › waits for nullable processing checksums and resumes without uploading again, but requires a final checksum22 ms
  • ✓bounded Store media delivery › extracts separate iOS review notes and rejects a Mac-only version claim2 ms
scripts/__tests__/build-health-report.test.ts42/42
  • ✓QA decision and accounting › 'empty results' keeps HTML and summary consistent91 ms
  • ✓QA decision and accounting › 'skipped only' keeps HTML and summary consistent94 ms
  • ✓QA decision and accounting › 'partial platform scope' keeps HTML and summary consistent97 ms
  • ✓QA decision and accounting › 'skip excluded from execution' keeps HTML and summary consistent93 ms
  • ✓QA decision and accounting › 'suite error without failing case' keeps HTML and summary consistent110 ms
  • ✓QA decision and accounting › 'failed assertion despite pass metadata' keeps HTML and summary consistent105 ms
  • ✓QA decision and accounting › 'metadata alone cannot prove native ca…' keeps HTML and summary consistent80 ms
  • ✓QA decision and accounting › puts the readable judgment before details and provides actual reproduction inputs1 ms
  • ✓QA decision and accounting › e2e-only cannot manufacture a passing suite75 ms
  • ✓QA decision and accounting › file-setup-failure cannot manufacture a passing suite76 ms
  • ✓QA decision and accounting › skipped-native cannot manufacture a passing suite87 ms
  • ✓Build Health page — design rules on the generated output › keeps every colour literal inside :root (R1, R2)1 ms
  • ✓Build Health page — design rules on the generated output › declares its tokens with the canonical design/tokens.css values1 ms
  • ✓Build Health page — design rules on the generated output › uses only the two type faces (R3)1 ms
  • ✓Build Health page — design rules on the generated output › keeps radii on the design scale0 ms
  • ✓Build Health page — design rules on the generated output › animates nothing (only amber awaiting may pulse, and a report has no awaiting state)0 ms
  • ✓Build Health page — design rules on the generated output › shares the Pages chrome: the canonical GNB with Test Report active, and the page grammar0 ms
  • ✓Build Health page — what it states › reports a failing run as failing, with the escaped failure1 ms
  • ✓Build Health page — what it states › never shows a suite that did not run as passing0 ms
  • ✓Build Health page — what it states › shows a failed hosted run as failed on its gate0 ms
  • ✓Build Health page — what it states › renders every tier and every step of the verification catalog3 ms
  • ✓Build Health page — what it states › shows the recorded pre-release receipt, with skips and unattested lab gates named as such0 ms
  • ✓Build Health page — what it states › lists each skipped case with the runner that executes it0 ms
  • ✓Build Health page — what it states › renders every gate and every test domain from the verification catalog5 ms
  • ✓Build Health page — what it states › keeps evidence visible when scope details are collapsed4 ms
  • ✓Build Health page — what it states › calls only a branch-protection-required gate a merge blocker1 ms
  • ✓Build Health page — what it states › quotes the coverage floor from vitest.config.ts and flags a metric under it0 ms
  • ✓Build Health page — what it states › leaks no Python or JS placeholders1 ms
  • ✓report Korean locale › covers catalog explanations, domains, tiers, steps and scenario gaps9 ms
  • ✓report Korean locale › translates the exact generated workflow freshness explanation7 ms
  • ✓report Korean locale › restores Korean, translates counts and accessibility, preserves evidence, and reverses to English2 ms
  • ✓report Korean locale › uses English source for initial locale null3 ms
  • ✓report Korean locale › uses English source for initial locale invalid4 ms
  • ✓report Korean locale › uses English source for initial locale en4 ms
  • ✓report Korean locale › uses English source for initial locale ja5 ms
  • ✓report Korean locale › translates leading separators from generated scenario DOM and restores them verbatim76 ms
  • ✓report Korean locale › switches language even when localStorage is unavailable2 ms
  • ✓report evidence calculations › keeps skip-only hardware input outside executed evidence102 ms
  • ✓report evidence calculations › provides Korean for every authored QA explanation102 ms
  • ✓report evidence calculations › preserves JUnit errors and skipped cases instead of calling them passed80 ms
  • ✓report evidence calculations › plots pass percentages and normalizes legacy test totals to executed counts83 ms
  • ✓report evidence calculations › does not show coverage or runner failures as an overall pass even with no failing assertions88 ms
scripts/__tests__/dependency-security.test.ts5/5
  • ✓security dependency compatibility › CLI keeps recursive options and RPC validation with patched Zod186 ms
  • ✓security dependency compatibility › plugin keeps recursive options and RPC validation with patched Zod12 ms
  • ✓security dependency compatibility › resolves Node exports and bundles CommonJS through the cjs resolver without deepmerge193 ms
  • ✓security dependency compatibility › resolves Node exports and bundles CommonJS through the es resolver without deepmerge51 ms
  • ✓security dependency compatibility › keeps the EJS CLI/Jake path usable with the compatible filelist upgrade77 ms
scripts/__tests__/local-main-deploy.test.ts22/22
  • ✓local deployment checkout ownership › accepts an older queued event but deploys the newest main commit136 ms
  • ✓local deployment checkout ownership › refuses tracked edits without changing another session’s file48 ms
  • ✓local deployment checkout ownership › refuses a task branch or a local-only commit100 ms
  • ✓local deployment checkout ownership › rejects a trigger from an unmerged branch94 ms
  • ✓local deployment checkout ownership › permits untracked development diagnostics83 ms
  • ✓local deployment runtime handover › requests a new instance of the exact installed app without inheriting runner cleanup5 ms
  • ✓local deployment runtime handover › keeps the exact installed process during recovery from a quit timeout1 ms
  • ✓local deployment runtime handover › refuses a new instance when the installed-process probe is unreadable1 ms
  • ✓local deployment runtime handover › launches the app outside the runner job so job cleanup cannot kill it0 ms
  • ✓local deployment runtime handover › keeps probing a daemon that is still starting instead of failing the deployment1 ms
  • ✓local deployment runtime handover › fails with the last reason once the deadline passes2 ms
  • ✓local deployment runtime handover › fails a deployment when the restarted daemon stops responding after its first healthy probe1 ms
  • ✓local deployment runtime handover › discards the staged app when a step before the swap fails, and keeps it otherwise2 ms
  • ✓local deployment runtime handover › keeps the newest app backups and leaves unrelated files alone3 ms
  • ✓macOS installation provenance and recovery › never stages, quits or replaces a Store app, including when an old stage is present3 ms
  • ✓macOS installation provenance and recovery › does not treat a failed receipt probe as a development installation1 ms
  • ✓macOS installation provenance and recovery › protects a Store install that appears while preparing the development build3 ms
  • ✓macOS installation provenance and recovery › cleans its stage and relaunches the original when moving the backup is denied2 ms
  • ✓macOS installation provenance and recovery › restores the backup and cleans its stage when installing the staged app fails4 ms
  • ✓macOS installation provenance and recovery › still replaces a development app and retains the previous build2 ms
  • ✓macOS installation provenance and recovery › rolls back a new build that fails to launch2 ms
  • ✓macOS installation provenance and recovery › keeps both recovery copies when restoring the backup fails2 ms
scripts/__tests__/native-palette.test.ts2/2
  • ✓native Dashboard palette ratchet › adds no raw colour literal to a Swift, Kotlin or ESP32 Dashboard file28 ms
  • ✓native Dashboard palette ratchet › flags a file that gains a literal and a new file that starts with one1 ms
scripts/__tests__/node-runtime-support.test.ts6/6
  • ✓Node runtime support contract › package.json advertises only the prebuild-verified maintained lines2 ms
  • ✓Node runtime support contract › bridge/package.json advertises only the prebuild-verified maintained lines0 ms
  • ✓Node runtime support contract › hooks/package.json advertises only the prebuild-verified maintained lines0 ms
  • ✓Node runtime support contract › shared/package.json advertises only the prebuild-verified maintained lines0 ms
  • ✓Node runtime support contract › setup/package.json advertises only the prebuild-verified maintained lines0 ms
  • ✓Node runtime support contract › makes the workspace engine contract an install-time failure0 ms
scripts/__tests__/npm-package-license.test.ts6/6
  • ✓canonical npm package license › prepares missing copies and repairs corrupted copies for all public packages without changing the source22 ms
  • ✓canonical npm package license › refuses missing or empty canonical content and a mismatched package before modifying the generated copy11 ms
  • ✓canonical npm package license › wires every public package to the same prepack source and explicit LICENSE inclusion2 ms
  • ✓canonical npm package license › checks the actual archive bytes and rejects missing, changed or duplicate license entries56 ms
  • ✓canonical npm package license › rejects a duplicate LICENSE type 0 even when extraction returns exactly the canonical bytes16 ms
  • ✓canonical npm package license › rejects a duplicate LICENSE type 1 even when extraction returns exactly the canonical bytes18 ms
scripts/__tests__/npm-registry-visibility.test.ts2/2
  • ✓npm registry visibility › retries until a newly published version becomes visible5 ms
  • ✓npm registry visibility › fails after the bounded attempt count1 ms
scripts/__tests__/product-tour-fixture.test.ts3/3
  • ✓product tour recording boundaries › keeps every visual-only agent non-answerable and identifies supported agent types9 ms
  • ✓product tour recording boundaries › provides attributed timeline anchors and typed task evidence, separate from sample AI judgement2 ms
  • ✓product tour recording boundaries › distinguishes explicit reply requests from one-way notifications2 ms
scripts/__tests__/public-media.test.ts11/11
  • ✓public language selection contract › recomputes fragment clearance when translated navigation wraps4 ms
  • ✓public language selection contract › offers full native names aligned with the supported catalog locales3 ms
  • ✓public language selection contract › loads the CJK faces on every public surface that offers those languages5 ms
  • ✓current habitat publication › keeps native evidence, host renders and the composite distinguishable and intact56 ms
  • ✓current habitat publication › publishes a controlled, captioned current recording and all referenced current assets4 ms
  • ✓current habitat publication › offers the newer residents in the interactive controls1 ms
  • ✓archived aquarium recordings › no longer embeds them on the overview or links their removed sections1 ms
  • ✓archived aquarium recordings › keeps every archived file in the repository and in the Pages copy commands3 ms
  • ✓whole-product 2.0 introduction › waits for metadata before a chapter click seeks an unloaded video6 ms
  • ✓whole-product 2.0 introduction › keeps the product tour primary and the real control take a separate feature detail5 ms
  • ✓whole-product 2.0 introduction › covers the product beyond approval and keeps chapter, source and caption clocks aligned22 ms
scripts/__tests__/release-notes.test.ts12/12
  • ✓release notes lookup › npm at its declared version has an entry3 ms
  • ✓release notes lookup › streamdeck at its declared version has an entry1 ms
  • ✓release notes lookup › ulanzi at its declared version has an entry1 ms
  • ✓release notes lookup › android at its declared version has an entry1 ms
  • ✓release notes lookup › esp32 at its declared version has an entry1 ms
  • ✓release notes lookup › apple at its declared version has an entry1 ms
  • ✓release notes lookup › matches a channel named anywhere in a multi-channel heading1 ms
  • ✓release notes lookup › does not let a prefix version match a longer one1 ms
  • ✓release notes lookup › never falls back to a bare version heading1 ms
  • ✓release notes lookup › stops a section at the next heading0 ms
  • ✓release notes lookup › never matches the Unreleased section, and never spills it into a real entry1 ms
  • ✓release notes lookup › rejects anything that is not a delivery tag2 ms
scripts/__tests__/security-audit.test.ts4/4
  • ✓dependency audit gate › blocks a new high or critical finding while retaining moderate findings6 ms
  • ✓dependency audit gate › keeps reviewed risk visible and limits the exception to the exact package version1 ms
  • ✓dependency audit gate › fails on expired, duplicate or incomplete exceptions even with no advisories2 ms
  • ✓dependency audit gate › fails closed on registry errors, changed output schemas or missing advisories1 ms
scripts/__tests__/security-pipeline-health.test.ts5/5
  • ✓security pipeline freshness › keeps an absent first scheduled run unverified despite a manual success3 ms
  • ✓security pipeline freshness › fails when no scheduled run arrived before the startup deadline0 ms
  • ✓security pipeline freshness › requires recent successful scheduled and general execution evidence0 ms
  • ✓security pipeline freshness › does not hide a failed scan behind an earlier success0 ms
  • ✓security pipeline freshness › fails closed for disabled workflows, invalid evidence and stuck execution2 ms
scripts/__tests__/snyk-monthly.test.ts6/6
  • ✓snyk monthly comparison › reads code findings by identity and decodes the file path4 ms
  • ✓snyk monthly comparison › dedupes open-source findings across paths and projects2 ms
  • ✓snyk monthly comparison › treats a matching identity or exact hash as known, and reports the rest1 ms
  • ✓snyk monthly comparison › refuses inputs that are not Snyk output instead of reporting zero1 ms
  • ✓snyk monthly comparison › escapes table separators in the summary1 ms
  • ✓summary table cells › escapes backslashes before pipes so a cell cannot end early0 ms
scripts/__tests__/swift-live-fixture-opt-in.test.ts2/2
  • ✓Swift live replay fixture opt-in › refuses lifecycle process mutations without explicit fixture opt-in70 ms
  • ✓Swift live replay fixture opt-in › refuses before contacting a daemon unless visible fixture creation is explicit41 ms
scripts/__tests__/verification-catalog.test.ts16/16
  • ✓verification catalog › accounts for every GitHub workflow as a gate or a stated non-gate4 ms
  • ✓verification catalog › names only files that exist1 ms
  • ✓verification catalog › states, for every gate, what it proves and what it does not5 ms
  • ✓verification catalog › calls a gate required only when it is a failing-CI check, and dates that claim1 ms
  • ✓verification catalog › refers only to package scripts that exist1 ms
  • ✓verification catalog › puts every tracked TypeScript test file in a domain28 ms
  • ✓verification catalog › has no domain pattern that matches nothing178 ms
  • ✓verification catalog › keeps the scenario matrix pointing at test files that exist1 ms
  • ✓verification catalog › keeps every scenario name pattern present in its TypeScript test file12 ms
  • ✓verification tiers › defines exactly the changed, quick and pre-release tiers, each with a package script1 ms
  • ✓verification tiers › gives every step a unique id, a known gate, known tiers and exactly one way to run8 ms
  • ✓verification tiers › keeps lab steps in the pre-release tier only, and gives every lab gate a step there1 ms
  • ✓verification tiers › makes the pre-release tier cover every gate the quick tier does0 ms
  • ✓verification tiers › runs only scripts and files that exist3 ms
  • ✓verification tiers › has no changed-area path that matches no tracked file2.7 s
  • ✓verification tiers › runs every platform-gated test file on a CI runner of that platform49 ms
scripts/__tests__/verify-tiers.test.ts7/7
  • ✓catalog path globs › keeps * inside one segment and lets ** cross directories2 ms
  • ✓catalog path globs › lets a leading **/ match a file at the repository root too0 ms
  • ✓changed-area Vitest selection › runs the whole suite when a package manifest, the lockfile, a tsconfig or the Vitest config changed1 ms
  • ✓changed-area Vitest selection › passes changed TypeScript to vitest related and leaves native sources to their own steps7 ms
  • ✓changed-area Vitest selection › adds a test that reads a changed non-code file by name, which no import graph shows2 ms
  • ✓changed-area Vitest selection › ignores names too generic to identify a reader0 ms
  • ✓changed-area Vitest selection › runs nothing when no change is visible to Vitest0 ms
scripts/__tests__/version-policy.test.ts5/5
  • ✓cross-target version compatibility › ignores minor and patch values and ordering within the same major line3 ms
  • ✓cross-target version compatibility › rejects different major lines0 ms
  • ✓cross-target version compatibility › requires strict numeric X.Y.Z versions1 ms
  • ✓release tag identity › matches a release tag against that target, not the root patch2 ms
  • ✓release tag identity › can resolve every maintained target source1 ms

Native and hardware

Platforms

Suites outside the TypeScript toolchain. Apple and hardware results are recorded by their own workflows and the lab.

Android

Pass

JUnit + Robolectric on the JVM (ubuntu), 63 suites.

63 suites
MainActivityOverrideRecoveryTest5/5
  • ✓a timed-out startup read is distinguishable from genuine defaults3 ms
  • ✓recreate when the user changes the panel override
  • ✓expired startup read recovers a persisted show-anyway choice
  • ✓no recreate when storage matches what the instance was built from1 ms
  • ✓pressing show anyway takes effect through the same comparison
MainActivityScreenPolicyTest6/6
  • ✓LCD releases keep-screen-on for host full-off sleep
  • ✓LCD releases keep-screen-on when keep-awake is disabled1 ms
  • ✓LCD releases keep-screen-on for legacy sleep event without dim config
  • ✓LCD stays on for minimum-brightness dim mode
  • ✓LCD stays on when host disables downstream dimming
  • ✓e-ink stays on during host full-off sleep
data.CredentialBackupPolicyTest1/1
  • ✓packaged app disables backup and excludes credentials from both transfer mechanisms4.5 s
data.DashboardOrientationTest3/3
  • ✓defaults keep e-ink fixed and tablets auto-rotating1 ms
  • ✓legacy unspecified preference still counts as auto
  • ✓manual rotate toggles fixed modes from auto using current posture
data.DashboardTypeTest2/2
  • ✓readerNeverSelectsAnUnsupportedNativeRenderer4 ms
  • ✓oldAndFutureSettingsKeepTheExistingDashboard1 ms
data.OnboardingPreferencesTest4/4
  • ✓leaving setup never replaces a connecting or chosen host with loopback51 ms
  • ✓fresh install keeps setup open while appearance changes and remembers dismissal262 ms
  • ✓legacy settings migrate even when install timestamp is unavailable63 ms
  • ✓upgrade preserves credentials and can explicitly reopen setup66 ms
net.AndroidDashboardRegistrationTest3/3
  • ✓repeated identity does not duplicate registration churn12 ms
  • ✓disconnected change is retried when the socket opens
  • ✓connected profile change publishes new wire kind without reconnect2 ms
net.AutoConnectRulesTest6/6
  • ✓the first loopback re-probe waits, and later ones back off1 ms
  • ✓the backoff is capped, and never inverts or overflows2 ms
  • ✓only the daemon hub is dialable2 ms
  • ✓no daemon means no dial
  • ✓ambiguous discovery needs a choice and fallback ports remain visible1 ms
  • ✓a negative miss count is treated as the first probe
net.BridgeConnectionInputTest2/2
  • ✓invalid fallback cannot replace selected endpoint state154 ms
  • ✓malformed manual endpoints never start a connection or latch CONNECTING55 ms
net.BridgeConnectionRecoveryTest6/6
  • ✓new selection fences the previous hosts recovery183 ms
  • ✓automatic LAN refusal recovers over a restored USB tunnel58 ms
  • ✓automatic LAN approval still works when USB cannot connect86 ms
  • ✓replacement owner recovers after retry exhaustion without discovery83 ms
  • ✓temporary authentication refusal waits then recovers without a user retry50 ms
  • ✓explicit disconnect retires queued recovery74 ms
net.BridgeDiscoveryLifecycleTest3/3
  • ✓daemon TXT ports survive discovery while legacy session ports remain filtered1.6 s
  • ✓stopped discovery cannot retry or publish into a restarted discovery44 ms
  • ✓busy resolution retries and can resolve the original service59 ms
net.BridgeDiscoveryTest2/2
  • ✓ws url uses primary host and preserves pairing token
  • ✓fallback url is absent without a fallback host
net.ConnectionPresentationTest3/3
  • ✓discovered hosts ask for selection instead of claiming a search1 ms
  • ✓approval and network failures have distinct terminal states1 ms
  • ✓an active retry outranks a previous failure
net.DotAuthorizationTest2/2
  • ✓authorizationIsIndependentOfConfigurationAndRevocationStopsWork10 ms
  • ✓waterCurrentClosesAndReducedMotionStaysAtHome1 ms
net.GatewaySetupStatusTest2/2
  • ✓wireAuthenticationFailuresReachTheGuidance32 ms
  • ✓reachabilityAndTransportProgressDoNotRequestApproval
net.MultiDaemonConnectionTest5/5
  • ✓late failure from replaced socket does not change selected host658 ms
  • ✓WebSocket 4001 stops reconnecting and explicit retry reaches the selected host4.4 s
  • ✓exhausted second host must not show first host approval error23.1 s
  • ✓HTTP 401 stops reconnecting and explicit retry reaches the selected host4.4 s
  • ✓operator approval takes effect after holdoff without touching the reader33.1 s
net.PairingCodeClientTest14/14
  • ✓an unexpected status is reported rather than guessed at35 ms
  • ✓normalize accepts a bare code29 ms
  • ✓a missing attempt count degrades to unknown, never to zero29 ms
  • ✓410 and 429 mean the window is gone, not that the code was wrong26 ms
  • ✓normalize rejects anything that is not the code length21 ms
  • ✓constants match the daemon's20 ms
  • ✓200 without a token is a daemon fault, not a pairing20 ms
  • ✓normalize accepts the separators the code was displayed with26 ms
  • ✓format groups the code the way the CLI prints it17 ms
  • ✓401 mismatch is a retryable wrong code, and carries the budget18 ms
  • ✓200 with a token pairs, using the endpoint we actually reached21 ms
  • ✓401 no-window sends the user to the Mac instead of retyping19 ms
  • ✓400 malformed is retryable and spends none of the budget25 ms
  • ✓401 with no body at all is treated as no window17 ms
net.PairingCredentialTest30/30
  • ✓a live connection to another endpoint is left alone
  • ✓switching hosts retains independent credentials1 ms
  • ✓a refusal from another host does not explain this hosts network failure
  • ✓an endpoint that closed us 4001 is not redialled inside the holdoff
  • ✓with nothing refused the last error stands1 ms
  • ✓a tokenless url persists when nothing better is stored
  • ✓a refused endpoint is dialled again once we hold a credential for it
  • ✓paired endpoint inherits its stored credential
  • ✓token extraction treats empty as absent
  • ✓default port matches an explicit default port
  • ✓a refusal is remembered per endpoint, not globally
  • ✓the advice a camera-less reader is given is one it can actually take1 ms
  • ✓an explicitly credentialed discovery wins
  • ✓pairing is still offered to a device riding the USB tunnel
  • ✓different host or port are different daemons1 ms
  • ✓a tokenless url for a different daemon still persists
  • ✓pairing is not offered to a device already on the LAN
  • ✓a refusal outranks whatever the last attempt reported
  • ✓the USB attempt is not preempted while it is still in flight
  • ✓the LAN endpoint is dialled once nothing else is in flight
  • ✓unparseable inputs never compare equal
  • ✓credential is not part of a daemon's identity1 ms
  • ✓a tokenless url may not displace a stored credential for the same daemon
  • ✓localhost and blank are never persisted
  • ✓exhausted selected host keeps its own network error
  • ✓every refused spelling of one daemon stays refused
  • ✓a credentialed url always persists
  • ✓no stored credential leaves the discovered url untouched1 ms
  • ✓a refusal expires on read, because approval mints no token
  • ✓a different daemon never inherits another endpoint's credential
net.PairingPersistenceTest1/1
  • ✓switch and disconnect preserve each hosts credential on disk25 ms
net.ProtocolTest37/37
  • ✓parse state_update with all permission modes37 ms
  • ✓parse connection connected with sessionId23 ms
  • ✓parse sessions_list51 ms
  • ✓PluginCommands selectOption generates valid JSON24 ms
  • ✓parse timeline_event with fractional timestamps23 ms
  • ✓parse button_state33 ms
  • ✓parse invalid json returns null24 ms
  • ✓parse timeline_history22 ms
  • ✓parse timeline_event upsert22 ms
  • ✓parse state_update with processing state and tool info20 ms
  • ✓PluginCommands respond escapes special characters23 ms
  • ✓parse display_state with dim instruction20 ms
  • ✓stale Claude quota retires scopes and subscriptions while Codex survives48 ms
  • ✓PluginCommands respond generates valid JSON19 ms
  • ✓parse state_update with permission options19 ms
  • ✓background telemetry cannot discard a roster and retains by identity26 ms
  • ✓parse connection disconnected21 ms
  • ✓parse missing type returns null17 ms
  • ✓parse deck_slot_map22 ms
  • ✓parse usage_update with extra usage20 ms
  • ✓parse state_update with ollama status28 ms
  • ✓parse state_update with agent capabilities21 ms
  • ✓released model fields decode when additive residency metadata is present20 ms
  • ✓parse unknown type returns null18 ms
  • ✓parse user_prompt23 ms
  • ✓BridgeTimelineEntry converts to TimelineEntry16 ms
  • ✓parse state_update with model catalog23 ms
  • ✓a real sessions_list frame from the Swift daemon parses24 ms
  • ✓parse state_update ignores unknown fields21 ms
  • ✓weekly-only quota snapshot removes the previous five-hour window21 ms
  • ✓parse state_update with idle state22 ms
  • ✓parse display_state sleep and wake21 ms
  • ✓parse voice_state23 ms
  • ✓parse encoder_state19 ms
  • ✓PluginCommands interrupt and escape18 ms
  • ✓parse usage_update with rate limits22 ms
  • ✓parse timeline_event17 ms
service.MoaanFrontlightControlTest6/6
  • ✓unknown vendor state cannot authorize settings writes2 ms
  • ✓off uses vendor mode and restores presets including absent keys
  • ✓failed application and restoration retain journal for retry
  • ✓recreated process restores exact original mode and presets1 ms
  • ✓failed durable save cannot change a setting
  • ✓minimum scales original brightness while retaining color temperature
service.PanelPolicyTransitionManagerTest3/3
  • ✓installing the active panel policy is a no-op
  • ✓eink to lcd restores old effects before applying and re-evaluating1 ms
  • ✓lcd to eink uses the same coherent transition
state.SessionMetricsTest8/8
  • ✓reset clears all metrics4 ms
  • ✓onMessageReceived updates lastMessageAt
  • ✓onConnected sets connectedSince
  • ✓onDisconnected clears connectedSince
  • ✓clean reconnect after disconnect does not increment
  • ✓initial state has no connection
  • ✓reconnect increments reconnectCount when still connected1 ms
  • ✓onMessageReceived increments count
state.TimelineDisplayScenarioTest21/21
  • ✓synthetic response-less turn is hidden completely3 ms
  • ✓multi-agent dashboard timeline projects meaningful session rows3 ms
  • ✓lcd projection retains latest reply after eighty unrelated turns9 ms
  • ✓legacy collision keys are assigned before recency sorting and remain selectable1 ms
  • ✓progress chat_response and progress chat_end are hidden
  • ✓chat_end is hidden when chat_start already represents a response-less turn
  • ✓codex tool entries are suppressed from device timeline
  • ✓synthetic chat_start is suppressed once completion arrives1 ms
  • ✓eink projection retains latest tool after three unrelated prompts
  • ✓task notification chat_start is suppressed1 ms
  • ✓same millisecond child content wins over the prompt on eink
  • ✓chat_end is hidden when chat_response already represents the same turn1 ms
  • ✓selected and expanded turns keep their identity when activity reorders rows
  • ✓equal activity timestamps preserve chronological group order before the cap
  • ✓answered turn is not folded
  • ✓task_end boundary blocks fold1 ms
  • ✓still-open queued prompts are not folded
  • ✓queued prompt folds into next turn
  • ✓merged completion and progressive responses advance recency
  • ✓same timestamp summaries stay separate by agent and project
  • ✓folded tool result endedAt outranks a reply without changing the turn identity
state.TimelineStoreTest68/68
  • ✓addEntry drops openclaw placeholder with status-only detail1 ms
  • ✓timelineDisplayGroups hides model_call after model_response in same run
  • ✓deriveSubagentActivity ignores ordinary tools and expires orphaned starts1 ms
  • ✓addEntry allows same type+summary after 5s1 ms
  • ✓addEntries filters otel noise from bulk replay9 ms
  • ✓TimelineSessionFilter label prefers project then friendly agent1 ms
  • ✓clear empties the store
  • ✓addEntry keeps coalesced codex subagent lifecycle
  • ✓upsertEntry updates existing entry within 1s tolerance
  • ✓addEntry drops opencode tool_exec so a tool-heavy turn does not flood1 ms
  • ✓upsertEntry without taskId falls back to ts-window match
  • ✓timelineDisplayGroups keeps in-flight chat_start until completion1 ms
  • ✓groupConsecutive merges a meaningful chat_start with its response into one turn
  • ✓addEntry drops antigravity tool_exec forward-compat
  • ✓deriveSubagentActivity treats a dispatch older than the parent turn close as drained3 ms
  • ✓groupConsecutive empty list returns empty1 ms
  • ✓addEntry drops openclaw placeholder tool rows
  • ✓timelineLifecycleBounds pairs response with prior start
  • ✓turn owns tools and reply across a busy dashboard for every agent4 ms
  • ✓inspection includes declared folded members without retargeting controls6 ms
  • ✓upsertEntry adds new entry if no match
  • ✓addEntry stores entry1 ms
  • ✓matchesTimelineFilter keeps sessionless OpenClaw rows under gateway
  • ✓tools never swallow approvals subagents or unrelated runs
  • ✓matchesTimelineFilter falls back to project plus agent for legacy sessionless rows
  • ✓groupConsecutive does not merge tool_request across sessions
  • ✓groupConsecutive groups same summary within 60s
  • ✓matchesTimelineFilter canonicalizes observed session prefixes
  • ✓timelineDisplayGroups keeps independent sessions visible1 ms
  • ✓updateLastOfType modifies the last matching entry
  • ✓upsertEntry refuses to insert otel noise via add fallback
  • ✓addEntries merges and deduplicates
  • ✓addEntry drops openclaw placeholder with arbitrary future status
  • ✓upsertEntry preserves existing detail if new detail is null
  • ✓deriveSubagentActivity pairs starts and completions per parent1 ms
  • ✓addEntry keeps real openclaw tool rows
  • ✓groupConsecutive splits tool_request after 10s gap
  • ✓addEntries sorts by timestamp
  • ✓upsertEntry preserves existing summaryKind when new entry omits it
  • ✓groupConsecutive does not merge chat_end across projects
  • ✓matchesTimelineFilter with sessionId ignores project fallback
  • ✓upsertEntry preserves timeline attribution
  • ✓turn merge looks past interleaved rows from other sessions
  • ✓addEntry allows different type within 5s
  • ✓addEntry drops openclaw placeholder with failed status
  • ✓groupConsecutive single entry
  • ✓addEntry deduplicates within 5s window
  • ✓upsertEntry propagates summaryKind progression heuristic to llm
  • ✓timelineDisplayGroups collapses synthetic chat_start once response arrives
  • ✓groupConsecutive splits different types but folds the turn completion
  • ✓addEntry allows different summary within 5s1 ms
  • ✓groupConsecutive groups chat_end by type only within 60s
  • ✓addEntry drops codex otel low-signal tool noise
  • ✓addEntry caps at MAX_ENTRIES8 ms
  • ✓groupConsecutive does not merge distinct run ids on same session
  • ✓groupConsecutive folds a whole chat_start-response-end turn into one row1 ms
  • ✓timelineDisplayGroups keeps in-flight start when later completion has distinct run id
  • ✓addEntry drops codex tool_exec from normal codex session
  • ✓addEntry keeps openclaw placeholder summary when detail has content
  • ✓groupConsecutive requires same summary for other types
  • ✓addEntry normalizes openclaw cron model_call prompt dump1 ms
  • ✓matchesTimelineFilter matches by sessionId
  • ✓updateLastOfType no-op if type not found
  • ✓upsert and dedup keep simultaneous runs and sessions independent1 ms
  • ✓turn merge never crosses a newer same-session chat_start
  • ✓groupConsecutive groups tool_request within 10s
  • ✓addEntry drops codex tool_exec even when raw is meaningful
  • ✓upsertEntry merges task_end by taskId beyond the 1s tolerance window
state.TimelineTaskHierarchyTest44/44
  • ✓OpenClaw NO_REPLY polling responses are hidden from display projection2 ms
  • ✓chat_start with a later same-session completion stops rotating1 ms
  • ✓mismatched taskId on task_end does not close it
  • ✓chat_start older than the age cap stops rotating
  • ✓summary is redundant with detail for standalone response prefix truncation5 ms
  • ✓OpenClaw automated polling chat starts are hidden from display projection
  • ✓stripMarkdownInline drops markers including table syntax1 ms
  • ✓interrupted reaper closure pair leaves no visible row
  • ✓summary is not redundant for merged prompt-response turn1 ms
  • ✓detail redundancy fires when prefix matches summary1 ms
  • ✓detail redundancy does not fire when content is genuinely new
  • ✓same project two sessions are not the same context anymore
  • ✓judge summary outranks a meaningful own title1 ms
  • ✓an error closes a turn so the spinner stops beside its explanation
  • ✓closed task_start does not rotate
  • ✓non task_start entries are never in flight
  • ✓fresh chat_start rotates via icon-key running
  • ✓task_start whose task_end (same taskId) appeared is finished
  • ✓static rows do not rotate
  • ✓a closed task returns to its own task glyph
  • ✓session_end task boundary is hidden from display projection
  • ✓an error in a different session leaves the turn spinning
  • ✓stripMarkdownInline preserves non-table pipes
  • ✓task_start older than the staleness cap is no longer in flight
  • ✓a rotating row draws the running glyph, not its own1 ms
  • ✓task_start without matching task_end is in flight
  • ✓chat_start superseded by a newer same-session prompt stops rotating
  • ✓idle_gap task boundary is hidden from display projection
  • ✓task entries never group with each other
  • ✓iconKey resolves tool_request status to success error awaiting
  • ✓taskId is the strongest grouping key
  • ✓OpenClaw LINE notification failures stay visible1 ms
  • ✓promote informative lead skips generic outcome paragraph1 ms
  • ✓other sessions completions do not stop a running chat_start
  • ✓iconKey resolves to Task for task entries
  • ✓judged closure makes a bare header visible with the summary as title
  • ✓eval_result and task_end never rotate
  • ✓stripMarkdownInline handles single-cell table row
  • ✓markdown parser parity with shared - basics2 ms
  • ✓task_start without taskId is never considered in flight
  • ✓orphan task_start rotates via in-flight predicate
  • ✓markdown parser code fence is verbatim
  • ✓eink glyphs are constant 4-char width
  • ✓closed task renders as a single header row, never a standalone task_end1 ms
terrarium.AquariumFrameGovernorTest4/4
  • ✓unready surface and shader warmup cannot lower quality
  • ✓thermal recovery starts a fresh capacity window
  • ✓occasional misses and intended thirty hertz cadence do not trip fallback1 ms
  • ✓sustained missed submissions fall back after warmup and latch until resume
terrarium.AquariumResidentOverlayTest5/5
  • ✓original Octocat helper remains neutral for unknown and readable at device density3.0 s
  • ✓all six kinds render a filled working badge and keep activity when labels hide166 ms
  • ✓a yielding WORKING tag leaves no opaque badge over the resident behind it37 ms
  • ✓state changes clear work cue immediately even with frozen phase and selection76 ms
  • ✓CI orbit keeps identity and passive results expire while motion is paused21 ms
terrarium.AquariumResidentsTest13/13
  • ✓Hermes wears a real headset without painted white bang glyphs46 ms
  • ✓shared habitat keeps a closed rock foraging clip and moving feelers48 ms
  • ✓Kiro gets its own model while unknown types never borrow another mark31 ms
  • ✓instanced buddy materials have unique immutable names24 ms
  • ✓Hermes swims as its own mermaid resident in its own band31 ms
  • ✓exported templates contain only their original character hierarchy39 ms
  • ✓Claude arm meshes exclude the fixed torso edges25 ms
  • ✓Hermes keeps its skin and shell lid hinge in the shipped assets31 ms
  • ✓Antigravity packages a sampled rainbow and texture coordinates921 ms
  • ✓crowds remain bounded but focus and waiting sessions stay reachable24 ms
  • ✓shared doorway keeps OpenClaw and bottom dwellers in clear side lanes16 ms
  • ✓shell swimmers use lateral berths independent of bottom dwellers26 ms
  • ✓Dot shares the resident budget without inventing a working session22 ms
terrarium.BackgroundWorkTest5/5
  • ✓canonicalOrbitHasDepthAndTwelveSecondPeriod4 ms
  • ✓unknownAttentionAndReconnectNeverInventCompletion
  • ✓reducedMotionStopsTimeAndSuppressesCompletions
  • ✓countChangeKeepsSurvivingJarContinuousAndBoundsPools1 ms
  • ✓pearlsFinishBeforeJarsAndZeroFinishesEvenWhenIdle1 ms
terrarium.CreatureFloorSpacingTest1/1
  • ✓every vector matches the TypeScript source21 ms
terrarium.CreatureLayoutTest3/3
  • ✓no row overlaps more than ~50 percent across realistic counts4 ms
  • ✓low counts keep full size and do not shrink
  • ✓floor-rest clear anchor stays left of the crayfish claws
terrarium.CreatureNameTagLayerTest2/2
  • ✓separate tags are both drawn and the queue is emptied59 ms
  • ✓an idle tag colliding with a working tag is dropped, the working tag is drawn34 ms
terrarium.HermesHomeMotionTest12/12
  • ✓reduced motion resolves live shell state without travelling
  • ✓frame rate changes preserve trajectory and suspension freezes it3 ms
  • ✓return goes around shell front before aligning with its mouth3 ms
  • ✓return uses front lip and compacts above floor before lid closes2 ms
  • ✓lid clears head before emergence and swimming
  • ✓reduced motion during departure resumes at its resolved berth
  • ✓grounded gateway remains outside while idle and retires through the same mouth1 ms
  • ✓closed shared lid holds the returning body outside until it clears1 ms
  • ✓shared home departure reaches its assigned berth and returns to the same mouth2 ms
  • ✓shared entrance serializes departures and returns without blocking outside peers1 ms
  • ✓work resuming during return safely reopens
  • ✓short turns and resumed work reverse the current leg without corner cuts14 ms
terrarium.ResidentLabelLayoutTest7/7
  • ✓a sparse tank keeps every tag whole and translucent28 ms
  • ✓every shared vector matches (Swift replays the same file)22 ms
  • ✓a dense tank collapses idle tags but never working, awaiting or focused ones21 ms
  • ✓an idle tag colliding with a higher-priority tag drops out and priority draws last15 ms
  • ✓two colliding working tags both stay, the lower one yields20 ms
  • ✓a tag over another resident's body yields so the body shows through15 ms
  • ✓creature picking chooses visible nearest bounds and ignores empty water14 ms
terrarium.TerrariumStateTest14/14
  • ✓primary permission frame overrides a still idle CI roster for every creature kind23 ms
  • ✓claude processing does not bleed into OpenClaw crayfish on aggregate view23 ms
  • ✓primary Kiro session routes to the canonical vector-mark creature20 ms
  • ✓a focused Codex session keeps its cloud when the list contains itself21 ms
  • ✓Kiro IDE sibling does not fall back to an octopus17 ms
  • ✓emitted OpenClaw session shows OpenClaw at rest22 ms
  • ✓gateway error without an emitted session does not spawn a creature17 ms
  • ✓gateway error with a live session surfaces sick OpenClaw18 ms
  • ✓OpenClaw processing routes its own crayfish19 ms
  • ✓reachable gateway without an emitted session hides OpenClaw and workers23 ms
  • ✓a focused session keeps its creature when the list contains itself15 ms
  • ✓a second session of the same agent does not suppress the focused one18 ms
  • ✓stuck gatewayConnected without an emitted session still hides OpenClaw16 ms
  • ✓daemon aggregate keeps OpenClaw crayfish calm while claude works22 ms
terrarium.renderer.CreatureFeatureCanvasTest2/2
  • ✓native Canvas fills source features independently of background and preserves OpenCode hole56 ms
  • ✓e-ink OpenClaw paints only an emitted active session even if gateway is available89 ms
terrarium.renderer.EinkAnimationTimingTest12/12
  • ✓LCD uses vsync and physical e-ink uses fast partial cadence22 ms
  • ✓crowded static CI helpers rely on full row status without overlapping captions21 ms
  • ✓e-ink refresh key notices CI changes when ordinary session state stays idle40 ms
  • ✓state changes and repeated laps preserve continuous bounded motion82 ms
  • ✓fish cross the aquarium rather than orbiting in place26 ms
  • ✓reader habitat is monotonic native grayscale with dark tones reserved for agents23 ms
  • ✓routine vendor modes never carry full refresh or blocking flags25 ms
  • ✓fish advance on every 60Hz frame without coarse simulation stalls26 ms
  • ✓animation frame advance is elapsed-time based and bounded21 ms
  • ✓e-ink static companion preserves actual resident homes and clears on null181 ms
  • ✓fish trajectory is identical across display cadences22 ms
  • ✓fish simulation scales movement for partial color frames17 ms
terrarium.renderer.EinkResidentActionCanvasTest9/9
  • ✓Kiro eyes and Hermes silhouette face the chosen horizontal side118 ms
  • ✓canonical eyes look toward travel without leaving duplicate source holes58 ms
  • ✓Hermes swims with a hinged tail while original head remains upright24 ms
  • ✓stationary Claude works with arms while feet and torso remain planted21 ms
  • ✓Codex looks both ways while its terminal prompt remains a readable greater-than underscore45 ms
  • ✓stationary OpenClaw works with independent claws while face remains anchored24 ms
  • ✓held residents do not articulate merely because an unrelated animation clock advances46 ms
  • ✓side-facing swimmers turn through the middle without a sign-change flip94 ms
  • ✓Claude walks with alternating canonical feet while torso and eyes stay anchored23 ms
terrarium.renderer.EinkResidentLayoutTest15/15
  • ✓horizontal reflection crosses a continuous yaw instead of a sign switch1 ms
  • ✓state changes brake smoothly without resetting place gait or task phase23 ms
  • ✓deterministic paths match between ten and sixty hertz including state transitions570 ms
  • ✓working residents cross more than their own body width instead of wobbling around a home124 ms
  • ✓walking and swimming turn continuously and face their actual path in both directions153 ms
  • ✓idle explores and rests while permission CI waiting and sleeping hold their positions80 ms
  • ✓vertical swimming retains the horizontal side and completes an already selected turn
  • ✓crowded mixed and homogeneous populations remain readable separated and wholly in view1.5 s
  • ✓neighbor avoidance still looks along net travel rather than the original target61 ms
  • ✓gait follows distance and stationary work uses its own continuing phase7 ms
  • ✓held residents gain room when a crowd leaves without overlapping or patrolling afterward26 ms
  • ✓work gestures wait for planted feet and relax before departure21 ms
  • ✓braking retains its final gaze plants the gait and starts again without a pose reset2 ms
  • ✓orientation changes retain normalized places and identity reorder does not respawn residents13 ms
  • ✓sleeping resize resolves visible bounds and separation without waiting for another animation tick158 ms
ui.common.ConnectionSetupGuideTest1/1
  • ✓disconnected guidance states the host prerequisite and both setup paths1 ms
ui.common.ManualUrlInputTest2/2
  • ✓button and keyboard reject invalid addresses on LCD and e-ink4.5 s
  • ✓manual input preserves secure WebSocket schemes and trims whitespace164 ms
ui.eink.EinkAttentionPanelTest5/5
  • ✓non-focused awaiting session hides unavailable live prompt fields5 ms
  • ✓primary awaiting session is surfaced when not represented by siblings
  • ✓featured attention prefers focused awaiting session1 ms
  • ✓native held approvals retain identity and disable an unpolled OpenCode request3 ms
  • ✓observed AskUserQuestion choices are visible but not actionable
ui.eink.EinkDashboardChromeLayoutTest3/3
  • ✓narrow large text retains frame rotation settings and the snapshot without another navigation row1.4 s
  • ✓large text keeps clock and touch controls visible without a separate Dot badge296 ms
  • ✓session growth cannot displace the clock or rotation when settings are hidden100 ms
ui.eink.EinkPaperBoardLayoutTest9/9
  • ✓large text wraps long balances labels plans and resets within the usage pane558 ms
  • ✓hiding the session list gives usage the reading space without mounting the tank280 ms
  • ✓critical hidden model limits are called out before expansion240 ms
  • ✓rotation and live growth retain the last session and expanded model allowance640 ms
  • ✓portrait keeps both regions reachable at large system text sizes454 ms
  • ✓landscape shows work and usage together while both full collections remain reachable427 ms
  • ✓portrait shows work and usage together while both full collections remain reachable332 ms
  • ✓collapsed details cannot resize the primary usage metrics157 ms
  • ✓frame mounts only when selected and returns to the board after rotation and recreation254 ms
ui.eink.EinkPaperBoardTest11/11
  • ✓a judged task speaks for its turns and abandoned work is not done17 ms
  • ✓inspection shows interrupted Codex turns without calling them done1 ms
  • ✓recent holds finished agent work, never a prompt still waiting
  • ✓the same finished work is listed once1 ms
  • ✓inspection shows an unanswered turn without putting it in done
  • ✓CI waits stay readable in quiet paper chips and clear without inventing an outcome4 ms
  • ✓headline skips bare headings and machine output
  • ✓same project and agent twice are numbered
  • ✓inspection retains standalone completions and abandoned task summaries
  • ✓sessions rank by what they ask of the reader
  • ✓paper permission row outranks a stale primary CI roster and keeps its question
ui.eink.EinkPaperHistoryLayoutTest1/1
  • ✓history keeps its position across rotation but resets for another same-name session181 ms
ui.eink.EinkUsageColumnsTest4/4
  • ✓a narrow zone shrinks the label before dropping the bar, never the figures1 ms
  • ✓a Crema-width zone keeps every column inside it
  • ✓a wide zone caps the bar instead of stretching it across the page
  • ✓full width portrait gives a long model name its measured width
ui.eink.EinkUsageGroupsTest8/8
  • ✓a plan attaches to its own provider, with a readable until22 ms
  • ✓providers keep one order whatever arrives first
  • ✓a lapsed plan asks for renewal
  • ✓one provider is one group with its own windows
  • ✓a plan without metered windows is a group of its own
  • ✓the Swift daemon's plan fields give the same plan line as a subscription row1 ms
  • ✓no subscription draws no zone
  • ✓per model allowance names survive projection in full1 ms
ui.eink.SessionDisplayOrderingTest11/11
  • ✓naturalLabelCompare orders Agent 2 before Agent 101 ms
  • ✓compareSessionsForDisplay breaks ties on startedAt ascending (oldest first)
  • ✓compareSessionsForDisplay maps terminal tab order onto the deck1 ms
  • ✓compareSessionsForDisplay sorts openclaw before claude-code regardless of project
  • ✓compareSessionsForDisplay tie-breaks on natural id when startedAt is identical1 ms
  • ✓agentTypeRank places openclaw first
  • ✓sessionWeight accepts the documented bounds and clamps beyond them
  • ✓compareSessionsForDisplay is stable across re-sorts of any input order1 ms
  • ✓compareSessionsForDisplay orders opposite-sign extreme weights without Int overflow
  • ✓compareSessionsForDisplay orders by weight ascending before everything else1 ms
  • ✓sessionWeight collapses null to 0 and preserves finite values
ui.monitor.HudTypographyTest2/2
  • ✓project and metadata lines use measured natural leading at every HUD scale65 ms
  • ✓native fonts retain their roles and explicit mono kicker tracking44 ms
ui.monitor.MonitorLayoutScaleTest9/9
  • ✓isTablet is true exactly for the classes with room for side rails3 ms
  • ✓eink bands grow with the panel and portrait is never shorter than landscape1 ms
  • ✓side rails cannot overlap at the narrowest width of their size class2 ms
  • ✓rail fractions leave room for the terrarium between them1 ms
  • ✓size class boundaries match the device profile
  • ✓every size class resolves to an eink scale1 ms
  • ✓single rail phone mode restores readable type without tablet insets
  • ✓every size class resolves to a monitor scale
  • ✓larger classes never render denser than smaller ones
ui.monitor.OpenClawDisplayLinesTest4/4
  • ✓empty when no default tagged53 ms
  • ✓empty catalog yields empty list
  • ✓keeps only default model when present
  • ✓empty when default is unavailable
ui.monitor.SubscriptionLineTest15/15
  • ✓inline plan preserves credits and absent date
  • ✓past subscription date does not claim cancellation1 ms
  • ✓subscriptionTrailing flags expired for past dates
  • ✓inline date is distinct from quota reset1 ms
  • ✓malformed until renders renewal needed1 ms
  • ✓future ISO8601 with offset renders date suffix
  • ✓parseUntilInstant accepts ISO8601
  • ✓bare date in past renders renewal needed
  • ✓future ISO8601 with fractional seconds renders date suffix1 ms
  • ✓subscriptionTrailing returns date for future
  • ✓parseUntilInstant accepts blank as null1 ms
  • ✓past until renders renewal needed
  • ✓bare date string parses as UTC midnight
  • ✓subscriptionTrailing returns null for blank or null
  • ✓null until renders name only
ui.monitor.TimelineDayBreakTest6/6
  • ✓index 0 anchors an older buffer but stays silent on today23 ms
  • ✓separator lands on the first row of the new day
  • ✓out-of-range index yields no separator
  • ✓all-today buffer gets no separator at all1 ms
  • ✓a day older than this year carries the year
  • ✓same instant reads as a different day across zones
update.ApkUpdatesTest3/3
  • ✓onlyOfficialBoundedStableAndroidAssetsAreAccepted23 ms
  • ✓signer set falls back to legacy signatures when signingInfo is empty21 ms
  • ✓versionsAreNumericAndStableOnly24 ms
util.ChatGPTPlanTest3/3
  • ✓capitalises a tier this build predates rather than dropping it1 ms
  • ✓names the known tiers
  • ✓spells a multi-word tier the same way every other surface does
util.CreditBalanceVectorsTest2/2
  • ✓creditsActive matches every shared vector20 ms
  • ✓formatCreditBalance matches every shared vector22 ms
util.DeviceProfileHolderTest1/1
  • ✓listeners receive genuine changes but not repeated installation19 ms
util.DeviceProfileTest44/44
  • ✓onyx mono model is not color eink3 ms
  • ✓real property values are eink signals
  • ✓hisense eink reader is detected by model
  • ✓reader with a generic manufacturer is detected from the brand in its model
  • ✓screen below the floor is unsupported1 ms
  • ✓oneplus x is not an eink device despite its onyx codename
  • ✓false-like property values are not eink signals
  • ✓hisense lcd phone is not an eink device
  • ✓verified hisense eink families retain model detection1 ms
  • ✓generic models named leaf or poke are not eink devices1 ms
  • ✓onyx note air 3 c is color eink
  • ✓short label prefers a named vendor and otherwise names the form factor1 ms
  • ✓crema stays eink and does not require system fixed rotation
  • ✓color signal alone establishes eink evidence
  • ✓onyx boox stays eink
  • ✓eink override wins over a negative detection1 ms
  • ✓compact screens are supported but flagged as tight
  • ✓kobo stays eink
  • ✓auto override is not reported as overridden
  • ✓size class boundaries1 ms
  • ✓color signal upgrades an otherwise mono verdict
  • ✓hisense lcd television model numbers do not match short eink families1 ms
  • ✓build characteristics eink is detected
  • ✓false-like color property values remain rejected
  • ✓television renders with a no-touch caveat
  • ✓moaan pantone is color eink and requires system fixed rotation
  • ✓wire kind keeps the two value vocabulary the swift topology maps
  • ✓display name does not repeat an embedded brand
  • ✓eink override keeps a color panel in color
  • ✓automotive renders with its own caveat
  • ✓a touchless tablet is limited even without a tv ui mode
  • ✓panel override round trips through storage
  • ✓hisense q5 is a reflective lcd not an eink panel
  • ✓huawei nova is not an eink device
  • ✓describe names the panel size and evidence
  • ✓build string only match is flagged as unverified
  • ✓redmi note is not an eink device
  • ✓display name degrades gracefully when build fields are empty
  • ✓unlisted reader with eink system property is detected
  • ✓watch is unsupported regardless of size
  • ✓aggregate property check ignores false-like values
  • ✓lcd override wins over a positive detection
  • ✓phone sized lcd is handheld and tablet sized lcd is tablet
  • ✓unlisted reader with vendor eink api is detected
util.SessionGroupingTest7/7
  • ✓short siblings stay separate1 ms
  • ✓groups duplicate #N sessions of the same project
  • ✓delimiter extension fuses1 ms
  • ✓exact match groups
  • ✓long multi-token stems fuse
  • ✓normalize strips path and trailing #N suffix
  • ✓clusters same-stem worktrees and keeps singletons flat1 ms
util.TimeFormatUtilsTest40/40
  • ✓gaugeBar clamps below 01 ms
  • ✓formatCount thousands show K1 ms
  • ✓an expired Luna reserve restores the regular windows1 ms
  • ✓formatBytes kilobytes
  • ✓codexLimitRows swaps exhausted windows for the credit balance1 ms
  • ✓formatDurationCompact seconds1 ms
  • ✓codex footnote ended window outranks age
  • ✓formatDurationCompact exact minutes no seconds
  • ✓formatDurationCompact sub-second
  • ✓codexCreditBalance reads the wire balance, hasCredits false is zero
  • ✓formatCount int overload works1 ms
  • ✓gaugeBar clamps above 100
  • ✓credits show only while a live window is exhausted and a balance remains
  • ✓formatBytes small values
  • ✓a zero balance leaves the exhausted windows alone1 ms
  • ✓formatCount small numbers unchanged
  • ✓a reported Luna reserve alone keeps the regular windows
  • ✓credits report the latest exhausted reset1 ms
  • ✓gaugeBar 50 percent is half filled
  • ✓gaugeBar 0 percent is all empty
  • ✓formatBytes megabytes
  • ✓codexLimitRows shows credits and the Luna reserve together
  • ✓formatResetTime returns original on parse failure
  • ✓codexLimitRows dates an aged reading of a still-live weekly window
  • ✓gaugeBar custom width
  • ✓codex footnote fires only past the threshold1 ms
  • ✓codexLimitRows swaps exhausted windows for the Luna reserve read as left
  • ✓codex snapshot threshold matches the TypeScript SSOT
  • ✓windowLabel maps minutes to compact day-hour-minute labels
  • ✓formatBytes gigabytes
  • ✓codexLimitRows maps primary and secondary windows with agent tag1 ms
  • ✓codexLimitRows skips windows with null usedPercent
  • ✓formatUptime zero returns 0 colon 00
  • ✓codexLimitRows returns empty when limits null
  • ✓formatCount millions show M
  • ✓codex snapshot age ignores missing and malformed stamps1 ms
  • ✓formatDurationCompact minutes
  • ✓codexLimitRows leaves a legacy producer without capturedAt unchanged
  • ✓gaugeBar 100 percent is all filled
  • ✓codex snapshot age label rounds down
util.UsageSeverityTest1/1
  • ✓consumedAndRemainingUseTheSameBoundaryAndPalette1 ms

Apple (XCTest)

Passed in CI

Runs in the Apple Tests workflow (macos-26) on apple/** changes; not re-run here

Latest hosted run passed · f9dd73e · master · 2026-11-15

ESP32 Robot Framework

Not run

Physical boards in the maintainer's lab; the pre-release receipt records the last attested result

User flows

Scenarios

Each flow maps to specific tests by file and case name (scripts/scenario-matrix.json). A dash means no test at that level — listed with the known gaps.

ScenarioPriorityUnitIntegrationPlatformE2EKnown gaps
Session LifecycleStart session -> processing -> idle -> stop. Core state machine transitions that drive all UI. critical 4/4 — 4 passed2/2 — 2 passed1/2 — 1 passed, 1 not executed here1/1 — 1 passed
  • No end-to-end test with a real Claude process (the daemon E2E posts documented hook payloads)
  • No Android UI test for state transitions
Permission FlowAgent requests permission -> user sees options -> approves/denies -> state transitions back. critical 3/3 — 3 passed2/2 — 2 passed1/1 — 1 passed1/1 — 1 passed
  • No multi-option navigation end-to-end test
  • No encoder dial interaction test for option scrolling
Multi-agent MonitoringDaemon hub orchestrates multiple session bridges, unified dashboard for all agents. high 3/3 — 3 passed3/4 — 3 passed, 1 partially executed——
  • No daemon + session bridge coordinated test
  • No multi-agent state aggregation test
Device ConnectionmDNS discovery -> auth token validation -> WebSocket/serial state sync with dashboard clients. high 3/3 — 3 passed3/3 — 3 passed1/1 — 1 passed—
  • No real mDNS discovery test
  • No ADB reverse tunnel test
  • No LAN token rejection from a second machine (the gate is a pure function with a truth-table test in http-auth-gate.test.ts)
Timeline AggregationEvents from multiple sessions -> daemon relay -> dedup -> unified timeline for all clients. high 2/2 — 2 passed1/1 — 1 passed1/2 — 1 passed, 1 not executed here1/1 — 1 passed
  • No daemon-to-client relay end-to-end test
  • No LLM summary enrichment test
Voice Recording & TranscriptionAudio capture -> whisper transcription -> text delivery to Claude PTY or clipboard. medium —1/1 — 1 passed——
  • No audio recording unit test
  • No recording -> transcription -> paste end-to-end
  • No Android voice recording test
  • No silence detection unit test
Encoder & Button InteractionDial rotate -> option scroll -> push select. Button press -> action trigger. Label rendering. medium 4/4 — 4 passed———
  • No encoder rotate/push integration test
  • No wide canvas takeover test
  • No Android Deck gesture test
Usage Tracking & Rate LimitsAPI usage fetch -> rate limit gauge -> sibling relay (429 prevention) -> dashboard display. medium 1/1 — 1 passed2/2 — 2 passed2/2 — 2 passed—
  • No real API rate limit response test
  • No usage_update WS relay end-to-end
Daemon Singleton GuardPID check -> port probe -> prevent double daemon. Auto-fallback on port conflict. medium 1/1 — 1 passed1/1 — 1 passed—1/1 — 1 passed
  • No port conflict auto-fallback test
  • No LaunchAgent KeepAlive loop prevention test
Hook Installation & MigrationInstall Claude Code hooks -> migrate v2.0 flat format to v2.1 matcher groups -> port injection. medium 0/1 — 1 partially executed——1/1 — 1 passed
  • No test against a real Claude Code process reading ~/.claude/settings.json (the daemon E2E executes the installed snippet with documented payloads)

Vitest --coverage

Coverage

Line, statement, function and branch coverage of bridge, shared, plugin and hooks. The floors are read from vitest.config.ts and enforced on every pull request.

Lines

67.2%

floor 56% · above

Statements

66.0%

floor 55% · above

Functions

68.6%

floor 57% · above

Branches

62.9%

floor 52% · above

By package

bridge

64.5%

21,506 / 33,353 lines · 284 files

hooks

95.0%

702 / 739 lines · 6 files

other

90.6%

720 / 795 lines · 12 files

plugin

56.5%

1,311 / 2,322 lines · 36 files

plugin-ulanzi

91.8%

90 / 98 lines · 3 files

shared

84.1%

3,774 / 4,488 lines · 100 files

441 source files, least covered first
FileLinesStmtsFuncsBranch
bridge/src/apme/history-worker.ts 0%0% 0%0%
bridge/src/apme/process.ts 0%0% 0%0%
bridge/src/apme/types.ts 0%0% 0%0%
bridge/src/daemon.ts 0%0% 0%0%
bridge/src/diag-analyzer.ts 0%0% 0%0%
bridge/src/esptool-js-bundle.d.ts 0%0% 0%0%
bridge/src/esptool-js-node.ts 0%0% 0%0%
bridge/src/event-journal.ts 0%0% 0%0%
bridge/src/idotmatrix/idotmatrix-discover.ts 0%0% 0%0%
bridge/src/index.ts 0%0% 0%0%
bridge/src/log-stream.ts 0%0% 0%100%
bridge/src/pixoo/pixoo-baked-entry.ts 0%0% 0%0%
bridge/src/pty-ringbuffer.ts 0%0% 0%0%
bridge/src/terminal-status.ts 0%0% 0%0%
bridge/src/timebox/timebox-discover.ts 0%0% 0%0%
bridge/src/tui/screen.ts 0%0% 0%0%
bridge/src/types.ts 0%0% 0%0%
bridge/src/types/picovoice.d.ts 0%0% 0%0%
bridge/src/utility-proxy.ts 0%0% 0%0%
bridge/src/voice.ts 0%0% 0%0%
plugin/src/actions/iterm-dial.ts 0%0% 0%0%
plugin/src/actions/launcher-dial.ts 0%0% 0%0%
plugin/src/actions/option-dial.ts 0%0% 0%0%
plugin/src/actions/session-slot-button.ts 0%0% 0%0%
plugin/src/actions/usage-limit-button.ts 0%0% 0%0%
plugin/src/actions/utility-dial.ts 0%0% 0%0%
plugin/src/agent-link.ts 0%0% 0%0%
plugin/src/display-dim.ts 0%0% 0%0%
plugin/src/encoder-registry.ts 0%0% 0%100%
plugin/src/plugin.ts 0%0% 0%0%
plugin/src/renderers/agent-logos.ts 0%0% 0%0%
plugin/src/renderers/button-renderer.ts 0%0% 0%100%
plugin/src/renderers/session-slot-renderer.ts 0%0% 0%0%
plugin/src/system/darwin.ts 0%0% 0%0%
plugin/src/system/types.ts 0%0% 0%0%
services/dot-relay/src/main.ts 0%0% 0%0%
services/dot-relay/src/tunnel-main.ts 0%0% 0%0%
shared/src/dot-pixels.ts 0%0% 0%0%
shared/src/index.ts 0%0% 0%0%
shared/src/sample.ts 0%0% 0%0%
shared/src/svg-renderers/index.ts 0%0% 0%0%
shared/src/telemetry-envelope.ts 0%0% 0%0%
shared/src/timeline-label.ts 0%0% 0%0%
bridge/src/wake-word.ts 2%2% 0%0%
bridge/src/voice-assistant.ts 2%2% 0%0%
shared/src/background-work.ts 3%3% 0%0%
shared/src/command-builders.ts 3%3% 0%100%
shared/src/gateway-health.ts 5%4% 0%0%
bridge/src/tts.ts 5%4% 0%0%
bridge/src/tui/dashboard.ts 5%4% 2%10%
bridge/src/apme/index.ts 5%5% 9%0%
bridge/src/modules/index.ts 6%6% 33%0%
bridge/src/relay-config.ts 6%6% 0%0%
bridge/src/timebox/timebox-daemon-sync.ts 7%6% 0%0%
bridge/src/pixoo/pixoo-preview.ts 7%6% 20%0%
shared/src/device-snapshot.ts 7%6% 0%0%
bridge/src/modules/idotmatrix-module.ts 8%6% 0%0%
bridge/src/modules/timebox-module.ts 8%6% 0%0%
bridge/src/pixoo/pixoo-settings.ts 8%6% 9%0%
bridge/src/modules/pixoo-module.ts 8%6% 0%0%
shared/src/apme-graph.ts 9%9% 0%100%
bridge/src/daemon-server.ts 10%10% 12%10%
bridge/src/cli.ts 12%13% 18%11%
shared/src/collaboration-presentation.ts 12%9% 25%36%
shared/src/device-credentials.ts 13%10% 0%0%
bridge/src/apme/hw-sampler.ts 15%18% 43%9%
bridge/src/version-check.ts 17%18% 23%16%
bridge/src/modules/serial-module.ts 18%17% 0%0%
shared/src/daemon-configuration.ts 18%14% 0%0%
shared/src/device-security.ts 18%14% 0%0%
bridge/src/review-runner.ts 20%20% 24%26%
bridge/src/session-transcript-timeline.ts 23%24% 14%17%
bridge/src/modules/adb-module.ts 24%21% 0%0%
plugin/src/runtime-identity.ts 29%29% 50%100%
plugin/src/renderers/slot-svg.ts 33%27% 33%32%
bridge/src/apme/outcome.ts 36%34% 42%36%
bridge/src/logger.ts 38%38% 62%21%
bridge/src/pixoo/pixoo-sprites.ts 39%38% 51%27%
shared/src/eval-schema.ts 40%40% 0%0%
bridge/src/antigravity-local.ts 41%35% 47%23%
bridge/src/esp32-flash.ts 41%40% 42%35%
bridge/src/modules/mdns-module.ts 43%43% 25%100%
bridge/src/dot-cli.ts 43%29% 10%0%
bridge/src/usage-tracker.ts 44%44% 23%55%
bridge/src/opencode-client.ts 44%40% 57%38%
shared/src/dot-interactions.ts 45%38% 0%0%
shared/src/voice-paths.ts 45%42% 0%0%
bridge/src/model-catalog.ts 47%40% 40%19%
shared/src/pairing-code.ts 48%44% 60%35%
bridge/src/ble-sync-spawn.ts 49%48% 47%39%
bridge/src/wifi-config.ts 50%47% 67%56%
bridge/src/esp32-flash-transport.ts 51%53% 55%49%
bridge/src/device-security-handover.ts 52%44% 100%54%
bridge/src/adapters/opencode-adapter.ts 53%49% 42%38%
bridge/src/tui/theme.ts 54%52% 100%44%
bridge/src/modules/broadcast-module.ts 57%57% 50%100%
bridge/src/pixoo/pixoo-client.ts 58%57% 58%51%
bridge/src/foundation-models-helper.ts 58%59% 54%45%
bridge/src/timebox/timebox-settings.ts 59%56% 71%50%
bridge/src/tui/ansi.ts 60%59% 68%55%
shared/src/claude-weekly-view.ts 60%71% 33%47%
bridge/src/pixoo/pixoo-bridge.ts 60%57% 52%41%
bridge/src/claude-usage-recovery.ts 61%62% 47%70%
bridge/src/esp32-serial.ts 62%61% 60%61%
plugin/src/system/index.ts 62%65% 50%100%
bridge/src/kiro-session.ts 63%61% 50%61%
bridge/src/bridge-core.ts 66%65% 54%63%
bridge/src/apme/activity-history.ts 66%60% 73%58%
shared/src/format-utils.ts 66%66% 73%66%
bridge/src/idotmatrix/idotmatrix-settings.ts 67%63% 71%71%
plugin/src/log.ts 67%59% 33%50%
plugin/src/system/win32.ts 67%63% 62%80%
bridge/src/agent-cli-diagnostics.ts 68%68% 60%44%
shared/src/matrix-expression.ts 68%57% 55%34%
bridge/src/apme/antigravity-transcript.ts 68%68% 43%81%
bridge/src/ci-wait-probe.ts 68%67% 81%69%
bridge/src/pixoo/pixoo-camera.ts 68%68% 62%60%
bridge/src/mlx-probe.ts 70%64% 50%70%
bridge/src/adapters/index.ts 71%71% 100%67%
bridge/src/openclaw-gateway-stability.ts 72%74% 70%80%
shared/src/svg-renderers/agent-logos.ts 72%75% 82%66%
bridge/src/session-activity.ts 73%66% 69%68%
bridge/src/hook-server.ts 73%71% 69%60%
plugin/src/bridge-client.ts 73%68% 82%48%
bridge/src/pty-manager.ts 73%74% 76%66%
bridge/src/device-security-cli.ts 73%60% 50%51%
bridge/src/daemon-supervisor.ts 75%73% 85%66%
bridge/src/adapters/claude-code.ts 75%75% 57%40%
bridge/src/apme/payload-prune.ts 75%80% 57%100%
shared/src/pocket-policy.ts 75%75% 0%0%
shared/src/net-utils.ts 75%67% 100%60%
bridge/src/windows-service.ts 76%77% 60%89%
bridge/src/linux-service.ts 76%73% 72%100%
bridge/src/pixoo/pixoo-baked.ts 76%77% 86%64%
shared/src/timeline-summarizer.ts 76%73% 57%63%
bridge/src/ws-server.ts 77%75% 67%67%
bridge/src/session-registry.ts 78%74% 65%76%
bridge/src/font-pack.ts 79%79% 100%90%
bridge/src/pixoo/pixoo-configuration-client.ts 79%54% 50%54%
shared/src/dot-deck.ts 79%78% 67%70%
bridge/src/gateway-probe.ts 79%66% 38%76%
bridge/src/idotmatrix/idotmatrix-daemon-sync.ts 80%75% 75%61%
bridge/src/adapters/openclaw.ts 81%78% 77%71%
shared/src/voice-ptt.ts 81%82% 100%77%
bridge/src/learning-pack.ts 81%81% 100%85%
bridge/src/observed-steering.ts 81%77% 92%70%
bridge/src/adapters/monitor.ts 81%81% 87%60%
shared/src/svg-renderers/session-slot-renderer.ts 82%81% 82%75%
bridge/src/pixoo/pixoo-discover.ts 82%74% 75%63%
bridge/src/dot-host.ts 82%78% 88%72%
bridge/src/adapters/pty-adapter.ts 83%83% 67%81%
bridge/src/apme/http.ts 83%81% 79%80%
bridge/src/tui/terrarium.ts 83%81% 87%68%
bridge/src/passive-observer.ts 83%79% 86%75%
bridge/src/kiro-diagnostics.ts 84%85% 87%64%
bridge/src/session-timeline-relay.ts 84%80% 71%62%
bridge/src/display-monitor.ts 84%82% 87%83%
bridge/src/apme/adapters/codex-hook.ts 85%79% 100%60%
plugin/src/renderers/display-tile.ts 85%82% 100%64%
bridge/src/state-machine.ts 85%85% 87%69%
bridge/src/claude-spare-hooks.ts 85%82% 89%85%
bridge/src/tui/renderer.ts 85%80% 89%59%
bridge/src/pixoo/pixoo-renderer.ts 85%85% 90%75%
bridge/src/check-deps.ts 86%86% 100%50%
bridge/src/codex-hook-replay.ts 86%81% 67%77%
shared/src/usage-severity.ts 86%89% 75%90%
bridge/src/codex-background-terminals.ts 86%79% 67%83%
bridge/src/usage-api.ts 86%82% 77%78%
bridge/src/apme/runner.ts 86%83% 83%74%
shared/src/timeline.ts 86%80% 100%76%
bridge/src/kiro-timeline-feed.ts 86%84% 86%65%
bridge/src/broadcast.ts 87%79% 56%56%
bridge/src/openclaw-timeline-feed.ts 87%83% 90%57%
bridge/src/pixoo/matrix-art.ts 87%86% 75%84%
bridge/src/session-focus-relay.ts 87%85% 78%80%
bridge/src/apme/sample-to-timeline.ts 87%82% 100%65%
bridge/src/claude-permission-rules.ts 87%87% 71%65%
services/dot-relay/src/runtime.ts 87%75% 69%80%
bridge/src/antigravity-activity.ts 87%71% 94%62%
bridge/src/credential-response-fence.ts 88%92% 100%75%
shared/src/exec-file-probe.ts 88%89% 100%90%
bridge/src/mdns.ts 88%87% 94%77%
bridge/src/python-ble-runtime.ts 88%87% 89%85%
bridge/src/hook-codex-sessions.ts 88%85% 94%86%
bridge/src/glance-frame.ts 88%89% 84%78%
shared/src/ci-wait.ts 89%87% 82%87%
plugin-ulanzi/src/reconnect-supervisor.ts 89%85% 75%79%
bridge/src/antigravity-observation.ts 89%80% 86%71%
shared/src/openclaw-plugin-approval.ts 90%90% 94%87%
bridge/src/device-security-manager.ts 90%70% 70%73%
bridge/src/daemon-relay.ts 90%87% 82%83%
bridge/src/apme/classifier.ts 91%85% 92%81%
bridge/src/observed-inject.ts 91%89% 100%76%
shared/src/apme-classifier-rules.ts 91%92% 67%67%
bridge/src/apme/adapters/openclaw-hook.ts 91%88% 92%83%
plugin/src/utility-modes/usage.ts 91%87% 86%85%
bridge/src/apme/collector.ts 91%87% 91%78%
bridge/src/surface-protocol.ts 91%88% 85%82%
bridge/src/device-voice.ts 92%89% 83%74%
services/dot-relay/src/server.ts 92%83% 86%80%
bridge/src/session-aggregator.ts 92%91% 100%75%
hooks/src/install.ts 92%90% 94%90%
shared/src/timeline-icons.ts 92%89% 83%82%
bridge/src/dot-appearance.ts 92%83% 100%71%
bridge/src/pairing-credential-store.ts 92%89% 100%60%
plugin/src/focused-detail-state.ts 92%93% 89%82%
bridge/src/adapters/codex-cli.ts 92%92% 89%100%
bridge/src/network-posture.ts 92%93% 100%89%
bridge/src/ollama-probe.ts 92%94% 100%92%
bridge/src/pixoo/pixoo-font.ts 92%90% 100%75%
plugin/src/actions/per-action-view-state.ts 92%86% 80%70%
plugin/src/session-slot-manager.ts 93%91% 93%85%
shared/src/claude-permission-rules.ts 93%87% 100%83%
bridge/src/daemon-ws-client.ts 93%87% 94%75%
shared/src/session-settings-client.ts 93%92% 100%77%
bridge/src/apme/store.ts 93%80% 96%75%
bridge/src/mdns-discover.ts 93%90% 100%74%
hooks/src/opencode-install.ts 93%89% 100%81%
bridge/src/auth.ts 93%91% 93%86%
bridge/src/daemon-timeline-handover.ts 94%92% 89%93%
shared/src/session-utils.ts 94%94% 96%87%
bridge/src/session-order-store.ts 94%90% 84%88%
bridge/src/output-parser.ts 94%90% 100%85%
bridge/src/apme/adapters/timeline.ts 94%95% 100%76%
bridge/src/daemon-recovery.ts 94%84% 100%77%
bridge/src/openclaw-transcript-timeline.ts 94%85% 100%77%
bridge/src/apme/history-reader.ts 94%93% 93%77%
bridge/src/hook-opencode-sessions.ts 94%91% 94%91%
bridge/src/peripheral-mapping.ts 94%96% 100%95%
shared/src/esp32-boards.ts 94%93% 91%85%
bridge/src/apme/reference-judge.ts 95%92% 90%85%
bridge/src/apme/classify-turn.ts 95%91% 100%80%
bridge/src/fallback-task-timeline.ts 95%95% 83%82%
bridge/src/device-voice-reply.ts 95%89% 70%84%
bridge/src/zai-usage.ts 95%92% 93%81%
services/dot-relay/src/store.ts 95%85% 100%83%
bridge/src/apme/adapters/codex-turn-manager.ts 95%90% 100%79%
services/dot-relay/src/tunnel-stdio.ts 95%88% 100%85%
bridge/src/apme/recommend.ts 95%92% 100%83%
bridge/src/device-security-store.ts 95%84% 100%77%
bridge/src/claude-turn-watchdog.ts 95%93% 88%91%
bridge/src/managed-hook-harness.ts 95%95% 91%98%
bridge/src/weather.ts 95%89% 93%75%
bridge/src/codex-rollout-response.ts 95%88% 87%83%
bridge/src/subagent-timeline.ts 95%94% 93%85%
hooks/src/hermes-diagnostics.ts 96%88% 85%83%
hooks/src/codex-install.ts 96%94% 97%90%
bridge/src/codex-auth.ts 96%94% 100%89%
bridge/src/http-auth-gate.ts 96%97% 100%92%
plugin/src/connection-manager.ts 96%94% 83%91%
bridge/src/claude-hook-timeline.ts 96%93% 100%82%
bridge/src/codex-rate-limits-live.ts 96%95% 94%90%
bridge/src/kiro-transcript-timeline.ts 96%91% 100%83%
shared/src/pricing.ts 96%91% 88%77%
bridge/src/ask-gate.ts 96%97% 100%97%
plugin/src/renderers/usage-gauge.ts 96%94% 93%78%
shared/src/pairing-credentials.ts 96%97% 86%96%
bridge/src/codex-exec-children.ts 96%91% 90%85%
bridge/src/pairing-window.ts 96%95% 89%91%
bridge/src/opencode-steering.ts 96%95% 100%93%
bridge/src/codex-otel.ts 97%90% 97%85%
bridge/src/device-credential-store.ts 97%86% 100%78%
bridge/src/codex-rate-limits.ts 97%93% 100%86%
shared/src/mlx-safety.ts 97%92% 100%89%
bridge/src/daemon-build-identity.ts 97%90% 100%83%
services/dot-relay/src/oauth-http.ts 97%92% 100%85%
bridge/src/pairing-knocks.ts 97%95% 95%88%
bridge/src/native-dependency-diagnostics.ts 97%92% 75%55%
bridge/src/daemon-takeover.ts 97%97% 100%92%
bridge/src/codex-output-parser.ts 97%96% 100%90%
bridge/src/session-push-channel.ts 97%97% 50%82%
bridge/src/utils/project-name.ts 97%93% 100%81%
bridge/src/tui/model.ts 97%93% 100%85%
bridge/src/adb-reverse.ts 97%95% 95%89%
plugin/src/system/win32-volume.ts 97%94% 92%81%
bridge/src/apme/graph.ts 97%93% 100%82%
bridge/src/observed-turn-watchdogs.ts 97%96% 100%75%
bridge/src/apme/git-head.ts 98%93% 100%92%
services/dot-relay/src/webhook.ts 98%94% 94%97%
bridge/src/pocket-autonomy.ts 98%96% 95%87%
bridge/src/claude-inbox.ts 98%81% 82%77%
bridge/src/private-files.ts 98%89% 75%82%
bridge/src/coordination-evidence.ts 98%94% 98%86%
bridge/src/card-feed.ts 98%90% 100%81%
bridge/src/apme/claude-transcript-reader.ts 98%92% 100%88%
services/dot-relay/src/local-oauth.ts 98%93% 99%92%
bridge/src/apme/adapters/opencode-hook.ts 98%98% 100%84%
shared/src/subagent-activity.ts 98%94% 86%88%
shared/src/session-labels.ts 98%99% 100%81%
services/dot-relay/src/relay.ts 98%92% 97%89%
bridge/src/timeline-summarizer.ts 98%91% 80%58%
shared/src/creature-layout.ts 98%96% 93%86%
shared/src/codex-approval-hold.ts 98%95% 100%93%
shared/src/openclaw-approval.ts 98%98% 100%96%
shared/src/local-trust.ts 98%95% 100%94%
bridge/src/calendar.ts 98%97% 93%93%
bridge/src/cmux-titles.ts 98%88% 79%82%
bridge/src/device-photo.ts 98%97% 94%88%
bridge/src/connection-diagnostics.ts 99%95% 96%82%
bridge/src/timeline-store.ts 99%96% 100%86%
shared/src/d200h-layout.ts 99%97% 100%88%
bridge/src/pixoo/micro-glyphs.ts 99%96% 100%90%
bridge/src/hermes-sessions.ts 99%95% 100%95%
bridge/src/calendar-ics.ts 99%95% 100%92%
bridge/src/pixoo/pixoo-tide.ts 99%99% 97%89%
bridge/src/antigravity-policy.generated.ts 100%100% 100%100%
bridge/src/apme/adapters/claude-hook.ts 100%100% 100%77%
bridge/src/apme/dashboard-html.ts 100%100% 100%100%
bridge/src/apme/history-projection.ts 100%96% 100%69%
bridge/src/apme/judge-detect.ts 100%98% 100%86%
bridge/src/apme/pareto.ts 100%100% 100%98%
bridge/src/apme/read-indexes.generated.ts 100%100% 100%100%
bridge/src/apme/retention-policy.generated.ts 100%100% 100%100%
bridge/src/apme/scorers/index.ts 100%98% 100%89%
bridge/src/apme/settings.ts 100%98% 100%90%
bridge/src/apme/task-gradeability.ts 100%100% 100%98%
bridge/src/awaiting-overlay.ts 100%95% 100%85%
bridge/src/ble-sync-status.ts 100%100% 100%91%
bridge/src/board-timeline-entry.ts 100%89% 100%80%
bridge/src/calendar-policy.generated.ts 100%100% 100%100%
bridge/src/card-modules.ts 100%100% 100%90%
bridge/src/ci-wait-process.ts 100%96% 100%94%
bridge/src/claude-background-tasks.ts 100%92% 100%95%
bridge/src/claude-interrupt-marker.ts 100%95% 100%92%
bridge/src/codex-ambient-hooks.ts 100%100% 100%100%
bridge/src/codex-approval-hold.ts 100%100% 100%100%
bridge/src/codex-approval-probe.ts 100%100% 100%93%
bridge/src/codex-hook-silence.ts 100%94% 100%79%
bridge/src/compact-session-labels.ts 100%100% 100%100%
bridge/src/daemon-checkpoint.ts 100%94% 100%95%
bridge/src/daemon-configuration.ts 100%92% 100%88%
bridge/src/daemon-launcher.ts 100%100% 100%100%
bridge/src/daemon-listen.ts 100%100% 100%100%
bridge/src/daemon-port.ts 100%100% 100%92%
bridge/src/daemon-settings.ts 100%95% 100%75%
bridge/src/daemon-socket-drain.ts 100%81% 100%50%
bridge/src/dashboard-providers.ts 100%100% 100%100%
bridge/src/deferred-reply-read.ts 100%100% 100%100%
bridge/src/device-security-replica.ts 100%90% 100%82%
bridge/src/device-tls-server.ts 100%80% 82%81%
bridge/src/device-transcription.ts 100%96% 100%92%
bridge/src/display-dim.ts 100%95% 100%72%
bridge/src/esp32-flash-lease.ts 100%100% 100%94%
bridge/src/esp32-orientation.ts 100%100% 100%100%
bridge/src/esp32-serial-vendors.ts 100%100% 100%94%
bridge/src/esp32-wifi-cred.ts 100%100% 100%100%
bridge/src/esp32-wifi-setup.ts 100%99% 100%98%
bridge/src/event-loop-telemetry.ts 100%100% 100%75%
bridge/src/hook-claude-sessions.ts 100%97% 100%93%
bridge/src/hook-response-source.ts 100%100% 100%100%
bridge/src/hub-state-identity.ts 100%100% 100%98%
bridge/src/ips10-roster.ts 100%79% 75%67%
bridge/src/legacy-rearm-ledger.ts 100%100% 100%100%
bridge/src/modules/types.ts 100%100% 100%100%
bridge/src/observed-launch.ts 100%100% 50%90%
bridge/src/openclaw-model-catalog.ts 100%100% 100%100%
bridge/src/openclaw-session.ts 100%100% 100%100%
bridge/src/pairing-rotation.ts 100%96% 100%85%
bridge/src/permission-resolver.ts 100%91% 100%72%
bridge/src/personal-voice-turn.ts 100%96% 100%89%
bridge/src/pixoo/desk-awareness.ts 100%100% 100%100%
bridge/src/pixoo/hermes-mermaid.generated.ts 100%100% 100%100%
bridge/src/pixoo/official-dot-glyphs.generated.ts 100%100% 100%100%
bridge/src/pixoo/official-features.ts 100%100% 100%91%
bridge/src/pixoo/pixoo-baked-source.generated.ts 100%100% 100%100%
bridge/src/pixoo/pixoo-loop-policy.generated.ts 100%100% 100%100%
bridge/src/relayed-usage.ts 100%97% 100%82%
bridge/src/remote-sessions.ts 100%100% 100%100%
bridge/src/session-display-name.ts 100%97% 100%93%
bridge/src/session-id-resolve.ts 100%100% 100%93%
bridge/src/session-timeline-reply.ts 100%100% 100%80%
bridge/src/setup-status.ts 100%89% 100%76%
bridge/src/transport-auth-policy.generated.ts 100%100% 100%100%
bridge/src/tui/gauge.ts 100%96% 100%92%
bridge/src/tui/width.ts 100%95% 100%88%
bridge/src/usage-event.ts 100%100% 100%92%
bridge/src/utils/redact-secrets.ts 100%100% 100%100%
bridge/src/weather-config.ts 100%95% 100%86%
hooks/src/codex-mini-toml.ts 100%96% 100%94%
hooks/src/hermes-install.ts 100%100% 100%100%
plugin-ulanzi/src/raster-recovery.ts 100%96% 86%80%
plugin-ulanzi/src/studio-endpoint.ts 100%100% 100%100%
plugin/src/connection-status-pi.ts 100%100% 100%95%
plugin/src/device-profile.ts 100%100% 100%100%
plugin/src/launch-targets.ts 100%100% 100%93%
plugin/src/renderers/launcher-renderer.ts 100%100% 100%50%
plugin/src/renderers/usage-dial-renderer.ts 100%90% 100%47%
plugin/src/renderers/utility-renderer.ts 100%100% 100%75%
plugin/src/utility-modes/usage-dial-view.ts 100%92% 100%77%
services/dot-relay/src/contracts.ts 100%100% 100%100%
services/dot-relay/src/direct-https.ts 100%90% 100%90%
shared/src/action-fold.ts 100%100% 100%95%
shared/src/adapter.ts 100%100% 100%100%
shared/src/apme-comparison.ts 100%100% 100%100%
shared/src/apme-review.ts 100%91% 100%88%
shared/src/apme-scorecard-sql.ts 100%100% 100%100%
shared/src/background-work-presentation.ts 100%100% 100%96%
shared/src/brand-features.ts 100%88% 100%64%
shared/src/ci-github-glyph.generated.ts 100%100% 100%100%
shared/src/ci-provider-policy.ts 100%100% 100%100%
shared/src/claude-background-jobs.ts 100%95% 100%90%
shared/src/claude-statusline.ts 100%100% 100%99%
shared/src/connection-status.ts 100%100% 100%100%
shared/src/daemon-parity.ts 100%100% 100%95%
shared/src/daemon-recovery.ts 100%100% 100%100%
shared/src/daemon-relay-policy.ts 100%100% 100%100%
shared/src/design-tokens.ts 100%100% 100%100%
shared/src/device-controller.ts 100%100% 100%95%
shared/src/dot-appearance.ts 100%100% 100%91%
shared/src/dot-rules.ts 100%100% 100%100%
shared/src/esp32-wifi-provision.ts 100%100% 100%100%
shared/src/gateway-live-activity.ts 100%99% 100%88%
shared/src/gateway-protocol.ts 100%100% 100%100%
shared/src/glance-frame-policy.ts 100%100% 100%100%
shared/src/harness-queued-message.ts 100%100% 100%100%
shared/src/hook-harness.ts 100%98% 100%90%
shared/src/idotmatrix-identity.ts 100%100% 100%94%
shared/src/llm-settings.ts 100%100% 100%98%
shared/src/mdns-identity.ts 100%100% 100%100%
shared/src/model-provider.ts 100%100% 100%93%
shared/src/openclaw-session-key.ts 100%96% 100%97%
shared/src/opencode-question.ts 100%89% 100%91%
shared/src/paper-palette.ts 100%100% 100%100%
shared/src/protocol.ts 100%100% 100%100%
shared/src/session-settings.ts 100%96% 100%90%
shared/src/session-state-presentation.ts 100%100% 100%91%
shared/src/state-colors.ts 100%100% 100%75%
shared/src/states.ts 100%100% 100%100%
shared/src/svg-renderers/hermes-brand.ts 100%100% 100%100%
shared/src/svg-renderers/hermes-mermaid-2d.generated.ts 100%100% 100%100%
shared/src/svg-renderers/text-utils.ts 100%93% 100%81%
shared/src/svg-renderers/usage-reserve-marks.ts 100%100% 100%100%
shared/src/task-title.ts 100%95% 100%92%
shared/src/terrarium-rules.ts 100%100% 100%100%
shared/src/text-scanning.ts 100%97% 100%94%
shared/src/timeline-markdown.ts 100%98% 100%91%
shared/src/timeline-task-display.ts 100%100% 100%96%
shared/src/usage-presentation.ts 100%100% 100%98%
shared/src/voice-reply-digest.ts 100%97% 100%90%
shared/src/zai-pair-view.ts 100%100% 100%100%
shared/src/zai-quota.ts 100%97% 100%96%

Trend

History

Totals from the last runs of this page on master.

Tests

8,325

last 50 runs on master

Pass rate

100.0%

last 50 runs on master

Line coverage

67.2%

last 50 runs on master

Test basis and QA judgment

Why automate?

Repeated state transitions, access boundaries and protocol mirrors have deterministic expectations. Fast regression tests are appropriate; scenario gaps show what remains unproven.

Manual QA still needed

On the target app and device, observe real permission approval/denial, disconnect/reconnect and text readability. Compare expected state/options with the screen; record app/firmware version, device, date, result and evidence. Not executed by this report.

Public test example

Risk: unauthenticated LAN access. Input: unauthorized GET /status. Expected: deny; GET /health exposes public health only. Inspect the access-control cases in Test domains when they are included in this run. Unit inputs do not prove a physical network or UI.

AI and evidence limits

Aggregation uses deterministic parsers, not an LLM verdict. Mock hooks do not assess model quality or hallucinations. Review AI-authored code and regression results; missing evidence stays unknown. Only public AgentDeck sources and synthetic fixtures belong here; confidential cases are excluded even when blurred.

Example cases: 29 passed, 0 failed, 0 skipped.

http-auth-gate.test.ts · Observed results · Scenario basis and gaps

Reproduce: inputs → execution → evaluation → report

Use Node 22, 24 or 26, locked pnpm dependencies and a POSIX shell. In a fresh checkout, collect a focused public example; JSON results feed the report. This is a narrow example, not full acceptance. Coverage and native evidence require separate runs.

pnpm install --frozen-lockfile pnpm build example_dir=$(mktemp -d) pnpm vitest run bridge/src/__tests__/http-auth-gate.test.ts --reporter=json --outputFile="$example_dir/vitest.json" BUILD_HEALTH_REPORT_DIR="$example_dir" BUILD_HEALTH_COVERAGE_JSON="$example_dir/no-coverage" BUILD_HEALTH_ANDROID_DIR="$example_dir/no-android" python3 scripts/generate-html-report.py

Published pipeline · summary.json · Run scope and suite notes

Troubleshooting: HTML previously counted pass+fail while summary.json included skips. Both now use the same assertions; regression fixtures exercise skip-only runs, suite errors and missing suites. Focused results cannot substitute for release/device evidence. No QA execution video is attached to this run.