Restaurant reference
Follow discovery, reservations, orders and payment requests through deterministic contract tests.
Capabilities
| Capability | Business step |
|---|---|
| menu.search | Search the menu |
| availability.check | Check availability |
| reservation.create | Create a reservation |
| order.create | Create an order |
| payment.request | Request payment |
REST and MCP use the same contracts and BusinessRuntime. The reference uses mock Connectors without an LLM provider or real payment SDK dependency.
Get and run
git clone https://github.com/brivya/brivya.git
cd brivya
npm install --ignore-scripts --no-audit --no-fund
npm run ciThe current repository has no committed lockfile, so use the same npm install approach as CI. The root command builds, typechecks and tests, including the Restaurant RST-001..RST-024 contract matrix.
Run reference tests only
npm run build
node --test examples/restaurant/dist/test/*.test.jsBuild all workspaces first to prepare cross-package dependencies. Then run the compiled reference suite, covering execution, safety rejection and audit behavior with deterministic data.
Reading path
examples/restaurant/src/manifest.ts: business identity and capability declarations.examples/restaurant/src/capabilities.ts: capability definitions.examples/restaurant/test/: end-to-end evidence.connectors/mock/: mock business integration.
Based on the public Alpha implementation · View source ↗