wm_audit
Run a read-only workspace audit and get a JSON report of every covered path, its grade, cleanup state, and anomalies. Summarizes sensitive files by default; never modifies files.
Instructions
Run a read-only workspace audit and return the complete report as JSON: every path the policy covers, its grade (G1-G4), its cleanup state, and any anomalies. Use this at the start of a session to see what the metabolism policy says about the workspace, or before planning any cleanup. Sensitive files are summarized by default — dependency trees collapsed into counted directory groups, workspace-owned files listed individually — so a 'nothing is due' answer stays small; pass detail='full' for every entry. Never moves or modifies any files; if no policy file exists it reports that instead of failing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dupes | No | When true, additionally scan for possible duplicate files (slower). | |
| detail | No | summary (default) returns sensitive files as counts plus one group per dependency tree and lists workspace-owned files individually; full returns every sensitive entry, as earlier versions did. Nothing is dropped in either mode — the full list is always written to the audit report file (report_path). | summary |