feat: atomically journal and deliver authorized native operation outcomes
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a0e747-8f27-7242-8df8-8bc44f88c929
This commit is contained in:
parent
3c5cbfbafe
commit
f0eff0ac92
13 changed files with 583 additions and 28 deletions
8
hub_core/security/context.py
Normal file
8
hub_core/security/context.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
"""Request-scoped, verified authority for transaction attribution (never tokens)."""
|
||||
from contextvars import ContextVar
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from hub_core.security.boundary import Authorization
|
||||
|
||||
current_authorization: ContextVar['Authorization | None'] = ContextVar('hub_authorization', default=None)
|
||||
Loading…
Add table
Add a link
Reference in a new issue