Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(crash-robot): calibrate the full ceilings from measurement (1200 s PGLite, 1800 s Postgres); each cell reports its share of the ceiling in the job summary

garrytan55a09cca48e5
diff --git a/.github/workflows/persistence-validation.yml b/.github/workflows/persistence-validation.yml
index 9a28c1626a..567175f710 100644
--- a/.github/workflows/persistence-validation.yml
+++ b/.github/workflows/persistence-validation.yml
@@ -374,17 +374,18 @@ jobs:
# Every run executes a fixed schedule list (scripts/persistence/robot-driver.ts
# ROBOT_RANDOM_SEEDS), so a passed run of a tree stands for any run of it and a
# master push may reuse it. ROBOT_SECONDS is the ceiling a run fails past, sized
- # on ubicloud-standard-4: 480 s on pull requests and merge-queue runs (named
- # exception, docs/TESTING.md#event-parity: scope pr skips the Postgres
- # lease-bound seams), 960 s PGLite and 1600 s Postgres elsewhere. The nightly
- # Test schedule adds that day's exploration seeds.
+ # from ubicloud-standard-4 measurements (docs/ci-event-parity.md#crash-robot-ceilings):
+ # 480 s on pull requests and merge-queue runs (named exception,
+ # docs/TESTING.md#event-parity: scope pr skips the Postgres lease-bound seams),
+ # 1200 s PGLite and 1800 s Postgres elsewhere. The nightly Test schedule adds that
+ # day's exploration seeds. Each cell writes its share of the ceiling to the job summary.
- name: Crash every reachable seam of the generated sequences
env:
PGPASSWORD: gbrain_test
DATABASE_URL: postgres://[email protected]:5432/gbrain_test
GBRAIN_PGBOUNCER_URL: postgres://[email protected]:55433/gbrain_test
ROBOT_SCOPE: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && 'pr' || 'full' }}
- ROBOT_SECONDS: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && '480' || (matrix.engine == 'postgres' && '1600' || '960') }}
+ ROBOT_SECONDS: ${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && '480' || (matrix.engine == 'postgres' && '1800' || '1200') }}
ROBOT_EXPLORE: ${{ github.event_name == 'schedule' && 'nightly' || '' }}
run: >-
bun --no-env-file scripts/persistence/validate.ts --engine=${{ matrix.engine }}
diff --git a/docs/architecture/key-files/tooling-and-tests.md b/docs/architecture/key-files/tooling-and-tests.md
index aed7974f1f..adfe0c043e 100644
--- a/docs/architecture/key-files/tooling-and-tests.md
+++ b/docs/architecture/key-files/tooling-and-tests.md
@@ -63,7 +63,7 @@ Current behavior and load-bearing invariants; history belongs in Git and CHANGEL
- `scripts/persistence/{harness,schedules,worker,validate,failure-diagnostics}.ts` — executable concurrency gate using real journal/coordinator APIs: 1,000 seeded schedules per engine, eight actual process-kill publication boundaries, and 10,000 writes from four producer processes. Each phase owns a temporary disk PGLite datastore or a fresh test Postgres database. Independent accounting queries verify conservation; every soak receipt is compared to its canonical snapshot and file. JSON manifests separate actual counts and latency measurements from the configured Linux/Bun CI matrix. Failed runs preserve private fixtures and collect bounded, allowlisted request/queue/owner diagnostics without changing deadlines or hiding the original error. Cleanup commands read the existing test URL from the environment. The PGLite loopback endpoint is a fixture transport, not production authentication coverage. Contract and commands: `scripts/persistence/README.md`; smoke entries: `test/persistence-chaos.slow.test.ts`, `test/e2e/persistence-chaos.test.ts`; diagnostic/retention contracts: `test/persistence-failure-diagnostics.test.ts`.
-- `scripts/persistence/{ops,generator,model,crash-robot,robot-driver,shrink,lock-order,history-fixture,would-have-caught}.ts` — the crash robot, a phase of `validate.ts` (`--robot-seconds` ceiling, default 960 PGLite, 1600 Postgres; `--robot-scope=pr|full`, `--explore-day`; CI: `persistence-validation.yml`). `ops.ts` is the JSON op-descriptor protocol between driver and workers: each descriptor names an op kind (put/edit/delete/restore page, remember/forget, takes add/supersede, timeline add, sync, connector publish, revoke access), an actor (the local CLI or a remote agent `verifyAccessToken` resolves), a source, a fixed request id and arguments whose `{ $ref }` values come from earlier observations; workers run each op through its registered handler. Its `retryingRead` retries the robot's reads only across a session drop the `SessionDrops` ledger shows it injected; any other closed connection fails the run. `generator.ts` builds seeded schedules: the fixed cross-boundary sequences (`crossBoundarySequences`: withdrawal then republication, overlapping slugs, competing writers, caller-bound replay, revoked authority, sync/connector races) plus random sequences with concurrent groups. `model.ts` is the temporal oracle: receipts and revisions at the observation point, legal later transitions, late receipts against page history, withdrawal permanence on recall/get_page/facts, source isolation, caller-bound replay, takes/facts fence projections, attribution, orphans, drain and wedge bounds; `EFFECT_SEAMS` maps every `EffectKind` to its trigger op and seam (typecheck-exhaustive). `crash-robot.ts` runs a schedule in-process or as a worker role (`count`, `run` frozen at a `fault-points.ts` seam and SIGKILLed by the driver, `recover`), plus process faults (stale `index.lock`, a hung git commit holding it, Postgres session drops, the owner killed after a `facts-absorb` extraction commits, then the job re-run). `robot-driver.ts` runs one fixed list on every event (a passed run is reusable): each seam the fixed sequences reach (all of them on full PGLite), `ROBOT_RANDOM_SEEDS`, nightly `explorationSeeds(day)`; `over_budget` fails it past the ceiling. Postgres connects through `GBRAIN_PGBOUNCER_URL` when set and, in the `pr` scope, skips the seams and the pooler disconnect fault that can wait out a dead owner's claim lease (`effect:*`, `consumer:prepared`, three publication seams), listed in the manifest as `lease_bound_seams_skipped` and `lease_bound_faults_skipped`. `shrink.ts` is dependency-preserving ddmin accepted on 3/3 reproduction; `--replay`/`--shrink` re-run a manifest's failing runs. `lock-order.ts` traces each transaction's row locks (worktrees before sources, sources by id, no exclusive brain lock in a publication). `history-fixture.ts` exports `buildHistoryFixture(engine, { pages, seed, sources, worktrees })` (real persistence history up to 10k pages; engine graduation, attribution backfill) and `prepareTopology`. `would-have-caught.ts` reverts each fix in `would-have-caught.json` in a scratch worktree and runs the pre-robot gate and robot on it. Tests: `test/persistence-crash-robot.test.ts`, `test/persistence-crash-robot.slow.test.ts` (shrunk regressions in `test/fixtures/crash-robot/`), `test/persistence-history-fixture.test.ts`.
+- `scripts/persistence/{ops,generator,model,crash-robot,robot-driver,shrink,lock-order,history-fixture,would-have-caught}.ts` — the crash robot, a phase of `validate.ts` (`--robot-seconds` ceiling, default 1200 PGLite, 1800 Postgres; `--robot-scope=pr|full`, `--explore-day`; CI: `persistence-validation.yml`). `ops.ts` is the JSON op-descriptor protocol between driver and workers: each descriptor names an op kind (put/edit/delete/restore page, remember/forget, takes add/supersede, timeline add, sync, connector publish, revoke access), an actor (the local CLI or a remote agent `verifyAccessToken` resolves), a source, a fixed request id and arguments whose `{ $ref }` values come from earlier observations; workers run each op through its registered handler. Its `retryingRead` retries the robot's reads only across a session drop the `SessionDrops` ledger shows it injected; any other closed connection fails the run. `generator.ts` builds seeded schedules: the fixed cross-boundary sequences (`crossBoundarySequences`: withdrawal then republication, overlapping slugs, competing writers, caller-bound replay, revoked authority, sync/connector races) plus random sequences with concurrent groups. `model.ts` is the temporal oracle: receipts and revisions at the observation point, legal later transitions, late receipts against page history, withdrawal permanence on recall/get_page/facts, source isolation, caller-bound replay, takes/facts fence projections, attribution, orphans, drain and wedge bounds; `EFFECT_SEAMS` maps every `EffectKind` to its trigger op and seam (typecheck-exhaustive). `crash-robot.ts` runs a schedule in-process or as a worker role (`count`, `run` frozen at a `fault-points.ts` seam and SIGKILLed by the driver, `recover`), plus process faults (stale `index.lock`, a hung git commit holding it, Postgres session drops, the owner killed after a `facts-absorb` extraction commits, then the job re-run). `robot-driver.ts` runs one fixed list on every event (a passed run is reusable): each seam the fixed sequences reach (all of them on full PGLite), `ROBOT_RANDOM_SEEDS`, nightly `explorationSeeds(day)`; `over_budget` fails it past the ceiling. Postgres connects through `GBRAIN_PGBOUNCER_URL` when set and, in the `pr` scope, skips the seams and the pooler disconnect fault that can wait out a dead owner's claim lease (`effect:*`, `consumer:prepared`, three publication seams), listed in the manifest as `lease_bound_seams_skipped` and `lease_bound_faults_skipped`. `shrink.ts` is dependency-preserving ddmin accepted on 3/3 reproduction; `--replay`/`--shrink` re-run a manifest's failing runs. `lock-order.ts` traces each transaction's row locks (worktrees before sources, sources by id, no exclusive brain lock in a publication). `history-fixture.ts` exports `buildHistoryFixture(engine, { pages, seed, sources, worktrees })` (real persistence history up to 10k pages; engine graduation, attribution backfill) and `prepareTopology`. `would-have-caught.ts` reverts each fix in `would-have-caught.json` in a scratch worktree and runs the pre-robot gate and robot on it. Tests: `test/persistence-crash-robot.test.ts`, `test/persistence-crash-robot.slow.test.ts` (shrunk regressions in `test/fixtures/crash-robot/`), `test/persistence-history-fixture.test.ts`.
- `scripts/persistence/{graduation-fixture,graduation-process,graduation-ttv}.ts` — engine graduation test inputs and measurements. `graduation-fixture.ts` builds the 1k/10k history brains (`buildHistoryFixture` plus deterministic chunk vectors) or the hand-built legacy brain (`test/fixtures/graduation/`) in a keyless child process, caches each as a tarball keyed by its source files, schema version, seed and size, and re-homes a restore (database paths, managed-root records, owner stamps re-stamped with the new inode and birth time; sources marked synced). Its report lists bytes, chunks, versions, requests, effects and embeddings. `graduation-process.ts` spawns the real CLI or an older release with an isolated home and no provider keys, with optional boundary hooks, plus MCP stdio/HTTP clients and the JSON contract accessors. `graduation-ttv.ts` times plan to green doctor (five-minute gate at 1k pages; exit 1 under `--enforce`, 3 on a harness crash). Owners: `test/scripts/graduation-fixture.test.ts`, `test/graduation-legacy-fixture.test.ts`, `test/e2e/graduation-{crash,faults,clients,cli}.test.ts`, `tests/heavy/graduation_10k.sh`.
diff --git a/docs/ci-event-parity.md b/docs/ci-event-parity.md
index 336232541c..1f2c3e8bc6 100644
--- a/docs/ci-event-parity.md
+++ b/docs/ci-event-parity.md
@@ -33,7 +33,7 @@ checks ([below](#full-ci-on-pull-requests)), never per-cell matrix names.
| `persistence-validation.yml` | `convergence` selected on pull requests by `scripts/ci-convergence-scope.sh` (test.yml `changes`; never by `package.json` alone) | Named exception | Every merge-queue run and every push to master; the nightly cell runs in `convergence-nightly.yml` |
| `convergence-nightly.yml` | The convergence gate's nightly cell (2,000 pages, 50 ms, 20 kills, run-id seed): schedule and dispatch only, outside `test-status`; the PR cell (200 pages, 10 ms, 6 kills, seed 6650) runs in `persistence-validation.yml` | Named exception | Itself (nightly Convergence schedule) |
| `persistence-validation.yml` | `SOAK_OPERATIONS` 2,500 vs 10,000 | Named exception | Every push to master and the nightly Test schedule |
-| `persistence-validation.yml` | Crash robot `--robot-scope=pr` (Postgres lease-bound seams skipped, 480 s ceiling) vs `full` (960 s PGLite, 1600 s Postgres); the nightly adds that day's exploration seeds | Named exception | The full-ci dispatch, every push to master (same fixed list, so it may reuse that run) and the nightly Test schedule |
+| `persistence-validation.yml` | Crash robot `--robot-scope=pr` (Postgres lease-bound seams skipped, 480 s ceiling) vs `full` (1200 s PGLite, 1800 s Postgres; [ceilings](#crash-robot-ceilings)); the nightly adds that day's exploration seeds | Named exception | The full-ci dispatch, every push to master (same fixed list, so it may reuse that run) and the nightly Test schedule |
| `native-locks.yml` | `inputs.scope` (OpenClaw, musl, Windows probes, Bun 1.4.0 and cross-target cells) | Named exception | Every push to master and the nightly Test schedule (`full`) |
| `e2e.yml` | Doc-only merge-queue entry selects no E2E file | Named exception | Every push to master (whole corpus) and the nightly E2E schedule |
| `e2e.yml` | Full-corpus coverage lanes and their `e2e-status` checks | Named exception | Nightly E2E schedule (or a `full_corpus` dispatch) |
@@ -111,6 +111,32 @@ a push-to-master red opens the Test `master-red` issue, a scheduled red the
dependency. When no fix exists, an ignore entry needs Garry's approval and an
expiry date.
+## Crash robot ceilings
+
+Every crash-robot run executes one fixed schedule list (`scripts/persistence/robot-driver.ts`
+`ROBOT_RANDOM_SEEDS`), so a master push can reuse a passed run of its tree. `--robot-seconds`
+is a ceiling, not a budget: a run past it fails with `over_budget` instead of covering less.
+Each cell writes its elapsed time as a share of its ceiling to the job summary, so drift
+shows long before a run fails.
+
+Measured on ubicloud-standard-4, full scope, run 39996381819:
+
+| Cell | Wall | Cross-boundary crashes | Process faults | 8 random seeds |
+|---|---|---|---|---|
+| pglite / Bun 1.4.0 | 724 s | 89 runs, 494 s | 67 s | 128 s |
+| pglite / Bun 1.4.4 | 880 s | 89 runs, 618 s | 72 s | 157 s |
+| postgres / Bun 1.4.0 | 1,290 s | 27 runs, 884 s | 188 s | 190 s |
+| postgres / Bun 1.4.4 | 967 s | 27 runs, 767 s | 68 s | 100 s |
+
+- **PGLite, 1200 s.** The slowest cell ran 880 s. The nightly's two exploration seeds
+ add about 45 s, and the slower cells in the previous week's manifests project to
+ about 985 s. 1200 s is that projection plus about 20%.
+- **Postgres, 1800 s.** The slowest cell ran 1,290 s, including one 128 s wait for a
+ dead owner's effect-claim lease on a random seed. A nightly with two such waits
+ lands near 1,550 s, and 1800 s is that plus about 15%.
+- **Pull requests, 480 s.** Scope `pr` crashes each seam once and skips the Postgres
+ lease-bound seams.
+
## Cost of parity
Measured from the 15 latest green pull-request Test runs before parity (job
diff --git a/scripts/persistence/validate.ts b/scripts/persistence/validate.ts
index 8288595935..d00d956040 100644
--- a/scripts/persistence/validate.ts
+++ b/scripts/persistence/validate.ts
@@ -1,6 +1,6 @@
import assert from 'node:assert/strict';
import { createHash, randomUUID } from 'node:crypto';
-import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
+import { appendFileSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { availableParallelism, loadavg, tmpdir, totalmem } from 'node:os';
import { basename, dirname, join, resolve } from 'node:path';
import postgres from '#postgres'
@@ -14,7 +14,7 @@ import { shrinkRun } from './shrink.ts';
export interface ValidationOptions {
engine: 'pglite' | 'postgres'; schedules?: number; operations?: number; seed?: number;
crashes?: boolean; databaseUrl?: string; manifest?: string;
- /** Crash-robot ceiling in seconds: a run past it fails; omitted or 0 skips the phase (the CLI defaults to 960 on PGLite, 1600 on Postgres). */
+ /** Crash-robot ceiling in seconds: a run past it fails; omitted or 0 skips the phase (the CLI defaults to 1200 on PGLite, 1800 on Postgres). */
robotSeconds?: number;
/** `pr` skips the Postgres lease-bound seams; `full` (default) crashes every seam. */
robotScope?: RobotScope;
@@ -85,6 +85,12 @@ export function robotOverBudget(durationMs: number, seconds: number): string {
+ 'no longer fits this runner class. Fix: find the slow runs in the manifest; speed them up, or resize the list and the ceiling together.';
}
+/** One line per robot cell for the job summary: elapsed time as a share of the ceiling, so drift shows long before it fails. */
+export function robotCeilingUse(engine: string, scope: RobotScope, durationMs: number, seconds: number): string {
+ const elapsed = Math.round(durationMs / 1000);
+ return `Crash robot ${engine} (${scope}): ${elapsed} s of its ${seconds} s ceiling (${Math.round(100 * durationMs / (seconds * 1000))}%)\n`;
+}
+
/** The failing runs plus the exact command that replays them and the one that shrinks the first. */
export function robotFailure(failing: RobotRun[], options: ValidationOptions): string {
const manifest = options.manifest ?? `.context/persistence-${options.engine}-manifest.json`;
@@ -166,6 +172,9 @@ export async function runValidation(options: ValidationOptions) {
if (options.robotSeconds) {
manifest.robot = await runRobotPhase(robotOptions());
process.stderr.write(`[persistence] ${options.engine}: crash robot ran ${manifest.robot.sequences_x_crash_points} sequence x crash point runs over ${manifest.robot.schedules} schedules\n`);
+ const use = robotCeilingUse(options.engine, options.robotScope ?? 'full', manifest.robot.duration_ms, options.robotSeconds);
+ process.stderr.write(`[persistence] ${use}`);
+ if (process.env.GITHUB_STEP_SUMMARY) appendFileSync(process.env.GITHUB_STEP_SUMMARY, use);
if (manifest.robot.failing_runs.length) throw new Error(robotFailure(manifest.robot.failing_runs, options));
if (manifest.robot.over_budget) throw new Error(robotOverBudget(manifest.robot.duration_ms, options.robotSeconds));
}
@@ -282,7 +291,7 @@ if (import.meta.main) {
assert(['pr', 'full'].includes(args.get('robot-scope') ?? 'full'), '--robot-scope is pr or full');
const result = await runValidation({ engine, schedules: Number(args.get('schedules') ?? 1000), operations: Number(args.get('operations') ?? 10_000),
seed: Number(args.get('seed') ?? 5105), crashes: !args.has('no-crashes'), databaseUrl: process.env.DATABASE_URL,
- robotSeconds: Number(args.get('robot-seconds') ?? (engine === 'postgres' ? 1600 : 960)),
+ robotSeconds: Number(args.get('robot-seconds') ?? (engine === 'postgres' ? 1800 : 1200)),
robotScope: (args.get('robot-scope') ?? 'full') as RobotScope, exploreDay: args.has('explore-day') ? Number(args.get('explore-day')) : undefined, replay: args.get('replay') || undefined, shrink: args.get('shrink') || undefined,
manifest: args.get('manifest') ?? `.context/persistence-${engine}-manifest.json` });
process.stdout.write(`${JSON.stringify(result, null, 2)}\n`);
diff --git a/test/persistence-crash-robot.test.ts b/test/persistence-crash-robot.test.ts
index f92c21fa51..494e71aac8 100644
--- a/test/persistence-crash-robot.test.ts
+++ b/test/persistence-crash-robot.test.ts
@@ -21,7 +21,7 @@ import { descriptor, executeOp, parseDescriptor, SessionDrops } from '../scripts
import { ReferenceModel } from '../scripts/persistence/model.ts';
import { crossBoundarySequences, pageBody, randomSchedule } from '../scripts/persistence/generator.ts';
import { ROBOT_RANDOM_SEEDS, ROBOT_ROTATION_SEEDS, ROBOT_TOPOLOGY, explorationSeeds, restrict, runRobotPhase, type RobotRun } from '../scripts/persistence/robot-driver.ts';
-import { robotFailure, robotFullGate, robotOverBudget, runValidation, spawnWorker } from '../scripts/persistence/validate.ts';
+import { robotCeilingUse, robotFailure, robotFullGate, robotOverBudget, runValidation, spawnWorker } from '../scripts/persistence/validate.ts';
import { faultPoint, installFaultHook, type FaultDetail, type FaultPoint } from '../src/core/persistence/fault-points.ts';
import { shrinkRun } from '../scripts/persistence/shrink.ts';
import { finish, fixedChunks, LEVEL_CHUNK_BYTES, runSchedule, runSteps, seamCounter } from '../scripts/persistence/crash-robot.ts';
@@ -629,6 +629,11 @@ describe('every robot run covers a fixed schedule list (reuse of a passed run is
expect(robotOverBudget(1_234_000, 960)).toMatch(/over its ceiling: ran 1234 s against --robot-seconds=960/);
});
+ test('each cell reports its elapsed time as a share of its ceiling for the job summary', () => {
+ expect(robotCeilingUse('pglite', 'full', 880_400, 1200)).toBe('Crash robot pglite (full): 880 s of its 1200 s ceiling (73%)\n');
+ expect(robotCeilingUse('postgres', 'pr', 1_900_000, 1800)).toBe('Crash robot postgres (pr): 1900 s of its 1800 s ceiling (106%)\n');
+ });
+
test('the nightly adds one rotation seed (each within four nights) and one never-run seed after the fixed list', async () => {
const days = [0, 1, 2, 3].map(d => explorationSeeds(20_000 + d));
expect(new Set(days.map(([rotation]) => rotation))).toEqual(new Set(ROBOT_ROTATION_SEEDS));
diff --git a/test/scripts/data-safety-native-workflow.test.ts b/test/scripts/data-safety-native-workflow.test.ts
index 5e0a81b3e5..4b35ee5967 100644
--- a/test/scripts/data-safety-native-workflow.test.ts
+++ b/test/scripts/data-safety-native-workflow.test.ts
@@ -324,7 +324,7 @@ describe('data-safety native CI coverage', () => {
}
});
- test('the crash robot runs a fixed list beside the soak: scope pr under 480 s on pull requests, full under 960/1600 s elsewhere, exploration nightly, Postgres through PgBouncer', () => {
+ test('the crash robot runs a fixed list beside the soak: scope pr under 480 s on pull requests, full under 1200/1800 s elsewhere, exploration nightly, Postgres through PgBouncer', () => {
const persistence = load(readFileSync(join(import.meta.dir, '../../.github/workflows/persistence-validation.yml'), 'utf8')) as {
jobs: { 'crash-robot': { steps: Step[]; services: Record<string, { env?: Record<string, string> }> } };
};
@@ -332,7 +332,7 @@ describe('data-safety native CI coverage', () => {
expect(job.services.pgbouncer?.env?.POOL_MODE).toBe('transaction');
const step = job.steps.find(entry => entry.run?.includes('scripts/persistence/validate.ts'));
expect(step?.env?.ROBOT_SCOPE).toBe("${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && 'pr' || 'full' }}");
- expect(step?.env?.ROBOT_SECONDS).toBe("${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && '480' || (matrix.engine == 'postgres' && '1600' || '960') }}");
+ expect(step?.env?.ROBOT_SECONDS).toBe("${{ (github.event_name == 'pull_request' || github.event_name == 'merge_group') && '480' || (matrix.engine == 'postgres' && '1800' || '1200') }}");
expect(step?.env?.ROBOT_EXPLORE).toBe("${{ github.event_name == 'schedule' && 'nightly' || '' }}");
expect(step?.env?.GBRAIN_PGBOUNCER_URL).toContain(':55433/');
const argv = (env: Record<string, string>) => Bun.spawnSync(['bash', '-e', '-o', 'pipefail', '-c', `
@@ -342,8 +342,8 @@ describe('data-safety native CI coverage', () => {
const head = ['--no-env-file', 'scripts/persistence/validate.ts', '--engine=postgres', '--schedules=0', '--operations=0', '--no-crashes'];
expect(argv({ ROBOT_SCOPE: 'pr', ROBOT_SECONDS: '480', ROBOT_EXPLORE: '' })).toEqual([...head, '--robot-scope=pr', '--robot-seconds=480',
'--manifest=.context/persistence-robot.json']);
- const nightly = argv({ ROBOT_SCOPE: 'full', ROBOT_SECONDS: '1600', ROBOT_EXPLORE: 'nightly' });
- expect(nightly.slice(0, -2)).toEqual([...head, '--robot-scope=full', '--robot-seconds=1600']);
+ const nightly = argv({ ROBOT_SCOPE: 'full', ROBOT_SECONDS: '1800', ROBOT_EXPLORE: 'nightly' });
+ expect(nightly.slice(0, -2)).toEqual([...head, '--robot-scope=full', '--robot-seconds=1800']);
expect(nightly.at(-2)).toBe(`--explore-day=${Math.floor(Date.now() / 86_400_000)}`);
expect(nightly.at(-1)).toBe('--manifest=.context/persistence-robot.json');
});