[BUG] record.set reports a rejected value as internal: engine/transport failure
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
調査の方向性
Read aimdb-core/src/typed_record.rs around line 1524 to understand the rejected value error, then trace how map_db_err in aimdb-core/src/session/aimx/dispatch.rs maps it and how RpcError is decoded in aimdb-client/src/engine.rs and aimx/codec.rs. The issue calls for a distinct wire error code that preserves the deserialization message while keeping engine and transport failures internal. Done means rejected values produce the specific error and unknown codes still fall back as described; the issue does not name tests to run.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When a remote record.set value fails to deserialize into the record's type, the client gets the same error as a broken engine or transport:
AimDB client error: Server error (code internal): engine/transport failure
The write is refused correctly and the session stays up. The problem is the report: a caller, especially an MCP agent, cannot tell that its own value was at fault, so it has no reason to correct it.
The server does build a specific message (typed_record.rs:1524), but it is lost on the way out:
map_db_errsends everything except not-found and permission errors toRpcError::Internal.RpcErrorcarries no message, so the client fills in its generic text (engine.rs:593).
To Reproduce
- Run an instance with a writable record whose type rejects some JSON, for example a custom deserializer that bounds a list's length.
- Call
record.set(or MCPset_record) with a value that type rejects. - See the error above.
Observed with a list over its bound (33 and 2000 elements against a limit of 32). A coordinate of 1e40 for an f32 field got the same reply; I did not trace that case separately.
Expected behavior
A distinct error code for a value the record's type rejected, separate from internal, ideally carrying the deserialization message. Real engine and transport failures keep internal.
Environment
- OS: macOS 13 (Darwin 22.6)
- Rust Version: rustc 1.98.0
- AimDB Version: main at d9c7be0
Additional context
A new code changes the AimX wire vocabulary, so existing clients need to handle it. code_err in aimx/codec.rs currently maps unknown codes to Internal, so older clients would fall back to today's behaviour.
- 主要言語
- Rust
- スター
- 101
- フォーク
- 20
- 平均マージ
- 2時間 33分
- マージ済み PR(30日)
- 90
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aimdb-dev/aimdb のほかの issue
-
🏷️ good first issue enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
aimdb-dev/aimdb の issue をすべて見る
似ている issue
-
Panic on live viewport resize when unstyled elements exist in display: none subtree対応中かも @GoCoder7 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DioxusLabs/blitz#1488 ·
メンテナーはふだん 1 日以内に返信
-
S-Needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
vectordotdev/vrl#2042 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信