Learn about this topic in these articles:

regent

...the imperial police, who ultimately developed powers to investigate crimes and determine punishments. The two most important posts developed outside the
ritsuryō codes were those of
sesshō (regent) and
kampaku (chief councillor), better known by an abbreviated combination of the two terms,
sekkan (regency). The original role of the
sesshō was...