aft icon indicating copy to clipboard operation
aft copied to clipboard

File-tool floor: a setting to keep the refusal on all of the CortexKit data folder

Open iceteaSA opened this issue 5 days ago • 0 comments

Summary

Commit 24d7487ab ("open ordinary CortexKit data to file tools", in the batch merged with #1536) replaces the file-tool refusal on all of the CortexKit data root (<XDG_DATA_HOME>/cortexkit) with a narrower rule. Please add a user setting that keeps the refusal on all of that folder for file tools.

Measurement (candidate build at abd64ed00, standalone protocol, hermetic HOME)

We put one marker file in a copy of each top-level folder of our data root. Then we sent read and write requests through the standalone protocol, with host approval for paths that are not in the project.

  • v0.68.0 refuses file-tool reads and writes in each module folder.
  • The candidate allows reads and writes of the marker files in the folders of other modules after approval (49 of 49).
  • AFT's own storage, the state root, run/ and signing/ stay closed. Database and credential file names stay closed.
  • With each module folder in sandbox.read_deny, AFT refuses all requests, and the owning session can still read its own task output.
  • One read_deny entry for the full data root refuses the marker files. But it also refuses the owning session's reads of its own task output, and of capped tool output that AFT keeps in its storage. It also closes alfonso/worktrees and staging. We found no setting that lets these paths through a configured deny: AFT checks configured paths with the absolute floor, before the check for owned reads (crates/aft-db/src/access_policy.rs). When AFT storage moves out of the data root (AFT_STORAGE_DIR), only the output reads come back.
  • A marker in a folder that a link in the data root points to stays readable after approval, also with the root entry, because the check uses the link target.

Why a setting

On our host, some CortexKit modules keep private data in the data root: the stores of other agents, audit records and plugin state. The list of module folders changes. A list of folders in sandbox.read_deny must change for each new module. It also does not include files directly in the data root, or links from it to other folders.

Request

  1. A user setting (for example sandbox.module_data_file_floor: "full") that keeps the refusal on all of the data root for file tools, with the current carve-outs: owned reads in AFT storage, staging, and the checkout pool.
  2. Or let owned output reads through also when a user read_deny entry includes AFT storage, so that one entry for the data root keeps AFT's own output reads.

iceteaSA avatar Nov 29 '26 00:11 iceteaSA