Skip to content

About

Oya commitments, hardened node modules, and production node runtime

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Oya Commitments

Oya combines commitments governed by written rules, agents that act on those rules, and nodes that publish signed messages. This repository contains several related applications and libraries. Start with the task you want to perform; each area has its own setup and dependencies.

Start here

I want to… Start with What I need
Run a node on my own device Node setup, preferably with a coding agent Docker; an inbox host and DNS hostname for external messages. IPFS-only mode needs no funded wallet.
Deploy a commitment Commitment deployment Foundry, a chain RPC endpoint, deployment parameters, and a funded deployer account.
Build or run a commitment-serving agent Agent setup The shared Node.js runner, an agent module, and that module's configuration and credentials.
Deploy a commitment from a browser wallet Web frontend Node.js/npm to run the UI and a wallet for deployment transactions.
Use Oya libraries in another application Kernel packages The published packages for signed messages, IPFS, and Ethereum integration.
Develop or test this repository Contributing and testing by area The tools for the area you are changing; there is no single install step for the whole repo.

How the parts fit together

  • A commitment is a Safe account connected to an Optimistic Governor module. Written rules describe permitted actions; users or agents propose transactions and post a bond. Undisputed proposals can execute after the challenge window.
  • A commitment-serving agent monitors a commitment and runs module-specific decision logic. The shared runner lives in agent/; individual implementations live in agent-library/.
  • A publication node verifies authorized senders' signed messages and stores them in IPFS. Its optional Ledger mode also records the content identifier (CID) onchain. The node's Ledger contract is separate from a commitment's Safe and Optimistic Governor.

You can run an IPFS-only node independently of any commitment or commitment-serving agent. A coding agent helping you install the software is also separate from the agents that submit messages or serve commitments.

Run a node

The recommended first setup is IPFS-only, with Oya and Kubo (the IPFS service) on your local device, plus a separately hosted HTTPS inbox backed by PostgreSQL. The inbox accepts signed messages from approved addresses and queues them while your device is offline. Your local worker polls over outbound HTTPS, checks authorization again, and publishes accepted messages. It needs no inbound message port, router forwarding, or tunnel.

  • For agent-assisted setup, open Deploy with an agent. It has a task prompt, the inputs you supply, secure credential instructions, and the checks the agent must complete. If you have no hosting or hostname yet, the prompt lets you ask for options within a budget.
  • For manual setup, start with Run locally. It walks through local configuration and sends you to Host the inbox when the remote role is needed.

Either path finishes by submitting a signed message and retrieving its CID. The guides also cover offline delivery, monitoring, restart, and backup verification.

Node mode Result Additional requirements
IPFS-only Signed message published and pinned in local IPFS No Ethereum RPC, Ledger deployment, funded account, or gas.
Full / Ledger IPFS publication plus a verified Ledger transaction Ethereum RPC access, a deployed Ledger contract, and a dedicated funded node account. This does not run an Ethereum full node.

The released image and deployment bundle provide the runtime and deployment assets. The manual release path needs no source build, host Node.js, or Foundry. The optional macOS Keychain startup helper needs Python 3. Follow the current guides' release compatibility notes, including any helper files absent from an older bundle.

Default client jobs have a 24-hour deadline; queued work does not wait indefinitely. If your local device holds the only IPFS copy, continuous content retrieval also requires replication elsewhere. Advanced options include the direct HTTP API without an inbox. The node directory guide distinguishes the production runtime from experimental daemons.

Deploy a commitment

This path creates a Safe and Optimistic Governor on your selected chain. Start with the commitment deployment guide, which explains prerequisites, required settings, and the command to run from the repository root.

  1. Select the chain, collateral token, bond, and rules. Use the shared rule templates when drafting a commitment for an agent.
  2. Install Foundry, initialize the repository's contract dependencies, and configure a funded deployer and RPC access using the guide. See signer options for credential handling.
  3. Deploy, record the resulting addresses, and verify ownership before configuring an agent to serve the commitment.

The deployment script broadcasts transactions. By default, the deployer remains the Safe's sole owner for testing. The guide explains how to finalize ownership later or choose a different owner set at deployment. The web frontend provides a browser-wallet alternative.

Build or run a commitment-serving agent

To run an existing module, follow the agent setup guide and that module's instructions. Configure the commitment addresses and non-secret behavior in agent-library/agents/<name>/config.json; use the runner's supported secret/signing configuration for credentials.

To build a new module, follow Building a new agentic commitment: copy the default scaffold, select rule templates, implement local behavior, and validate it with the local harness before live use. The guide includes the exact validation and smoke-test commands. Coding agents can use the add-agent-commitment skill.

Use the runner reference for configuration, signing, signals, and APIs. Keep behavior for one commitment in its own module; see the extension policy before modifying shared infrastructure.

Repository map

Path Responsibility and entry point
node/production/ Production publication runtime, local worker, PostgreSQL inbox, Docker assets, and operator guides.
node/ Node overview plus experimental message/proposal/control daemons and their tests. New production deployments start in node/production/.
agent/ Shared commitment-serving runner, signer integrations, APIs, and local harness tools.
agent-library/ Individual agent modules, commitment text, configuration, and shared rule templates.
src/, script/, test/ Root Foundry project: existing application contracts, commitment deployment/management scripts, and Solidity tests.
contracts/ Separate Foundry project for hardened onchain components, currently Ledger. Use its own build/test commands.
packages/ Reusable offchain kernels published as @oyaprotocol/* packages.
frontend/ Web UI for deploying commitments through a browser wallet.
docs/ Commitment, agent, signer, frontend, and testing guides. Node operations guides live with node/production/.
skills/ Workflows coding agents can follow for deployment and new commitment/agent modules.
plans/ Design and implementation records. Use the task guides above for current setup instructions.
lib/ External Solidity dependencies used by Foundry.

Contribute or release software

Read CONTRIBUTING.md and the applicable AGENTS.md before changing code. Testing and common commands points to checks for each area. Substantial work uses an execution plan following PLANS.md.

Maintainers publish node images and matching bundles through the node release guide. Installing or operating a released node does not require publishing anything. Kernel library releases have a separate package workflow.

Project status

This is beta software provided “as is.” Use at your own risk. No guarantees of safety, correctness, or fitness for any purpose. Keep credentials and private installation records out of Git; follow the selected guide's secure credential setup.

About

Oya commitments, hardened node modules, and production node runtime

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages