Skip to content

[Appliance Core] Add safety gating, autonomy modes & action whitelist stub #30

@saviornt

Description

@saviornt

Description

Implement autonomy mode enforcement and basic action whitelisting to prevent unsafe or unapproved actions in lower autonomy levels.

Why: Safety-first principle — edge must never take dangerous actions without governance.

Type

  • Task

Focus Area (pick one)

  • Auth & Security / Appliance Core (Pi edge)

Priority

  • Critical

Acceptance Criteria

  • AutonomyMode enum (ADVISE, MONITOR, ASSISTED, AUTONOMOUS, etc.)
  • SafetyGate class that checks mode + whitelist before any action execution
  • Rejected actions logged with clear reason
  • Configurable via Pydantic Settings (e.g. current mode from env/config)
  • Stub methods for future rollback snapshot integration

Blocker / Dependencies

  • Appliance async loop implementation

Notes / Links

  • Aligns with security_design.md and vision.md fail-open principles

Metadata

Metadata

Assignees

Labels

needs-triageNew issue that hasn't been reviewed/prioritized yettaskGeneral work item (implementation, setup, cleanup) – most common label

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions