Building an Agent Producer for b1e55ed
1. What is a Producer
A producer is a signal source that feeds the brain. Producers emit events that the engine can weight, audit, and learn from. A producer can be:- a service you run (HTTP endpoint)
- an agent process that periodically publishes signals
- an internal module bundled with b1e55ed
2. The Producer Contract
A minimal producer response is a JSON object with a producer identity, a domain, and a list of signals.produceris a stable name. Treat it as an identifier.domainshould match one of the engine domains (technical, onchain, tradfi, social, events, curator).scoreis a 0–10 strength signal.confidenceis a 0–1 reliability estimate.reasoningshould be concise. The corpus is long-lived.
3. Build a Minimal Producer
A minimal FastAPI producer can be a single route that returns the contract.4. Register with b1e55ed
Register the producer endpoint:5. Verify Ingestion
Verify ingestion by inspecting the event store. For local development, you can query the SQLite database directly:6. Monitor Health
Health exposes configuration and DB reachability, plus degraded producer status.7. OpenClaw Integration
OpenClaw operators typically schedule producers and brain cycles as cron templates. Recommended pattern:- producer runs publish signals on a cadence
- a brain cycle runs every 5 minutes
- health checks run hourly
crons.json templates as a starting point. For example, wire a system event that executes: