Official Codebase of 3DCodeVerse
Python
Re-verify the CLIs at their current releases (D115): agy 1.4.12, claude-code 2.1.317, codex 0.166.0
gaoypeng74e80e380789
diff --git a/README.md b/README.mdindex 45c5e845..2de861ca 100644--- a/README.md+++ b/README.md@@ -76,6 +76,26 @@ on 805 fixed tasks:| Qwen3.8-27B | 51.9 | 74.8 | 65.5 | 80.0 | 57.0 | 72.5 || + SFT + DPO | **92.9** | **93.2** | **98.5** | **90.0** | **71.5** | **92.5** |+## Quick Start++The harness needs Python 3.13, Node 20.6+, Git, Gemini API keys and the Antigravity CLI (`agy`, the+default generator). Blender 5.2 LTS is optional (the `blender`, `urdf_blender` and `scene_blender`+languages). Full guide: [harness/docs/INSTALL.md](harness/docs/INSTALL.md).++```bash+cd harness+bash setup.sh # pip install -e . + runtime_js + headless Chrome, then `3dcode doctor`+curl -fsSL https://antigravity.google/cli/install.sh | bash # agy → ~/.local/bin (`agy update` to upgrade)+export GEMINI_API_KEYS="key1,key2" # agy runs in Gemini-API mode on this key pool+3dcode doctor # every row OK or WARN; a FAIL row says what to fix+3dcode make "a classic park bench" --track static_object --language threejs+3dcode gallery serve # browse every run at http://127.0.0.1:8765/+```++Optional generators: `npm i -g @anthropic-ai/claude-code @openai/codex`, then `--generator claude-code:<model>`+or `--generator codex:<model>`. Tracks, languages and costs per track: [harness/README.md](harness/README.md) and+[harness/docs/RUNBOOK.md](harness/docs/RUNBOOK.md); evaluation: [eval/README.md](eval/README.md).+## Repository Structure| Directory | Description | Documentation |diff --git a/harness/CLAUDE.md b/harness/CLAUDE.mdindex e9e2cf35..3b2b960f 100644--- a/harness/CLAUDE.md+++ b/harness/CLAUDE.md@@ -67,11 +67,13 @@ push, with `set -o pipefail` so a `| tail` cannot swallow a red exit. The versi(`spatial.node.run_node(three_hook=True)`) — `NODE_PATH` alone does not work;that hook is `module.registerHooks` on node ≥ 22.15, `module.register` below.The `graphics` track renders with moderngl (d3d12 GPU context, llvmpipe fallback).-- CLIs: `agy` 1.3.4 (Antigravity; gemini-cli was deleted in D103, 2026-10-13) — runs ONLY in+- CLIs: `agy` 1.4.12 (Antigravity; gemini-cli was deleted in D103, 2026-10-13) — runs ONLY inGemini-API mode (Gemini models only, keys required; no subscription sign-in): one key from the- shared pool, a per-session HOME carrying `modelProvider: gemini` + the 3dcode MCP server, priced. `codex` 0.147+ (MCP needs- `default_tools_approval_mode="approve"`) and `claude` 2.1 run on local subscriptions: test- lightly. No Anthropic/OpenAI API keys here.+ shared pool, a per-session HOME carrying `modelProvider: gemini` + the 3dcode MCP server, priced. `codex` 0.166 (MCP needs+ `default_tools_approval_mode="approve"`) and `claude` 2.1.317 run on local subscriptions: test+ lightly. No Anthropic/OpenAI API keys here. All three re-verified live 2026-11-03 (D115) — after an+ upgrade (`agy update`; `npm i -g @anthropic-ai/claude-code @openai/codex`) run+ `pytest -m live tests/agents tests/skills/test_live_discovery.py`.- DEFAULT generator: `agy:gemini-4-argon` (D103, 2026-10-13; `gemini-cli:gemini-3.7-flash` before); planner andcaptioner default to `gemini:gemini-4-argon` too.`gemini-3.7-flash` stays the cheap API model (single-shot / economy, flash judge — lenient; needsdiff --git a/harness/README.md b/harness/README.mdindex 6444a51f..6106cfb1 100644--- a/harness/README.md+++ b/harness/README.md@@ -74,10 +74,13 @@ Design laws, the full package map and what each stage does: `docs/ARCHITECTURE.m`ruff` run locally before every push. See `docs/INSTALL.md` §2.1.```bash-bash setup.sh # install everything + run doctor (idempotent; see docs/INSTALL.md)+bash setup.sh # python package + runtime_js + headless Chrome + doctor (idempotent; see docs/INSTALL.md)# ...or by hand:pip install -e '.[all,dev]' # entry points: 3dcodeverse, 3dcode(cd runtime_js && npm ci) # [email protected] + puppeteer 24 (chrome → ~/.cache/puppeteer)+curl -fsSL https://antigravity.google/cli/install.sh | bash # agy 1.4.12, the default generator's CLI (`agy update` later)+export GEMINI_API_KEYS="key1,key2" # agy runs in Gemini-API mode on this key pool (docs/INSTALL.md §8)+npm i -g @anthropic-ai/claude-code @openai/codex # optional generators claude-code / codex (local subscriptions)3dcode doctor3dcode make "a mid-century wooden dining chair" --track static_object --language blender3dcode make "a kitchen cabinet with one door and a drawer" --track articulated_object --language urdf_blenderdiff --git a/harness/codeverse3d/agents/backends.py b/harness/codeverse3d/agents/backends.pyindex 10705f55..979f63be 100644--- a/harness/codeverse3d/agents/backends.py+++ b/harness/codeverse3d/agents/backends.py@@ -555,10 +555,16 @@ def parse_agy_json(stdout: str) -> dict[str, Any] | None:return find_json_object(stdout, lambda d: "response" in d or "status" in d)-#: what agy prints on stderr when its own ``--print-timeout`` stops a turn in progress (1.3.4:-#: ``[agy] print timeout after 8m0s with turn in progress; returning partial output``) — the-#: envelope still says ``SUCCESS``, with whatever response there was (usually none)+#: what agy prints on stderr when its own ``--print-timeout`` stops a turn in progress+#: (``[agy] print timeout after 8m0s with turn in progress; returning partial output``; 1.3.4,+#: still 1.4.12) — the envelope says ``SUCCESS`` with whatever response there was (usually none)AGY_PRINT_TIMEOUT = "print timeout after"+#: since 1.4.11 the envelope also says WHY a turn ended early: ``print_timeout`` | ``interrupted``+#: | ``error``, the field absent on a normal finish. The typed verdict, read first; the stderr+#: line is the fallback for an envelope without the field. Live 1.4.12 (2026-11-03): the clock+#: firing while agy retried a 503 gave ``status: ERROR, finished_reason: error`` AND the stderr+#: line — an error, not a timeout.+AGY_FINISHED_REASON = "finished_reason"#: the per-session CLI log agy writes into the trajectory dir (``--log-file``)AGY_LOG = "agy.log"#: where agy keeps each conversation under its HOME: one SQLite file named by the envelope's@@ -571,7 +577,7 @@ AGY_CONVERSATIONS = Path(".gemini") / "antigravity-cli" / "conversations"#: Passed by name: the watchdog's walk skips ``.gemini``, and the rest of the dir (presence lock,#: updater, caches) is touched at start-up, not per step.AGY_STEP_DIRS = (Path(".gemini") / "antigravity-cli" / "brain", AGY_CONVERSATIONS)-#: agy's Gemini-API mode (1.2+, checked live on 1.3.4, 2026-10-13): ``modelProvider: "gemini"``+#: agy's Gemini-API mode (1.2+, checked live on 1.3.4, 2026-10-13, and 1.4.12, 2026-11-03): ``modelProvider: "gemini"``#: in its settings plus ``GEMINI_API_KEY`` in the env — no sign-in, billed to the key, and the#: catalogue is the API's. Without the setting the key alone is ignored and the CLI asks for a#: login. It is the ONLY way the harness runs agy (owner, 2026-10-13): no subscription sign-in,@@ -589,7 +595,9 @@ AGY_API_EFFORT = "high"#: the model an ``agy`` generator with no model runs (owner, 2026-10-13)DEFAULT_AGY_MODEL = "gemini-4-argon"#: agy's ONLY MCP config is per user (``~/.gemini/config/mcp_config.json``, the shape-#: ``agy mcp add`` writes) — so an API-key session gets a HOME of its own, and this file in it+#: ``agy mcp add`` writes; still so on 1.4.12 — no scope flag, and its session-only+#: ``--settings <json>`` covers settings, not MCP) — so an API-key session gets a HOME of its+#: own, and this file in itAGY_MCP_CONFIG = Path(".gemini") / "config" / "mcp_config.json"#: a tool call inside a step payload is three consecutive strings — its id, the tool name,#: the JSON arguments (``call_4419682`` · ``view_file`` · ``{"AbsolutePath": ...}``), read out@@ -648,8 +656,9 @@ def _pb_strings(buf: bytes, depth: int = 0) -> list[str]:def agy_tool_calls(db: Path) -> list[ToolCall]:"""Every tool call recorded in one agy conversation database, once per call id.- agy 1.2.2 has no skill tool: its prompt lists the skills and the model opens- ``SKILL.md`` with ``view_file``, so the file path IS the activation record."""+ agy has no skill tool (1.2.2, still 1.4.12): its prompt lists the skills and the model opens+ ``SKILL.md`` with its file tool (``read_file{Path}`` on 1.4.x, ``view_file{AbsolutePath}``+ before), so the file path IS the activation record — the walk below is name-agnostic."""calls: dict[str, ToolCall] = {}con = sqlite3.connect(f"file:{db}?mode=ro", uri=True)try:@@ -701,7 +710,7 @@ def agy_retries(log_path: Path) -> list[tuple[float, float, str]]:def agy_error(stderr: str) -> dict[str, Any]:- """agy's own verdict on a turn that died (1.2.x, exit code 3): the ``AGY_ERROR: {...}`` line —+ """agy's own verdict on a turn that died (1.2.x through 1.4.12, exit code 3): the ``AGY_ERROR: {...}`` line —``status``, ``error_code``, ``retryable`` — typed, where the envelope has only prose."""for line in reversed(stderr.splitlines()):if line.startswith("AGY_ERROR:"):@@ -712,11 +721,12 @@ def agy_error(stderr: str) -> dict[str, Any]:def usage_from_agy(env: dict[str, Any], model: str) -> Usage:- """The envelope's tokens, priced at the Gemini list rate. agy 1.3.4 splits- neither way the pricing convention does: ``input_tokens`` EXCLUDES ``cache_read_tokens`` (a- live 18-minute session, 2026-10-13: 582 179 input against 10 980 664 cache reads), so the total- prompt is their sum; and ``output_tokens`` CONTAINS ``thinking_tokens`` (``total == input +- output`` on every envelope), so the thinking share moves to ``thoughts_tokens``, billed once."""+ """The envelope's tokens, priced at the Gemini list rate. agy (1.3.4; the same on 1.4.12,+ 2026-11-03) splits neither way the pricing convention does: ``input_tokens`` EXCLUDES+ ``cache_read_tokens`` (a live 18-minute session, 2026-10-13: 582 179 input against 10 980 664+ cache reads), so the total prompt is their sum; and ``output_tokens`` CONTAINS+ ``thinking_tokens`` (``total == input + output`` on every envelope), so the thinking share+ moves to ``thoughts_tokens``, billed once."""u = env.get("usage") or {}thinking = int(u.get("thinking_tokens") or 0)cached = int(u.get("cache_read_tokens") or 0)@@ -864,7 +874,8 @@ class AntigravityAgent(_CliAgent):died = agy_error(proc.stderr)said = (json.dumps(died), str((env or {}).get("error") or ""), proc.stderr)ok = False- if AGY_PRINT_TIMEOUT in proc.stderr: # agy's own clock stopped a turn in progress+ reason = str((env or {}).get(AGY_FINISHED_REASON) or "") # 1.4.11+: why the turn ended early, "" = normally+ if reason == "print_timeout" or (not reason and AGY_PRINT_TIMEOUT in proc.stderr): # agy's own clock stopped a turn in progressproc = dataclasses.replace(proc, timed_out=True, killed_reason="agy_print_timeout")errors.append(f"agy's own --print-timeout stopped the turn after {proc.duration_s:.0f}s")elif proc.timed_out:@@ -883,7 +894,7 @@ class AntigravityAgent(_CliAgent):s, ok=ok, exit_reason=end.exit_reason, text=text, usage=usage, tool_calls=n_calls,turns=int((env or {}).get("num_turns") or 0), errors=errors, transient=end.transient, quota=end.quota, stalled=end.stalled,provider_wait_s=provider_wait([(t, b) for t, b, _ in retries], ended),- rc=proc.rc, killed_reason=proc.killed_reason, agy_error=died, effort=effort,+ rc=proc.rc, killed_reason=proc.killed_reason, agy_error=died, effort=effort, finished_reason=reason,conversation_id=(env or {}).get("conversation_id", ""), num_turns=(env or {}).get("num_turns", 0),)finally:diff --git a/harness/codeverse3d/contracts/run.py b/harness/codeverse3d/contracts/run.pyindex bc854b4a..ecd2e2dd 100644--- a/harness/codeverse3d/contracts/run.py+++ b/harness/codeverse3d/contracts/run.py@@ -35,8 +35,9 @@ class SkillRead(BaseModel):name: strsurfaced: bool = Field(default=False, description="transcript: the agent activated the skill or opened its ""SKILL.md; atime fallback: SKILL.md atime > mtime (a discovery scan counts)")- deep: bool = Field(default=False, description="transcript: the agent opened a file under its references/; "- "atime fallback: a references/*.md atime > mtime")+ deep: bool = Field(default=False, description="transcript: the agent opened a file under its references/ (or "+ "its atime says so while the control's references/ are untouched — a shell read the "+ "trace cannot parse); atime fallback: a references/*.md atime > mtime")deep_measurable: bool = Field(default=True, description="False when the bundle ships no references/ file to probe")body_tokens: int = 0reason: str = Field(default="", description="which route attached it, and which finding")diff --git a/harness/codeverse3d/skills/telemetry.py b/harness/codeverse3d/skills/telemetry.pyindex eb53f7f9..b607ca00 100644--- a/harness/codeverse3d/skills/telemetry.py+++ b/harness/codeverse3d/skills/telemetry.py@@ -8,10 +8,14 @@ nicer file format without measuring reads would repeat that at a new price.**Ground truth first (2026-09-22).** Every CLI backend now folds its session's toolcalls into ``trajectories/<label>/transcript.jsonl`` (``agents/cli_common.record_tool_calls``:claude-code's ``Skill``/``Read`` from stream-json, codex's shell commands from-``exec --json``, agy's ``view_file`` from its conversation database). A+``exec --json``, agy's ``read_file`` — ``view_file`` before 1.4 — from its conversation database). Abundle is *surfaced* when a call activated it or named its ``SKILL.md``, *deep* when acall named a file under its ``references/``, and the control is read when a call touched-it — ``SkillsUsage.evidence == "transcript"``. Only when a session after the attach left+it — ``SkillsUsage.evidence == "transcript"``. A bundle the trace calls surfaced but not+deep is still deep when a file under its ``references/`` was opened and the control's+``references/`` were not (signal 3: nothing scanned references/ wholesale) — claude-code+2.1.317 read them with ``cd …/<name> && … cat "$f"`` (live, 2026-11-03), a call that names+no path to match. Only when a session after the attach leftno trace does the probe fall back to the atime signals below, which the control provedblind in 27 of 33 sessions (docs/SKILLS.md §9):@@ -75,7 +79,7 @@ def probe_reads(ws_root: Path, materialized: SkillsMaterialized) -> SkillsUsage:from codeverse3d.skills.materialize import CONTROL_NAMEroot = Path(ws_root)- control_present, control_read = _control_state(root)+ control_present, control_read, control_refs_read = _control_state(root)trace = trace_reads(root, [*materialized.listed, CONTROL_NAME], since=materialized.attached_at)if trace is not None:control_read = control_present and any(trace[CONTROL_NAME])@@ -86,6 +90,12 @@ def probe_reads(ws_root: Path, materialized: SkillsMaterialized) -> SkillsUsage:refs = [f for b in bundles for f in sorted((b / "references").glob("*.md"))]if trace is not None:surfaced, deep = trace[name]+ # a shell read names no path the trace can match (claude-code 2.1.317, live+ # 2026-11-03: `cd …/<name> && for f in $(find references -type f); do cat "$f"; done`)+ # but bumps the reference's atime — proof exactly while the control's references+ # stay untouched, i.e. nothing scanned references/ wholesale (module doc, signal 3)+ if not deep and not control_refs_read:+ deep = any(_opened(f) for f in refs)else:surfaced = any(_opened(b / "SKILL.md") for b in bundles)deep = any(_opened(f) for f in refs)@@ -161,20 +171,23 @@ def _called(name: str, calls: Sequence[dict[str, Any]]) -> tuple[bool, bool]:return surfaced or deep, deep-def _control_state(root: Path) -> tuple[bool, bool]:- """(a control was materialised, something opened it) — the probe's own falsification."""+def _control_state(root: Path) -> tuple[bool, bool, bool]:+ """(a control was materialised, something opened it, something opened its ``references/``)+ — the probe's own falsification. The third is the stricter signal: a CLI's discovery scan+ opens every ``SKILL.md`` (claude-code does, 2.1.317), nothing legitimate opens an unrouted+ bundle's references."""from codeverse3d.skills.materialize import CONTROL_NAME- present = False- opened = False+ present = opened = refs_opened = Falsefor rel in (AGENTS_SKILL_ROOT, CLAUDE_SKILL_ROOT):d = root / rel / CONTROL_NAMEif not d.is_dir():continuepresent = True- for f in [d / "SKILL.md", *sorted((d / "references").glob("*.md"))]:- opened = opened or _opened(f)- return present, opened+ opened = opened or _opened(d / "SKILL.md")+ for f in sorted((d / "references").glob("*.md")):+ refs_opened = refs_opened or _opened(f)+ return present, opened or refs_opened, refs_openeddef append_usage(ws_root: Path, usage: SkillsUsage, **context: Any) -> Path | None:diff --git a/harness/docs/INSTALL.md b/harness/docs/INSTALL.mdindex 60ef2848..3ed65285 100644--- a/harness/docs/INSTALL.md+++ b/harness/docs/INSTALL.md@@ -384,15 +384,21 @@ Gemini list price — no sign-in, no non-Gemini model. Without keys an agy sess(doctor row `agy gemini keys`). The other two are needed only when you name them.```bash-# agy (Antigravity CLI, 1.3.4 here): the Antigravity installer puts it in ~/.local/bin-npm i -g @anthropic-ai/claude-code # claude (2.1.241 here)-npm i -g @openai/codex # codex (0.149.0 here)+# agy — the Antigravity CLI (1.4.12 here): Google's installer, checksum-verified, into ~/.local/bin+curl -fsSL https://antigravity.google/cli/install.sh | bash # later upgrades: `agy update`+# the other two are npm globals (re-run the same line to upgrade)+npm i -g @anthropic-ai/claude-code # claude (2.1.317 here)+npm i -g @openai/codex # codex (0.166.0 here)+agy --version && claude --version && codex --version````claude` and `codex` authenticate against your local subscription(their own `login` flows) — test lightly. The harness handles the per-CLI quirks for you(agy's per-session API-mode HOME, codex's MCP approval mode); what each one is and why it must-not be undone: `docs/RUNBOOK.md` §3.+not be undone: `docs/RUNBOOK.md` §3. No version is pinned: the harness drives each CLI through+its print / JSON interface, and the check after an upgrade is one small real session per CLI plus+the skill-discovery probe — `pytest -m live tests/agents tests/skills/test_live_discovery.py`+(last run 2026-11-03 on the versions above, D115).The spatial MCP server itself is the `mcp` extra (§4); check it with`python -m codeverse3d.spatial.mcp_server --workspace <ws> --list`.@@ -451,28 +457,43 @@ cd harness && 3dcodeverse doctor # add --live for one tiny Gemini call, -Real output on this box (exit code 0; any FAIL row makes it exit 1):```- 3dcode doctor-┏━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓-┃ check ┃ status ┃ detail ┃-┡━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩-│ python │ OK │ 3.13.9 (~/miniconda3/bin/python3.13) │-│ python deps │ OK │ 23/23 importable │-│ blender │ OK │ Blender 5.2.2 LTS @ ~/.local/bin/blender-5.2 │-│ node │ OK │ v24.14.0 │-│ three │ OK │ 0.182.0 (…/harness/runtime_js/node_modules) │-│ puppeteer │ OK │ v24.43.1; chrome cache found (~/.cache/puppeteer) │-│ chrome webgl │ OK │ GPU: ANGLE (Microsoft Corporation, D3D12 (NVIDIA │-│ │ │ GeForce RTX 5090 Laptop GPU), OpenGL ES 3.1) │-│ gemini keys │ OK │ 22 key(s) │-│ anthropic key │ WARN │ not set (anthropic:* backends unavailable) │-│ openai key │ WARN │ not set (openai:* backends unavailable) │-│ agy │ OK │ 1.3.4 │-│ claude │ OK │ 2.1.241 (Claude Code) │-│ codex │ OK │ codex-cli 0.149.0 │-│ git │ OK │ git version 2.53.0 │-│ agy gemini keys │ OK │ 15-key pool (Gemini-API mode, 3dcode MCP, priced) │-│ mcp │ OK │ mcp + codeverse3d.spatial.mcp_server importable │-└───────────────┴────────┴─────────────────────────────────────────────────────┘+ 3dcode doctor+┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓+┃ check ┃ status ┃ detail ┃+┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩+│ python │ OK │ 3.13.9 (~/miniconda3/bin/python) │+│ python deps │ OK │ 23/23 importable │+│ blender │ OK │ Blender 5.2.2 LTS @ │+│ │ │ ~/.local/bin/blender-5.2 │+│ blender cycles │ OK │ CUDA: NVIDIA GeForce RTX 5090 Laptop GPU, 32 spp │+│ │ │ 256x144 frame 348 ms (GPU OIDN + persistent data); │+│ │ │ judged frames: cycles 32 spp, device gpu, frame │+│ │ │ cap 20s │+│ blender eevee │ OK │ GPU (Mesa d3d12 env): D3D12 (NVIDIA GeForce RTX │+│ │ │ 5090 Laptop GPU) │+│ blender gpu slots │ OK │ 0/2 busy machine-wide │+│ │ │ (~/.cache/codeverse3d/slots/blender_gp… │+│ │ │ a render waits 60s, then the CPU │+│ node │ OK │ v24.14.0 │+│ three │ OK │ 0.182.0 │+│ │ │ (~/3dcodeverse/harness/runtime_js/node… │+│ puppeteer │ OK │ v24.43.1; chrome cache found │+│ │ │ (~/.cache/puppeteer) │+│ chrome webgl │ OK │ GPU: ANGLE (Microsoft Corporation, D3D12 (NVIDIA │+│ │ │ GeForce RTX 5090 Laptop GPU), OpenGL ES 3.1) │+│ gemini keys │ OK │ 30 key(s) │+│ in-flight slots │ OK │ 2/96 busy machine-wide │+│ │ │ (~/.cache/codeverse3d/slots/gemini; │+│ │ │ docs/COST.md §23) │+│ anthropic key │ WARN │ not set (anthropic:* backends unavailable) │+│ openai key │ WARN │ not set (openai:* backends unavailable) │+│ agy │ OK │ 1.4.12 │+│ claude │ OK │ 2.1.317 (Claude Code) │+│ codex │ OK │ codex-cli 0.166.0 │+│ git │ OK │ git version 2.53.0 │+│ agy gemini keys │ OK │ 30-key pool (Gemini-API mode, 3dcode MCP, priced) │+│ mcp │ OK │ mcp + codeverse3d.spatial.mcp_server importable │+└───────────────────┴────────┴────────────────────────────────────────────────────┘````--live` adds one more row (real output here, and the cheapest possible proof@@ -609,5 +630,5 @@ those by hand (`npm rm -g @anthropic-ai/claude-code @openai/codex`; agy: `rm ~/.| Chrome (puppeteer) | 148.0.7778.97 (+ headless-shell) | `~/.cache/puppeteer` || Blender | 5.2.2 LTS (build 2026-09-15; installed 2026-10-14, sha256-verified) | `~/.local/bin/blender-5.2` → `~/tools/blender-5.2.2-linux-x64` (any directory: the wrapper's `BLENDER_HOME`) || git | 2.53.0 | `/usr/bin/git` |-| agy / claude / codex | 1.3.4 / 2.1.241 / 0.149.0 | `~/.local/bin` / npm global |+| agy / claude / codex | 1.4.12 / 2.1.317 / 0.166.0 (the latest releases on 2026-11-03; re-verified live, D115) | `~/.local/bin/agy` · npm global (`~/miniconda3/bin`) || GPU (Chrome WebGL) | ANGLE · D3D12 · NVIDIA GeForce RTX 5090 Laptop GPU · OpenGL ES 3.1 | via `--use-angle=gl-egl` + Mesa d3d12 |diff --git a/harness/docs/RUNBOOK.md b/harness/docs/RUNBOOK.mdindex 558b8525..96e8c5dd 100644--- a/harness/docs/RUNBOOK.md+++ b/harness/docs/RUNBOOK.md@@ -2,7 +2,8 @@Everything here was exercised on this machine (WSL2, RTX 5090, Blender 5.2.2 LTS (since 2026-10-14; was 5.0.1),node 24, gemini-cli 0.53 (removed in D103), claude 2.1, codex 0.147+, agy 1.1) on 2026-08-23;-the agy rows re-checked on agy 1.3.4, 2026-10-13. Paths+the agy rows re-checked on agy 1.3.4, 2026-10-13, and the three CLI backends re-run live on+agy 1.4.12 / claude 2.1.317 / codex 0.166.0 on 2026-11-03 (D115). Pathsare relative to the harness root (`harness/` in the checkout) unless absolute. The CLI is`3dcodeverse` with short alias `3dcode` (used below).@@ -102,8 +103,11 @@ round, then ≈ $0.36 / ~7 min per refine (give scenes `--max-minutes 60`).* Cost: priced at Gemini list price; agy's `output_tokens` already include `thinking_tokens`, sooutput = output − thinking, thoughts = thinking (billed once).* `--print-timeout` = `timeout_s` + the watchdog's `HARD_GRACE_S` (5 min) + 1 min, so the watchdog- decides; agy's own clock stopping a turn (stderr `[agy] print timeout after …`, envelope still- `SUCCESS` with an empty response) is booked `exit_reason=timeout`. At `timeout_s + 1 min` it cut off+ decides; agy's own clock stopping a turn (envelope `finished_reason: print_timeout` since 1.4.11 —+ the typed verdict, read first — plus the stderr line `[agy] print timeout after …`, the envelope+ still `SUCCESS` with an empty response) is booked `exit_reason=timeout`; a turn whose verdict is+ `error` (the clock fired while agy was retrying a 503, live 2026-11-03) is booked an error. The+ verdict is on `result.json` as `finished_reason`. At `timeout_s + 1 min` it cut offevery argon scene asset/env session still working at 8 min (2026-10-13).* No retry loop in the backend: agy retries its own model calls (≤ 30 s waits since 1.3.4, stopsat once on a spent daily quota); a transient death goes to the round loop's ONE transport retry,diff --git a/harness/docs/SKILLS.md b/harness/docs/SKILLS.mdindex ea36294a..db05d2f5 100644--- a/harness/docs/SKILLS.md+++ b/harness/docs/SKILLS.md@@ -585,6 +585,12 @@ settled against the binaries: gemini-cli skips BOTH workspace roots in an untrusavoids; and agy's `--disable-slash-commands`, which the harness passes, only stops `/name`expansion of the prompt — its model still reads the bundles.+Re-checked 2026-11-03 on claude-code 2.1.317, codex 0.166.0 and agy 1.4.12 (`pytest -m live+tests/skills/test_live_discovery.py`): same roots, all three surface and read deep. claude-code+now reads `references/` with a shell loop (`cd …/<name> && for f in $(find references -type f);+do cat "$f"; done`) that names no path the trace can match; the probe credits such a read from+the file's atime while the control's `references/` stay untouched (`telemetry.probe_reads`, D115).+All four discover the library natively, with no injection from us. Two things this settledthat had only been argued statically:diff --git a/harness/tests/agents/test_antigravity.py b/harness/tests/agents/test_antigravity.pyindex c93f4ec6..b0e103a6 100644--- a/harness/tests/agents/test_antigravity.py+++ b/harness/tests/agents/test_antigravity.py@@ -53,10 +53,20 @@ if mode == "died": # a turn that ended on the API: AGY_ERROR on stderr, exiprint('AGY_ERROR: {"short_error":"generating: Error 503","status":"UNAVAILABLE","error_code":503,''"code_kind":"http","retryable":true,"error_id":"x"}', file=sys.stderr)sys.exit(3)-if mode == "print_timeout": # agy 1.3.4's own clock: SUCCESS, no response, one stderr line+if mode == "print_timeout": # agy's own clock (1.4.12): SUCCESS, no response, `finished_reason` and one stderr line+ print(json.dumps({"conversation_id": "c8", "status": "SUCCESS", "response": "", "num_turns": 1,+ "finished_reason": "print_timeout"}))+ print("[agy] print timeout after 8m0s with turn in progress; returning partial output", file=sys.stderr)+ sys.exit(0)+if mode == "print_timeout_old": # agy <= 1.4.10: the stderr line was the only signalprint(json.dumps({"conversation_id": "c8", "status": "SUCCESS", "response": "", "num_turns": 1}))print("[agy] print timeout after 8m0s with turn in progress; returning partial output", file=sys.stderr)sys.exit(0)+if mode == "error_at_timeout": # 1.4.12 live, 2026-11-03: the clock fired while agy retried a 503 — its verdict is `error`+ print(json.dumps({"conversation_id": "c7", "status": "ERROR", "response": "", "num_turns": 1, "finished_reason": "error",+ "error": "API error (attempt 1): Error 503, Message: high demand, Status: UNAVAILABLE, Details: []"}))+ print("[agy] print timeout after 2s with turn in progress; returning partial output", file=sys.stderr)+ sys.exit(0)if mode == "text":print("plain text answer")else:@@ -115,12 +125,26 @@ def test_agy_says_itself_whether_a_dead_turn_is_worth_a_retry(tmp_ws: Workspace,assert rec["agy_error"]["retryable"] is True and rec["agy_error"]["error_code"] == 503-def test_agys_own_print_timeout_is_a_timeout_not_an_empty_answer(tmp_ws: Workspace, fake_bin, monkeypatch):[email protected]("mode", ["print_timeout", "print_timeout_old"])+def test_agys_own_print_timeout_is_a_timeout_not_an_empty_answer(tmp_ws: Workspace, fake_bin, monkeypatch, mode):a = AntigravityAgent("gemini-4-argon-high", binary=fake_bin("agy", FAKE_AGY))- monkeypatch.setenv("FAKE_MODE", "print_timeout")+ monkeypatch.setenv("FAKE_MODE", mode)res = a.run(AgentJob(workspace=str(tmp_ws.root), prompt="hello", label="pt", timeout_s=30))assert not res.ok and res.exit_reason == "timeout" and not res.transientassert "--print-timeout" in res.errors[0] and "empty response" not in " ".join(res.errors)+ rec = json.loads((Path(res.transcript_path).parent / "result.json").read_text())+ assert rec["finished_reason"] == ("print_timeout" if mode == "print_timeout" else "")+++def test_the_envelopes_verdict_outranks_the_stderr_line(tmp_ws: Workspace, fake_bin, monkeypatch):+ """rc 0, `status: ERROR`, `finished_reason: error` AND the print-timeout line (1.4.12, live): an error."""+ a = AntigravityAgent("gemini-4-argon-high", binary=fake_bin("agy", FAKE_AGY))+ monkeypatch.setenv("FAKE_MODE", "error_at_timeout")+ res = a.run(AgentJob(workspace=str(tmp_ws.root), prompt="hello", label="et", timeout_s=30))+ assert not res.ok and res.exit_reason == "error"+ assert "status=ERROR" in res.errors[0] and "--print-timeout" not in res.errors[0]+ rec = json.loads((Path(res.transcript_path).parent / "result.json").read_text())+ assert rec["finished_reason"] == "error" and rec["killed_reason"] != "agy_print_timeout"@pytest.mark.livediff --git a/harness/tests/skills/test_telemetry.py b/harness/tests/skills/test_telemetry.pyindex 39748a10..f2250a86 100644--- a/harness/tests/skills/test_telemetry.py+++ b/harness/tests/skills/test_telemetry.py@@ -143,6 +143,31 @@ def test_the_cli_transcript_is_the_evidence_when_every_session_left_one(ws, librassert usage.deep_read_rate == 1 / len(got.listed)+def test_a_shell_read_the_trace_cannot_parse_counts_while_the_control_is_untouched(ws, library):+ """claude-code 2.1.317 (live, 2026-11-03) read the references with `cd <bundle> && for f in+ $(find references -type f); do cat "$f"; done`: no path to match, but the file's atime moved."""+ import time++ from codeverse3d.skills.materialize import CONTROL_NAME++ got = _attach(ws, library)+ a = got.listed[0]+ cd_cat = f'cd {ws}/.claude/skills/{a} && for f in $(find references -type f); do cat "$f"; done'+ _session(ws, "baseline", [{"tool": "Skill", "args": {"skill": a}, "skill": a},+ {"tool": "Bash", "args": {"command": cd_cat}}], t=time.time() + 1)+ usage = probe_reads(ws, got)+ assert usage.evidence == "transcript" and usage.surfaced == [a] and usage.deep == [] # the trace alone+ _touch_read(ws / ".claude" / "skills" / a / "references" / "worked_example.md")+ usage = probe_reads(ws, got)+ assert usage.deep == [a] and usage.control_present and not usage.control_read+ # once something opens the control's references too, the atime proves nothing again —+ # and control_read stays the trace's verdict: the agent itself never named the control+ for f in (ws / ".claude" / "skills" / CONTROL_NAME / "references").glob("*.md"):+ _touch_read(f)+ usage = probe_reads(ws, got)+ assert usage.deep == [] and usage.surfaced == [a] and not usage.control_read++def test_only_traced_sessions_after_the_attach_are_credited(ws, library):import time