Intent-Code Divergence
Medium
- Confidence
- 98% confidence
- Finding
- The safety docstring says OPENCLAW_HOME and OPENCLAW_WORKSPACE must not be the user's home directory root, but the implementation only checks that resolved paths start with 'home/'. As a result, values like '/home/user/..../user' resolving to the home root or equivalent edge cases are not explicitly rejected, weakening the intended trust boundary and potentially allowing the registry and flag logic to operate across the entire home directory tree.
