Skip to main content

Module environment

Module environment 

Source
Expand description

Environment scoping for WeftOS governance.

Environments (development, staging, production) define governance scopes with different risk thresholds, capability sets, audit levels, and learning policies. The same agent identity operates across environments but with capabilities scoped to each environment’s governance rules.

§Design

All types compile unconditionally. Environment-scoped governance enforcement requires the kernel’s capability checker and is wired in the boot sequence. The self-learning loop (SONA integration) requires the ruvector-apps feature gate.

Structs§

Environment
An environment definition with its governance scope.
EnvironmentManager
Environment manager.
GovernanceBranches
Active governance branches (three-branch separation).
GovernanceScope
Governance scope defining rules for an environment.

Enums§

AuditLevel
Audit trail detail level.
EnvironmentClass
Environment class determines base governance rules.
EnvironmentError
Environment management errors.
LearningMode
SONA learning mode.

Type Aliases§

EnvironmentId
Unique environment identifier.