https://github.com/corvid-agent/fledge-plugin-test-store
WASM plugin testing store capability for fledge — verifies key-value persistence via fledge::store_set/store_get
https://github.com/corvid-agent/fledge-plugin-test-store
fledge fledge-plugin testing wasm
Last synced: 22 days ago
JSON representation
WASM plugin testing store capability for fledge — verifies key-value persistence via fledge::store_set/store_get
- Host: GitHub
- URL: https://github.com/corvid-agent/fledge-plugin-test-store
- Owner: corvid-agent
- Created: 2026-05-02T22:21:50.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-05T14:22:37.000Z (2 months ago)
- Last Synced: 2026-05-05T16:30:52.802Z (2 months ago)
- Topics: fledge, fledge-plugin, testing, wasm
- Language: Rust
- Homepage: https://corvid-agent.github.io/fledge-plugin-test-store/
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fledge-plugin-test-store
WASM test plugin for the [fledge](https://github.com/CorvidLabs/fledge) `store` capability.
## What it tests
Verifies that WASM plugins can persist and retrieve key-value data through the `fledge::store_set` and `fledge::store_get` host imports when granted `store = true` in `plugin.toml`. Runs the following test cases:
- **Basic set/get roundtrip** -- store a value, read it back
- **Overwrite** -- writing the same key replaces the previous value
- **Nonexistent key** -- reading a missing key returns null
- **Multiple keys** -- independent keys are stored without interference
- **Empty value** -- empty strings are stored and retrieved correctly
- **Numeric string** -- string values containing digits are preserved as-is
- **Negative tests** -- filesystem, network, and process spawn are all blocked (only `store` is granted)
## Capability exercised
```toml
[capabilities]
exec = false
store = true
metadata = false
filesystem = "none"
network = false
```
## Install and run
```bash
fledge plugins install corvid-agent/fledge-plugin-test-store
fledge plugins run test-store
```
## Build from source
```bash
rustup target add wasm32-wasip1
cargo build --target wasm32-wasip1 --release
```
The compiled WASM binary is written to `target/wasm32-wasip1/release/test-store.wasm`.