KamoCRM

SecurityService's chat policy reads member facts from the org graph, a graph loaded per snapshot (KamoCollab CP02 T10)

FeatureSecurityService
Shipped
October 5, 2026 at 3:04 PM UTC
Author
Kamo
Commit
8dbd3d6

ChatPolicyBeanConfig builds ChatPolicySnapshotLoader with the graph constructor and orgGraphCache::fresh (ruling CP02-T17-3), as MediaService does, so the roster's chat annotations and the member card read the same facts as every other hierarchy question. The legacy chat facts repository is no longer injected; shared-lib removes it in Task 18. ChatPolicyBeanConfigTest: the loader's facts are MemberFactsFromGraph of the graph fresh() returns for the org id (never get()); no active set asks for no graph; the service keeps its snapshot until invalidated; a 59 s old cached graph is not used; and the beans wire in a context with no legacy repository, where the publisher and the NATS listener each make the next snapshot read a new graph. ReferenceOrgGraph becomes public with members() and build().

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing