Skip to main content

Crate aios_action

Crate aios_action 

Source
Expand description

§aios-action — authorized action execution layer

Responsibility: receive AuthorizedAction values produced by aios_core::action_lifecycle::ActionLifecycle and execute low-risk operations behind the action boundary.

Three sibling adapters implement ActionAdapter; ActionLifecycle injects exactly one at construction:

  • OfflineAdapter — deterministic, no I/O. The canonical replay / golden adapter; the only one in the audit-hash path.
  • DefaultActionExecutor — desktop stub. Pure, deterministic tracing stubs with no network or environment access.
  • AndroidAdapter — on-device. Forwards supported actions to the Android localhost bridge over a request/response protocol and maps the device’s real result back honestly. Never in the hash path.

Re-exports§

pub use android_adapter::AndroidAdapter;
pub use android_adapter::AndroidBridgeConfig;
pub use offline_adapter::OfflineAdapter;

Modules§

android_adapter
一等公民 AndroidAdapter:把已封存的 AuthorizedAction 经请求/响应协议 转发到设备侧 localhost bridge,并把设备的真实执行结果如实映射为 ActionOutcome / AdapterError。
offline_adapter
纯离线、确定性的 ActionAdapter 实现。

Structs§

DefaultActionExecutor
Default action executor for desktop replay.