Skip to main content

Module deontic_interrupt

Module deontic_interrupt 

Source
Expand description

A8 — Hardware Deontic F(φ) Interrupts & Phase Leasing.

Immediate seL4-style capability revocation upon prohibition breach, plus phase-based capability allow-listing. Inspired by seL4’s capability model: capabilities are explicitly granted per phase, and any breach triggers an immediate interrupt that revokes all capabilities and halts the agent.

§Design

  • Phase: A named execution phase with an associated capability allow-list. Capabilities are leased for the duration of the phase.
  • PhaseLeaser: Manages phase transitions, granting and revoking capabilities as phases change.
  • DeonticInterrupt: Triggered when a prohibition is breached. Immediately revokes all capabilities and halts execution.
  • InterruptHandler: Processes interrupts, recording the breach and notifying the governance layer.

§Integration

  • Uses A6 (dag) for execution state tracking.
  • Uses the existing deontic_logic module for prohibition definitions.
  • Designed for seL4-style immediate revocation (no deferred cleanup).

Structs§

AgentSandbox
An agent sandbox provides isolated execution with deontic interrupt capability. Each agent gets its own phase leaser.
DeonticInterrupt
A deontic interrupt event.
Phase
An execution phase with an associated capability allow-list.
PhaseLeaser
The phase leaser manages phase transitions and capability grants. Capabilities are leased for the duration of a phase and automatically revoked when the phase ends or an interrupt occurs.

Enums§

InterruptType
The type of deontic interrupt.
LeaseError
Errors from the phase leaser.

Constants§

MAX_CAPS_PER_PHASE
Maximum capabilities per phase.
MAX_INTERRUPT_HISTORY
Bounded interrupt history reserved during cold leaser construction.
MAX_PHASES
Maximum phases per pipeline.
MAX_SANDBOX_AGENTS
Maximum agents in the sandbox.