Verify leased premises before acting
verify_premisesStage 2 of the pre-action guard. Re-checks the leases from check_premises against the live record and returns allow only when every one still holds. Catches a record that MOVED while you were preparing — compared by version, so an A to B back to A revision is still detected. Call this immediately before the external action, not earlier. Fails closed on expiry, version movement, a changed intended action, a bad signature or an unreadable record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leases | Yes | The leases to re-verify immediately before acting. | |
| intended_action | Yes | Must be the SAME string passed to check_premises. A mismatch fails closed with action_mismatch. |