Official Codebase of 3DCodeVerse
Python
bench: refs_ab_readout.py (no reference anywhere) and cost_report.py (3dcv cost show --md) are deleted
gaoypengd24cd4d3d7d2
diff --git a/harness/docs/ARCHITECTURE.md b/harness/docs/ARCHITECTURE.mdindex a31b5f20..988c0df6 100644--- a/harness/docs/ARCHITECTURE.md+++ b/harness/docs/ARCHITECTURE.md@@ -240,7 +240,7 @@ bench/ run_bench.py, report.py (renders through codeverse/galleryreserved), _ab_report.py,ab_gate_rates.py (the same run's DETERMINISTIC readouts, paired perprompt: penetrating pairs, worst depth, floating parts, contract findings),- _oneshot.py, _fixed_eval.py, cost_report.py,+ _oneshot.py, _fixed_eval.py,concurrency_probe.py (in-flight knee sweep), complexity_report.py,prompts/{static_objects_v1 (24), articulated_v1 (12), scenes_v1 (12), compare_v1 (8)}.yamlruntime_js/ export_glb.mjs (placement policy, instance baking, selfcheck) render_glb.mjsdiff --git a/harness/docs/COST.md b/harness/docs/COST.mdindex 37e51ccd..23e151ad 100644--- a/harness/docs/COST.md+++ b/harness/docs/COST.md@@ -13,7 +13,6 @@ Reproduce:3dcv cost show runs bench/out/* --md docs/cost_report.md # full tables3dcv cost show runs --recheck # re-price with today's table3dcv cost prices [--unverified] # the price table + provenance-python bench/cost_report.py bench/out/<battery> # writes <battery>/cost_report.md```The audit is `codeverse/cost/audit.py`; it reconstructs a per-call ledger from@@ -224,7 +223,7 @@ sessions. `_base_label()` now strips the attempt suffix before the lookup, andtest pins the three worst runs.Re-running the audit with the fixed code-(`python bench/cost_report.py`, or the script in the wave-3 scratchpad):+(`3dcv cost show <paths> --md <out>`, or the script in the wave-3 scratchpad):| | before the fix | after ||---|---|---|@@ -499,8 +498,8 @@ and with `CV3D_COST_LEDGER=off` it wrote anyway, which is now really off.**Reading it.** `cost.reconstruct.reconstruct_run` prefers a live ledger andfalls back to rebuilding from trajectories / verdicts / events, so-`3dcv cost`, `bench/cost_report.py` and the run layout's `telemetry/cost.json`-all pick the live rows up automatically and the 61 recorded runs keep auditing+`3dcv cost` and the run layout's `telemetry/cost.json`+both pick the live rows up automatically and the 61 recorded runs keep auditing(`RunLedger.source` says `live` or `reconstructed`).### Verified on two fresh live runs@@ -1297,7 +1296,7 @@ for the `"key": "…xxxx"` that `gemini.py:_once` puts in `ChatResponse.raw` and(round-trips issued, hedged siblings included; 1 = clean) and `hedged`; `GeminiModel` puts bothin `raw` and `attempts` on the raised `ModelError`; `cost/instrument.py` copies the key suffix(last 4 chars, never more) and `attempts` onto every `CallCost` row (`key`, `attempts`, both-defaulted so old rows load); `3dcv cost` / `bench/cost_report.py` add a per-key table and a+defaulted so old rows load); `3dcv cost` adds a per-key table and a`tries/call` column (`CostBucket.attempts_per_call`) whenever the ledger carries them.## 28. Where the time goes — the 2026-08-26 auditdiff --git a/harness/tests/cost/test_cli.py b/harness/tests/cost/test_cli.pyindex 54d6f45f..5d8f4cda 100644--- a/harness/tests/cost/test_cli.py+++ b/harness/tests/cost/test_cli.py@@ -1,4 +1,4 @@-"""``3dcv cost`` and ``bench/cost_report.py``."""+"""``3dcv cost``."""from __future__ import annotations@@ -37,15 +37,6 @@ def test_cost_prices_and_estimate():assert r.exit_code == 0 and "$0.0788" in r.stdout-def test_bench_cost_report_entry_point(fake_run: Path, tmp_path: Path):- from bench.cost_report import main-- out = tmp_path / "cost.md"- assert main([str(fake_run), "--out", str(out), "--quiet"]) == 0- assert "# Cost report" in out.read_text()- assert main([str(tmp_path / "nothing"), "--quiet"]) == 2--# --------------------------------------------------------------------- the live ledgerdef _live_ledger(run: Path, rows: list[dict]) -> None:p = run / "telemetry" / "cost.jsonl"