Commit Graph

199 Commits

Author SHA1 Message Date
e49817c2d5 feat: trace pre-stream lifecycle 2026-05-26 21:05:45 +09:00
9405ffc633 feat: add session stream event trace flag 2026-05-26 19:57:47 +09:00
77e2ad0c40 fix: compact retained split uses raw tail size 2026-05-26 17:52:09 +09:00
80a4f90004 fix: align spawn user manifest env overlay 2026-05-26 10:09:17 +09:00
d084923878 fix: split resident injection gates 2026-05-26 09:44:24 +09:00
b25f4c7468 feat: inject memory summary into resident prompt 2026-05-26 09:21:10 +09:00
9f5e27f3fd merge: memory consolidation skip observability 2026-05-26 08:37:32 +09:00
c101b42619 fix: confirm SpawnPod initial run delivery 2026-05-26 08:37:24 +09:00
8095c86be2 fix: suppress memory idle skip notices 2026-05-26 08:03:17 +09:00
3ff78c03af feat: surface llm retry and continuation state 2026-05-26 07:13:59 +09:00
fe6f5eb326 memory: add audit log events 2026-05-25 03:24:04 +09:00
afd65442c5 test: clean up compact event assertion 2026-05-24 09:39:57 +09:00
a4358eed14 feat: add manual compact command 2026-05-24 08:59:44 +09:00
e7b0a0b20f fix: route worker history appends through callbacks 2026-05-24 06:44:19 +09:00
23e218abaa chore: handle rolled back run result clients 2026-05-23 12:51:40 +09:00
55dedd173c feat: rollback empty interrupted turns 2026-05-23 12:50:46 +09:00
df629b4dc6 fix: make visible pod list schema object 2026-05-23 12:29:37 +09:00
ca869195dc merge: pod-discovery-restore-tools 2026-05-23 12:04:59 +09:00
e6fa660a5f feat: add visible pod discovery tools 2026-05-23 12:04:45 +09:00
3b582a4f73 fix: remove memory extract input cap 2026-05-23 09:14:07 +09:00
ab4611001e fix: reclaim delegated scope from stopped children 2026-05-23 08:38:42 +09:00
4b263f8743 feat: show context usage in tui status 2026-05-23 07:15:03 +09:00
18c30c5f90 merge: prune-token-budget 2026-05-23 05:00:15 +09:00
dfec60438e feat: protect prune tail by token budget 2026-05-23 05:00:06 +09:00
fdd2f16df0 fix: drain snapshots before pod callbacks 2026-05-23 04:57:03 +09:00
f03e84a62a refactor: remove legacy plural log entries 2026-05-23 02:03:42 +09:00
530027c62b feat: persist spawned pod registry 2026-05-22 23:30:02 +09:00
12a4ba5edf feat: resume pods by name 2026-05-22 22:57:16 +09:00
5955695db8 feat: wire pod metadata lifecycle writes 2026-05-22 22:29:08 +09:00
08dc6b29f8 style: run cargo fmt 2026-05-22 22:03:27 +09:00
077efee13b feat: live auto-fork の marker 形式を確定(seq 比較 + forked_from 記録)
方針: 末尾 entry-count 比較で検知し、元 Segment は immutable のまま
(terminal marker を書き戻さない)。fork lineage は新 Segment の
SegmentStart.forked_from に前向きに記録するため、log だけから辿れる。
過去 fork と対称で、nested fork も marker 位置の調停が不要。

- session-store ensure_head_or_fork に at_turn_index 引数を追加し
  新 Segment へ forked_from を記録
- pod ensure_segment_head の auto-fork も同様に forked_from を記録
  (at_turn_index = writer の現 turn_count)
- fork_at の doc に「元 Segment を mutate しない」invariant を明記
- test: nested past-fork が祖先を不変に保つ / Pod 並行 writer drift で
  auto-fork し forked_from を記録 / 元 Segment に marker が書かれない
2026-05-20 06:42:09 +09:00
842e7a3c58 update: session-grouping review follow-up
- PickerOutcome::Picked から未使用の session_id を除去(pod-cli が lookup_session_of で再解決)
- picker preview が singular AssistantItem も拾うように
- fs_store layout doc に migration(後方互換なし、旧 flat sessions は破棄)を明記
- TaskStore は Session-lifetime、ScopedFs/Tracker は Pod-process lifetime と用語整理
- Pod::session_id / from_manifest_spawned のコメント補強
2026-05-20 06:29:37 +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
a63f076856 update: 残存 Session 識別子の Segment 化(review follow-up)
レビュー指摘の通り、次の session-grouping-introduce で新 SessionId が
入る前に名称衝突を避けるため取り残しを掃除。

- PodError::Session{Empty,ScopeMissing} → Segment{Empty,ScopeMissing}
- ScopeLockError::SessionConflict → SegmentConflict
- Pod.session_state / SegmentState.set_session_id 系
- source_session_id / prev_session_id / ensure_session_head / short_session
- pod_cli の "Session ID:" 表示
- fs_store の sessions ローカル変数
2026-05-20 05:17:49 +09:00
ac1d8b1c7d update: Session-lifetime/scoped を Pod-lifetime に修正
タスクストア/ファイルトラッカーは compaction を跨いで Pod プロセス寿命まで生きる。
旧 SessionId = Segment の時代の表現を Pod-lifetime に正す。pod_cli の表示も Segment: に。
2026-05-20 05:06:38 +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
0440d5c6dc Merge: invoke-turn-llmcall-semantics
# Conflicts:
#	crates/pod/src/controller.rs
2026-05-15 22:08:41 +09:00
4c8596db38 update: Paused→Run の interrupt 前処理を Pod::run に内包 2026-05-15 21:51:57 +09:00
49b78612d6 feat: Invoke marker と LlmCall callback を導入し AgentTurn セマンティクスを明確化
- protocol: InvokeKind enum、Event::InvokeStart / LlmCallStart / LlmCallEnd 追加
- llm-worker: Worker.llm_call_count と on_llm_call_start/end callback、turn_count を AgentTurn 数として doc 更新
- session-store: LogEntry::Invoke { ts, trigger } 追加 (replay は marker のみで state 不変)
- pod: run/run_for_notification 開始時に Invoke marker commit、PendingRun::RunForNotification(InvokeKind) で kind を伝搬
- pod ipc: sink + server で Invoke エントリーを Event::InvokeStart として broadcast
- tui: 新 Event 3種を no-op で受理 (UI 設計はチケット範囲外)
2026-05-15 07:04:26 +09:00
4ebc2c96b3 update: Controllerで入力のValidationを行っていた部分をPod側に移す 2026-05-15 05:33:33 +09:00
8e8c0887de update: 親にターン完了を通達する経路の整理 2026-05-15 04:38:53 +09:00
3143353ddc update: エントリの単数化のフォローアップ 2026-05-14 19:42:23 +09:00
f35d99900f update: 書き込みの不要なasyncを削除 2026-05-14 19:16:48 +09:00
904ea6e326 update: SystemItem1本化 2026-05-14 14:36:29 +09:00
e32b210d50 chore: cargo fmt 2026-05-14 03:36:08 +09:00
a02f34437c fix: 実態にそぐわないEvent::Entryを実装した構造を訂正 2026-05-14 03:35:52 +09:00
1ef094f039 refactor: Podのメインループのリファクタリング 2026-05-14 03:27:49 +09:00
d2149d11d3 merge: file-ref-directory 2026-05-13 06:30:45 +09:00