Repository navigation
docs(design): add path locations design doc - #461
Conversation
Lets a policy name a directory without spelling its path. box.toml gains a [locations] table, and every fs:* action gains a locations input field, so one policy works for every project.
ferdingler
left a comment
There was a problem hiding this comment.
I'm generally in favor of having this kind of functionality to make policies more reusable. My only concern is what does this implicate for the user? Will they have to define these locations in their Box CLI profile? And if so, does that make their profile not reusable across workspaces? e.g. I may want to launch my agent in ~/foo but also in ~/bar with the same profile, but now I can't because their named locations won't match?
I think my concern would be mitigated if there was a way to reference a dynamic location such as the location from which the user spawned the box run. e.g. workspace should become a default location that is dynamic.
The other concern is the fact that policy logs location names instead of actual paths. I don't like that. The location name isn't useful, so users are losing useful information. Why is that the case?
The Box CLI already has the ability to use variables like So to that end, I'd say Box Core gets the new primitive for tagging locations, but it's the Box CLI/user-facing apps that decide what locations are tagged.
Reworded this - On logging, nothing replaces the path: every record keeps the full path, and locations is an extra field next to it. |
This comment has been minimized.
This comment has been minimized.
A time-based rule can't check whether a list holds a name, so a budget on one location undercounted. One true-or-false field per location can be matched on its own. Also describe the portable has form.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Assessment: Approve (re-review at 5e62635) The change since 102eafe is that limitation 2 and the §6 history test now say an event recorded before a location was declared, including by an earlier release, isn't in that location. So a budget on a new location starts counting from the declaration. I found nothing new to flag. My earlier optional suggestion, refusing a Checked and held at this head
|
Brings the containment fix that permits kill and rt_sigtimedwait for a workload that runs an init such as tini (dc1d8e8). Without it a workload started under tini dies at start. The fix branch sits on upstream 5ed679f (the v0.2.3 release commit), so this merge also brings in the four upstream commits after 941fd27, the base of dogfood/main: - e8b4ced docs(design): add path locations design doc (strands-agents#461) - aa18761 test(shell): pin that `sh FILE` is decided as `shell:exec` on `sh` (strands-agents#472) - 1ccd68a feat: add Linux x86-64 release downloads (strands-agents#475) - 5ed679f feat: add Linux filesystem policy operations (strands-agents#193) No conflicts. Git merged crates/box/{AGENTS.md,Cargo.toml}, crates/box/src/command/run.rs, crates/box/src/record/config/mod.rs, crates/box/src/run/contain/boundary.rs, crates/box/src/run/hosted.rs and docs/user/native-filesystem-policy.md automatically.
Description
Adds the design doc for path locations:
team/designs/0006-path-locations.md.Today a filesystem rule can only point at a directory by spelling out its path, so a rule like "the agent may write its project" holds that project's path. A tool that sets up boxes for many directories can't ship one policy for all of them. It has to generate those rules on every run, where the operator can't see or edit them.
The doc proposes a
[locations]table inbox.tomlthat names directories, and alocationsfield on everyfs:*action. A rule then sayscontext.input.locations.project, and the same policy file works for every project. A location only labels paths. It gives no access.The doc covers what the operator writes, how Box matches a file to its locations, five key decisions, limitations, and open questions. Review on this PR is the design review.
Related Issues
None.
Type of Change
Documentation update
Testing
Docs-only change; no code touched, so
just checkdoesn't apply.Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.