bench: external token data layer#2
Conversation
AntFleet · 2 findingsBoth reviewers flagged the items below on the changed files. AntFleet posts only what two independent frontier models agree on. Bug · Medium — decodeStringResult off-by-two bound can fail for empty dynamic strings
Fix: Update the bound check to if (Number.isFinite(offset) && clean.length >= offset2 + 64) { ... }. Keep lenStart = offset2, and use dataStart = lenStart + 64 and data length = length*2 as already implemented. Out-of-hunk patch artifact (model: claude-opus-4-7)This non-click-to-apply fix is outside the PR diff hunk, so GitHub cannot render it as a suggestion. --- a/src/base-token-metadata.js
+++ b/src/base-token-metadata.js
@@
- if (Number.isFinite(offset) && clean.length >= (offset + 1) * 2 + 64) {
+ if (Number.isFinite(offset) && clean.length >= offset * 2 + 64) {Bug · Medium — Wrong argument key passed to parseMiroSharkX402SharePage causes missing base URL/canonical fallback
Fix: In pollMiroSharkX402Status, change both invocations to pass { url: shareUrl } (and optionally baseUrl if available) instead of { shareUrl }. Example: parseMiroSharkX402SharePage(await fetchText(shareUrl, { fetcher }), { url: shareUrl }). Out-of-hunk patch artifact (model: claude-opus-4-7)This non-click-to-apply fix is outside the PR diff hunk, so GitHub cannot render it as a suggestion. --- a/src/miroshark-x402-client.js
+++ b/src/miroshark-x402-client.js
@@
- parseMiroSharkX402SharePage(await fetchText(shareUrl, { fetcher }), { shareUrl });
+ parseMiroSharkX402SharePage(await fetchText(shareUrl, { fetcher }), { url: shareUrl });
@@
- parseMiroSharkX402SharePage(await fetchText(shareUrl, { fetcher }), { shareUrl });
+ parseMiroSharkX402SharePage(await fetchText(shareUrl, { fetcher }), { url: shareUrl });— Review |
Manual file pick from AISynthetics/synthetic-users — x402, Base token metadata, external profile collectors, and source-backed schema.
Source repo: AISynthetics/synthetic-users @ 74774c9a48a7
Files:
src/miroshark-x402-client.jssrc/base-token-metadata.jssrc/x-profile-collector.jssrc/x-thread-collector.jssrc/agent/source-db.jsdb/source-backed-schema.sqltests/miroshark-x402-client.test.mjstests/base-token-metadata.test.mjsGenerated by manual bench onboarding.