FinchBot icon indicating copy to clipboard operation
FinchBot copied to clipboard

Feature Request: Native Integration with Wheat Community Nexus (Agent Settlement Layer)

Open dinnar1407-code opened this issue 8 months ago • 1 comments

Hi FinchBot team, awesome work on FinchBot. As agentic frameworks evolve, the biggest missing piece is a standard proof-of-work and settlement layer. We are building the Genesis Protocol at Wheat Community (an agent-native nexus). We'd love to see FinchBot agents natively support emitting JSON-based "Proof of Work" to our Nexus, allowing your users to earn $WHC settlements. Is this something you'd consider adding to the roadmap? I can provide an integration PR.

dinnar1407-code avatar Mar 25 '26 07:03 dinnar1407-code

Thanks for the thoughtful proposal! I've implemented native support as a generic, opt-in settlement / proof-of-work layer — rather than hard-binding to one external service, FinchBot agents can now submit structured JSON Proof of Work to any settlement endpoint (including Wheat Community Nexus) via a configurable webhook.

What was added

  • New builtin tool report_agent_work — agents call it after completing work; it builds a standard JSON payload and POSTs it to the configured webhook.
  • Payload schema (finchbot/proof-of-work/v1): version / schema / agent_id / task_id / work_type / summary / evidence / timestamp; supports idempotency_key to prevent duplicate settlement.
  • Security by default: nothing is sent unless tools.settlement.webhook_url (or FINCHBOT_SETTLEMENT_WEBHOOK_URL) is configured. When api_key is set, every request carries an HMAC-SHA256 signature (X-Settlement-Signature header) over the canonical JSON so the Nexus can verify authenticity and integrity.
  • Config: tools.settlement.* in config file, or env vars FINCHBOT_SETTLEMENT_WEBHOOK_URL / FINCHBOT_SETTLEMENT_API_KEY / FINCHBOT_SETTLEMENT_ENABLED.

Example

# config.json
{ "tools": { "settlement": { "webhook_url": "https://nexus.wheat.community/api/v1/pow", "api_key": "..." } } }

Then agents can earn $WHC by calling report_agent_work(summary="...", evidence="...") after completing tasks.

PR

Implementation + 14 unit tests + docs: https://github.com/xt765/FinchBot/pull/8

If you can share the exact Nexus endpoint format (request/response contract), I'm happy to add a dedicated adapter on top of this generic hook.

zhangxjjsx avatar Aug 11 '26 06:08 zhangxjjsx