Skip to content

fix(messages): reject empty tool_call_id in artifact store#846

Open
Bartok9 wants to merge 2 commits into
RobotecAI:bartok9/fixesfrom
Bartok9:fix/artifacts-reject-empty-tool-call-id
Open

fix(messages): reject empty tool_call_id in artifact store#846
Bartok9 wants to merge 2 commits into
RobotecAI:bartok9/fixesfrom
Bartok9:fix/artifacts-reject-empty-tool-call-id

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 23, 2026

Copy link
Copy Markdown

Summary

  • Reject empty/whitespace/non-string tool_call_id in store_artifacts and get_stored_artifacts

Motivation

Empty tool call ids corrupt the pickle keyspace and make lookups ambiguous. Fail closed at the store boundary.

Verification

  • PYTHONPATH=src/rai_core python -m pytest tests/messages/test_artifacts_db_path.py -q

Notes

  • Base: bartok9/fixes
  • Human-authored; DCO signed-off
  • No arm/geofence changes

Agent-Owner: sera · Platform: hermes · Claim-TTL: 24h

Bartok9 added 2 commits July 22, 2026 06:52
 rejection

- tests/communication/__init__.py: add Apache license header (check-license-lines)
- test_ros2_async.py: zero timeout now expects ValueError, matching get_future_result rejecting non-positive timeout_sec (RobotecAI#808)
Signed-off-by: Bartok9 <danielrpike9@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant