Fzz1 commited on
Commit
95fba99
·
verified ·
1 Parent(s): 5047b80

pyshadowAp: 1186 tasks (4378 rows; 82 security-domain, counted only): the python-path fix now also appends the current directory at the end of sys.path on every changed python call (585 tasks); grader test path pinned to /tests (21 tasks); env script no longer sourced (616 tasks); tests/test.sh only; ; strict kill gate; tars rebuilt, tar==parquet; killed and river splits untouched; every other row and package byte-identical

Browse files
README.md CHANGED
@@ -78,6 +78,16 @@ cf = load_dataset("Fzz1/tb-full-data", "calibforge") # cf["calibforge_clean"]
78
 
79
 
80
 
 
 
 
 
 
 
 
 
 
 
81
  ## Fix (2026-11-10): grading made safe against files the solver plants, in 1238 tasks
82
 
83
  **Python path (619 tasks).** `tests/test.sh` ran python with the current directory first on `sys.path` (`python -m ...` or `python -c ...`), so a module file the solver leaves in that directory (for example `pytest.py` or `pluggy.py`) would replace the real one. Every such python call in `tests/test.sh` now drops the current directory from `sys.path` before anything is imported (`-m` launches run through `runpy`, and `-c` code first removes the empty / `.` entries from `sys.path`); for 36 tasks whose tests need that directory importable, it is appended at the end of `sys.path` instead, so the real modules always win.
 
78
 
79
 
80
 
81
+ ## Fix (2026-11-10): the current directory stays importable; grader test path pinned; env script not sourced, 1186 tasks
82
+
83
+ **Python path (585 tasks).** In these tasks of the python-path fix above, every changed python call in `tests/test.sh` now also appends the current directory at the end of `sys.path` (before, only the tasks classified as needing it did), because some tests import modules installed under it. It stays after every installed module, so a planted file there still cannot replace a real one.
84
+
85
+ **Test path (21 tasks).** These `tests/test.sh` chose the test file between `/tests` (uploaded fresh at grading) and another location the solver can create or edit, e.g. `/workspace/tests`. The variable is now always the `/tests` value: honest runs already used it, and a planted copy elsewhere is no longer picked.
86
+
87
+ **Env script (616 tasks).** These `tests/test.sh` sourced the uv or cargo env script, which the installer does not overwrite when a copy is already there, so a planted one could redefine commands or set pytest options. They now set `PATH` directly (all the script does) and unset `PYTEST_ADDOPTS` / `PYTEST_PLUGINS`.
88
+
89
+ Nothing else changes.
90
+
91
  ## Fix (2026-11-10): grading made safe against files the solver plants, in 1238 tasks
92
 
93
  **Python path (619 tasks).** `tests/test.sh` ran python with the current directory first on `sys.path` (`python -m ...` or `python -c ...`), so a module file the solver leaves in that directory (for example `pytest.py` or `pluggy.py`) would replace the real one. Every such python call in `tests/test.sh` now drops the current directory from `sys.path` before anything is imported (`-m` launches run through `runpy`, and `-c` code first removes the empty / `.` entries from `sys.path`); for 36 tasks whose tests need that directory importable, it is appended at the end of `sys.path` instead, so the real modules always win.
data/calibforge_1030c800_fast.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:161c6e9a14ffd147a56d654c86bd659138418874153257d35ebd3f62c12e3f8c
3
- size 2788760
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27a4565cda3558ee907f453e31799bfc8846399032dacfe52af77c2789e08abd
3
+ size 2788120
data/calibforge_clean.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2c97b09958288b5a89315a31f91233590b319cff25068596e40274c4d0fe26a0
3
- size 12588318
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71132be7f8cc4b6eb856c6367652912eebce03ca921e02217dfe7c9866784a33
3
+ size 12597996
data/calibforge_clean_v2.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e7368b689bc7df01e4b81f2a164a063fd4df444c306653ca09716d8be0f02296
3
- size 10060133
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e6e617ab33a96ebd75e54f0191978f26dec13da50912d2b64e0e181ca161e56
3
+ size 10055281
data/calibforge_clean_v2_fast.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:be0556d3d3b0dc446d95f86c38e5329dd4a1a3f2866bf0ad45d4d74bc0076f8e
3
- size 9670510
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51fab2e439869876d44c8a07fe6c3cb604b3b27b089837cd4a811932622fae61
3
+ size 9666589
data/calibforge_fresh900_fast.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3ab6d8c13926e8500e47e9373016200bef967158367e32b6bf6f1927441efcf3
3
- size 3875216
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d5385cd75d80f13045a1e0ec47a9ed7d9a9ed7a18efdefbb69cea07267bcf3e
3
+ size 3880263
data/calibforge_pick850_fast.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:40f4ee6b24b4d7c4a69fd8387d4dd06814a17a94e3e04681a591d03a0b52c094
3
- size 3405393
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5c8ddecb5847c2a9ef2ebe0f726824cb75f2456b27ebb8b9df50a1ce688b1c4
3
+ size 3410642
data/tasks-calibforge_1030c800_fast.tar CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b699df19a4f92ae9ccd7082b84325abd7c3103635bda67e31b76711332f2c545
3
- size 177725440
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b18a3aab43b5c90a9b8fe1c01969ebebcfe4bf3931e4c635946cd5e6052a683f
3
+ size 177735680
data/tasks-calibforge_clean.tar CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:389dbd0228739b3788388489e7a496d3d3a45810df9591cf42c042e6a2b6241b
3
- size 1153617920
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfe93a7b55f42fcea4fd62cffa984c042a4712e504c4e60374bb0fd8390f69e1
3
+ size 1153628160
data/tasks-calibforge_clean_v2.tar CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ee98bf7509415467454b77ba2bc8e591ea4abe75188754c6e03d8e007b972a83
3
  size 472197120
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04b1e0b4b4d2d14e9e14b848ecdc286fca735e9f0f2ee26e2676fd4e5222faeb
3
  size 472197120
data/tasks-calibforge_clean_v2_fast.tar CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d9924062a07f23b211f3c3222acbc5fd6b2a1f81ab39a40077a94ddd8d5a2d58
3
- size 472197120
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:527ee1b3edec0970b233db9a759340f3d0098817f253498da7072bcea7f354fa
3
+ size 472207360
data/tasks-calibforge_fresh900_fast.tar CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a4ead683a61c16f7adc26ff2113b5663e58a9946be6957ff5da5052b5744ddb8
3
- size 178503680
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90d6f2d181755ed277bf3657e9f2ea50a8ca174932d2b5d08c9e807e7b0f731b
3
+ size 178513920
data/tasks-calibforge_pick850_fast.tar CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:18bca7d94c717d031edd40975662546803a9200eec6379ce6010ff4137d58ebf
3
- size 280913920
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19d7ab053edc4d245ef9fb1eda124c74df0f5dae8d578abcc9707791157ca597
3
+ size 280924160