Commit Graph

23 Commits

Author SHA1 Message Date
e49817c2d5 feat: trace pre-stream lifecycle 2026-05-26 21:05:45 +09:00
530027c62b feat: persist spawned pod registry 2026-05-22 23:30:02 +09:00
08dc6b29f8 style: run cargo fmt 2026-05-22 22:03:27 +09:00
ec5b891fec feat: add pod metadata store backend 2026-05-22 22:03:11 +09:00
e8c16be475 feat: Session(Segment 群の grouping)を導入
- SessionId 型を新設、各 SegmentStart に session_id を持たせる
- compaction / 内部 fork は同 SessionId を継承、fork() は新 Session を発行
- Store API を (SessionId, SegmentId) ベースに、FsStore layout は
  <root>/<session_id>/<segment_id>.jsonl に
- Store::list_sessions / list_segments(session_id) / lookup_session_of を追加
- restore_by_segment shim を session-store に提供(pod-cli --session で使用)
- SegmentState に SegmentLocation (session_id, segment_id) を保持し ArcSwap で更新
- RestoredState に session_id: Option<SessionId> を追加
- Picker は Session 単位に列挙、leaf segment を解決して resume
2026-05-20 06:17:56 +09:00
d5fcbc2125 update: SessionId / SessionStart / SessionOrigin 等を Segment 系名称へ
- Type/Function/Variantを Segment* 系へ統一
  - SessionId/SessionStart/SessionOrigin/SessionStartState/SessionState/SessionLogSink/SessionLockInfo
  - new_session_id / session_id / create_session* / list_sessions / lookup_session / update_session / find_by_session
  - protocol Event::SessionRotated → SegmentRotated、CompactDone.new_session_id → new_segment_id
- Module: session_log → segment_log / session → segment (file mv 含む)
  pod 側の session_log_sink → segment_log_sink も同様
- crate 名 (session-store)、CLI flag (--session)、ResumeWithSession (CLI tied) は据え置き
- session-tests/session_metrics_test 等の Store impl も追従
2026-05-20 05:06:04 +09:00
903cfa3060 update: 旧用語コメントの掃除と KNOWN_ISSUES 追記
- 残存していた head_hash / SessionHead 言及コメントを 3 箇所更新
- FsStore::read_entry_count の O(n) 計測コストを KNOWN_ISSUES に登録
2026-05-20 04:53:33 +09:00
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
f35d99900f update: 書き込みの不要なasyncを削除 2026-05-14 19:16:48 +09:00
904ea6e326 update: SystemItem1本化 2026-05-14 14:36:29 +09:00
1ef094f039 refactor: Podのメインループのリファクタリング 2026-05-14 03:27:49 +09:00
557d5da391 feat: resume時のscope claimを過去の有効scopeに揃える 2026-05-03 17:12:36 +09:00
2c9db5a27b cargo fmt 2026-04-29 23:20:25 +09:00
de6b8faf55 session-log-segments実装 2026-04-29 22:42:10 +09:00
bb2a6013fa session-log-decouple-item実装 2026-04-29 22:24:18 +09:00
d1be97fbc2 resumeの実装 2026-04-28 18:52:58 +09:00
eed3f13e51 セッション関連の責務の分離 2026-04-28 15:43:34 +09:00
fd88c72e2e memoryを抽出する仕組みの実装 2026-04-28 12:58:33 +09:00
66c6edec3e システムプロンプトの実装 2026-04-15 02:44:42 +09:00
a0a9df11c0 cargo fmt 2026-04-14 03:13:36 +09:00
17d0430a4d usageデータの永続化実装 2026-04-13 07:09:05 +09:00
bcc7faa0ba compactの実装 2026-04-12 07:09:48 +09:00
cdafd5d914 session-storeとして分離 2026-04-12 06:31:34 +09:00