Report whether a predict used the cached context or restored it (cache_outcome)
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
調査の方向性
Read src/tabctx/serve/service.py and src/tabctx/engine.py to trace how restore counts reach the predict response, then check src/tabctx/client.py for the result model. Use tests/unit/test_standalone_service.py for the hit case and tests/unit/test_spill.py to find how to trigger a spill. Done when both outcomes are reported correctly and the unit suite passes.
索引モデルが issue の本文から書いたものです。
説明
A predict response says how long it took (latency_ms, timings_ms) but not whether the cached context was used as is, restored from the disk tier, or missing. Users can't see evictions, and slow restores look like slow predicts. (Item 3 of #46.)
What to do
- Add
cache_outcome: "hit" | "restored"toTabctxPredictResponseinsrc/tabctx/serve/service.py. - The engine already knows:
TabctxEngine.predictcountsrestoreswithtiming.count("restores")(src/tabctx/engine.py). Carry that through to the response; for coalesced requests the batch's outcome applies to all members. - Show it in
PredictResultinsrc/tabctx/client.py(with a default, at the end). - Tests:
tests/unit/test_standalone_service.py(a hit), and a spill test that restores (seetests/unit/test_spill.pyfor how to force a spill).
Done when
- A predict right after a fit reports
hit; one after the context was spilled reportsrestored. uv run pytest tests/unit -n autopasses.
- 主要言語
- Python
- スター
- 1
- フォーク
- 1
- 平均マージ
- 6時間 16分
- マージ済み PR(30日)
- 71
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
VectorInstitute/tabctx のほかの issue
-
tabctx-mcp: prediction intervals in the predict tool's output対応中かも @knirosha007 が 1 日前に担当しました。 オープンarea/api enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
VectorInstitute/tabctx#111 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
VectorInstitute/tabctx#113 ·
メンテナーはふだん 1 日以内に返信
-
area/api enhancement P3 roadmap
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
VectorInstitute/tabctx#106 ·
メンテナーはふだん 1 日以内に返信
-
area/latency enhancement help wanted P2 roadmap
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
VectorInstitute/tabctx#104 ·
メンテナーはふだん 1 日以内に返信
-
area/api area/memory enhancement P1 roadmap
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
VectorInstitute/tabctx#103 ·
メンテナーはふだん 1 日以内に返信
VectorInstitute/tabctx の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
FinanceFlash/unvibecode#577 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/test type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Clodmony/starship-coop#70 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
punitarani/fli#270 ·
-
🐛 Bug 🔔 Pending processing
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
jumpserver/jumpserver#17980 ·
メンテナーはふだん 1 日以内に返信
-
community enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信