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

Method is_valid

src/orgkernel/schemas/execution_token.py:194–202  ·  view source on GitHub ↗

True if token is not expired, not used, and not invalidated.

(self)

Source from the content-addressed store, hash-verified

192
193 @property
194 def is_valid(self) -> bool:
195 """True if token is not expired, not used, and not invalidated."""
196 if self.used:
197 return False
198 if self.invalidated_at is not None:
199 return False
200 if self.is_expired:
201 return False
202 return True
203
204 def check_scope(self, tool: str, params: dict) -> ScopeCheckResult:
205 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected