How dami904/steward works
Steward lets an agent propose vault deposits or redemptions while deterministic policy—not the model—determines whether they are permitted; account limits can be earned or reduced through replayable conduct. The web app exposes simulation, account controls, verification, measured liquidity, and a honeypot, while the TypeScript engine implements policy, accounting, evidence, health, and tier logic. The tree omits the contracts and several page/library excerpts, so on-chain behavior is shown as an external system and uncertain wiring is omitted.
Main entry points: route.ts Paid verification API · chain.ts Chain reader · Simulator.tsx Policy simulator · replay.ts History replay
Components 26
Web product
- Product landing
apps/web/app/page.tsx - Policy simulator
apps/web/app/simulate/Simulator.tsx - Account controls
apps/web/app/app/page.tsx - Verifier
apps/web/app/verify/page.tsx - Paid verification API
apps/web/app/api/verify-paid/route.ts - Honeypot inbox
apps/web/app/honeypot/NoticeInbox.tsx - Notice API
apps/web/app/api/honeypot/notices/route.ts - Notice store
apps/web/lib/honeypot-store.ts
Policy engine
- Capacity accounting
packages/engine/src/accounting.ts - Policy checks
packages/engine/src/policy.ts - Health assessment
packages/engine/src/health.ts - Tier transitions
packages/engine/src/tiers.ts - Evidence assessment
packages/engine/src/evidence.ts
Chain and replay
- Chain reader
apps/web/lib/chain.ts - History replay
apps/web/lib/replay.ts - Vault liquidity
apps/web/lib/vault-liquidity.ts - RPC configuration
apps/web/lib/deployment.ts
Agent and evidence
- SERV reasoner
packages/serv-client/src/reasoner.ts - SERV transport
packages/serv-client/src/client.ts
Integrations
- BSC RPC or demo chain
- SERV model API
- x402 payment gate
apps/web/proxy.ts - Read-only chain proxy
deploy/demo-chain/proxy.mjs
Other components
- User or operator
- AI agent
- Steward account and vault
Connections 28
- User or operator → Product landing: browses
- User or operator → Policy simulator: adjusts inputs
- Policy simulator → Capacity accounting: computes capacity
- Policy simulator → Policy checks: checks proposal
- Capacity accounting → Health assessment: uses health
- AI agent → SERV reasoner: requests proposal
- SERV reasoner → SERV transport: sends prompt
- SERV transport → SERV model API: requests completion
- SERV model API → SERV transport: returns claims
- SERV reasoner → Evidence assessment: assesses claims
- Account controls → RPC configuration: resolves RPC
- Verifier → Chain reader: reads account history
- Paid verification API → RPC configuration: resolves RPC
- Paid verification API → Chain reader: reads state and events
- Paid verification API → History replay: replays history
- Chain reader → BSC RPC or demo chain: reads chain
- Chain reader → Steward account and vault: queries account
- History replay → Tier transitions: checks transitions
- History replay → Policy checks: checks rules
- Product landing → Vault liquidity: loads measurements
- Vault liquidity → BSC RPC or demo chain: reads request history
- Honeypot inbox → Notice API: submits notices
- Notice API → Notice store: lists or stores
- User or operator → Paid verification API: requests replay
- x402 payment gate → Paid verification API: gates payment
- Read-only chain proxy → BSC RPC or demo chain: forwards allowed reads
- Account controls → Steward account and vault: reads or manages account
- Steward account and vault → Policy checks: enforces policy