vetted-ops: commands outside the sandbox reuse a uv cache the sandbox can write

オープン
#2,176 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
security, tooling

調査の方向性

Read the known-residual note in #2133 and the SessionStart hook that provisions vetted-ops, then trace how vetted-op invokes uv and where the sandbox can reach ~/.cache/uv. The work is to choose between a hash-pinned offline environment and a separate UV_CACHE_DIR, then settle per-harness placement and an upgrade path with no window where neither environment is usable; done means the design is agreed and the outside-sandbox commands no longer reuse a sandbox-writable cache.

索引モデルが issue の本文から書いたものです。

説明

family:tools substrate:sandbox

Follow-up to the "Known residual" in #2133.

vetted-op and the tools it starts (the tracker backends, and since #2133 the Vulnogram client) run through uv, which resolves and reuses environments from ~/.cache/uv.
The agent sandbox can write to ~/.cache/uv, while these commands run outside the sandbox.
So the content of an environment that runs outside the sandbox can be influenced from inside it, which is the boundary vetted-ops otherwise holds: a fixed argv, the shipped client only, an allowlisted environment.

This is framework-wide, not specific to any one operation, so it needs its own design rather than a per-tool patch.
Options raised so far:

  • a hash-pinned environment installed by the SessionStart hook into a directory the sandbox cannot write, and run with --offline --no-sync;
  • a separate UV_CACHE_DIR for the commands that run outside the sandbox, placed where the sandbox denies writes.

Open questions: where such a directory lives on each supported harness, and how an upgrade replaces it without a window where neither the old nor the new environment is usable.

主要言語
Python
スター
152
フォーク
133
平均マージ
12時間 39分
マージ済み PR(30日)
384

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/magpie のほかの issue

apache/magpie の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。