feat(permission): integrate auto-review and hard guards

This commit is contained in:
云服务部-叶林立
2026-09-02 15:34:29 +08:00
parent a4807dde67
commit 180da95ab7
79 changed files with 4263 additions and 9203 deletions
@@ -0,0 +1,20 @@
# AutoReview upstream source
The built-in AutoReview implementation under `src/auto-review/` was imported from:
- Repository: <https://github.com/mzwing/pi-packages/tree/main/packages/pi-permission-auto-review>
- Snapshot: `8d196e4ef0884cac8326c366191dad3f585d470a`
- Package version: `@mzwing/pi-permission-auto-review@0.2.0`
The original MIT license is preserved at
`LICENSES/pi-permission-auto-review-MIT.txt`.
Local integration changes:
- AutoReview is an internal authorizer of `pi-permission-system` rather than a
separately loaded Pi extension.
- Configuration is read from the unified `policy.jsonc`.
- Completed automatic decisions feed a count-based ledger and an isolated,
tool-free background analysis agent.
- Analysis proposals are delivered back into the active Pi session and never
modify policy without explicit user confirmation.