From d57577637c1c1a16176d63d5a89e9eec3c1e4d7c Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Fri, 17 Jul 2026 12:15:41 +0900 Subject: fix: sessions paginationとhealth診断を改善 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - sessions cursorのエンコード不具合と長いsession IDのバッファ問題を修正 - response budgetに基づくsessionsページングを追加 - get_system_healthにsession_countを追加 - metadata_jsonのフィールド別エラー診断を追加 - CRUD互換性とDebug/Release/ASanテストを確認 --- docs/mcp.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/mcp.md b/docs/mcp.md index 639946f..788fc84 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -28,6 +28,9 @@ application errorではMCP tool resultの`isError`がtrueになり、`text`は } ``` +`metadata_json`の検証errorでは、`error.message`に問題のあるfield名と制約が含まれる。 +入力値そのものはmessageへ転載されない。allocation失敗は`INTERNAL_ERROR`として区別される。 + 主なerror code: | Code | 意味 | @@ -217,6 +220,8 @@ session内のlive messageを作成順に返す。 ### `sessions` view session一覧を時刻とIDの安定順序でpage取得する。`session_id`は使用しない。 +`limit`到達時に加え、response budgetへ到達した場合もそこでpageを終了し、続きがあれば +`nextCursor`を返す。`representative_summary`の内容は短縮されない。 ```json { @@ -359,6 +364,7 @@ parameterなし。永続化状態、logical I/O counter、memory estimateを返 "log_size": 524288, "snapshot_size": 262144, "active_messages": 120, + "session_count": 18, "deleted_messages": 3, "last_sequence": 150, "update_records": 12, @@ -386,5 +392,6 @@ parameterなし。永続化状態、logical I/O counter、memory estimateを返 ``` `status`は`last_error`が空なら`OK`、診断messageが残っていれば`DEGRADED`となる。 +`session_count`は現在live messageを持つsessionの数で、memory上のhistory indexから集計される。 `memory_estimate`はprojectが管理する主要allocationの概算で、runtimeやallocator overheadは 含まない。 -- cgit v1.2.3