wm_init
Scaffolds the metabolism.json policy file by scanning workspace and assigning safe G1-G4 grades. Run before the first audit or clean to enable wm_audit and wm_clean; fails if a policy exists.
Instructions
Scaffold the metabolism.json policy file for this workspace (like git init): scans the workspace and generates a policy that grades every directory G1-G4 with safe defaults — source, docs, tests, secrets, dotfiles and version control are never auto-cleaned. Use this once, when no policy file exists, before the first audit or clean; after it succeeds, wm_audit and wm_clean can operate. Fails without writing anything if a policy already exists and force is not set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Overwrite an existing policy file instead of failing. Only set this when you explicitly want to regenerate the whole policy from scratch — a hand-tuned policy with custom entries will be replaced. |