context property

PulseContext get context

The operational tier and security authority under which this pulse propagates.

When to use

  • Security & Provenance: Read this to understand the pulse's authority — who sent it, why, and with what clearance. The framework uses it for validation and auditing.
  • Validating a pulse's authority in a custom receptor.
  • Auditing who sent a signal.
  • Checking clearance before processing sensitive data.
  • Understanding the provenance of a signal.

How it works

The context carries actor, reason, sensitivity, and compliance metadata. It's resolved by walking up the parent chain if not explicitly set.

Example

final pulse = Pulse.governed<int>(
  payload: 42,
  context: PulseContext(
    actor: 'admin',
    reason: 'system_update',
    sensitivity: Sensitivity.confidential,
  ),
);

Implementation

PulseContext get context;