aegis_scan
Call before editing files to retrieve the governance rules that apply to them, ranked by ledger fitness and capped to the JIT token budget.
Instructions
Call before editing files: returns the governance rules that apply to them, ranked by ledger fitness and clamped to the JIT token budget. Mandatory rules (gates, invariants) take at most two slots; the others are listed in omitted_mandatory. Gates and invariants are served from the reviewed base commit (rules_base); branch-local edits to them never bind and are listed in unreviewed_rules. stale_rules lists rules edited since the last aegis sync. If any rule file cannot be loaded the scan fails (status FAIL) and names it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | Optional response projection: full (default), summary or ids. | |
| files | No | Workspace-relative files you are about to edit. Defaults to the git diff. |