Skip to content

feat(storage): use logos-storage-module for CID offloading#154

Open
jimmy-claw wants to merge 3 commits intomasterfrom
jimmy/lmao-issue-144-20260414
Open

feat(storage): use logos-storage-module for CID offloading#154
jimmy-claw wants to merge 3 commits intomasterfrom
jimmy/lmao-issue-144-20260414

Conversation

@jimmy-claw
Copy link
Copy Markdown
Owner

Summary

  • Add StorageModuleClient implementing StorageBackend trait, using the logos-storage-module REST API (init → start → upload_file / download_cid)
  • New storage-module feature flag in the storage crate with StorageModuleConfig supporting headless mode and upload/download throttle controls
  • Wiremock integration tests covering start, upload, download, roundtrip, error handling, and throttle configuration

Test plan

  • cargo test -p logos-messaging-a2a-storage --features storage-module — 91 tests pass (63 unit + 8 storage-module integration + 19 REST + 1 doctest)
  • Integration test with running logos-storage-module v0.3.2 instance

Fixes #144

🤖 Generated with Claude Code

jimmy-claw and others added 3 commits April 14, 2026 04:06
Update logos-core-module/flake.lock to latest logos-cpp-sdk (rev 1468180b)
and run cargo update for all workspace dependencies. Build and all tests
pass with no breaking changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…module bridge

Implement LezExecutionBackend that communicates with the lez_multisig_module
Logos Core module via its JSON-RPC HTTP bridge for agent registration, token
transfers, balance queries, and transfer verification on the Logos Execution Zone.

Key features:
- Agent registry: register agent identity + capabilities on-chain via lez_registerAgent
- Spending threshold: owner-configurable max cumulative spend with atomic tracking
- Task payments: pay for completed tasks via lez_sendTransaction
- Balance queries: check agent balances via lez_getBalance
- Transfer verification: confirm payments via lez_getTransactionReceipt
- x402 integration ready: works with existing PaymentConfig/verify_payment flow

Includes comprehensive unit tests (16) and wiremock integration tests (20+)
covering spending limits, error handling, and bridge communication.

Closes #79

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ffloading

Replace direct Codex REST calls with StorageModuleClient that uses the
logos-storage-module API (init → start → upload_file / download_cid).
Adds feature flag `storage-module`, config with throttle controls,
lifecycle management, and wiremock integration tests.

Fixes #144

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.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.

feat: use logos-storage-module for CID offloading

1 participant