yoi/crates/pod
Hare 2d23673393 update: Session-lifetime/scoped を Pod-lifetime に修正
タスクストア/ファイルトラッカーは compaction を跨いで Pod プロセス寿命まで生きる。
旧 SessionId = Segment の時代の表現を Pod-lifetime に正す。pod_cli の表示も Segment: に。
2026-05-20 05:06:38 +09:00
..
examples update: Session-lifetime/scoped を Pod-lifetime に修正 2026-05-20 05:06:38 +09:00
src update: Session-lifetime/scoped を Pod-lifetime に修正 2026-05-20 05:06:38 +09:00
tests update: SessionId / SessionStart / SessionOrigin 等を Segment 系名称へ 2026-05-20 05:06:04 +09:00
build.rs cargo fmt 2026-04-27 22:51:07 +09:00
Cargo.toml update: entry hash chain と session_head mutex を撤廃 2026-05-20 04:31:37 +09:00
README.md Remove Pod-ID 2026-04-11 14:18:49 +09:00

pod

独立したエージェント実行単位「Pod」を実装するクレート。LLM ワーカーセッションをマニフェスト設定・ファイルスコープ制約と組み合わせ、Unix ソケット経由の双方向通信で操作可能にする。

公開型

コア

  • Pod<C, St> — LLM ワーカーセッション + マニフェスト + スコープのラッパー(run(), resume(), from_manifest()
  • PodRunResult — 実行結果(Finished, Paused
  • PodError — エラー型

制御

  • PodController — Pod ライフサイクルを管理するアクター(spawn() でタスク起動)
  • PodHandle — Pod への操作ハンドル(send(), subscribe()
  • PodSharedState / PodStatus — 共有状態(Idle, Running, Paused

ランタイム

  • RuntimeDir$XDG_RUNTIME_DIR/insomnia/{pod_name}/ 配下のランタイムディレクトリ管理(ステータス・履歴のアトミック書き込み)
  • SocketServer — Pod Protocol 用 Unix ソケットサーバー