8000 OfficeQA through Harbor in the OfficeQA paper's evaluation by illusoryw · Pull Request #128 · Infini-AI-Lab/hermit · GitHub
[go: up one dir, main page]

Skip to content

OfficeQA through Harbor in the OfficeQA paper's evaluation - #128

Merged
iamziyuzhao merged 4 commits into
Infini-AI-Lab:mainfrom
illusoryw:feat/officeqa-harbor-paper-eval
Nov 28, 2026
Merged

iamziyuzhao merged 4 commits into
Infini-AI-Lab:mainfrom
illusoryw:feat/officeqa-harbor-paper-eval

Conversation

@illusoryw
@illusoryw illusoryw commented Nov 25, 2026 •
Copy link
Copy Markdown
Contributor

Change

Adds examples/officeqa_harbor/: Harbor's 246 OfficeQA tasks (harbor-datasets datasets/officeqa at 37db108), each
in its own Harbor environment, evaluated as the OfficeQA paper evaluates agents.
examples/officeqa/ runs OfficeQA in the SkillOpt paper's setting instead, and Harbor's own copy of the tasks asks for
/app/answer.txt scored at 1%; neither is the paper's evaluation.

  • utils/prepare.py rewrites the tasks: the paper's agent prompt (Appendix E.5), the paper's scorer (the tasks' own
    reward.py, databricks/officeqa at 2a2c3b0) on the final message's <FINAL_ANSWER> at a 0.0% relative error
    (0.1%, 1%, 5% recorded beside it), the corpus image with Codex, an agent allowlist of the model's hosts and no network
    for the verifier, no answer source and no oracle. The tasks it writes must match the committed dataset.lock.
  • baseline/codex.yaml (Codex, GPT-5.6-Luna) and baseline/claude.yaml (Claude Code, Claude Haiku 5.5) evaluate no
    adapter on the 172 test questions of a split of 50 train, 24 validation and 172 test questions
    (SkillOpt's), as the other Harbor benchmarks' baselines do.

Differences from the paper (details in docs/recipes/officeqa_harbor.md):

The paper Here
Data, scorer OfficeQA and reward.py as of 2026-03 The same (later revisions not taken)
Prompt Appendix E.5 The same, without the web-search sentence; the corpus path changed
Web search Yes No
Reported on OfficeQA Pro (133) All 172 test questions, and the 93 OfficeQA Pro questions within them
Agents Claude Agent SDK, Codex SDK, Gemini CLI Hermit's Codex or Claude Code agent

Validation

On 9bea557 (this head), Python 3.12, Linux, Docker, Harbor 0.25.0:

  • python -m pytest --changed against main: 1208 passed, 112 skipped, 1 failed. The one failure,
    tests/core/test_harbor_environment.py::test_rrsi_sees_a_harbor_rollouts_failure_and_a_cli_model_is_refused_for_harbor,
    fails with ModuleNotFoundError: No module named 'rrsi': it imports the RRSI Evolver, which needs the rrsi
    dependency group, not installed in this environment, and the test does not skip without it. It fails the same way
    on main; this change does not touch it.

  • python -m pytest examples/officeqa_harbor/utils/tests tests/core/test_harbor_examples.py --durations=0: 113 passed
    in 3.4 s (the example's 22 tests take 1.4 s together; the slowest,
    test_a_failed_image_build_keeps_the_last_successful_setup, 0.44 s).

  • bash docs/build.sh: built, no warnings. pre-commit run --all-files: all hooks passed.

  • python examples/officeqa_harbor/utils/prepare.py: 246 tasks, matching dataset.lock, the image built; the index
    is byte-identical to the previous setup's and utils/.staging/ is gone.

  • The offline walkthrough of CONTRIBUTING.md, on 9bea557:

    • hermit check --config docs/_examples/first_training/run.yaml: exit 0, every item [ok] (one warning:
      sandbox.enforce is best_effort, as the walkthrough's config sets it).
    • hermit train --config docs/_examples/first_training/run.yaml: exit 0, completed all epochs, 2 steps,
      first-training/final.
    • hermit eval --config docs/_examples/first_training/run.yaml --adapter final: exit 0, mean_score 1.0 on 2 tasks,
      0 errors.
  • Smoke, hermit eval --config examples/officeqa_harbor/baseline/codex.yaml --adapter none data.test=../utils/splits/smoke.txt trainer.run_name=codex-smoke
    (config):
    mean_score 0.5, errors 0, 129 s, on bbe376f, an earlier head of this PR (since then only how prepare.py
    replaces a setup and the docs changed; the tasks it prepares are the same). The records (baseline/runs/codex-smoke/eval/none/, git-ignored as
    CONTRIBUTING.md asks), one row each:

    Question Status 0.0% 0.1% 1% 5% Tokens Trial (jobs_dir)
    officeqa-uid0001 ok 1 1 1 1 1,287k officeqa-uid0001__2be6578f
    officeqa-uid0027 ok 0 0 0 1 208k officeqa-uid0027__8041f360
    officeqa-uid0039 ok 0 1 1 1 199k officeqa-uid0039__001e6cd3
    officeqa-uid0041 ok 1 1 1 1 250k officeqa-uid0041__9960c287
    The smoke's records: summary.json and each record of results.jsonl (without its output, the agent's final message)
    {"adapter": "none", "commit": null, "tasks": 4, "repeats": 1, "mean_score": 0.5, "solved_once": 0.5,
     "cost_usd": null, "unknown_cost_tasks": 4, "errors": 0, "wall_s": 128.9}
    {"id": "officeqa-uid0001", "status": "ok", "error": null, "judge": {"score": 1.0, "feedback": "passed", "extra": {"status": "ok", "passed": true, "rewards": {"reward": 1.0, "reward_0.1pct": 1.0, "reward_1pct": 1.0, "reward_5pct": 1.0}}}, "tokens": 1286606, "wall_s": 105.2, "trial": "officeqa-uid0001__2be6578f"}
    {"id": "officeqa-uid0027", "status": "ok", "error": null, "judge": {"score": 0.0, "feedback": "reward 0\nverifier output (tail):\nFAIL: final answer '3169'", "extra": {"status": "ok", "passed": false, "rewards": {"reward": 0.0, "reward_0.1pct": 0.0, "reward_1pct": 0.0, "reward_5pct": 1.0}}}, "tokens": 208398, "wall_s": 81.8, "trial": "officeqa-uid0027__8041f360"}
    {"id": "officeqa-uid0039", "status": "ok", "error": null, "judge": {"score": 0.0, "feedback": "reward 0\nverifier output (tail):\nFAIL: final answer '180724'", "extra": {"status": "ok", "passed": false, "rewards": {"reward": 0.0, "reward_0.1pct": 1.0, "reward_1pct": 1.0, "reward_5pct": 1.0}}}, "tokens": 198748, "wall_s": 64.5, "trial": "officeqa-uid0039__001e6cd3"}
    {"id": "officeqa-uid0041", "status": "ok", "error": null, "judge": {"score": 1.0, "feedback": "passed", "extra": {"status": "ok", "passed": true, "rewards": {"reward": 1.0, "reward_0.1pct": 1.0, "reward_1pct": 1.0, "reward_5pct": 1.0}}}, "tokens": 250169, "wall_s": 65.4, "trial": "officeqa-uid0041__9960c287"}

    trial is the record's judge.extra.trial_dir under jobs_dir.

  • Baseline, Codex, the 172 test questions, 2026-11-25, with the agent, environment, judge and test split of
    baseline/codex.yaml
    (all 172 the agent's result; records git-ignored as above, aggregates in the README's Results): 58.1% on all 172
    test questions and 43.0% on the 93 OfficeQA Pro questions within that same run.

    All 172 test questions, 0.0% (± SE) 0.1% 1% 5% The 93 OfficeQA Pro questions of the same run, 0.0% (± SE)
    58.1% ± 3.8 60.5% 69.2% 74.4% 43.0% ± 5.1
  • Not verified: baseline/claude.yaml has not been run (its config loads and passes the Harbor environment's checks in
    the tests).

Review

  • Tests and documentation cover the affected behavior, where applicable. Tests:
    examples/officeqa_harbor/utils/tests/test_prepare_and_verifier.py and the officeqa_harbor entry of
    tests/core/test_harbor_examples.py. Documentation: examples/officeqa_harbor/README.md, its
    utils/task-info/README.md, docs/recipes/officeqa_harbor.md (with its entries in docs/index.md and
    docs/recipes/index.md), examples/README.md (Harbor benchmarks), docs/framework/task.md, CHANGELOG.md.

  • Commands, defaults, and public interfaces are consistent. No command, default or interface changes.

  • Agents follow the agent layers: model calls through Layer 1, where an agent
    runs is its environment, a benchmark's own agent subclasses a core agent in its example folder. No new agent:
    the configs use the Codex and Claude Code Base Agents, running in each task's Harbor environment
    (environment.harbor).

  • Shared logs and examples contain no credentials or private data. No run records are committed; the prepared
    tasks (which hold the answers) are git-ignored.

  • Documentation-only: links the issue where it was discussed with the core team. Not applicable.

  • Core changes. None under hermit/. tests/core/test_harbor_examples.py adds officeqa_harbor to its list
    of Harbor benchmarks (no method), so the shared checks of every Harbor benchmark's configs run on it.

  • Implementation correctness and failures. Traced: the config's environment.harbor settings to Harbor's trial
    (agent_timeout_sec → override_timeout_sec 3600, the allowlist hosts, the verifier's no-network), seen in the
    smoke trials' config.json; the verifier's paths in judge.py. A scorer that fails, or a task without an expected
    answer, writes no reward, so the run records agent_error (verifier_failed) and scores 0, not a wrong answer;
    an empty or missing final answer is the agent's 0. prepare.py writes to utils/.staging/ and replaces the
    previous tasks, index and lock only after the lock check and the image build passed, so a failed rebuild leaves
    the last successful setup usable. The smoke found the image's codex --version warning on stderr (a temp dir the
    build left in /root/.codex), which Harbor read as the version, reinstalling Codex past the setup timeout; the
    Dockerfile removes it, and the smoke was rerun on that image.

  • Real execution paths and tests. The smoke and the baseline go through hermit eval with real Codex sessions
    in Harbor's environments, and their records are read as the README states (mean_score, judge.extra.rewards);
    prepare.py ran on the real data; the offline walkthrough trains and evaluates through the standard CLI.
    The verifier's tests run the real judge.py against a stand-in reward.py with the two functions of
    databricks/officeqa at 2a2c3b0, and once against the tasks' real reward.py (skipped when the tasks are not
    prepared).

  • Documentation. As in the first item.

  • This description. Read end to end against the code at 9bea557 and the smoke's records.

  • Task directories. Harbor's task directories, rewritten by prepare.py. Not through
    python -m hermit.harbor.dataset prepare: OfficeQA is not in Harbor's registry at that commit, so no
    dataset.ref names it. Run in Harbor's environments with hermit.task.verify.

  • Public and private halves. No data.view. The rows (utils/tasks.jsonl) hold the instruction, the task's
    settings (image, resources, network, timeouts) and its metadata (source_id, difficulty, category, tags),
    without source_files/source_docs. The expected answer, reward.py and judge.py are only in each task's
    tests/, uploaded after the agent stopped. The judge's feedback shows the verdict and the agent's own final
    answer (passed, or FAIL: final answer '…'), never the expected one; the record's judge.extra.rewards also
    holds the verdicts at 0.1%, 1% and 5%, so a reader learns how close a wrong answer came.

  • What a task asks. Each task.toml: agent network_mode = "allowlist" (chatgpt.com, auth.openai.com;
    the run adds its model's hosts), verifier no-network, 1 CPU and 8 GB, which the configs do not override.
    Effective timeouts:

    | | `task.toml` | The run |
    |---|---|---|
    | Agent | 1800 s | `environment.harbor.agent_timeout_sec` 3600 s (`utils/benchmark.yaml`); `agent.timeout_min` unset; Hermit ends the session 60 s before, 3540 s |
    | Verifier | 300 s | 300 s |
    | Environment build | 600 s | 600 s |
    
  • Parity, for a moved benchmark. Not applicable: a new benchmark; examples/officeqa/ is unchanged.

  • A real run. The smoke above, through hermit eval, with its records in the Validation section (git-ignored
    as CONTRIBUTING.md asks, so given there rather than linked); no infrastructure error.

  • Group and selection. The example's tests are in its own examples/officeqa_harbor/utils/tests/; --changed
    selects them (22 collected). No new helper or fixture directory.

  • Names. Each name states the behaviour, e.g. test_a_task_without_an_expected_answer_is_a_verifier_failure,
    test_the_image_keeps_no_codex_home_from_its_build, test_a_failed_image_build_keeps_the_last_successful_setup.

  • Docstrings. The file opens with what it covers (the baseline config, prepare.py's rewrite, the verifier),
    its stand-in (the OfficeQA reward.py) and "no network, no Harbor"; tests whose reason is not in the name carry
    it (the planted reward package, the image's Codex home).

  • What it asserts. Records, files and return codes a caller sees: reward.txt/reward.json/feedback.txt,
    the verifier's exit code, the rewritten task.toml. Checked to fail without their fixes by reverting each fix:
    loading reward.py by name fails the planted-package test; dropping the empty-answer check fails the
    missing-answer test; not catching a scorer's error fails the scorer-failure test; the old Dockerfile fails the
    image test; the previous prepare.py fails the failed-rebuild and lock-difference tests.

  • Real entry points and stand-ins. The config through Config.load; the verifier through its main() and, for
    the import, a fresh python3 -I -S process as test.sh runs it; prepare.py through its main(), with
    stand-ins for its clone of harbor-datasets (two tasks in Harbor's form) and for docker build, while the
    framework's hermit.harbor.dataset index, check and lock run as subprocesses. The stand-in reward.py reproduces the two
    functions of databricks/officeqa at 2a2c3b0; the real file is tested when present.

  • Isolation. tmp_path only; no network, sign-in or agent CLI; the real-scorer test skips, with its reason,
    when the tasks are not prepared.

  • Time and order. No dates, sleeps or shared state; each test builds its own files.

  • Cost. 22 tests, 1.4 s together (--durations=0); the three prepare.py tests take 1.1 s of it, starting the
    framework's dataset CLI as subprocesses; the verifier tests use one fixture.

  • Hygiene. No unused imports, no noqa; every subprocess exits before its test ends, and the subprocess.run
    stand-in is restored after each main().

  • Reuse the framework's sandbox. The agent runs in its task's Harbor environment, the verifier in it after the
    agent (Harbor's shared mode) with no network; no process of the change runs Local. Evidence, on bbe376f
    (an earlier head; the image, tasks and configs are unchanged since):
    the smoke's trials above (judge.extra.trial_dir, under baseline/codex.yaml's jobs_dir), whose config.json
    carries the allowlist's hosts and the timeouts; and a check run inside a task's environment, below: a prepared
    task (officeqa-uid0001, its image and task.toml as prepare.py writes them) with a probe as its solution and
    as its test, run by Harbor's oracle agent (harbor run -p <task> -a oracle). In the agent's phase only the
    allowlisted host answers; other hosts, a direct IP and plain HTTP get no data, DNS over TCP returns nothing, UDP
    is refused, /tests does not exist and no expected answer is on disk. In the verifier's phase nothing answers,
    not even the allowlisted host. Names resolve in both. (/solution is the probe's own: the prepared tasks have
    none.) In the 172-question baseline the agent tried 40 times to fetch from other hosts; none returned web data.

    <details><summary>The check's output</summary>
    
    ```text
    == agent phase, root@cea024854172
    https chatgpt.com (allowlisted)    exit 0: 200
    https example.com                  exit 35: curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to example.com:443  000
    https www.google.com               exit 35: curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.google.com:443  000
    https 1.1.1.1 (direct IP)          exit 35: curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 1.1.1.1:443  000
    http example.com (plain HTTP)      exit 52: curl: (52) Empty reply from server 000
    dns lookup example.com             exit 0: 2606:4700:10::6814:179a example.com 2606:4700:10::ac42:93f3 example.com
    dns over tcp 8.8.8.8:53            exit 0: received 0 bytes
    udp 8.8.8.8:53                     exit 1: Traceback (most recent call last):   File "<string>", line 4, in <module> PermissionError: [Errno 1] Operation not permitted
    ls /tests                          exit 2: ls: cannot access '/tests': No such file or directory
    ls /solution                       exit 0: probe.sh solve.sh
    expected answer anywhere           exit 0: 
    write /app                         exit 0: writable
    == verifier phase, root@cea024854172
    https chatgpt.com (allowlisted)    exit 35: curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to chatgpt.com:443  000
    https example.com                  exit 35: curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to example.com:443  000
    https www.google.com               exit 35: curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.google.com:443  000
    https 1.1.1.1 (direct IP)          exit 35: curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 1.1.1.1:443  000
    http example.com (plain HTTP)      exit 52: curl: (52) Empty reply from server 000
    dns lookup example.com             exit 0: 2606:4700:10::ac42:93f3 example.com 2606:4700:10::6814:179a example.com
    dns over tcp 8.8.8.8:53            exit 0: received 0 bytes
    udp 8.8.8.8:53                     exit 1: Traceback (most recent call last):   File "<string>", line 4, in <module> PermissionError: [Errno 1] Operation not permitted
    ls /tests                          exit 0: config.json judge.py probe.sh reward.py test.sh
    ls /solution                       exit 0: probe.sh solve.sh
    expected answer anywhere           exit 0: /tests/config.json
    write /app                         exit 0: writable
    ```
    
    The probe (`probe.sh`, the phase as its argument):
    
    ```bash
    #!/bin/bash
    # What this phase can reach and read. Each line: the probe, then what came back.
    phase=$1
    try() { printf "%-34s " "$1"; shift; out=$(timeout 15 "$@" 2>&1); rc=$?; echo "exit $rc: $(printf "%s" "$out" | head -c 150 | tr "\n" " ")"; }
    echo "== $phase phase, $(id -un)@$(hostname)"
    try "https chatgpt.com (allowlisted)"   curl -sS -o /dev/null -w '%{http_code}' https://chatgpt.com/
    try "https example.com"                 curl -sS -o /dev/null -w '%{http_code}' https://example.com/
    try "https www.google.com"              curl -sS -o /dev/null -w '%{http_code}' https://www.google.com/
    try "https 1.1.1.1 (direct IP)"         curl -sS -k -o /dev/null -w '%{http_code}' https://1.1.1.1/
    try "http example.com (plain HTTP)"     curl -sS -o /dev/null -w '%{http_code}' http://example.com/
    try "dns lookup example.com"            getent hosts example.com
    try "dns over tcp 8.8.8.8:53"           python3 -c "
    import socket,struct
    q=b'\x12\x34\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x07example\x03com\x00\x00\x01\x00\x01'
    s=socket.create_connection(('8.8.8.8',53),timeout=8); s.sendall(struct.pack('>H',len(q))+q); d=s.recv(512); print('received',len(d),'bytes')"
    try "udp 8.8.8.8:53"                    python3 -c "
    import socket
    q=b'\x12\x34\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x07example\x03com\x00\x00\x01\x00\x01'
    s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM); s.settimeout(8); s.sendto(q,('8.8.8.8',53)); print('received',len(s.recv(512)),'bytes')"
    try "ls /tests"                         ls /tests
    try "ls /solution"                      ls /solution
    try "expected answer anywhere"          bash -c 'grep -rl --include=config.json expected_answer / 2>/dev/null | head -3'
    try "write /app"                        bash -c 'touch /app/.probe && echo writable'
    ```
    </details>
    
  • Sandbox changes are core changes. No sandbox change.

  • Independent review (post-PR audit): an agent in a separate session audited 9bea557 against the general,
    benchmark, test and sandbox checklists; no finding affects the results.

@illusoryw
illusoryw force-pushed the feat/officeqa-harbor-paper-eval branch 2 times, most recently from b839ee3 to 5e8b643 Compare November 25, 2026 21:03
@iamziyuzhao
iamziyuzhao self-requested a review November 26, 2026 00:32
@haizhongzheng
Copy link
Copy Markdown
Member

Thanks for the PR! Before we review the code, the description needs to follow the PR checklists more closely (prepare-pr). Could you update it?

General checklist (general-pr-checklist.md): Review is missing four items. Please add them:

  • Core changes
  • Implementation correctness and failures
  • Real execution paths and tests
  • This description

The template's entries already cover Agent layers, Documentation and Independent review.

Task-specific checklists: please answer each item in its own entry, not one line per checklist.

  • Benchmark:
    • Public and private halves: name each field a data.view adds, if any, and what private information the judge's feedback may show.
    • What a task asks: state the effective timeouts, i.e. the run's own (agent.timeout_min, environment.harbor.agent_timeout_sec) next to each task's task.toml.
    • Parity: mark it not applicable (a new benchmark).
    • A real run: link the smoke run's records.
  • Test: add the remaining items.
    • Names
    • Docstrings
    • What it asserts
    • Real entry points and stand-ins
    • Time and order
    • Cost, with the new tests' runtime from --durations
    • Hygiene
  • Sandbox: link the evidence that confinement was enforced. That can be the trials' trial_dir, or the check you ran inside a task's environment, with its output.

Checkboxes: tick an item only when all of it is done. The Benchmark item is ticked, but the real run is not linked yet.

Validation:

  • List the exact commands you ran: pytest, the docs build and pre-commit.
  • Name the failing RRSI test and say why it fails.
  • Link the configs and records behind the baseline numbers and the smoke run.

Links: the README link points at your fork's branch, so it will break after merge. Please use the in-repo path, examples/officeqa_harbor/README.md.

Minor: keep each template item's original text and add your answer after it. For example, the agent-layers item lost its link.

Once the description is updated, the post-PR audit (post-pr-audit) can run on the new head.

@illusoryw
Copy link
Copy Markdown
Contributor Author

@haizhongzheng Thanks for the review. I've updated the description to follow the checklists: added the missing general items, answered each benchmark, test and sandbox item in its own entry, listed the exact commands, explained the RRSI failure (the rrsi dependency group is missing), and gave the smoke records inline (they are git-ignored, so there is nothing to link).

Rerunning the smoke on this head also found an image bug, which bbe376f fixes. The post-PR audit on bbe376f found no problem affecting the results.

@iamziyuzhao
Copy link
Copy Markdown
Collaborator

Thanks for adding the Harbor baseline and smoke results. I have three requests before merge.

  1. Align the documentation with examples/officeqa/README.md. Please follow the same structure: what the example runs, setup, evaluation, and results. Describe the split directly as 50 train, 24 validation, and 172 test questions. A link to the split source is enough. In the results, clarify that the Codex no-adapter baseline scored 58.1% on all 172 test questions and 43.0% on the 93 OfficeQA Pro questions within that same run. Please use consistent wording in the example README, the examples index, and the PR description.

  2. Make prepare.py preserve the last successful setup. It currently removes the existing tasks and writes the new tasks.jsonl before validating the lock and building the Docker image. If the build fails, hermit eval can already see the new index. Please stage the new data separately and replace the existing data only after validation and the build succeed. Please add a regression test showing that the previous setup remains usable after a failed rebuild.

  3. Run the offline walkthrough from CONTRIBUTING.md. The OfficeQA smoke run covers the new benchmark. The walkthrough also verifies that an adapter can be trained and then evaluated through the standard CLI. Please run these commands on the updated PR head and record the commit SHA and the outcome of each command in the PR’s Validation section.

    hermit check --config docs/_examples/first_training/run.yaml
    hermit train --config docs/_examples/first_training/run.yaml
    hermit eval --config docs/_examples/first_training/run.yaml --adapter final

examples/officeqa_harbor/ runs OfficeQA as Harbor's task set (harbor-datasets'
datasets/officeqa at 37db108), each question in its own Harbor environment, as
the OfficeQA paper evaluates agents: the paper's agent prompt (Appendix E.5,
without its web-search sentence), the final message's first <FINAL_ANSWER>
scored by the paper's reward.py (databricks/officeqa at 2a2c3b0, the copy the
tasks carry, checked against its git blob) at a 0.0% relative error, with 0.1%,
1% and 5% recorded. prepare.py rewrites the tasks: the instruction, the
verifier, the corpus image with Codex, the agent's network limited to the
model's hosts and the verifier's cut off, no answer source in the metadata and
no oracle; the tasks it writes must match dataset.lock. It stages the new setup
and replaces the previous one only after the lock check and the image build
passed, so a failed rebuild leaves the last setup usable. The image removes the
Codex home its build leaves, which made Harbor reinstall Codex in every trial.
baseline/codex.yaml (Codex, GPT-5.6-Luna) and baseline/claude.yaml (Claude
Code, Claude Haiku 5.5) evaluate no adapter on the 172 test questions of the
50 / 24 / 172 split, as the other Harbor benchmarks' baselines do, and
tests/core/test_harbor_examples.py holds it to their conventions. The README
follows examples/officeqa/'s; docs/recipes/officeqa_harbor.md holds the
protocol, the isolation and the results' details.
@illusoryw
illusoryw force-pushed the feat/officeqa-harbor-paper-eval branch from dae4d70 to 9bea557 Compare November 27, 2026 20:27
@illusoryw
Copy link
Copy Markdown
Contributor Author

@iamziyuzhao Thanks. All three are done in 9bea557 (the PR is now one commit):

  1. The README now follows examples/officeqa/README.md (what it runs, setup, run, results, code), and the protocol details moved to a recipe, docs/recipes/officeqa_harbor.md, as OfficeQA's are. The split reads 50 train, 24 validation and 172 test questions, and the result reads 58.1% on all 172 test questions and 43.0% on the 93 OfficeQA Pro questions within that same run. The examples index and the description use the same wording.
  2. prepare.py stages the new setup and replaces the old one only after the lock check and the image build pass. Regression tests cover a failed build and a lock mismatch.
  3. The offline walkthrough passes on 9bea557. The commands and outcomes are in Validation.

@iamziyuzhao
iamziyuzhao merged commit 899597b into Infini-AI-Lab:main Nov 28, 2026
1 check passed
iamziyuzhao added a commit to mmjzmy/hermit that referenced this pull request Nov 28, 2026
main added examples/officeqa_harbor/ (Infini-AI-Lab#128). CHANGELOG.md's Added list
keeps both new entries, this example's first; docs/index.md and
examples/README.md merged on their own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0