Skip to content
docsv0.1.0

InvocationIdentity

Identity of whoever invoked a governance run (human, agent, CI).

InvocationIdentity::__construct()

public function __construct(string $kind, string $id):

Parameters

Parameters of __construct()
NameTypeDescription
$kindstringType of invoker (e.g.: "human", "agent", "ci")
$idstringIdentifier of the invoker (e.g.: "rodrigo", "claude-code")

InvocationIdentity::toArray()

public function toArray(): array

Serializes the identity to an array for storage or transmission.