sweep_expired_defeated
Delete defeated beliefs after their grace period and probability decay, returning the number removed. Restrict the sweep to a project plus global beliefs or run it across everything.
Instructions
Delete defeated beliefs whose grace period has elapsed (attenuated deletion — a defeated belief is deleted only once its probability has decayed below prob_threshold AND grace_hours have passed since it was last defeated, giving a wrong record_defeat call time to be caught and reversed first). Returns count of beliefs deleted. If project is given, restricts the sweep to that project's beliefs plus untagged (global) beliefs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Restrict the sweep to this project's beliefs plus untagged (global) beliefs. Omit to sweep everything. | |
| grace_hours | No | Hours since the belief was last defeated before it can be deleted. | |
| prob_threshold | No | Probability below which a defeated belief becomes eligible for deletion. |