Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test(relay): legacy-wire cases name the API1 fixture [H12,H16]

Corey Olson80293296dd55
diff --git a/test/relay-browser-fixture.test.js b/test/relay-browser-fixture.test.js
index 26d86947..737c7836 100644
--- a/test/relay-browser-fixture.test.js
+++ b/test/relay-browser-fixture.test.js
@@ -1,9 +1,10 @@
-/** Real Chrome fixture diagnostics and timeout boundary [H16,C7]. */
+/** Real Chrome fixture diagnostics and timeout boundary [H16,C7]. The probes hold API1 state reads, so they run on the
+ * legacy wire (#903). */
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { test } from 'node:test';
import { ENGINE_VERSION } from '../src/machine.js';
-import { relayClientFixture } from './relay-client-fixture.js';
+import { legacyRelayClientFixture as relayClientFixture } from './relay-client-fixture.js';
import { findChromeExecutable, relayWorkBudgetMs, startChrome } from './relay-browser-fixture.js';
/** Assert the fixed CDP bound reports its command context and relay-request state. */
diff --git a/test/relay-person-outbox.test.js b/test/relay-person-outbox.test.js
index 0f4d2bb5..9b7f5ec1 100644
--- a/test/relay-person-outbox.test.js
+++ b/test/relay-person-outbox.test.js
@@ -1,9 +1,11 @@
-/** A paired browser retries only saved ciphertext after an interrupted person request [H12,H16,H17]. */
+/** A paired browser retries only saved ciphertext after an interrupted person request [H12,H16,H17]. The case traces
+ * API1 snapshot PUTs, so it runs on the legacy wire (#903). */
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { test } from 'node:test';
import { findChromeExecutable, relayWorkBudgetMs, startChrome } from './relay-browser-fixture.js';
-import { assertSnapshotCheckpoints, cliChildDeadlineMs, relayClientFixture } from './relay-client-fixture.js';
+import { assertSnapshotCheckpoints, cliChildDeadlineMs } from './relay-client-fixture.js';
+import { legacyRelayClientFixture as relayClientFixture } from './relay-client-fixture.js';
/** Install only the private fixture's person cookie in the real browser. */
async function signIn(chrome, box) {
diff --git a/test/relay-person-requests.test.js b/test/relay-person-requests.test.js
index 5f28560c..62cf3e4b 100644
--- a/test/relay-person-requests.test.js
+++ b/test/relay-person-requests.test.js
@@ -1,4 +1,5 @@
-/** A paired browser seals person intent; only native Pullboard executes it [H12,H16,B26]. */
+/** A paired browser seals person intent; only native Pullboard executes it [H12,H16,B26]. These cases time and trace API1
+ * snapshot PUTs, so they run on the legacy wire (#903); API2 person moves are proven in relay-person-actions.test.js. */
import assert from 'node:assert/strict';
import { createHash, randomUUID } from 'node:crypto';
import { readFileSync, writeFileSync } from 'node:fs';
@@ -10,7 +11,8 @@ import { gunzipSync } from 'node:zlib';
import { decodeBoardKey, seal, unseal } from '../src/seal.js';
import { ENGINE_VERSION } from '../src/machine.js';
import { findChromeExecutable, relayWorkBudgetMs, startChrome } from './relay-browser-fixture.js';
-import { assertSnapshotCheckpoints, cliChildDeadlineMs, relayClientFixture } from './relay-client-fixture.js';
+import { assertSnapshotCheckpoints, cliChildDeadlineMs } from './relay-client-fixture.js';
+import { legacyRelayClientFixture as relayClientFixture } from './relay-client-fixture.js';
const CHROME_START_BUDGET_MS = relayWorkBudgetMs(2);
const CLI_SETUP_MARGIN_MS = relayWorkBudgetMs(0);
diff --git a/test/relay-rigor.test.js b/test/relay-rigor.test.js
index 74573c11..bf37698a 100644
--- a/test/relay-rigor.test.js
+++ b/test/relay-rigor.test.js
@@ -1,4 +1,5 @@
-/** Over the real relay, only an authenticated person sender records a never-again fact [D1,H16,B26]. */
+/** Over the real relay, only an authenticated person sender records a never-again fact [D1,H16,B26]. The case reads the
+ * API1 state sequence, so it runs on the legacy wire (#903). */
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
@@ -9,7 +10,7 @@ import { exportBoard, importBoard } from '../src/exchange.js';
import { ENGINE_VERSION } from '../src/machine.js';
import { rigorReport } from '../src/rigor.js';
import { decodeBoardKey, seal, unseal } from '../src/seal.js';
-import { relayClientFixture } from './relay-client-fixture.js';
+import { legacyRelayClientFixture as relayClientFixture } from './relay-client-fixture.js';
/** Call the real relay API with one bearer credential and the current engine header. */
async function relay(box, path, token, { method = 'GET', body } = {}) {
diff --git a/test/relay-snapshot-recovery.test.js b/test/relay-snapshot-recovery.test.js
index 61524906..fcbf88d0 100644
--- a/test/relay-snapshot-recovery.test.js
+++ b/test/relay-snapshot-recovery.test.js
@@ -1,4 +1,5 @@
-/** Recover a native checkpoint timeout through the actual relay page [H16]. */
+/** Recover a native checkpoint timeout through the actual relay page [H16]. The timeout is an API1 checkpoint PUT, so
+ * the case runs on the legacy wire (#903). */
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
@@ -8,7 +9,7 @@ import { prepareEngineMove, applyRelayMove } from '../src/engine.js';
import { ENGINE_VERSION } from '../src/machine.js';
import { relaySnapshot } from '../src/relay-presentation.js';
import { decodeBoardKey, generateBoardKey, seal } from '../src/seal.js';
-import { relayClientFixture } from './relay-client-fixture.js';
+import { legacyRelayClientFixture as relayClientFixture } from './relay-client-fixture.js';
import { findChromeExecutable, startChrome } from './relay-browser-fixture.js';
/** Seal a real native document for an exact authenticated relay position. */