diff --git a/benchmarks/harbor/reports/en/terminal-bench-wal-walkthrough.html b/benchmarks/harbor/reports/en/terminal-bench-wal-walkthrough.html new file mode 100644 index 0000000..26a94a7 --- /dev/null +++ b/benchmarks/harbor/reports/en/terminal-bench-wal-walkthrough.html @@ -0,0 +1,871 @@ + + + + + + + +How an agent recovered 11 records · A Terminal-Bench walkthrough + + + + +
+
+ nanoPyCodeAgentThe execution notebook + +
+
+
+
+
Terminal-Benchdb-wal-recovery
+

Inside an agent’s
database rescue.

+

Follow Pi + DeepSeek through Harbor’s db-wal-recovery task: inspect the files, repair the encoding, export the data, and face the official verifier.

+

Recorded on November 4, 2026. Restricted network.

+
+ +
+
+

Watch the work unfold.

37.10 sagent time8tool calls7 / 7tests passed
+
+
+ Harbor + Agent + Terminal + Verifier +
+ +
+ +
+
+
+
+
+
+
+
+ +
+

Explanations are an editorial account of recorded actions; commands and results are verbatim. Playback uses a teaching pace. T+ is measured from agent startup (15:22:15.253887 UTC), not playback time.

Focus the walkthrough to use ← →
+

+ +
+
How the pieces fit

Who sets the task, solves it, and scores it?

Terminal-BenchDefines the task

Supplies the database and WAL, and requires complete recovery.

HarborOrchestrates the run

Prepares the container, starts the agent, collects artifacts, then runs the verifier.

Pi + DeepSeekSolves the task

The model proposes actions; Pi executes tools and returns observations for the next turn.

Read task → Choose action → Execute tool → Observe result → Continue → Submit artifacts → Official verification

+
Try the byte operation

One XOR turns encoded bytes into a readable header.

Try it with the first four bytes from the log. XOR with the same key twice restores the original value. This button changes the display only; it does not execute the recorded commands.

Encoded WAL header
753d44c0
⊕ 0x42

75 3d 44 c0 matches the log. Click to see the decoded value of each byte.

The actual validation chain: byte clues → decoded header → 11 rows read by SQLite → official tests pass.

+
Files and verification

Inspectable artifacts. Traceable conclusions.

Submitted artifact

/app/recovered.json

All 11 records from the original tool output
idnamevalue
01apple150
02banana250
03cherry300
04date400
05elderberry500
06fig600
07grape700
08honeydew800
09kiwi900
10lemon1000
11mango1100

Official verification passed

Test names below come from the verifier log

  • test_recovered_json_exists
  • test_recovered_json_is_valid
  • test_recovered_data_structure
  • test_recovered_data_sorted
  • test_recovered_data_completeness
  • test_no_duplicate_ids
  • test_wal_was_decrypted

Integrity review: clear

Only api.deepseek.com was on the external-host allowlist during model work. All 8 tool calls and results were reviewed; no reference retrieval, hidden-test access, or verifier interference was observed. This conclusion comes from the existing evidence review, not just passing tests.

This is a development case selected using prior results, not an estimate of the overall Terminal-Bench pass rate. It uses restricted-v1 and must remain separate from historical open-network baselines.

Recorded usage

51,903 input tokens (including 45,696 cached) · 4,794 output tokens · Estimated $0.007889076 (not reconciled to billing)

The 37 seconds cover only agent execution.

The formal job also spent about 419 seconds on setup and 40 seconds on verification. Environment creation and teardown are excluded from these three intervals.

Setup & preflight419.07 s
Agent execution37.10 s
Official verification40.25 s

The WAL dependency profile was not_configured; it must not be presented as a passed dependency-profile preflight. Network integrity preflight passed. Official pytest itself took 0.05 seconds; 40.25 seconds covers the whole verifier phase.

+
Source records

Follow the presentation back to the record.

This page embeds all 8 tool inputs and results, the task, and the final response. It excludes private model reasoning and environment credentials. Playback works offline; repository evidence links require the original directory structure.

Expand source paths and SHA256 hashes

All three original source files used by this page were checked against the existing WAL freeze manifest. Original logs remain in the local jobs/ directory.

Trial
db-wal-recovery__uagkCMG
Task ref
sha256:07e9193513bfce038b9f9d84962ecc85683eee0a642d14ee6fb7104b086ddab4
WAL freeze SHA256
f3558c60b13586c117534c8e753d1ebd5f7ee29aaf6b295b6520b0a81855ea5b
jobs/pi-restricted-dev2-db-wal-recovery-20261104/db-wal-recovery__uagkCMG/agent/pi/sessions/2026-11-04T15-22-15-880Z_01a1a727-57c8-7109-9b30-3424a8875e32.jsonl
c9b45294fa3649ea83b65d9e96277ab603731321646a359df898661d175e5d86
jobs/pi-restricted-dev2-db-wal-recovery-20261104/db-wal-recovery__uagkCMG/verifier/test-stdout.txt
3662ed4c22f6debeda504e5d4d104963e3a7acee1f8b7a4c514246bba7f8e306
jobs/pi-restricted-dev2-db-wal-recovery-20261104/db-wal-recovery__uagkCMG/result.json
ea962fa5683951d2537d7bcb96b3af3b26e779afad30c9b8e07c72d4a9a7cf2a
+ +
+ +
+ + + + + diff --git a/benchmarks/harbor/reports/zh-CN/terminal-bench-wal-walkthrough.html b/benchmarks/harbor/reports/zh-CN/terminal-bench-wal-walkthrough.html new file mode 100644 index 0000000..330f2b3 --- /dev/null +++ b/benchmarks/harbor/reports/zh-CN/terminal-bench-wal-walkthrough.html @@ -0,0 +1,871 @@ + + + + + + + +Agent 如何找回 11 条记录 · Terminal-Bench 实例回放 + + + + +
+
+ nanoPyCodeAgent一次解题的现场记录 + +
+
+
+
+
Terminal-Benchdb-wal-recovery
+

跟着 agent,
修复一份数据库。

+

跟随 Pi + DeepSeek,走进 Harbor 中的 db-wal-recovery:从检查文件、修复编码,到导出数据并接受官方验证。

+

2026 年 11 月 4 日的真实运行,使用受限网络。

+
+ +
+
+

把一次解题,展开来看。

37.10 sagent 执行8次工具调用7 / 7官方测试通过
+
+
+ Harbor + Agent + 终端 + Verifier +
+ +
+ +
+
+
+
+
+
+
+
+ +
+

说明文字按已记录的操作整理;命令和返回结果保留原文。播放使用教学节奏。T+ 从 agent 启动时刻(15:22:15.253887 UTC)计算,不是播放计时。

聚焦回放区后可用 ← → 切换
+

+ +
+
理解各个角色

谁出题,谁解题,谁判分?

Terminal-Bench提供题目

给定数据库与 WAL,要求恢复完整数据。

Harbor组织运行

准备容器、启动 agent、收集产物,再运行 verifier。

Pi + DeepSeek执行解题

模型提出操作,Pi 执行工具,把结果送回下一轮。

读取任务 → 选择操作 → 执行工具 → 观察结果 → 继续操作 → 提交产物 → 官方验证

+
亲手试试这次字节变换

一次 XOR,让“乱码”回到可读状态。

用日志里的前 4 个字节做一个小演示。XOR 同一个键两次会恢复原值;这里点击按钮只改变展示,不会执行日志里的命令。

编码后的 WAL 文件头
753d44c0
⊕ 0x42

75 3d 44 c0 与日志一致。点击查看每个字节解码后的结果。

真正的验证链:字节线索 → 解码头部 → SQLite 读出 11 行 → 官方测试通过。

+
交付文件与验证

可检查的产物,可追溯的结论。

实际提交的文件

/app/recovered.json

原始工具输出中的全部 11 条记录
idnamevalue
01apple150
02banana250
03cherry300
04date400
05elderberry500
06fig600
07grape700
08honeydew800
09kiwi900
10lemon1000
11mango1100

官方验证通过

以下测试名来自 verifier 日志

  • test_recovered_json_exists
  • test_recovered_json_is_valid
  • test_recovered_data_structure
  • test_recovered_data_sorted
  • test_recovered_data_completeness
  • test_no_duplicate_ids
  • test_wal_was_decrypted

完整性审查:clear

模型阶段仅 api.deepseek.com 在外部主机白名单中;审查了全部 8 次工具调用及其结果,未观察到参考答案获取、隐藏测试读取或 verifier 干扰。完整性结论来自既有证据审查,不是仅凭通过测试推断。

这是一条按既有结果选出的开发案例,不代表整个 Terminal-Bench 的通过率。它属于 restricted-v1,不能与历史开放网络基线混合统计。

记录中的用量

输入 51,903 tokens(含缓存 45,696) · 输出 4,794 tokens · 估算 $0.007889076(未核对账单)

37 秒只计算 agent 阶段。

正式作业另外花费约 419 秒安装、约 40 秒运行 verifier;环境创建与收尾不计入下列三段。

安装与预检419.07 s
Agent 执行37.10 s
官方验证40.25 s

WAL 的依赖 profile 为 not_configured,不能把它描述为通过了依赖 profile 预检;网络完整性预检通过。官方 pytest 自身耗时 0.05 秒,40.25 秒是整个 verifier 阶段。

+
证据来源

从展示回到原始记录。

本页内嵌全部 8 次调用的命令与返回结果、题面及最终回复;不包含私有模型推理或环境凭据。文件独立打开即可回放,仓库证据链接需要保留原目录结构。

展开来源路径与 SHA256

本页使用的三份原始文件均已与既有 WAL 冻结清单逐项核对。原始日志仍保留在本机 jobs/ 中。

Trial
db-wal-recovery__uagkCMG
Task ref
sha256:07e9193513bfce038b9f9d84962ecc85683eee0a642d14ee6fb7104b086ddab4
WAL freeze SHA256
f3558c60b13586c117534c8e753d1ebd5f7ee29aaf6b295b6520b0a81855ea5b
jobs/pi-restricted-dev2-db-wal-recovery-20261104/db-wal-recovery__uagkCMG/agent/pi/sessions/2026-11-04T15-22-15-880Z_01a1a727-57c8-7109-9b30-3424a8875e32.jsonl
c9b45294fa3649ea83b65d9e96277ab603731321646a359df898661d175e5d86
jobs/pi-restricted-dev2-db-wal-recovery-20261104/db-wal-recovery__uagkCMG/verifier/test-stdout.txt
3662ed4c22f6debeda504e5d4d104963e3a7acee1f8b7a4c514246bba7f8e306
jobs/pi-restricted-dev2-db-wal-recovery-20261104/db-wal-recovery__uagkCMG/result.json
ea962fa5683951d2537d7bcb96b3af3b26e779afad30c9b8e07c72d4a9a7cf2a
+ +
+ +
+ + + + +