Official Codebase of 3DCodeVerse
Python
docs: the class split is in the report, the git-safe claim is true, and the numbers match
ziyao851f835ad83f
diff --git a/harness/bench/data/plan_stage/README.md b/harness/bench/data/plan_stage/README.mdindex f4238e67..7d7d3ad8 100644--- a/harness/bench/data/plan_stage/README.md+++ b/harness/bench/data/plan_stage/README.md@@ -26,16 +26,23 @@ Three arms, **one window**, same battery and planner:`trigger_wide.jsonl` is the trigger as D52 measured it, run from a worktree at commit9506737 (280); `trigger_narrow.jsonl` is the narrowed one (280).-| arm | judged | `PlanningError` | rate | dangling-link class | `parent == child` class |-|---|--:|--:|--:|--:|--:|-| off | 140 | 4 | 2.9 % | 3 | 1 |-| wide | 275 | 6 | 2.2 % | 4 | 2 |-| narrow | 275 | 4 | 1.5 % | **0** | 4 |+| arm | judged | losses | rate | dangling-link | `parent == child` | other |+|---|--:|--:|--:|--:|--:|--:|+| off | 140 | 4 | 2.9 % | 3 | 1 | 0 |+| wide | 275 | 6 | 2.2 % | 4 | 2 | 0 |+| narrow | 276 | 5 | 1.8 % | **0** | 4 | 1 |++(`other` is one `BudgetExceeded`: a harness budget ceiling, which the first pass had filed+as provider weather and dropped from the denominator. `outcome()` now counts anything+that is neither a `PlanningError` nor a named provider failure as a loss.)**No pair separates on the overall rate** (Fisher 0.45–0.75), and this window did notreproduce D52's headline at all: its own control arm loses 2.9 %, not 4.7 %. The-separation is inside the class the mechanism targets: **off 3/140 vs narrow 0/275,-p = 0.038**. Read the class column, not the total.+separation is inside the class the mechanism targets: **off 3/140 vs narrow 0/276,+p = 0.038** (the `dangling_link` column of the class table the report prints). Read the+class, not the total — and read the order it was found in: the three overall-rate tests+came back at 0.45–0.75 FIRST, and the class split was looked at afterwards, so 0.038 is an+exploratory result on a pre-specified mechanism, not a pre-registered test.Two secondary readings, both consistent with the change:diff --git a/harness/docs/DECISIONS.md b/harness/docs/DECISIONS.mdindex 6b1bb62e..f640f58d 100644--- a/harness/docs/DECISIONS.md+++ b/harness/docs/DECISIONS.md@@ -683,11 +683,13 @@ written) that were accepted because the code works that way and the tests pin ittrigger fired on any dangling link reference while the measured class is narrower, andthat a restart spent one of the two validation re-ask slots. Both changed; three armsin ONE window (700 calls, `bench/data/plan_stage/trigger_{off,wide,narrow}.jsonl`) say:- overall loss 2.9 % (off, 4/140) / 2.2 % (old trigger, 6/275) / 1.5 % (narrowed, 4/275),+ overall loss 2.9 % (off, 4/140) / 2.2 % (old trigger, 6/275) / 1.8 % (narrowed, 5/276,+ the fifth being a harness budget ceiling that the first pass had filed as weather),**no pair separating** (Fisher 0.45–0.75) — this window's control loses 2.9 %, not the4.7 % above, so the headline is a property of that window as much as of the switch.The separation is inside the class the mechanism targets: dangling-link deaths **3/140- off vs 0/275 narrowed, p = 0.038**, with the old trigger still at 4/275 — and all four+ off vs 0/276 narrowed, p = 0.038** — exploratory, in that the three overall-rate tests+ were run first and came back null — with the old trigger still at 4/275 — and all fourof those carry `restarts=1` and died at the validation cap, which is exactly the slotthe restart used to consume. The narrowed trigger fires on 28 of 280 calls against 38and recovers 27 of 28 against 33 of 38. Ships narrowed: same effect on the class it@@ -721,8 +723,11 @@ written) that were accepted because the code works that way and the tests pin itthree templates, and the measurement above is the record of what it was worth. Tore-run it, restore the branch commit named in docs/PAPER_WRITING.md §9.3.* **Reading an agent's repo is a sandbox boundary, and `git archive` is not inside it.**- Every flywheel read of a workspace already ran under `GIT_SAFE_FLAGS` (no repo config,- no hooks, no user config) plus `--no-ext-diff --no-textconv` for diffs, because a+ Every flywheel read of a workspace already ran under `GIT_SAFE_FLAGS` (five `-c`+ overrides — hooks, fsmonitor, the global attributes file, `diff.external` — plus no+ system/global config from `git_safe_env`; `.git/config` itself is still read in full,+ which is the whole reason the tests plant there) and `--no-ext-diff --no-textconv` for+ diffs, because a`.gitattributes` the agent writes can name a `diff.<name>.textconv` command that gitRUNS on our side. `read_tree_at` still used `git archive`, which renders every blobthrough `convert_to_working_tree` — so a planted `filter.<name>.smudge` executes, anddiff --git a/harness/docs/INTERFACES.md b/harness/docs/INTERFACES.mdindex 46d0c58c..0d2f9b6b 100644--- a/harness/docs/INTERFACES.md+++ b/harness/docs/INTERFACES.md@@ -537,8 +537,12 @@ from codeverse.flywheel._git import read_tree_at, diff_between, changed_files_be# changed_files_between(ws, before, after) -> [path]; commit_exists(ws, commit) -> bool# both under GIT_SAFE_DIFF_FLAGS (--no-ext-diff --no-textconv) on top of workspace.GIT_SAFE_FLAGSfrom codeverse.workspace import GIT_SAFE_FLAGS, GIT_SAFE_DIFF_FLAGS, git_safe_env- # every read of an agent-written repo goes through these: no repo config, no external diff/textconv,- # no hooks, no user config (git_safe_env strips GIT_CONFIG*, GIT_DIR, GIT_EXEC_PATH, ...)+ # every read of an agent-written repo goes through these. They do NOT disable .git/config —+ # git reads it in full; `-c` only OVERRIDES five keys (hooksPath, fsmonitor, attributesFile,+ # diff.external, plus the diff flags), which is why a NAMED filter./diff. driver in .git/config+ # is still live and why read_tree_at avoids every content-rendering command. git_safe_env drops+ # the SYSTEM and GLOBAL config (GIT_CONFIG_NOSYSTEM, GIT_CONFIG_GLOBAL=/dev/null) and the+ # inherited environment (HOME, PATH, GIT_TERMINAL_PROMPT)from codeverse.flywheel.captions import caption_sample # Δ (ws, record, model_id, *, model=None, out_dir=None) -> Captions;# out_dir → side-car <out_dir>/<slug>.json, run untouchedfrom codeverse.gallery import build_index, default_roots, build_static, serve, GalleryApp # THE local gallerydiff --git a/harness/docs/PAPER_WRITING.md b/harness/docs/PAPER_WRITING.mdindex 6ac49804..be03c61e 100644--- a/harness/docs/PAPER_WRITING.md+++ b/harness/docs/PAPER_WRITING.md@@ -204,12 +204,15 @@ slots). Three arms in ONE window, 700 calls,|---|--:|--:|--:|--:|--:|| restart off | 140 | 4 | 2.9 % | 3 | 1 || trigger as measured above | 275 | 6 | 2.2 % | 4 | 2 |-| trigger narrowed | 275 | 4 | 1.5 % | **0** | 4 |+| trigger narrowed | 276 | 5 | 1.8 % | **0** | 4 (+1 budget ceiling) |**No pair separates on the overall rate** (Fisher 0.45–0.75) — and this window's owncontrol loses 2.9 %, not 4.7 %, so the headline above is a property of its window as muchas of the switch. The separation is inside the class the mechanism targets: **3/140 off-vs 0/275 narrowed, p = 0.038**. All four of the old trigger's dangling-link deaths carry+vs 0/276 narrowed, p = 0.038**. Order matters for how that is read: the three overall-rate+tests were run first and came back null, and the class split was examined afterwards, so+this is exploratory evidence on a pre-specified mechanism rather than a pre-registered+test. `bench/plan_stage_report.py` prints the class table and the per-class p. All four of the old trigger's dangling-link deaths carry`restarts=1` and died at the validation cap — the re-ask slot the restart used to consume.The narrowed trigger fires on 28 of 280 calls against 38 and recovers 27 of 28 (96 %)against 33 of 38 (87 %).