orchestrata_ultimate.kernel.pam

Reference › orchestrata_ultimate › kernel › pam

PAM++ enforcement subsystem (decomposed from pam_enforcer).

The PAM++ enforcement subsystem of the kernel package. PAM++ decides authority, ownership, boundary and permission questions about volks by querying Prolog rules in the pam module, and manages the escalations that result when volks conflict. It was split out of a single pam_enforcer module, which remains as the shim pam_enforcer. It serves SPEC-001 story US-003, with the multi-hop escalation tied to story US-005. The curated kernel page shows it beside the other governance engine.

The parts:

Control flows from a caller to PAMEnforcer, which sends a query through the Prolog bridge in an executor and converts the answer to a typed result; a failed query counts as a denial, and denials are logged as violations. When a conflict is detected, EscalationManager asks Prolog for the path and priority, creates an EscalationResult and notifies the first authority, falling back to the orchestrator alias U:Ox. The package has no process entry point; callers import the classes. Start with enforcer. The governance package's own decision engine is described at policy_engine.

4 modules, 1,323 lines of code.

Modules

Module Summary LOC
__init__ PAM++ enforcement subsystem (decomposed from pam_enforcer). 64
enforcer PAM++ Enforcement Engine (PAMEnforcer). 592
escalation Escalation management for PAM++ (EscalationManager, MultiHopEscalationManager). 447
types Shared types for PAM++ enforcement: enums, dataclasses, and constants. 220

Dependency diagram

Package dependency diagram orchestrata_ultimate.kernel.pam