symfonic.capabilities.memory.native_deep_risk_runner¶
native_deep_risk_runner ¶
Opt-in named native DEEP risk phase over an exact PostgreSQL tenant owner.
This is a single phase, not the generic DEEP roster or generated worker route. The caller supplies verified tenant authority via DeepTenantOwner. The lease, guarded node patches, and journal replay use one pool transaction.
NativeDeepRiskResult
dataclass
¶
A fresh count or an exact replay with no reconstructed count.
NativeDeepRiskRunner ¶
NativeDeepRiskRunner(graph: PostgresGraphBackend, owner: DeepTenantOwner, *, lease_ttl_seconds: float = 30.0)
Run only the exact-owner native risk tag phase with durable exclusion.
Source code in src/symfonic/capabilities/memory/native_deep_risk_runner.py
run
async
¶
Return a fresh result, exact replay, or None for lease contention.