Skip to main content

Module context

Module context 

Source
Expand description

The AuditContext trait — dependency injection for every environment touch.

Port of the AuditContext interface in src/types.ts. Checks receive &dyn AuditContext and never touch the filesystem directly, so they stay unit-testable against an in-memory mock. The real tokio::fs-backed impl lives in the secureops-fs crate (Ring 0/1); the daemon (Ring 2) supplies its own. Keeping I/O behind this trait is what lets core and checks stay I/O-free per PRODUCT.md A.4.

Structs§

ChannelConfig
Channel configuration (Slack/Discord-style routing surface).
FileInfo
File info for auditing (permissions, content, existence, size).
SkillMetadata
Skill metadata used by the supply-chain / skill-scan checks.

Traits§

AuditContext
Dependency-injected view of the host the agent runs on.