MCPcopy Create free account
hub / github.com/MetapriseAI/OrgKernel / invalidate

Method invalidate

src/orgkernel/schemas/execution_token.py:233–238  ·  view source on GitHub ↗

Return a new invalidated token.

(self, reason: str)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

_now_utcFunction · 0.70

Tested by

no test coverage detected