oliver-zehentleitner / maity

runner: check the private paths' characters before they become sandbox rules

Sign in to report

tsk-c4ketevtzssy Open

The runner turns its private paths (the agent user's secrets, the state dir, the runner config, the agent files, and other clones' maity state) into deny rules for every harness's sandbox, but it never checks their characters the way #1962 checks the clone path. Some characters change what a sandbox rule means.

Done when:

  • every private path that becomes a sandbox rule is checked against the same character set as #1962 (config.rule_glob_chars()), on the resolved path. A placement whose private path fails the check doesn't start, and the runner log names the path (never the hub). At minimum this covers Codex; cover Claude Code and Antigravity too unless the rule is shown to be literal there;
  • for Antigravity, check whether parentheses need the same treatment (see the #1962 reviews);
  • there's a test per harness, with a counter-check;
  • docs/runners.md says which characters a host path must not hold, together with #1962's sentence;
  • there's a Keep the Why entry and a changelog fragment.

Details: from the review lead, by DM. After #1962, same code.