Return a new invalidated token.
(self, reason: str)
| 231 | return ScopeCheckResult(passed=len(violations) == 0, violations=violations) |
| 232 | |
| 233 | def invalidate(self, reason: str) -> ExecutionToken: |
| 234 | """Return a new invalidated token.""" |
| 235 | return self.model_copy(update={ |
| 236 | "invalidated_at": _now_utc(), |
| 237 | "invalidation_reason": reason, |
| 238 | }) |
| 239 | |
| 240 | def mark_used(self) -> ExecutionToken: |
| 241 | """Return a new token marked as consumed.""" |
nothing calls this directly
no test coverage detected