yoi/crates/pod
Hare 9bfbb2fb4c update: entry hash chain と session_head mutex を撤廃
- HashedEntry / EntryHash / compute_hash / build_chain 撤去、JSONL は 1 行 1 LogEntry
- SessionOrigin.at_hash → at_turn_index (TurnEnd 由来) に置換
- Pod 側 SessionHead mutex を ArcSwap<SessionId> + AtomicUsize の SessionState に置換
- ensure_head_or_fork は store の entry count と writer の append tally で判定
- session-store から sha2 / hex 依存、pod から parking_lot 依存を削除
2026-05-20 04:31:37 +09:00
..
examples update: 書き込みの不要なasyncを削除 2026-05-14 19:16:48 +09:00
src update: entry hash chain と session_head mutex を撤廃 2026-05-20 04:31:37 +09:00
tests update: entry hash chain と session_head mutex を撤廃 2026-05-20 04:31:37 +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 ソケットサーバー