Skip to main content

Crate aios_spec

Crate aios_spec 

Source
Expand description

§aios-spec — DiPECS 宪法层

零内部依赖。定义全系统的核心数据结构、Trait 和 IPC 协议。 所有跨模块通信必须依赖此层的抽象。

Modules§

traits
aios-spec 定义的公共 trait

Structs§

AppTransitionRawEvent
AuthorizedAction
已经由 PolicyEngine 审查通过、允许交给 executor 的动作。
BinderTxEvent
CapabilityLevel
推理后端的能力上限。
CollectorEnvelope
apps / collector interface 到 Rust 入口的事件信封。
ContextSummary
窗口聚合摘要
DecisionBackendResult
单个推理后端的统一输出。
ExecutedAction
已执行的动作记录
FsAccessEvent
GoldenTrace
一条 Golden Trace
IngestedRawEvent
RawEvent packaged with the authoritative SourceTier declared by its ingress (envelope or internal collector). This is the only shape that flows through the core bus — the tier travels with the event so the downstream sanitizer can honor it instead of re-inferring per type.
Intent
单条意图
IntentBatch
云端 LLM 返回的结构化决策
NotificationInteractionRawEvent
NotificationRawEvent
通知原始事件 — ⚠️ 含 PII (标题和正文)
ProcStateEvent
ReplayResult
回放验证结果
SanitizedEvent
脱敏后的事件。不再包含任何 PII。
ScreenStateEvent
StructuredContext
时间窗口内的脱敏上下文
SuggestedAction
推荐动作
SystemStateEvent
SystemStatusSnapshot
系统状态快照
TextHint

Enums§

ActionType
动作类型
ActionUrgency
动作紧迫度
AppTransition
DecisionRoute
推理路由选择。
DenialReason
Structured rejection reason emitted by PolicyEngine.
ExtensionCategory
FsAccessType
FsActivityType
IntentType
意图类型
InteractionType
LocationType
NetworkType
NotificationAction
ProcState
RawEvent
从系统采集的原始事件, 未经脱敏。
RingerMode
RiskLevel
风险等级
SanitizedEventType
ScreenState
ScriptHint
SemanticHint
SourceTier