From 5962e5a945a735d8ca054a70252d7dd47166cd74 Mon Sep 17 00:00:00 2001
From: Zhenhao Liu <3100378030@qq.com>
Date: Wed, 25 Nov 2026 22:46:40 +0800
Subject: [PATCH] Fix run recovery, exact check evidence, and proof search
histories
---
apps/web/client/researchLibraryTrial.tsx | 11 +-
apps/web/client/trajectoryView.tsx | 20 ++--
apps/web/collaboration.ts | 2 +
apps/web/i18n/errors.ts | 4 +-
apps/web/jobs.ts | 55 ++++++----
apps/web/researchLibraryTrialTypes.ts | 2 +-
apps/web/researchLibraryTrials.ts | 15 +--
apps/web/runner.ts | 17 +--
apps/web/sample.ts | 10 +-
apps/web/server.ts | 20 ++--
apps/web/shared.ts | 5 +-
apps/web/storage.ts | 16 ++-
apps/web/trajectory.ts | 109 +++++++++++++++-----
apps/web/worker.ts | 7 +-
apps/web/workerBridge.ts | 62 +++++++----
scripts/test-web-research-library-trials.ts | 29 +++++-
scripts/test-web-trajectory.ts | 46 +++++++++
src/math/leanProofSearch.ts | 44 +++++---
src/math/mathRuntimeIo.ts | 6 +-
src/math/proofSearchCheckpointPath.ts | 14 +++
src/solver/cooperation.ts | 7 +-
src/solver/cooperationCore.ts | 16 +--
src/solver/cooperationInputs.ts | 11 +-
src/solver/nextCheckContract.ts | 3 +
src/solver/nextChecks.ts | 49 ++++++---
src/solver/proofSearchRecords.ts | 57 ++++++----
src/solver/proofSearchTool.ts | 22 ++--
tests/nextCheckExecution.test.ts | 16 ++-
tests/proofSearchRuntime.test.ts | 46 ++++++++-
tests/proofSearchTool.test.ts | 25 ++++-
tests/webCollaboration.test.ts | 31 +++++-
tests/webJobs.test.ts | 17 +++
tests/webLifecyclePersistence.test.ts | 53 ++++++++++
tests/webRunner.test.ts | 15 ++-
tests/webTrajectory.test.ts | 24 +++++
tests/webWorkerBridge.test.ts | 59 ++++++++++-
36 files changed, 741 insertions(+), 204 deletions(-)
create mode 100644 src/math/proofSearchCheckpointPath.ts
diff --git a/apps/web/client/researchLibraryTrial.tsx b/apps/web/client/researchLibraryTrial.tsx
index 8f8d0440..b9ce37cf 100644
--- a/apps/web/client/researchLibraryTrial.tsx
+++ b/apps/web/client/researchLibraryTrial.tsx
@@ -22,7 +22,7 @@ export function LibraryTrial({ release, context }: { release: ResearchAssetRelea
: <>
{tx('当前没有保存了定理源码的可试用任务。先打开一次研究;项目任务需要候选证明权限。', 'No eligible task with saved theorem source is available. Open a research run first; project tasks require proof submission permission.')}
} {targets.data && Boolean(available.length) &&