- Add OpenClaw runtime end-to-end tests covering execution flow and runtime contract behavior - Add OpenClaw integration tests to validate plugin/runtime wiring in engine scenarios - Add Paperclip runtime end-to-end and integration suites for equivalent cross-runtime coverage - Update Hermes, OpenClaw, and Paperclip manifest descriptions for consistent runtime metadata
Paperclip Runtime Plugin
fusion-plugin-paperclip-runtime provides the paperclip runtime for Fusion agents by calling a running Paperclip REST API instance.
This plugin no longer delegates to Fusion's internal
@fusion/enginepi runtime.
Runtime Identity
- Plugin ID:
fusion-plugin-paperclip-runtime - Runtime ID:
paperclip - Runtime Name:
Paperclip Runtime
Prerequisites
- Paperclip is installed and running (default URL:
http://localhost:3100) - Fusion plugin installed:
fn plugin install ./plugins/fusion-plugin-paperclip-runtime
Configuration
The runtime resolves configuration in this priority order:
- Plugin settings (
ctx.settings) - Environment variables
- Defaults
| Setting | Env Var | Required | Default |
|---|---|---|---|
apiUrl |
PAPERCLIP_API_URL |
No | http://localhost:3100 |
apiKey |
PAPERCLIP_API_KEY |
No | undefined |
agentId |
PAPERCLIP_AGENT_ID |
Yes (for session create) | undefined |
companyId |
PAPERCLIP_COMPANY_ID |
Yes (for session create) | undefined |
Authentication Modes
- Bearer token mode: set
apiKey/PAPERCLIP_API_KEYand requests includeAuthorization: Bearer <token> - Local trusted mode: leave
apiKeyunset; plugin probes/api/healthwithout auth and proceeds when allowed by Paperclip deployment mode
How Runtime Execution Works
For each prompt, the runtime adapter performs:
POST /api/companies/{companyId}/issues(creates issue inbacklog, assigned toagentId)POST /api/issues/{issueId}/checkout(atomic claim; 409 conflicts are logged and execution continues)POST /api/agents/{agentId}/heartbeat/invoke(async agent execution)- Polls
GET /api/issues/{issueId}with exponential backoff (2s → 4s → 8s → 10s cap, 120s timeout) - Reads output from
GET /api/issues/{issueId}/comments - Emits text/thinking/tool callbacks back to Fusion runtime consumers
The runtime uses Paperclip as the orchestration engine; Fusion receives summarized output via issue comments.
Runtime Selection in Fusion
Configure an agent with runtime hint paperclip:
{
"runtimeConfig": {
"runtimeHint": "paperclip"
}
}
Fusion runtime resolution still falls back to default pi runtime if plugin runtime resolution fails.
Development
cd plugins/fusion-plugin-paperclip-runtime
pnpm test
pnpm build