gstack
gstack copied to clipboard
Anchor sanctioned write targets in plan harness
Summary
- replace substring-based sanctioned write matching with an anchored path predicate
- allow only cwd/home-scoped sanctioned directories and top-level sanctioned files
- add regression coverage for path-confused CHANGELOG.md and .gstack write targets
Validation
- /Users/sandog/.real/.bin/bun test test/helpers/claude-pty-runner.unit.test.ts
Merging to main in this repository is managed by Trunk.
- [ ] To merge this pull request, check the box to the left or comment
/trunk mergebelow.
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here