Skip to content

feat: add venice-x402 as default preinstalled petal - #150

Open
0xdewy wants to merge 2 commits into
masterfrom
feat/venice-x402-default-petal
Open

feat: add venice-x402 as default preinstalled petal#150
0xdewy wants to merge 2 commits into
masterfrom
feat/venice-x402-default-petal

Conversation

@0xdewy

@0xdewy 0xdewy commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds venice-x402 (v0.1.0) as a default preinstalled petal.

Release details

  • Repo: bloom-directory/bloom-petal-venice-x402
  • Tag: v0.1.0
  • Commit: f8d6a1b287397b2c66fa11ca777fe2b762640964
  • Package hash: 473df7e6a3f948480684d4485f07836918f0e36042d1b2105dc82fdb0370bf18
  • Archive SHA256: d2901177b345dba3c7819406f9decb9ed0d167ca7b1f4c7b2895cf39729922be

What the petal does

Private AI inference via Venice's x402 payment protocol:

  • SIWE authentication on Base
  • USDC top-up via EIP-3009 (EIP-712 typed data signing)
  • Venice chat completions API
  • Balance checking and model listing
  • 6 route components, 64 unit + integration tests

Changes

  • github_source.rs: VENICE_X402_RELEASE_COMMIT constant, PREINSTALLED_VENICE_X402 struct, match arm
  • config.rs: "venice-x402" added to default preinstalled list

Follows the exact pattern of polymarket, near-intents, and enso.

Checklist

  • Tests added or updated for behavior changes — test assertions added in config.rs for the new default petal
  • Architecture docs (docs/architecture/) updated if contracts or behavior changed — N/A (config-only change)
  • Sealed Approval invariants respected (no signing outside a grant or bounded capability, no PRF/grant persistence, execution from sealed bytes) — N/A (no signing logic touched)
  • Agent Documentation updated (crates/bloom-vfs/src/docs/agent-guidance.md and affected Petal READMEs) — N/A (no agent-facing behavior change)

Pin venice-x402 v0.1.0 (commit f8d6a1b) as a default preinstalled petal.
Private AI inference via Venice's x402 protocol: SIWE auth, USDC top-up
via EIP-3009, and Venice chat completions.
@0xdewy
0xdewy force-pushed the feat/venice-x402-default-petal branch from e42abb8 to 8f0e23e Compare August 7, 2026 20:06
The config validation in config.rs had a hardcoded match pattern that
only allowed polymarket, near-intents, and enso. Adding venice-x402 to
default_preinstalled_petals() without updating this guard caused all
config-loading tests to fail with 'unknown preinstalled Petal.'
@0xdewy
0xdewy force-pushed the feat/venice-x402-default-petal branch from 8f0e23e to 5dfdc24 Compare August 7, 2026 20:21
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.

1 participant