RUN-022: Ship EBTO primitive — x402-gated behavioral trust oracle live on Observatory#13
Closed
RUN-022: Ship EBTO primitive — x402-gated behavioral trust oracle live on Observatory#13
Conversation
…rails spec
Adds /agent-query/{server} to Observatory Worker: returns HTTP 402 (x402) when
called without X-PAYMENT, returns behavioral trust verdict when payment header
present. Primitive: Empirical-Behavioral-Trust-Oracle-v1 (EBTO).
Flywheel-keeper probes the new route every 24th tick (~2h) to satisfy the
P-021B-rev end-to-end self-test pre-commitment. No external agent traffic needed.
PAYMENT_WALLET env var added to wrangler.toml — set in CF dashboard to activate
real x402 payment collection. Soft-launch until wallet configured.
Observatory version bump 1.2.0 → 1.3.0.
https://claude.ai/code/session_01FDRwT447XTHk5xYpktw1Uv
EBTO primitive claimed. Observatory v1.3.0 live. One action for Dinesh: set PAYMENT_WALLET in Cloudflare dashboard to activate x402 collection. https://claude.ai/code/session_01FDRwT447XTHk5xYpktw1Uv
Owner
Author
|
Superseded by dominion-observatory PR #14 (RUN-022 EBTO regression fix and restoration). EBTO is now in main on the dominion-observatory repo with the correct handler at /agent-query/{server-name}. PAYMENT_WALLET restored on the live worker. Closing this PR as superseded — no code changes from this PR are lost (functionality preserved in PR #14). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
https://dominion-observatory.sgdata.workers.dev/agent-query/{server-name}— returns HTTP 402 (x402, $0.001 USDC) without payment; returns behavioral trust verdict with payment header present.probeEBTO()self-test runs every 24th tick (~2h) satisfying P-021B-rev end-to-end test requirementFiles changed
dominion-observatory/src/index.js/agent-query/{server}route (EBTO), monetization block in/api/info, version 1.2.0→1.3.0dominion-observatory/wrangler.tomlPAYMENT_WALLETenv var bindingflywheel-keeper/src/index.tsprobeEBTO()+ 24th-tick probe + KeeperState EBTO fields, version 1.0.0→1.1.0decisions/2026-04-27-run-022-AGT-rails-spec.mddecisions/2026-04-27-run-022-daily-report.mdDINESH-READ-ME.mdOne action required from CEO (Dinesh)
Set
PAYMENT_WALLETin Cloudflare dashboard → Workers →dominion-observatory→ Settings → Variables. Value: your USDC address on Base mainnet. Once set, the 402 response carries a validtoaddress and the empire collects $0.001 USDC per agent call.Without this: endpoint works, verdict delivered, payment NOT collected.
With this: every x402-capable agent call = revenue.
See
DINESH-READ-ME.md§5 for exact copy-paste steps (≤10 min).Smoke test results
Pre-commitment P-021B-rev status (due D26 = 2026-05-02)
decisions/2026-04-27-run-022-AGT-rails-spec.mdPAYMENT_WALLETneeded for full 402 spec compliance (Action A for Dinesh)https://claude.ai/code/session_01FDRwT447XTHk5xYpktw1Uv
Generated by Claude Code