molecule-sdk-python/tests
Molecule AI SDK-Dev 0a346e69f8 feat(sdk): add idempotency-key delegation to RemoteAgentClient
KI-002: prevent duplicate delegation execution when a remote agent
container restarts mid-delegation. Remote agent clients now compute a
SHA-256 key from task_text + current wall-clock minute and POST it as
idempotency_key to /workspaces/:id/delegate.

The platform deduplicates requests sharing the same key within the
minute window. Callers can also pass an explicit idempotency_key to
override the auto-computed value.

New:
- make_idempotency_key(task_text) → str
- RemoteAgentClient.delegate(task, target_id, idempotency_key=None, timeout=300.0)
- 8 new unit tests covering headers, errors, explicit key override, and
  make_idempotency_key invariants

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 18:18:23 +00:00
..
conftest.py feat(tests): GAP-05 add _get_with_retry() with 429 back-off + fix broken test_call_peer_errors 2026-04-23 18:18:12 +00:00
test_call_peer_errors.py feat(tests): GAP-05 add _get_with_retry() with 429 back-off + fix broken test_call_peer_errors 2026-04-23 18:18:12 +00:00
test_remote_agent.py feat(sdk): add idempotency-key delegation to RemoteAgentClient 2026-04-23 18:18:23 +00:00
test_retry_backoff.py feat(tests): GAP-05 add _get_with_retry() with 429 back-off + fix broken test_call_peer_errors (#11) 2026-04-21 07:08:01 +00:00
test_safe_extract.py fix(tests): add conftest.py + fix test_call_peer_errors.py broken imports 2026-04-23 18:18:10 +00:00
test_sdk.py fix(tests): add pytest-asyncio markers to async adaptor tests (#4) 2026-04-21 00:54:07 +00:00
test_sha256_verification.py fix(tests): add conftest.py + fix test_call_peer_errors.py broken imports 2026-04-23 18:18:10 +00:00
test_validators.py feat: initial Python SDK (extracted from molecule-monorepo/sdk/python) 2026-04-16 03:15:38 -07:00