Enum Class LocalFsMode

java.lang.Object
java.lang.Enum<LocalFsMode>
io.agentscope.harness.agent.workspace.LocalFsMode
All Implemented Interfaces:
Serializable, Comparable<LocalFsMode>, Constable

public enum LocalFsMode extends Enum<LocalFsMode>
Path-resolution policy mode for host-rooted filesystems (LocalFilesystem and friends).

Controls what happens when the agent supplies an absolute path:

  • SANDBOXED — anchor every path to the filesystem root, reject .. and absolute paths leaving the root. Equivalent to the legacy virtualMode=true.
  • ROOTED — absolute paths are accepted only when they fall under one of the roots in the configured PathPolicy (project + workspace + additional roots). Relative paths still resolve against the filesystem root. This is the default for Local-mode agents and matches the Claude-Code-style "project + additional dirs" allow-list.
  • UNRESTRICTED — absolute paths pass through unchanged. Equivalent to the legacy virtualMode=false. Escape hatch for tools or tests that need to read arbitrary host paths.
  • Enum Constant Details

  • Method Details

    • values

      public static LocalFsMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LocalFsMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null