Expand description
§aios-spec — DiPECS 宪法层
零内部依赖。定义全系统的核心数据结构、Trait 和 IPC 协议。 所有跨模块通信必须依赖此层的抽象。
Modules§
- traits
- aios-spec 定义的公共 trait
Structs§
- AppTransition
RawEvent - Authorized
Action - 已经由
PolicyEngine审查通过、允许交给 executor 的动作。 - Binder
TxEvent - Capability
Level - 推理后端的能力上限。
- Collector
Envelope - apps / collector interface 到 Rust 入口的事件信封。
- Context
Summary - 窗口聚合摘要
- Decision
Backend Result - 单个推理后端的统一输出。
- Executed
Action - 已执行的动作记录
- FsAccess
Event - Golden
Trace - 一条 Golden Trace
- Ingested
RawEvent RawEventpackaged with the authoritativeSourceTierdeclared 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
- 单条意图
- Intent
Batch - 云端 LLM 返回的结构化决策
- Notification
Interaction RawEvent - Notification
RawEvent - 通知原始事件 — ⚠️ 含 PII (标题和正文)
- Proc
State Event - Replay
Result - 回放验证结果
- Sanitized
Event - 脱敏后的事件。不再包含任何 PII。
- Screen
State Event - Structured
Context - 时间窗口内的脱敏上下文
- Suggested
Action - 推荐动作
- System
State Event - System
Status Snapshot - 系统状态快照
- Text
Hint
Enums§
- Action
Type - 动作类型
- Action
Urgency - 动作紧迫度
- AppTransition
- Decision
Route - 推理路由选择。
- Denial
Reason - Structured rejection reason emitted by
PolicyEngine. - Extension
Category - FsAccess
Type - FsActivity
Type - Intent
Type - 意图类型
- Interaction
Type - Location
Type - Network
Type - Notification
Action - Proc
State - RawEvent
- 从系统采集的原始事件, 未经脱敏。
- Ringer
Mode - Risk
Level - 风险等级
- Sanitized
Event Type - Screen
State - Script
Hint - Semantic
Hint - Source
Tier