You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: settle on x402-only + deterministic decisions, close CoralOS threads on shutdown
Drops the escrow-gated/LLM-tool-loop settlement path in favor of direct x402 payment
and deterministic bid/award/verify logic (agent/{capability,loop,safety,tools}.ts,
llm/*, bid-review.ts, bid-tools.ts, award-tools.ts, verify-tools.ts, and the
per-agent escrow/arbiter clients are removed; escrow/arbiter Anchor programs remain
deployed as an opt-in building block, not the default flow).
Refreshes docs and code comments across the repo to match: README/CORAL.md/PAY.md/
API.md, the solana-agent-commerce skill references, package.json's description, and
stale in-code comments that still described escrow-gated release or LLM-shaped
output. Deletes LLM.md (described a fully-removed provider-config subsystem).
Adds CoralMcpAgent.closeThread(), wired into startCoralAgent's shutdown handler so a
buyer-agent's market thread is marked closed on SIGINT/SIGTERM instead of just going
quiet - verified live (SIGTERM -> closeThread -> disconnect -> clean exit, no hang).
Verified end-to-end against live TxLINE World Cup data: a full CoralOS round
(WANT -> BID -> AWARD -> PAYMENT_PROOF -> PAYMENT_CONFIRMED -> DELIVERED -> VERIFIED
-> SETTLED) settling a real devnet x402 transfer, rendered correctly in the web UI.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(`BudgetGuard`/`StepCounter`), a `Tool` contract with an audit-log shape, an evaluation/ranking
82
-
helper, and a bounded provider-agnostic LLM tool-calling loop (`runToolLoop`), available for
83
-
building new Coral-native agents.
84
+
`packages/agent-runtime/src/agent/` holds small scoring/ranking helpers (`rank`/`best`/
85
+
`evaluateDirectionalCall`) for picking the best of several options and grading past calls,
86
+
available for building new Coral-native agents.
84
87
85
88
## Payment and Policy
86
89
87
90
Solana value movement is devnet by default. Runtime helpers reject mainnet RPC URLs unless `ALLOW_MAINNET=1` is set.
88
91
89
-
Policy checks are centralized in `packages/agent-runtime/src/policy` and cover spend caps, service allowlists, payout binding, award-price binding, rate limiting, and verifier gating.
92
+
Policy checks are centralized in `packages/agent-runtime/src/policy` and cover spend caps, service allowlists, payout binding, award-price binding, and rate limiting — all checked before the buyer signs a payment, since x402 settlement is direct and final and there is no later release step to gate.
90
93
91
-
Harness processes should not receive signing keys. Agent processes hold wallet authority and call policy before deposits/releases. See `PAY.md` for how the three payment rails (Solana Pay, escrow, x402) are actually used, `CORAL.md` for how the coordination layer works, and `LLM.md` for how LLM-backed decisions are proposed and enforced.
94
+
Harness processes should not receive signing keys. Agent processes hold wallet authority and call policy before every payment. See `PAY.md` for how the three payment rails (x402, Solana Pay, escrow) are actually used and `CORAL.md` for how the coordination layer works.
92
95
93
96
## Environment
94
97
@@ -97,11 +100,8 @@ Common variables:
97
100
| Variable | Purpose |
98
101
|---|---|
99
102
|`BUYER_KEYPAIR_B58`| Buyer funding keypair for devnet transactions. |
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,16 @@ Contributions are welcome. The `main` branch is the integration branch — targe
6
6
7
7
| Directory | Language | Typical changes |
8
8
|-----------|----------|-----------------|
9
-
|`packages/agent-runtime/`| TypeScript | The runtime: LLM shim, Solana Pay + devnet guard, CoralOS MCP client, the market protocol (incl. VERIFY/VERIFIED), the run ledger + reputation, the policy choke point |
10
-
|`packages/harness-runtime/`| TypeScript | The harness adapter SDK (`node-llm` / `claude-code` / any CLI as sellers) |
9
+
|`packages/agent-runtime/`| TypeScript | The runtime: Solana Pay + devnet guard, CoralOS MCP client, the market protocol (incl. VERIFY/VERIFIED), the run ledger + reputation, the policy choke point |
10
+
|`packages/harness-runtime/`| TypeScript | The harness adapter SDK (`in-process` / `claude-code` / any CLI as sellers) |
11
11
|`examples/txodds/`| TypeScript | The World Cup Oracle — the edge transform, the proxy (+ run grading), the web app, the CoralOS round launcher, the feed server, the research watcher |
0 commit comments