Same unconfined `predictions/<item_id>` path pattern remains in four benchmark rollouts
メンテナーはふだん 6 日以内に返信
評価
調査の方向性
Start with the merged reference implementation in skillopt/envs/spreadsheetbench/rollout.py (_is_safe_task_id(), _confined_task_out_dir()), then decide whether to lift them into a shared helper. Apply the pattern to the listed call sites in skillopt/envs/docvqa/rollout.py:173,:232, livemathematicianbench/rollout.py:144, searchqa/rollout.py:204, and officeqa/rollout.py:530, keeping in mind livemathematicianbench's colon-shaped ids need an id-to-safe-dirname mapping rather than validation-and-reject. Any mapping must be applied on the read side too: skillopt/optimizer/slow_update.py:113 reads predictions/<task_id>/conversation.json. Done when ids like ../../x cannot escape out_root and existing rollouts plus the reader still resolve their own outputs.
索引モデルが issue の本文から書いたものです。
説明
Follow-up from #264 (now merged). That PR validated the SpreadsheetBench task identifier and confined its persistent output directory. The same unconfined pattern remains in four other benchmark rollouts:
skillopt/envs/docvqa/rollout.py:173and:232skillopt/envs/livemathematicianbench/rollout.py:144skillopt/envs/searchqa/rollout.py:204skillopt/envs/officeqa/rollout.py:530
Each is os.path.join(out_root, "predictions", item_id), where item_id comes straight from the dataset item — no validation of the identifier and no containment check on the destination. An id such as ../../x therefore derives a destination outside out_root and processing continues into the model / code-execution path. skillopt/envs/spreadsheetbench/rollout.py now has _is_safe_task_id() and _confined_task_out_dir(), which could be lifted into a shared helper.
Two caveats are why this is filed rather than sent as a direct port:
-
A charset validator is not sufficient for
livemathematicianbench. Its ids are colon-shaped (202602:12), so all 177 ids across the shipped splits would be rejected by the SpreadsheetBench rule. Those runs need confinement by construction (map an id to a safe directory name) rather than validate-and-reject. Separately, an id containing:cannot be a Windows directory name at all, so those runs are already broken on Windows for an unrelated reason. -
Renaming the directory is not free. Readers look the task up by its raw id —
skillopt/optimizer/slow_update.py:113readspredictions/<task_id>/conversation.json— so any id-to-dirname mapping has to be applied on the read side too.
docvqa (63180), searchqa (hex) and officeqa (UID0003) use ids that are already safe shapes, so for those three the SpreadsheetBench approach can be applied as-is.
Filed separately because it is outside #264's reviewed scope.
- 主要言語
- Python
- スター
- 18k
- フォーク
- 1.7k
- 平均マージ
- 6日 18時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/SkillOpt のほかの issue
-
项目还在迭代嘛?オープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
microsoft/SkillOpt#291 · コメント 1 件 ·
メンテナーはふだん 6 日以内に返信
-
Release cut for the Aug adopt/webui hardening + 2 residual staging gaps対応中かも @RohithPariki が 20 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
microsoft/SkillOpt#288 · コメント 2 件 ·
メンテナーはふだん 6 日以内に返信
-
skillopt-sleep Codex harvest ingests its own headless replay sessions対応中かも @kaluli123123 が 20 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
microsoft/SkillOpt#286 · コメント 3 件 ·
メンテナーはふだん 6 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
microsoft/SkillOpt#283 · コメント 1 件 ·
メンテナーはふだん 6 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 6 日以内に返信
microsoft/SkillOpt の issue をすべて見る
似ている issue
-
area: desktop area: website priority: P2 type: feature
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
appandflow/stim#3411 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1時間未満 初心者へのやさしさ 88/100
baptistehamon/lsapy#185 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
PolicyEngine/policyengine-us#10073 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
syedhamidali/radarx#277 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Arekkazu/sgpmp-backend#549 ·
メンテナーはふだん 1 日以内に返信