diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index bc8328f3a..168e9ef8e 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -6,14 +6,14 @@ }, "metadata": { "description": "Agent402 is the payment and trust layer for agentic commerce: agents find, pay for and verify paid calls to Agent402, across x402 and MPP, with signed receipts on successful direct calls. 500+ ready tools on the same rails. Pure-compute tools run free via proof-of-work.", - "version": "2.26.0" + "version": "2.27.0" }, "plugins": [ { "name": "agent402", "source": "./plugins/agent402", "description": "Agent402 is the payment and trust layer for agentic commerce: agents find, pay for and verify paid calls to Agent402, across x402 and MPP, with signed receipts on successful direct calls. 500+ ready tools on the same rails. One MCP server and a skill: PDFs and OCR, SEC filings, US macro series, weather, chain reads and utilities, found with catalog.find and paid per call over x402 or MPP.", - "version": "2.26.0", + "version": "2.27.0", "author": { "name": "Havok Holdings LLC", "url": "https://agent402.tools/company" diff --git a/.claude/rules/mcp.md b/.claude/rules/mcp.md index 91df47ce0..903df7d1c 100644 --- a/.claude/rules/mcp.md +++ b/.claude/rules/mcp.md @@ -170,8 +170,10 @@ Loaded when a connector or front-door file is read. is cut in document order to valid JSON and carries `answerBound` (`src/mcp-answer-bound.js`: the partial-answer fields in bytes, plus one entry per cut list, string or object). A paid answer is delivered whole. - **Annotations:** `readOnlyHint: true` only on a tool that never charges and never writes on any path here - (`catalog.search`, `catalog.find`, `sellers.list`, `server.describe`, `payment.info`); a host may run those without - asking. Every flagship (it can charge) and `catalog.call`, `demand.request`, `decide.feedback` are not read-only; + (`catalog.search`, `catalog.find`, `sellers.list`, `server.describe`, `payment.info`, and `credits.balance`, listed + and answered only under a connector grant: the grant's own balance, today's spend and cap, read by its key id and + grant id, never an argument; no figure for a key that cannot pay); a host may run those without asking. + A binary answer's `X-Dub-Translation` header also becomes a text block and a `translation` field (`mcpBinaryResult`). Every flagship (it can charge) and `catalog.call`, `demand.request`, `decide.feedback` are not read-only; `memory.write` is also `destructiveHint: true`. `scripts/test-mcp-http.js` derives this from the free-tier table. The stdio package keeps its own copy. - **Tool fingerprints:** every `tools/list` entry, hosted and stdio, carries sha256 over its canonical definition in diff --git a/.claude/rules/media.md b/.claude/rules/media.md index 807cf7bee..91607dee6 100644 --- a/.claude/rules/media.md +++ b/.claude/rules/media.md @@ -11,6 +11,9 @@ paths: - "src/tools/frame-diff.js" - "src/tools/child-env.js" - "src/tools/image-*.js" + - "src/tools/picture-input.js" + - "src/tools/page-images.js" + - "src/tools/room-rows.js" - "src/inline-image.js" - "src/tools/markdown-*.js" - "src/tools/edgar-offthread.js" @@ -136,6 +139,18 @@ Loaded when a media, document or worker-pool tool file is read. budget (4,096 TIFF entries and strip rows, a 256 KB GIF, no per-chunk state for a PNG) and leaves a larger file to the worker, which runs the whole check before it decodes. `scripts/test-image.js` ends with a seeded fuzz of every format (300 mutated files each, about a second). +- **Picture input:** a tool that takes one picture from a caller reads it through `src/tools/picture-input.js` + (`pictureInput`, or `pictureSourceOf` then `readPicture`): base64, a data: URL, an https URL read by `safeFetch` under + the byte cap (counted after decompression), or an MCP image block, embedded resource or https resource link; PNG or + JPEG from the bytes, one header, sides and pixels inside the caller's caps, never decoded. `v1-images-edit` reads its + references this way (a URL is read in the handler, after the key check and before the first link, so a bad URL is the + caller's 4xx), and so does `image-animate` (its pixel-data check, `assertAnimatePixelsReadable`, rides in `check`); a + tool's own extra check rides in `check` (`scripts/test-picture-input.js`). +- **Video links** (`src/tools/llm-images-fast-kit.js` `VIDEO_LINKS`): each model makes only its listed lengths and shapes + (`durations`, `aspects`), priced from its own per-second rows (`videoRateKey`, `videoImageKey`; the default 4 s silent + clip on the first model keeps its own rows). The next model is tried only after a submit 4xx other than 401, 402 or 403 + (never billed); a 5xx, a network error or a failed job ends the call. An animated picture keeps its shape where a model + makes it, else the nearest, named in `aspect_note`. Suite: `scripts/test-video-options.js`. - **Image codecs:** the image tools use the Jimp class in `src/tools/image-codecs.js` (`loadJimp`), never `import "jimp"`: it keeps our GIF reader and the jpeg-js codec, since jimp's own JPEG codec (2.2 on) halves color resolution below quality 90. `scripts/test-jimp-zod.js` pins the output bytes. @@ -243,3 +258,11 @@ Loaded when a media, document or worker-pool tool file is read. boot are `imageGenModeration.sinceBoot` on `/__operator/tool-failures.json` (counts only). The `/v1/images/*` routes ride the OpenRouter image links and do not send this parameter. Suite: `scripts/test-image-gen-kit.js`. +- **Image questions and page images:** `image-describe` (`src/tools/image-describe-kit.js`) makes one v1-chat call a + picture, priced per picture; every picture is read and checked (robots.txt, the fetch guard, bytes, declared pixels) + before the first model call, only `VISION_MODELS` are tried (the tier's failover can end on a model that reads no + images), and a reply flagged `identifiesPerson` is withheld. A failed picture is a named row, left out of an `upto` or + credits charge (`setActualCharge` with `credits: true`). `page-images` (`src/tools/page-images.js`) reads the page from + an isolated world, and while it clicks the page may neither navigate nor send anything but GET and HEAD; each bound it + meets is named in `notReached`. The `room-types` pack adds rows in the page's own words (`src/tools/room-rows.js`, + "not listed" otherwise). Suites: `scripts/test-image-describe.js`, `scripts/test-page-images.js`. diff --git a/.claude/rules/ops.md b/.claude/rules/ops.md index f10955b9c..ea119d69b 100644 --- a/.claude/rules/ops.md +++ b/.claude/rules/ops.md @@ -793,7 +793,7 @@ Loaded when a state, loop, monitor, workflow or worker file is read. ## Ledger retention - `LEDGER_RETENTION`: unset is a daily leased dry run (counts only), `apply` deletes, `off` skips the money records (the 90-day refusal-record prune still runs). `LEDGER_RETENTION_SALES_YEARS` and `LEDGER_RETENTION_REFUND_YEARS` (default 7, never under 7). Only resolved refunds (paid, void) are pruned; an owed, sending or blocked row stays at any age (`scripts/test-ledger-retention-pg.js` on real Postgres). Sanctions events follow `SANCTIONS_EVENTS_RETENTION_YEARS` (payments.md). -- **Payment refusal record** (`src/payment-refusals.js`, read on `/__operator/refusals.json` with `payer`, `slug`, `reason`, `since`, `limit`): each refused paid attempt (a credential answered 402 by any gate, or a 4xx a gate marked with `markPaymentRefusal`, `src/refusal-mark.js`; the hook is registered before every payment gate, one record per request), one row per UTC day and payer, reason, slug, route class, rail, network and status with a count; the payer only from `verifiedPayerOf`, never the unverified header; at most 2,000 new rows a process a day, the rest in the day's overflow row; written behind (records table, or `PAYMENT_REFUSALS_FILE`); the retention pass always deletes rows past 90 days, the period /privacy prints (`scripts/test-payment-refusals.js`, `scripts/test-payment-refusals-gates.js`, `scripts/test-payment-refusals-pg.js`). +- **Payment refusal record** (`src/payment-refusals.js`, read on `/__operator/refusals.json` with `payer`, `slug`, `reason`, `since`, `limit`): each refused paid attempt (a credential answered 402 by any gate, or a 4xx a gate marked with `markPaymentRefusal`, `src/refusal-mark.js`; the hook is registered before every payment gate, one record per request), one row per UTC day and payer, reason, slug, route class, rail, network and status with a count; the payer only from `verifiedPayerOf`, never the unverified header; an x402 header that did not decode (`malformed-header`) adds `headerShape` and `headerLength`, two words from the closed sets in `src/payment-header-shape.js` (never the header or any part of it), and each shape is its own row; at most 2,000 new rows a process a day, the rest in the day's overflow row; written behind (records table, or `PAYMENT_REFUSALS_FILE`); the retention pass always deletes rows past 90 days, the period /privacy prints (`scripts/test-payment-refusals.js`, `scripts/test-payment-refusals-gates.js`, `scripts/test-payment-refusals-pg.js`). ## Operator records without a state database - **Payee yearly totals** (`src/payee-totals.js`, `/__operator/payee-totals`, `scripts/payee-yearly-totals.js`): diff --git a/.claude/rules/payments.md b/.claude/rules/payments.md index e8b687eb4..ecae927e7 100644 --- a/.claude/rules/payments.md +++ b/.claude/rules/payments.md @@ -1251,7 +1251,14 @@ Loaded when a payment-path file is read. The settlement-ordering rule in the roo default) on every line but the default PAYMENT-REQUIRED (`scripts/test-challenge-size.js`), and on every line of the compact 402 (`scripts/test-402-real-clients.js`, which also has five real clients read the full-rail 402). The default PAYMENT-REQUIRED is never shortened: the Bazaar harvests its - accepts and extensions whole. + accepts and extensions whole. `scripts/test-402-header-budget.js` boots every rail and switch (the + three Lightning wires, card, sessions, offers, Gateway, upto) and holds every route's 402 header + block, read on the wire, to 16,384 less production's own bytes (1,100) less 512; Node's fetch reads + the largest. The MPP evm challenge's meta holds only the accept fields its request does not state + (`challengeMetaValue`, rebuilt by `acceptFromChallenge`), no MPP evm challenge is minted for a + Gateway batched accept, builder-code and payment-identifier carry `{ type: "object" }` as their + schema (mppx's codec drops the whole extensions map when one has none), and the loopback to our + own routes reads with a 256 KiB header limit (`src/loopback-dispatcher.js`). - **402 body mirror:** `src/payment-required-body.js` copies the decoded PAYMENT-REQUIRED object into the JSON body of every paywall 402 (header authoritative, header keys win, our fields kept); a refusal that explains itself (a `hint`, or a problem's `detail`) gets the offer and @@ -1289,7 +1296,12 @@ Loaded when a payment-path file is read. The settlement-ordering rule in the roo header that decodes and is refused, or an `Authorization` credential, keeps its own explanation. An x402 header that does not decode is removed at intake (`src/payment-header.js`), so its 402 is a first-contact answer and carries the block beside - `reason: malformed-header`. Every other field and the header are unchanged + `reason: malformed-header`, whose hint names the shape it read as and what to send. Intake reads + two safe variants of the standard encoding (raw JSON, or a percent-escaped copy of base64 or raw + JSON) only when they hold a well-formed payment (`isWellFormedPayment`: x402Version 1 or 2, a + `payload` object, scheme and network as text) and rewrites them to the canonical base64, so every + later reader sees the standard bytes; a standard header is untouched + (`scripts/test-payment-header-shape.js`). Every other field and the header are unchanged (`scripts/test-payment-guide.js`). Rollback lever: `PAYMENT_GUIDE_402=off`. - **Funding next step:** `src/next-step.js`: a refusal the verify hint answers with `fund-wallet`, diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 6fcebf59f..10b8be1bb 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agent402", - "version": "2.26.0", + "version": "2.27.0", "description": "Agent402 is the payment and trust layer for agentic commerce: agents find, pay for and verify paid calls to Agent402, across x402 and MPP, with signed receipts on successful direct calls. 500+ ready tools on the same rails. Open-source MCP server and skill: pay per call in USDC over x402 or MPP, or free via proof-of-work for pure-compute tools.", "author": { "name": "Havok Holdings LLC", diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 55349ea14..447125cad 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -2,7 +2,7 @@ "$schema": "https://raw.githubusercontent.com/cursor/plugins/main/schemas/plugin.schema.json", "name": "agent402", "displayName": "Agent402.Tools", - "version": "2.26.0", + "version": "2.27.0", "description": "Agent402 is the payment and trust layer for agentic commerce: agents find, pay for and verify paid calls to Agent402, across x402 and MPP, with signed receipts on successful direct calls. 500+ ready tools on the same rails. Open-source MCP server and skill: PDFs and OCR, SEC filings, US macro series, weather, chain reads and utilities, paid in USDC over x402 or MPP, or free via proof-of-work for pure-compute tools. Most tools are deterministic code; model-backed tools are marked as such.", "author": { "name": "Havok Holdings LLC (formerly CardHavok LLC)" @@ -34,7 +34,7 @@ "command": "npx", "args": [ "-y", - "agent402-mcp@0.20.1" + "agent402-mcp@0.21.0" ] } }, diff --git a/.github/workflows/aws-listing.yml b/.github/workflows/aws-listing.yml new file mode 100644 index 000000000..c8342aae0 --- /dev/null +++ b/.github/workflows/aws-listing.yml @@ -0,0 +1,73 @@ +# The AWS Marketplace listing read unpaid, once a day: every listed tool's 402 +# carries one offer on aws:base in USD whose quote verifies against the +# published JWKS and names BASE_URL/aws as its issuer; the setup page and the +# listing's OpenAPI document answer; the endpoint opened in a browser answers +# no error; and the served tools are exactly the listing's +# (scripts/aws-listing-check.js, paced under the gate's unpaid quote limit). +# +# Schedule and dispatch only, never on a push: the CI lane runs the same check +# against a local boot and a faulty stub on every push +# (scripts/test-aws-listing-check.js). Never pays: no request carries a +# payment, and this workflow holds no secret and installs nothing. A failure +# opens (or updates) ONE issue with the fixed text; the next clean run closes it. +name: AWS listing check (daily) + +on: + schedule: + - cron: "23 7 * * *" # daily, 07:23 UTC + workflow_dispatch: + +permissions: + contents: read + issues: write + +concurrency: + group: aws-listing + cancel-in-progress: false + +jobs: + aws-listing-check: + runs-on: ubuntu-24.04 + timeout-minutes: 15 + env: + GH_TOKEN: ${{ github.token }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: main + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24 + - name: Read the listing unpaid against production + id: check + env: + TARGET_URL: https://agent402.tools + run: | + set +e + node scripts/aws-listing-check.js 2>&1 | tee check.log + echo "exit=${PIPESTATUS[0]}" >> "$GITHUB_OUTPUT" + exit 0 + # An open issue this check filed under a previous title gets the current + # one, so the lookups below find it (scripts/adopt-issue-titles.js). + - name: Adopt an open issue filed under a previous title + continue-on-error: true + if: always() + env: + GH_TOKEN: ${{ github.token }} + run: node scripts/adopt-issue-titles.js + + - name: Page (open / update / close the issue) + if: always() + env: + RESULT: ${{ steps.check.outputs.exit }} + run: | + TITLE="Scheduled check needs review: aws-listing" + find_issue() { ISSUE_TITLE="$1" ISSUE_OWNER="${GITHUB_REPOSITORY%%/*}" gh issue list --repo "$GITHUB_REPOSITORY" --state open --search "in:title \"$1\"" --json number,title,author --jq '[.[] | select(.title == env.ISSUE_TITLE) | select((.author.login // "" | ascii_downcase) as $a | $a == "github-actions[bot]" or $a == "app/github-actions" or $a == (env.ISSUE_OWNER | ascii_downcase))][0].number // empty'; } + OPEN=$(find_issue "$TITLE") + if [ "$RESULT" != "0" ]; then + # One path files the check's issue: it comments on the open one, + # reopens one closed within seven days, else files a new one. + node scripts/check-issue.js --title "$TITLE" --trust-owner + elif [ -n "$OPEN" ]; then + gh issue close "$OPEN" --repo "$GITHUB_REPOSITORY" --comment "Closed by the scheduled check at $(date -u +%FT%TZ). Run: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" + fi diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2c5dec3bd..c8f4f4217 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1609,14 +1609,14 @@ jobs: AGENT402_MCP_MAX_PER_MIN=1000000 AGENT402_MCP_MAX_PER_HOUR=1000000 \ X402_SYNC_ON_START=false FREE_MODE=true X402_PAYWALL_PROBES_PER_CYCLE=0 PORT=3000 node src/server.js & for i in $(seq 1 20); do curl -s localhost:3000/health >/dev/null && break; sleep 1; done - - name: Offline suites (32 scripts, one process each) + - name: Offline suites (33 scripts, one process each) run: bash scripts/ci/run-step.sh test-unit-a4 1 - name: x402 Bazaar discovery shape (POST→bodyType, GET→queryParams, example types match schema) if: matrix.shard == 1 run: node scripts/check-bazaar.mjs - - name: Offline suites (105 scripts, one process each) + - name: Offline suites (109 scripts, one process each) run: bash scripts/ci/run-step.sh test-unit-a4 2 - name: Crawl backoff (stop re-probing an origin that keeps saying no) @@ -2117,7 +2117,7 @@ jobs: AGENT402_MCP_MAX_PER_MIN=1000000 AGENT402_MCP_MAX_PER_HOUR=1000000 \ X402_SYNC_ON_START=false FREE_MODE=true X402_PAYWALL_PROBES_PER_CYCLE=0 PORT=3000 node src/server.js & for i in $(seq 1 20); do curl -s localhost:3000/health >/dev/null && break; sleep 1; done - - name: Offline suites (54 scripts, one process each) + - name: Offline suites (56 scripts, one process each) run: bash scripts/ci/run-step.sh test-unit-b4 1 - name: "Redis integration (the REAL client against a REAL server — cap-of-1, refund, cache round trip; the gap that made a redis major bump undecidable)" @@ -2225,7 +2225,7 @@ jobs: AGENT402_MCP_MAX_PER_MIN=1000000 AGENT402_MCP_MAX_PER_HOUR=1000000 \ X402_SYNC_ON_START=false FREE_MODE=true X402_PAYWALL_PROBES_PER_CYCLE=0 PORT=3000 node src/server.js & for i in $(seq 1 20); do curl -s localhost:3000/health >/dev/null && break; sleep 1; done - - name: Offline suites (270 scripts, one process each) + - name: Offline suites (272 scripts, one process each) run: bash scripts/ci/run-step.sh test-unit-d 1 - name: Search-kit tests (Brave web/news/images/suggest — validation always runs; live calls opt-in via BRAVE_LIVE_TEST=1, otherwise paid-canary covers post-deploy) @@ -2635,8 +2635,10 @@ jobs: # test skips the langchain-native path gracefully without langchain-core, # so this locks the spec + free proof-of-work call behavior. # The x402 SDK is driven for real by both Python adapter tests (offline). - python3 -m pip install --quiet requests "x402==2.30.0" + python3 -m pip install --quiet requests "x402[evm]==2.30.0" AGENT402_BASE_URL=http://127.0.0.1:3091 python3 adapters/langchain-py/test.py + # /docs/scripts: every snippet the page prints, run against a paid local server + node scripts/test-script-page.js # Python GAME adapter (agent402-worker-functions): the SDK at the extra's exact # pin, wheels only (no build step runs); under CI the test fails without it. python3 -m pip install --quiet --only-binary=:all: "game-sdk==0.1.5" @@ -2853,7 +2855,7 @@ jobs: node mcp/test.js - - name: Offline suites (41 scripts, one process each) + - name: Offline suites (42 scripts, one process each) run: bash scripts/ci/run-step.sh test-paid2 1 @@ -3056,8 +3058,14 @@ jobs: # server's rows are read): a pack step whose source failed this # server during the call is excused by that record # (scripts/lib/pack-sweep-grade.js, serverLogStepVerdict). + # A pack example that names this server's own origin (the /fixtures/ + # pages, /changelog.xml) is answered by this server, never production, + # which may not serve a fixture this commit adds yet + # (own-examples-preload.js). BASE_URL is that published origin, so a + # page served here links where production's does (feed-watch reads + # the feed's item links) and those reads are answered here too. export UPSTREAM_FAILURE_LOG="$RUNNER_TEMP/pack-upstream-failures.jsonl" - X402_SYNC_ON_START=false X402_INDEX_CRAWL=off FREE_MODE=true PORT=3097 node --import ./scripts/lib/upstream-failure-log-preload.js src/server.js > /tmp/a402-packs.log 2>&1 & + BASE_URL=https://agent402.tools X402_SYNC_ON_START=false X402_INDEX_CRAWL=off FREE_MODE=true PORT=3097 node --import ./scripts/lib/own-examples-preload.js --import ./scripts/lib/upstream-failure-log-preload.js src/server.js > /tmp/a402-packs.log 2>&1 & PACK_PID=$! for i in $(seq 1 60); do curl -sf http://127.0.0.1:3097/health >/dev/null && break || sleep 1; done curl -sf http://127.0.0.1:3097/health >/dev/null || { echo "keyless server failed to boot"; cat /tmp/a402-packs.log; kill $PACK_PID; exit 1; } @@ -3321,6 +3329,9 @@ jobs: - name: Browser pool tools (page-speed fixture + html-frames sandbox) run: node scripts/test-page-speed-frames.js + - name: Page images (galleries, endless and hostile pages, robots.txt, clicks that only read; real Chromium) + run: node scripts/test-page-images.js + - name: Browser contexts block service workers, WebSockets, redirect hops and popups to private hosts (real Chromium) run: node scripts/test-render-isolation.js @@ -3492,7 +3503,7 @@ jobs: COINGECKO_API_KEY: "" run: npm ci - - name: Offline suites (108 scripts, one process each) + - name: Offline suites (109 scripts, one process each) run: bash scripts/ci/run-step.sh test-pricing 1 - name: Runner kills and memory (on failure) if: failure() @@ -5258,7 +5269,13 @@ jobs: # HTTP status it got. Only a 2xx answer counts: an error page that # happens to contain the needle is still a miss. has() { local body code i; for i in 1 2 3; do body=$(curl -s --max-time 20 -w '\n%{http_code}' "$1"); code=${body##*$'\n'}; body=${body%$'\n'*}; case "$code" in 2??) grep -qF -- "$2" <<<"$body" && return 0 ;; esac; LAST_CODE=$code; [ "$i" -lt 3 ] && sleep "${HAS_RETRY_SLEEP:-10}"; done; return 1; } - ck() { if eval "$2"; then echo " $1 ✓"; else echo " $1 MISSING (last HTTP ${LAST_CODE:-?})"; FAILS=$((FAILS+1)); fi; } + # within URL MIN MAX: the answer's size in bytes lies strictly between + # MIN and MAX. A failed read (no answer or a non-2xx) is read once + # more; a final miss says why in CAUSE, a pass gives the size in NOTE. + within() { local f code i size; f=$(mktemp); for i in 1 2; do code=$(curl -s --max-time 20 -o "$f" -w '%{http_code}' "$1" || true); case "$code" in 2??) size=$(wc -c <"$f" | tr -d ' '); rm -f "$f"; NOTE="$size bytes"; [ "$size" -gt "$2" ] && [ "$size" -lt "$3" ] && return 0; CAUSE="$size bytes, outside $2 to $3"; return 1 ;; esac; LAST_CODE=${code:-000}; [ "$i" -lt 2 ] && sleep "${HAS_RETRY_SLEEP:-10}"; done; rm -f "$f"; CAUSE="read failed twice, last HTTP $LAST_CODE"; return 1; } + # A miss always prints its cause: the check's own CAUSE, else the last + # HTTP status has() saw (000 is no answer at all). + ck() { LAST_CODE=; CAUSE=; NOTE=; if eval "$2"; then echo " $1 ✓${NOTE:+ ($NOTE)}"; else case "${CAUSE:-$LAST_CODE}" in 2??) CAUSE="HTTP $LAST_CODE without the expected text" ;; 000) CAUSE="no answer (connect failed or timed out)" ;; "") CAUSE="no cause recorded" ;; *) CAUSE=${CAUSE:-HTTP $LAST_CODE} ;; esac; echo " $1 MISSING ($CAUSE)"; FAILS=$((FAILS+1)); fi; } ck "FAQPage JSON-LD" 'has "$PROD/" "\"FAQPage\""' # The homepage renders its questions as
rows, each with an # ml-faq-mark toggle (the "$ GET /faq" kicker left with the home trim). @@ -5268,8 +5285,7 @@ jobs: ck "MCP connector on landing" 'has "$PROD/" agent402-mcp' ck "MCP connector in llms.txt" 'has "$PROD/llms.txt" agent402-mcp' # The short index's bound (scripts/test-front-door.js measures the tree under test). - LLMS_BYTES=$(curl -sf --max-time 20 "$PROD/llms.txt" | wc -c | tr -d ' ') - ck "llms.txt under 16,384 bytes ($LLMS_BYTES)" '[ "${LLMS_BYTES:-0}" -gt 1000 ] && [ "${LLMS_BYTES:-0}" -lt 16384 ]' + ck "llms.txt under 16,384 bytes" 'within "$PROD/llms.txt" 1000 16384' ck "unit-convert tool page" 'has "$PROD/tools/unit-convert" "Unit convert"' ck "guides with TechArticle JSON-LD" 'has "$PROD/guides/x402-in-5-minutes" TechArticle' [ "$FAILS" -eq 0 ] || { echo "$FAILS production surface(s) regressed"; exit 1; } diff --git a/.mcp.json b/.mcp.json index b4135020e..b03b74162 100644 --- a/.mcp.json +++ b/.mcp.json @@ -2,7 +2,7 @@ "mcpServers": { "agent402": { "command": "npx", - "args": ["-y", "agent402-mcp@0.20.1"] + "args": ["-y", "agent402-mcp@0.21.0"] } } } diff --git a/CHANGELOG-archive.md b/CHANGELOG-archive.md new file mode 100644 index 000000000..986708f64 --- /dev/null +++ b/CHANGELOG-archive.md @@ -0,0 +1,4010 @@ +# Changelog archive + +Releases v2.11.0 and earlier, moved from [CHANGELOG.md](CHANGELOG.md) unchanged. +Newer releases are in CHANGELOG.md. Package releases are listed under the +server version they shipped with; each package carries its own version on npm. + +## v2.11.0 - 2026-11-21 + +### 2026-11-21 (a mid router tier, price webhooks and router benchmarks) +Router: +- `route-execute-mid` (`POST /api/route/execute-mid`) is a new execution tier + between `route-execute-plus` and `route-execute-max`, one flat price for a + tool priced above the plus tier's cap and at or under its own; /api/pricing + lists its price, and /api/route names the tier a tool needs in `executeVia`. +- `GET /api/router-benchmarks` gives this server's measurements of outside + sellers in aggregate (the share of the router's recorded purchases a seller + answered 200 after payment, and the uptime, responsiveness and price-match + scores of sellers the router bought from beside those it did not), naming no + seller and publishing a statistic only when at least five sellers are scored + on it. +Tools: +- `price-webhook` (`POST /api/price-webhook`) registers an https URL that gets + a signed POST (`X-Agent402-Signature`, with the same `X-Agent402-Delivery` + id on a retry) when the list price of a tool it watches changes; a + subscription lasts 90 days, one wallet holds up to 25, a registration is + kept only when the call that made it settles, and a 410 from the receiver or + the free `POST /api/price-webhook/unsubscribe` removes it. +Surfaces: +- A tool priced per request can carry `fromInput` on `/api/pricing`: a small + valid body that its 402 quotes at or under the list price. +Operations: +- A server with no signing key (`PRICE_WEBHOOK_SIGNING_KEY`, else + `POW_SECRET`) answers a price webhook registration 503 and stores nothing, + `PRICE_WEBHOOK_DELIVERIES=off` holds deliveries while registrations and + removals keep working, and `PRICE_WEBHOOK_LIFETIME_DAYS` and + `PRICE_WEBHOOK_MAX_PER_PAYER` set how long a subscription lasts and how many + one wallet holds. +- `SOR_EVM_UNPROVEN_CHAINS` lists EVM chains other than Base on which the + router tries a seller below the settlement floor, under one per-call ceiling + (`SOR_EVM_UNPROVEN_MAX_USD`) and the Base tier's per-seller and daily + windows; unset, that tier stays on Base alone. +- The Bazaar keep-alive pays a route priced per request with its `fromInput` + body, and never above the list price. +Privacy: +- /privacy and the service manifest's data handling say what a price webhook + registration keeps (the URL, the tools it watches and a keyed digest of + the registrant) and for how long. + +### 2026-11-21 (checked coin prices, FRED terms and mailbox providers) +Tools: +- `price-coingecko` rows carry `stale` and, in USD, `divergencePct` against + a second source, and the answer's `check` names that source or says why no + check ran, as `crypto-price` does. +- `exchange-rates` keeps its BTC-denominated answer (`perBtc`) and adds + `rate`, the same cross per 1 `base` (default btc; `base=usd`, `eur`, `eth` + or `xau` quotes another unit), and a fiat row the European Central Bank + publishes carries `referenceRate` and `divergencePct`, the market cross's + gap to it in percent. +- coins-list joins the routes that are retired and answer 410; coins-list + names coin-search as the replacement. +- Each tool that reads FRED links FRED's Terms of Use in a `terms` field; + `fred-series` answers a series whose FRED notes carry a copyright notice + with a 400 that quotes the name the notice gives, and + `fred-release-observations` holds such series back in `withheld` and counts + series it could not screen in time in `unscreened`. +- `email-validate` adds `mailboxProvider`: who hosts the domain's mail + (`id`, `name`, `type`), read from the MX records it already looks up, and + null when the domain has no MX. +- `asn-info` gives its owner-name lookup a 3 second limit of its own; when + the name cannot be read, `owner` is null and `ownerUnavailable` is true. +- Input schemas, on `/openapi.json` too, carry `maxLength` on the string + fields a tool caps by length, each cap admitting every form the tool + accepts, and `dns.type` and the `frequency` and `units` of `fred-series` + publish the values they take as `enum`. +Privacy: +- /privacy names the public resolvers an `asn-info` lookup can pass through + when this server's own resolver cannot answer it. + +### 2026-11-21 (image-ocr turns, replay marks and Solana sales) +Tools: +- `image-ocr` reads images in turn across callers, each within a set time: a + caller's first image is read to the end, a call that waits out its time in + line answers 503 with a Retry-After and keeps its place, and an image that + cannot be read in time answers 422 with a note to downscale it. +- A caller whose `image-ocr` call ended without an answer stands further back + for its next one, a weight kept on the wallet it paid with, so other callers + behind the same address keep their place. +- A freed audio decode slot goes to the waiting caller that holds the fewest + places, first come among equals, and wallets paying from one address take + their turn as one caller. +- When the `image-ocr` line or the audio decode queue is full, a caller that + already has a call running or waiting there is answered busy, and a caller + with none is still queued, up to a larger bound set by memory. +Payments: +- A settled payment's replay mark is kept about an hour after the call, or + until the authorization's own validBefore plus 10 minutes when that is later + (it was at most 30 days after the call); /privacy and the dataHandling list + on /.well-known/x402 state the hold. +- A Solana payment refused because its transaction's recent blockhash is no + longer valid carries `reason: "blockhash-expired"`, and its hint says to ask + for a fresh 402 and build the transaction on a fresh blockhash. +- A Solana settlement is booked as one sale: the sales ledger keeps at most + one sale for a settlement signature, and every count and sum of sales + reads it once. +Refunds: +- An answer that was charged and never delivered (the buyer left while it + settled) is served when the same payment is sent again, its debt closed + first; when the store does not confirm that close the buyer is asked to + retry, and one who does not keeps the debt owed. +- When that payment is sent again twice at once and one of the two is + served, its debt stays closed whatever the other attempt's outcome. + +### 2026-11-21 (balance checks for calls in flight) +Payments: +- On a deployment with more than one server, a wallet's call is admitted at + once on its last balance read only when no other server has settled a + payment of that wallet since; when one has, the balance is read again + first and the calls that arrived together share that read. +- A Solana payment is counted against the balance of the token account it pays + from, so a wallet that pays from several token accounts at once is counted + per account, each covering its own calls in flight. +- A Solana payment that names its accounts through an address lookup table + is counted against the largest single token account of the mint the wallet + holds. +- A Solana wallet's calls in flight that name their token account and those + that name it through a lookup table are counted together on every server + of a deployment, since one account can back both. +Operations: +- A balance read that is dropped before it is made gives a unit of the daily + read budget back only when it took one, so the day's count matches the + reads made. + +### 2026-11-21 (multisig Tempo payments and DNS names) +Payments: +- A Tempo pull credential in a multisig envelope is counted against its + account's balance, with no fixed number of calls at once, once a payment + from that account under the same multisig config has settled here. +- Until then, and under any other config, calls paid that way run four at + once per client address (`INFLIGHT_COVER_UNREAD_MAX` sets the number), + whichever account each names; a call past that answers 429 with + `Retry-After: 5` (`Retry-After: 30` on the report and media routes) and + nothing is charged. +- Calls an account pays for with its own key, or with an access key Tempo + confirms for it, are counted against that account's balance alone. +Tools: +- The DNS, mail and certificate tools look up a name in one normalized form + (lowercase, no trailing dots or surrounding spaces), and `dns` answers + with that form in `name`. +- `dkim-lookup` answers a selector that makes no DNS name with the domain + (an empty label, a label over 63 characters, a whole name over 253) with a + 400 that names the field. + +### 2026-11-21 (the guide site, report links and the brand mark) +Site: +- The site menu, the openings of /learn and /how-to-pay, /llms.txt and + /llms-full.txt link ask402.ai, the maintainer's guide to + x402 and MPP for people. +- /what-is-x402, /what-is-mpp and /learn/x402 are titled for how each + protocol runs on this server, and each links the guide's explainer for the + general question. +- `/reports?product=&input=` opens the storefront with that + report selected and its field filled; nothing is submitted until the buyer + presses the button. +- /integrations/agentcore covers Amazon Bedrock AgentCore: catalog tools + through an AgentCore Gateway target, payment through AgentCore Payments, + and the buyer sample. +- Social cards draw the brand mark from the logo file, and /logo.png, + /logo.svg, the favicons and the nav mark serve the same art. +- Vulnerability reports go to security@agent402.tools; support, billing, + legal and abuse questions go to help@agent402.tools. +Docs: +- The MPP examples list the tokens the evm method signs for (USDC on Base + and on Celo), so they pay as written. +Privacy: +- /privacy says what a card checkout keeps when the link that led to it + names a listed site in `utm_source`: that name, with the sale, in Stripe's + record of the checkout and in the sales ledger, and nothing in the + browser. +Surfaces: +- The seller leaderboards (Base, Solana and MPP) rebuild every 12 hours at + fixed times an hour apart, one at a time; a rebuild held back by memory + tries again every hour, and `/api/gateway-status` carries `boardRefresh`, + whose `status` reads ok, held or stalled. +Operations: +- An issue a scheduled check opens carries a fixed title that names the check + and a body that links the run, the reading that tripped it staying in the + run log; a check whose issue body is its own saved state keeps that body. + +### 2026-11-21 (a lower price for a returning wallet) +Payments: +- On a server that sets `RETURNING_WALLET_PRICE=on`, a buyer that names its + wallet in the `X-Agent402-Wallet` request header and proves it holds that + wallet in `X-Agent402-Wallet-Proof` gets the route's x402 `exact` offer on + EVM chains at a lower price once the wallet has paid on enough distinct days + (`RETURNING_WALLET_MIN_PAID_DAYS` inside `RETURNING_WALLET_WINDOW_DAYS`; + `RETURNING_WALLET_DISCOUNT_BPS` sets the discount), while every other offer, + and every surface that publishes a price, stays at list. +- The discount is taken from the route's list price; a chain's premium and + price floor still apply, so a chain at its floor quotes the same amount, + and the 402 names that chain instead of saying the discount was applied + there. +- The proof is the wallet's EIP-191 signature over this server's host name, + the route, the wallet and a time within five minutes of the server's clock, + one proof serving the quote and its signed retry; a wallet named without a + valid proof is quoted list, its history is not read, and the 402 says + nothing about it. +- The lower price holds only for a payment signed by the named wallet: a + payment of the lower amount from any other wallet is answered 402 with the + list price, and nothing is charged. +- The ledger reads behind a quote are bounded per client address and across + all callers; past a bound a wallet not read yet is quoted list, never + refused, and a wallet already read keeps its price. +- Routes priced per request, metered and model-backed routes, and routes + whose effect outlives the answer or that spend this server's own wallet + are always quoted at list. +Surfaces: +- With the switch on, /llms-full.txt states the rule, an eligible route's 402 + body states the offer in `returningWalletPrice`, its operation in + /openapi.json lists the `X-Agent402-Wallet` and `X-Agent402-Wallet-Proof` + headers, and agent402-client (given a `walletSigner`) and agent402-mcp (with + `AGENT_KEY`) send both on a paid call. +Privacy: +- With the switch on, /privacy and the service manifest's data handling say + what the `X-Agent402-Wallet` header is read for, that it is read only with + a valid proof, and how long the named wallet and a used proof are held in + memory. + +### 2026-11-21 (named speech models) +Gateway: +- On a server that lists them in `NAMED_AUDIO_MODELS`, more speech models + (model-backed) can be named in `model` on `POST /v1/audio/speech`, each with + its own voices and the default chain behind it as fallbacks, at the route's + price and cap; `GET /v1/models` lists the ones the server serves, and a + request that names any other model is a 400. + +### 2026-11-21 (named transcription models) +Tools: +- On a server that lists them in `NAMED_AUDIO_MODELS`, more transcription + models (model-backed) can be named in `model` on the URL transcribe routes, + at the tier's price and cap and not beside `diarize`; a tier's input schema + lists the ones the server serves on it, the answer names the model that + served it, and a request that names any other model is a 400. + +## v2.10.0 - 2026-11-21 + +### 2026-11-21 (x402 by default for python-httpx clients) +Payments: +- On a server that offers MPP, a client whose User-Agent starts with + `python-httpx/` gets a 402 that carries the x402 offer alone: the + `PAYMENT-REQUIRED` header and the body are unchanged, with no + `WWW-Authenticate: Payment` challenge, so it pays over x402 with no extra + configuration. +- Such a client gets the MPP challenges back, in the usual order, by sending + `X-Payment-Offers: mpp` (or `all`) or an `Accept-Payment` header naming an + MPP method such as `tempo/charge`, and a request that carries an MPP + credential is verified as before. +Surfaces: +- The agent docs, /what-is-mpp, /x402-test, the guides and the MCP + connector's payment note name this rule and the opt-in header while the + server offers MPP. +Operations: +- `MPP_OFFER_WITHHOLD_USER_AGENTS` sets the User-Agent prefixes (a comma + list); `off` offers MPP to every client. +Packages: +- The AgentCore buyer sample hands the payment service the x402 offer alone, + and its Tempo probe sends `X-Payment-Offers: mpp`. + +### 2026-11-21 (Tempo pull credentials and balance cover) +Payments: +- A Tempo pull credential signed by an access key that Tempo does not + confirm for the account it names now answers that the credential was + validated, the transaction was not broadcast and nothing was charged. +- Access-key checks for Tempo pull credentials wait in arrival order; when + the queue is full the call answers 503 with a Retry-After at once, and + nothing is charged. +- The in-flight balance check counts a Tempo pull credential whose sender is + not verified (a multisig account, for one) against the account it draws + on, in a ledger kept apart from that account's verified calls. +- A wallet's paid calls are admitted at once on its last balance read while + that read is under a minute old (was five minutes); + `INFLIGHT_COVER_KEPT_AT_ONCE_MS` sets the window. +- Once this server's daily budget of balance reads is spent, reads are + capped per minute across all wallets + (`INFLIGHT_COVER_PAST_BUDGET_READS_PER_MIN`), and a call refused for its + balance answers Retry-After with the seconds until its wallet is read + again, at most 60. +- Solana payments from one wallet share one in-flight ledger whether the + transfer names its accounts directly or through an address lookup table, + and a delegate's transfer adds the source account's balance. + +### 2026-11-21 (card payments and card report refunds) +Payments: +- A card payment that Stripe declines after the call ran answers that nothing + was charged and asks for a fresh challenge; the same credential is not + accepted again. +- A card capture that Stripe does not answer (a timeout, a connection error or + a 5xx) is sent once more under the same idempotency key, and a charge Stripe + confirms is served as paid with its receipt; when the outcome is still not + known the 402 says the charge is not confirmed, the credential is spent, and + the possible charge is recorded as owed (the `refundsOwed` word on + `/api/gateway-status` reads owed) until it is refunded or shown not to + exist. +- A card report refund that Stripe has accepted but not finished is marked + pending, read again every 5 minutes, and leaves the owed list once it + completes. +Surfaces: +- The `refundsOwed` word on `/api/gateway-status` carries `ledger` and + `card` beside `status`; `card` reads none, pending, refused or unknown. +Reports: +- The message at a card report's repeat-failure limit says no new attempt + was made for the purchase, and ends with the refund's outcome once. +- Publishing a report mints one public link, even when it is published from + two places at once. + +### 2026-11-21 (router matches and seller records) +Router: +- The router buys only from an outside seller whose listing matches enough of + the task's words, and when none is left answers a 404 that says so, with + nothing spent. +- Filler words (the, a, an, for, tool, tools, api, apis) no longer count + toward a match. +- A pause under one of this server's own spend ceilings on route-execute, the + flight routes, seller-payability and attest names its rule: `reason` reads + `routing_paused`, `rule` names the ceiling, `attribution` reads `ours`, with + a hint, a next step and `retryAfterSeconds`. +Index: +- A paywall check on a seller record that did not read a 402 carries a + fixed `reason` code (answered_free, auth_required, redirected, + client_error, server_error, probe_malformed, probe_incomplete) and its + sentence on `/api/index?seller=`, and the seller dossier names it. +- A seller's x402 manifest can set a top-level `revisitAfterSeconds`, + documented on /crawler: each crawl read then waits at least that long, up to + the crawler's cap, and it only lengthens the wait. +Tools: +- `dns` is served like the other network tools, with the same route, price + and example; its lookup ends at a run's time limit. + +### 2026-11-21 (FDA, CVE, X and wallet data) +Tools: +- `drug-shortages` searches the FDA drug shortage list by drug name, + therapeutic category or status. +- `drug-orange-book` reads FDA Orange Book products with patents, + exclusivity codes and therapeutic equivalence codes, by name, active + ingredient or application number. +- `cve-lookup` adds CISA's SSVC decision points with the Track, Track*, + Attend or Act decision for a given `missionImpact` (each level without + one), and says whether NVD or only the CNA scored the record. +- `x-post-counts` counts posts on X matching a query by day, hour or minute + over the last 7 days; `x-trends` reads X's trending topics for a location. +- `wallet-transfers-multichain` reads a wallet's transfers on up to 5 EVM + networks in one call, with each network's state in the answer. + +### 2026-11-21 (weather answers cached) +Tools: +- Current, forecast, historical, plan and probability weather answers are + kept for up to an hour, and each listing says for how long; + `OPEN_METEO_READ_CACHE=off` reads every request upstream. +- The daily, hourly, historical and probability weather listings lead with + the words a buyer searches for. +Surfaces: +- The `openMeteo` word on `/api/gateway-status` reads `refused` while any + Open-Meteo API's last keyed read was refused, so a key that covers some of + them and not others shows. + +### 2026-11-21 (wallet subscriptions for monitors) +Site: +- On a server with MPP subscriptions on, /monitors shows how to subscribe + with a wallet over MPP beside the card checkout. +Payments: +- A retried subscribe that is handed its subscription no longer also leaves + its first payment owed as a refund. +Operations: +- On a file-backed store, the sweep of unpaid subscription offers gives + other requests a turn as it runs. + +### 2026-11-21 (wallet sign-in) +Payments: +- On a server with wallet sign-in on, each caller and each network holds a + bounded number of pending sign-ins; a full bound expires the oldest. + +### 2026-11-21 (agent402-client 0.10.1 and site analytics) +Packages: +- agent402-client 0.10.1: with the `x402Client` passed, a paid request whose + connection failed before any answer is resent once with the payment + already signed, so it settles at most once (`retryResets: false` turns it + off). +- The AgentKit example pins agent402-client 0.10.0. +Site: +- Automated browsers are tagged as internal traffic in the site's + analytics; the page still loads its tag. + +## v2.9.0 - 2026-11-20 + +### 2026-11-20 (first paid request after a restart) +Payments: +- The first paid request after a restart is answered at once, even when a + fallback settlement service is slow to answer (the first service listed for + a network is still waited for); that service rejoins the offer as soon as + it answers. + +### 2026-11-20 (ASN lookups ride out a failing resolver) +Tools: +- Asn-info retries its lookup once through public resolvers when the host's + own resolver fails on Team Cymru's DNS zone (a resolver error such as a + SERVFAIL or a timeout); a name with no record is still answered at once. + +### 2026-11-20 (where errorCode rides) +Wholesale: +- Every error answer a tool's route writes, other than a 402, carries + `errorCode` beside the message: an input refused before payment, a body the + server cannot read (400) or that is over its size limit (413), a run that + ended in an error, a retired route (410), a paused or switched-off tool + (503), and a tool whose route is not served on this server, which answers + 404 as any unknown path under /api does. A 402 is the payment-required + answer: it follows the x402 and MPP wire formats and carries no `errorCode`. + Its `payment_required` row stays in the contract's code table with the new + field `carried: false`; every other row reads `carried: true`. + +### 2026-11-20 (retired model ids leave the model list) +Gateway: +- `meta-llama/llama-3.2-1b-instruct` and `meta-llama/llama-3.2-3b-instruct` + reached their upstream expiration and are no longer listed on the nano tier + or `GET /v1/models`; a call naming either is served by + `mistralai/ministral-3b-2512` at the tier and price of the route called, the + swap named in `agent402_model_substituted`. +- From a model's retirement date `GET /v1/models` lists its successor in its + place (or leaves it out on a tier that does not serve the successor), so + every id it prints is served as itself. + +### 2026-11-20 (settled answers and interrupted runs) +Payments: +- A buyer who leaves while a payment is still settling no longer spends + hang-up forgiveness when the charge went through; the charge is booked as + owed and repaid. +- A task or job interrupted by a restart now checks whether its payment + settled: with a sale tied to that run on the books, the task says so, names + the transaction and the charge is booked for repayment; otherwise the task + makes neither claim and names the free refund lookup. +- When the shared payment store is briefly unavailable, paid routes now ask + for a retry after 5 seconds instead of 30. +- A paid call answered with any success status now uses up its payment + authorization, so it cannot run a second time. + +### 2026-11-20 (refund pipeline) +Payments: +- A refund run reads each payment's receipt from a configured source first + and reads an empty answer again before it tries the next, so an older Celo + debt can be proven and repaid instead of held. +- Two failed paid calls by one wallet on one route in the same minute are + recorded as two refunds owed. +- A refund run can be narrowed to named rows, and stops starting new refunds + before its time limit, so no refund is cut off halfway. + +### 2026-11-20 (legal claims, receipts and llms.txt) +Site: +- /trust says when payer sanctions screening is in force: while no list is + loaded, Tempo direct settlement is not offered and the other screens serve + payments unscreened, and the `sanctionsScreen` word on `/api/gateway-status` + says which case holds. +Surfaces: +- The audit report lists the wallet's own repayments in a refunds block (owed + and repaid, with the repayment transaction), never netted from the totals. +Site: +- The privacy policy names the signed receipt kept with a delivered card + report, the receipts of a monitor's most recent paid periods, and the MPP + evm and Tempo relay payer screens. +- The README and /trust say a signed receipt covers the direct routes: a tool + bought through a referral link carries none, and a stream carries its + receipt as a final event-stream comment line or a trailer. +Surfaces: +- /llms.txt names each machine surface in one clause and points at + /llms-full.txt for every line in full. +Site: +- The refund terms say a disconnect past the hang-up budget is reviewed + before it is repaid, and a credits debit is re-credited to its key. + +### 2026-11-20 (crypto answers you can check) +Tools: +- `crypto-price` now checks each USD price against a second source, + Hyperliquid's oracle price, and adds `divergencePct`, a `stale` flag per + coin and a `check` field naming the source. +- `crypto-market` adds turnover and distance below the all-time high, and + works as a screener over the top 250 coins (market cap, volume, turnover, + 24h change band, distance from the high, sort) with `matched` and + `truncated` fields. +- `crypto-history`, `coin-market-chart-range` and `coin-ohlc` lead with the + window's return, annualized volatility and max drawdown. +- `rwa-markets` and `rwa-asset` show tokenized gold and silver against the + spot price, as a premium in basis points. + +### 2026-11-20 (onchain-sql answers and pacing) +Tools: +- `onchain-sql`: two calls sent close together are no longer spaced apart; + the query service still receives at most two queries a second. +- `onchain-sql`: when every query place is busy, a call waits up to about 3 + seconds for one instead of being refused at once; a busy refusal asks for a + retry in 4 to 6 seconds. +- `onchain-sql`: a query the service cuts off at its time limit answers 422 + with hint `timed-out`, a 502 that returns at once says to retry, and + narrow-query answers carry `charged: false` and `upstreamMs`. +- `onchain-sql`: an answer larger than 16 MB is answered 502 and not + charged. +- `onchain-sql` and `onchain-sql-schema`: a call paid on Solana finishes + within 40 seconds, inside the payment's valid life. + +### 2026-11-20 (agent402-mcp 0.14.1 and the CI catalog sweep) +Packages: +- agent402-mcp 0.14.1 is a version-only release, so the MCP Registry entry + carries the current title; each publish now marks every older registry + version deprecated, so the registry lists one current version. +Operations: +- CI's catalog sweep reads CoinGecko and Open-Meteo under a per-run + CoinGecko read cap, and a run that spends the cap or meets a rate limit + fails. + +### 2026-11-20 (long recordings transcription) +Tools: +- A server that sets `TRANSCRIBE_LONG=on` lists and serves + `/api/transcribe-long` (model-backed), the long-recording transcription + tier: an audio file at a URL, up to 30 minutes and 25 MB, answered like the + other tiers (`diarize: true` adds speaker labels and word timestamps); it + runs up to 230 seconds on a long file, so it is paid on the EVM `exact` + rails only, and `Prefer: respond-async` returns a job link at once. + +### 2026-11-20 (Solana activity charts across restarts, call budgets across deploys) +Site: +- A Solana chain page's 30-day activity chart keeps its history across + restarts, a wallet too busy for one scan continues from where the last scan + stopped, and when the newest payments could not be read the panel prints + when they were last read in full (`as of