Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
556bb12
Add Moli version resource comparison chart
Sep 20, 2026
c1a8fcb
Harden Moli resource chart rendering
Sep 20, 2026
7c6d811
Validate Moli chart resource population
Sep 20, 2026
bab0050
Fit single-metric Moli chart legends
Sep 20, 2026
a578eb0
Reserve space for single-metric legends
Sep 20, 2026
0a3581b
Validate Moli chart configuration schema
Sep 20, 2026
16a9419
Generalize Moli comparison chart
Sep 20, 2026
04d149d
Validate Moli chart inputs safely
Sep 20, 2026
c791f1e
Validate Moli chart cohort metadata
Sep 20, 2026
4d08653
Validate Moli chart resource values
Sep 20, 2026
97e035c
Document Moli 1.1.9 benchmark method
Sep 20, 2026
4478097
Clarify Moli resource chart population
Sep 20, 2026
f1274ca
Clarify adaptive Moli resource accounting
Sep 20, 2026
a2be828
Defer Moli 1.1.9 release note until publication
Sep 20, 2026
bffff93
Support RSS and CPU resource comparison charts
Sep 20, 2026
c99eb28
Track reproducible Moli fixed-layout comparison report
Sep 20, 2026
d24bee3
Bind fixed results to current task contracts and validate chart metrics
Sep 20, 2026
4ae3af2
Fix mobile evidence layout and run browser checks in ESM project
Sep 20, 2026
e8e97f9
Record published Moli 1.1.9 fixed-layout comparison
Sep 20, 2026
d2e30fc
Clarify report population mapping and historical publication binding
Sep 20, 2026
20e9380
Unify six Moli configurations and streamline the reader-facing report
Sep 21, 2026
c71ff22
Bind the published six-configuration report and cover single-metric c…
Sep 21, 2026
6bcbff6
Preserve report language during hosted hash navigation
Sep 21, 2026
074fe6a
Bind the verified hosted-navigation report release
Sep 21, 2026
b103a63
Calibrate Moli release resources and publish seven configurations
Sep 21, 2026
18c5254
Align Moli release resource measurements and seven-method report
Sep 21, 2026
bdc489b
Document fixed-only Moli runs and remove retry chart example
Sep 21, 2026
fda4695
Share report byte packing and clarify chart schema mapping
Sep 21, 2026
c2c599e
Declare the shared reporting package explicitly
Sep 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions evaluation/moli/current-report.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"schema": "moli_report_profile/1",
"functional_population": {
"cases": 372,
"attempts_per_case": 3,
"rule": "all_three_attempts_pass"
},
"resource_population": {
"tasks": 557,
"attempts_per_task": 5,
"chart_tasks": 209,
"chart_calls": 1045
},
"method_ids": [
"114_off",
"118_off",
"118_on",
"119_official_off",
"119_official_on",
"119_off",
"119_on"
],
"resource_method_ids": [
"119_official_off",
"119_official_on",
"119_off",
"119_on"
],
"publication": {
"base_url": "https://artifact-site.lexmount.cn",
"slug": "gdwtSGOel0va",
"kind": "folder",
"expected_version": "ver_460f324bc0c04d53a866517db54edd13",
"share_url": "https://artifact-site.lexmount.cn/v/w1vgSkFJjvmCL6kPaHmj4K8sUZ8iTI8t"
},
"resource_builds": {
"119_official_off": {
"sha256": "4a10cfab1d743ff327d6e1d5e1a7a8702bed5d869544089ef7df231b0e3b453a",
"source_commit": "47512623315aa9b57edc2ef721a033b6b8d91063",
"profile": "release",
"target": "aarch64-unknown-linux-gnu"
},
"119_official_on": {
"sha256": "4a10cfab1d743ff327d6e1d5e1a7a8702bed5d869544089ef7df231b0e3b453a",
"source_commit": "47512623315aa9b57edc2ef721a033b6b8d91063",
"profile": "release",
"target": "aarch64-unknown-linux-gnu"
},
"119_off": {
"sha256": "568874d3f943957e003e6c7ca34163372c1d3df8823431377037dfae86d99cbd",
"source_commit": "f315ff26ed6222603d382b8f7a4648157da3ebf9",
"profile": "release",
"target": "aarch64-unknown-linux-gnu"
},
"119_on": {
"sha256": "568874d3f943957e003e6c7ca34163372c1d3df8823431377037dfae86d99cbd",
"source_commit": "f315ff26ed6222603d382b8f7a4648157da3ebf9",
"profile": "release",
"target": "aarch64-unknown-linux-gnu"
}
}
}
1 change: 1 addition & 0 deletions harness/reporting/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Shared, benchmark-independent report infrastructure."""
55 changes: 55 additions & 0 deletions harness/reporting/packs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
"""Deterministic byte packs shared by static report publishers.

Adapters own routes, privacy projection and MIME metadata. This layer only stores
ordered byte blocks and returns byte-exact locations for their existing loaders.
"""
from __future__ import annotations

import gzip
from collections.abc import Iterable
from pathlib import Path


def write_packs(
blocks: Iterable[tuple[str, bytes]],
destination: Path,
*,
limit: int,
pattern: str,
compresslevel: int,
) -> tuple[dict[str, dict], int]:
if limit <= 0:
raise ValueError("pack limit must be positive")
catalog: dict[str, dict] = {}
payload = bytearray()
pending: list[str] = []
index = 0

def flush():
nonlocal index, payload, pending
if not pending:
return
relative = Path(pattern.format(index=index))
if relative.is_absolute() or ".." in relative.parts:
raise ValueError("pack path must stay inside the destination")
path = destination / relative
path.parent.mkdir(parents=True, exist_ok=True)
# Refuse accidental replacement if a naming pattern repeats.
with path.open("xb") as stream:
stream.write(gzip.compress(bytes(payload), compresslevel=compresslevel, mtime=0))
for key in pending:
catalog[key] = {"pack": relative.as_posix(), **catalog[key]}
index += 1
payload = bytearray()
pending = []

for key, data in blocks:
if key in catalog:
raise ValueError(f"duplicate block: {key}")
if pending and len(payload) + len(data) > limit:
flush()
catalog[key] = {"offset": len(payload), "size": len(data)}
payload.extend(data)
pending.append(key)
flush()
return catalog, index
3 changes: 2 additions & 1 deletion harness/web_fetch/report_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -2789,7 +2789,8 @@ def _register_release_translations() -> None:
for release in history['releases']:
if any(kind in release.get('comparison_kinds', []) for kind in (
'webmainbench_frozen_html_to_markdown', 'public_benchmark_research',
'wcxb_frozen_html_to_markdown')):
'wcxb_frozen_html_to_markdown', 'moli_historical_failure_retest',
'moli_process_tree_resource_profile')):
continue
english = release.get('i18n', {}).get('en', {})
if (not english.get('title') or not english.get('summary')
Expand Down
291 changes: 291 additions & 0 deletions research/report-changes.json

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions scripts/moli_report/BUILD.md
Comment thread
lanyue-llk marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Build and verify the Moli report

This directory owns the Moli comparison report renderer. Measured evidence stays outside Git under `BROWSER_EVAL_DATA_HOME` (default: `~/.browser-eval`). It does not use the Web Fetch publication target.

The frozen Linux runner is read from `LEXBENCH_REPORT_RUNNER_ROOT` (default: `$BROWSER_EVAL_DATA_HOME/work/moli-1.1.8-failures-linux`). Its recorded resource-calibration helper verifies the profiler-off and profiler-on pairs. All seven resource configurations use Linux ARM64 release binaries, PSS and process-tree CPU measurements in Docker on the Mac host.

The report profile and chart payload have separate schemas. In `moli_report_profile/1`, resource `tasks` and `attempts_per_task` map to the chart's `total_tasks` and `calls_per_task`; `chart_tasks` and `chart_calls` retain their names. The builder validates the measured populations before constructing the chart payload. Do not pass the profile directly to the plotting API.

Build from validated fixed-layout functional summaries and the complete resource profile directory:

```sh
uv run --frozen python scripts/moli_report/build.py \
--output /tmp/moli-report-release \
--fixed-summary 119_off /path/to/patched-off-summary.json \
--fixed-summary 119_on /path/to/patched-on-summary.json \
--fixed-summary 119_official_off /path/to/official-off-summary.json \
--fixed-summary 119_official_on /path/to/official-on-summary.json \
--linux-resource-profiles /path/to/completed-linux-resource-profiles
uv run --frozen python scripts/moli_report/verify.py --site /tmp/moli-report-release --release
```

Choose a new output directory for each build; the builder does not delete existing output. `--vendor-dir` selects the retained Mermaid distribution and license. Their hashes are checked before copying. The default location is the original report asset directory under the data home; no vendored executable or measured output is committed here.

The four 1.1.9 resource configurations are release builds bound by `resource_builds` in `evaluation/moli/current-report.json`. Functional evidence binds its own binary identity. Do not relabel retained functional outcomes as a new build's measured accuracy.

`uv run --frozen python -m scripts.moli_report.run_linux_resource_profiles --protocol /path/to/frozen-protocol.json --output /path/to/new-evidence-directory` executes the unchanged Lexbench driver and resource collector. Freeze 557 task definitions, fixtures, runner files, four binary hashes, five attempts, jobs=1, the seed and the 250 ms interval before execution. Each configuration has an independent container; all runs execute serially. The official profiler-off calibration precedes the profiler-on measurement. Resource values come from the latter. The builder verifies all 11,140 measured calls and their calibration pairs, checks the frozen 1,045-call chart population, recomputes aggregates and rejects missing or changed evidence. Keep all measured files outside Git.

The static verifier checks score/evidence bindings, resource populations and percentages, fixed-case log links, charts, bilingual rendering, unique resource extrema and negative controls. It invokes the same JavaScript rendering checks used by `tests/test_moli_report_render_contract.py`.

For full release verification, serve the build with a static HTTP server and run `ui_check.js` with `MOLI_REPORT_SITE`, `MOLI_REPORT_ORIGIN`, and `MOLI_REPORT_SHOTS`. `LEXBENCH_NODE_MODULES` selects the provisioned Playwright installation. The browser check covers route classes, themes, widths, evidence dialogs and keyboard navigation. Run it after resource measurement to avoid contaminating the measurement host.

Publish only after the complete requested method matrix and release checks pass, using the existing bound Artifact Site target and its freshly read remote version. Preserve binary identity, raw trials and previous report versions.

Package the validated tree with `uv run --frozen python scripts/moli_report/pack.py --source /tmp/moli-report-release --output /tmp/moli-report-package`. The packer retains both English entry paths and checks bytes through the bundle manifest; it refuses symlinks, hidden paths, and existing destinations. Run the browser release check against this packaged directory before uploading: serve the package at `MOLI_REPORT_ORIGIN`, while `MOLI_REPORT_SITE` points to the validated unpacked tree that supplies the reference model. The browser checks include the complete resource matrix and frozen measurement-script evidence in both languages.

## Shared implementation boundary

Moli and Web Fetch publishers use `harness/reporting/packs.py` for deterministic gzip packing and byte offsets. Their adapters retain different entry points and catalogs: Moli serves case evidence through fetch, while Web Fetch packs virtual HTML routes and applies its own privacy projection. The shared packer accepts ordered bytes and neither selects evidence nor changes it. Round-trip tests cover both filename/compression formats, binary and Unicode content, empty files and pack boundaries; publisher tests verify their public catalogs independently.

Moli's scorer bindings, 372-case matrix and source manifests remain in this adapter because they are specific to this benchmark. The renderer is not a second Web Fetch scorer. Common code is extracted where both reports actually use the same operation, rather than introducing a generic renderer with benchmark-specific branches.
11 changes: 11 additions & 0 deletions scripts/moli_report/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Moli compatibility and resource comparison

The report compares seven fixed configurations: Moli 1.1.4 with layout off, Moli 1.1.8 with layout off and on, Moli 1.1.9 with layout off and on, and patched Moli 1.1.9 with layout off and on. Success rates use the same 372 cases failed by Moli 0.1.1. A case passes only when all three attempts pass. Moli 1.1.4 uses a direct check of the sole candidate and 371 inherited failures, explicitly identified in the report.

Resources use a separate 557-task experiment, five calls per task. Each configuration has 2,785 measured calls, paired with the official profiler-off calibration. The chart and overview table use the 1,045-call, 209-task population frozen before execution; the detailed tables also report all 557 tasks. Passing and failing calls remain in both declared populations.

All seven resource configurations run in Docker Linux on the Mac host, using Linux ARM64 release binaries and process-tree PSS and CPU measurements. Resource changes use Moli 1.1.4 with layout off as the baseline. Success-rate changes use percentage points. Functional results retain their own binary identities; patched functional outcomes use commit 87c87e95, while patched resource measurements use the f315ff26 release build. The report does not treat these resource runs as new accuracy measurements.

Open index.html through a static HTTP server. Chinese and English routes share the same report model and evidence. Charts are rendered by the included Python script; memory and CPU panels can be selected independently. Per-task results retain exact program errors and sanitized grader, output, and protocol logs.

New benchmark runs select a fixed `--moli-layout off` (default) or `--moli-layout on` for every attempt. Failed cases keep the selected layout and repetition count. The harness does not schedule layout recovery or replace results from a second batch.
Loading
Loading